Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

regarding PUT statement

Former Member
0 Likes
1,527

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

3 REPLIES 3
Read only

Former Member
0 Likes
910

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

Read only

0 Likes
910

Can you please put screenshot of output as well when writing code snippet please

Read only

Former Member
0 Likes
910

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.