what are the events in ABAP?

Answer Posted / munnaluri siva

Example of Classical Report

LINE-SIZE 70
LINE-COUNT 30(3)
NO STANDARD PAGE HEADING . " We will give for describing our
own format
Select-options : S1 for P_Matnr
Initialization. "ABAP will process this first and when you
activate the program it will called first .
s1-low = '45'
s1-high = '89'
AT Selection-screen . " it will do some validation , on the
screen , before your compiling it will check whether user
enter any fields or not.
if S1-low='' and S1-high = ''.
Message ' Enter some value' type 'E'.
Endif.
Start-of-selection . " this mainly used for retrieve the
data from the Db and logic will be executed here .
SELECT MATNR MBRSH MTART FROM MARA INTO TABLE ITAB WHERE
MATNR IN S1.
TOP-of-Page." Mainly used for display .
WRITE:/ 'TEST FOR CLASSICAL REPORTS' COLOR 7.
ULINE.
END-OF-SELECTION. " To display the data which is fetched
from the db .
LOOP AT ITAB.
WRITE:/ ITAB-MATNR,ITAB-MBRSH,ITAB-MTART.
ENDLOOP.

End-of-page. " this is used to display the end of the report .

WRITE:/ 'THIS IS END OF PAGE' COLOR 5.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is value table? : abap data dictionary

647


Explain the table, which contain the details of all the name of the programs and forms?

530


What is sap abap data classes?

609


where are the passwords for ITS stores?

1624


Suppose there is check box along with the rows. The requirement is, select the require check boxes and press a used defined button to save all these checked row data to another table. How can you do it?

1625






hi..i hav developed an interactive report in which alv list display in basic list and 1st secondary list in alv grid display.I want to get summation(total) of the columns in the secondary list.I hav used 'do_sum' but i couldnt get.is there any other way to get summation(total) in secondary list which is an alv grid display

2560


Difference between transparent tables and pooled tables? : abap hr

560


What is hotspot?

929


What are the internal tables and work area?

558


Will 50,000 records be uploaded directly into APP's Server?  

1922


Explain get pernr concept when we use logical data base? : abap hr

757


What is the major difference between pool tables and transparent tables?

519


What are the basic components of dialog program?

698


What is delivery class? : abap data dictionary

661


How are the date abd time field values stored in sap?

603