Application Development 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: 

when to use GET LATE command in LDB

Former Member
0 Kudos

Hi,

Can anyone tell me the the use of GET LATE command in logical database,

when to use this..

example will be more helpful.

Regards,

Mrunal

4 REPLIES 4

Former Member
0 Kudos

Hi Mrunal,

This link is the help.sap link. It will clear all your queries.

http://help.sap.com/saphelp_nw04s/helpdata/en/9f/db9abd35c111d1829f0000e829fbfe/frameset.htm

Thanks

Nayan

Reward if useful

Former Member
0 Kudos

Hi Frd

If you want to perform calculations or other operations which are not associated with certain additional fields, you can formulate ABAP code for the GET and GET LATE events of a logical database table when creating an InfoSet. The code for GET events is particularly important if you have defined parameters or selection criteria for the InfoSet. It is here that you must define the code to check whether a table line is to be evaluated or not.

Example

REPORT demo_program_get_late.

NODES: spfli, sflight, sbook.

DATA weight TYPE i VALUE 0.

START-OF-SELECTION.

WRITE 'Test Program for GET node LATE'.

GET spfli.

SKIP.

WRITE: / 'Carrid:', spfli-carrid,

'Connid:', spfli-connid,

/ 'From: ', spfli-cityfrom,

'To: ', spfli-cityto.

ULINE.

GET sflight.

SKIP.

WRITE: / 'Date:', sflight-fldate.

GET sbook.

weight = weight + sbook-luggweight.

GET sflight LATE.

WRITE: / 'Total luggage weight =', weight.

ULINE.

weight = 0.

Reward Me Point

By

Pari

Former Member