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: 

GET pernr LATE

Former Member
0 Kudos

can some one explain me what is usage of GET PERNR LATE?

Many thanks in advance.

1 ACCEPTED SOLUTION

amit_khare
Active Contributor
0 Kudos

Refer link for details -

Regards,

Amit

Reward all helpful replies.

4 REPLIES 4

Former Member
0 Kudos

Hi

These are the events used while using Logical Data bases

First GET is used and after that GET LATE is used

this works on the hierarchy structure of the tables declared in LDB

GET <table> LATE means

for the one entry of the first Table it searches all the below tables for that single record and then the cursor moves to the first table for another record.

Regards

Anji

amit_khare
Active Contributor
0 Kudos

Refer link for details -

Regards,

Amit

Reward all helpful replies.

Former Member
0 Kudos

Hi,

<b>GET … LATE</b>

This event is triggered when all of the data records for a node of the logical database have been read.

When you define the corresponding event block in the program, you can, as with GET, specify a field list if the logical database supports field selection for this node:

GET <table> LATE [FIELDS <f1> <f2>...].

You can use the event block for processing steps that should occur at the end of the block, like, for example, calculating statistics.

The following program is connected to the logical database F1S.

REPORT EVENT_DEMO.

NODES: SPFLI, SFLIGHT, SBOOK.

DATA WEIGHT TYPE I VALUE 0.

START-OF-SELECTION.

WRITE 'Test Program for GET <table> 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.

The total luggage weight is calculated for each flight in the event GET SBOOK, and

then displayed in the list and reset in the event GET SFLIGHT LATE.

Regards,

Bhaskar

Former Member
0 Kudos

hi

good

The GET PERNER is exclusively used in HR ABAP. The GET event gets the node.

The text below will explain the GET event better.

This statement defines an event block whose result is triggered by the ABAP runtime environment after submitting an executable program, if the logical database to which the program is linked, provides data in the work area node. The node work area must be declared with the NODES statement (or TABLES). The data can be processed in the event block.

GET node also controls the behavior of the logical database.

And GET node Late

GET node LATE [FIELDS f1 f2 ...].

Effect

This statement defines an event block whose result is triggered by the ABAP runtime environment after submitting an executable program, when the logical database has read in all records of node node. For node and FIELDS, the same applies as for the previous variant. Use this event block for final processing actions concerning the hierarchy level of the node.

We generally use the same when we write the PAYROLL as to get the entire payroll structure from the database.

reward point if helpful.

thanks

mrutyun^