‎2007 May 23 9:35 AM
Hi experts,
1)what is the functionality of PUT statement apart from triggering GET event?
2)when will GET <TABLE> LATE trigger?what is its functionality?
Thanks inadvance
‎2007 May 23 9:41 AM
Hi Surya,
<b>1)what is the functionality of PUT statement apart from triggering GET event?</b>
A) PUT statement is only used with LDBs.
PUT <node> statement to trigger a corresponding GET event in the ABAP runtime environment. The PUT statement is the central statement in this subroutine: It can only be used within a subroutine of a logical database. The logical database must contain the node <node>, and the subroutine name must begin with PUT_<node>. The PUT statement directs the program flow according to the structure of the logical database.
<b>2)when will GET <TABLE> LATE trigger?what is its functionality?</b>
A)
Executes the code following " GET dbtab LATE. " only when all the subordinate tables have been read and processed.
Example
Count the smokers among the bookings already made.
TABLES: SFLIGHT, SBOOK.
DATA SMOKERS TYPE I.
GET SFLIGHT.
ULINE.
WRITE: / SFLIGHT-SEATSMAX,
SFLIGHT-SEATSOCC.
SMOKERS = 0.
GET SBOOK.
CHECK SBOOK-SMOKER <> SPACE.
ADD 1 TO SMOKERS.
GET FLIGHT LATE.
WRITE SMOKERS.
Thanks,
Vinay
‎2020 Dec 04 4:40 PM
Can you please put screenshot of output as well when writing code snippet please
‎2007 May 23 9:44 AM
Hai,
1.The runtime sequence is controlled by the PUT statement in LDB.
2.The event GET..LATE is triggered when all of the data records for a node of the logical database have been read.
Regards,
Padmam.