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: 

What does an extract statement do in the ABAP program?

Former Member
0 Kudos

What does an extract statement do in the ABAP program?

2 REPLIES 2

former_member223537
Active Contributor
0 Kudos

EXTRACT [ header | field_group ].

<b>Effect</b>

This statement links the current content of the fields, which were until then included in the field group header resp. field_group via the statement INSERT , to the extract dataset of the program. If there is no field group specified after EXTRACT, then the field group header is implicitly added.

This example continues the example under INSERT. If the executable program is linked to a fitting logical data base, the fields of the field groups flight_info and flight_date are attached to the extract dataset during the GET-events.

REPORT demo_extract. 

NODES: spfli, sflight. 

FIELD-GROUPS: header, flight_info, flight_date. 

START-OF-SELECTION. 

INSERT: spfli-carrid spfli-connid sflight-fldate 
          INTO header, 
        spfli-cityfrom spfli-cityto 
          INTO flight_info. 

GET spfli. 
  EXTRACT flight_info. 

GET sflight. 
  EXTRACT flight_date.

Former Member
0 Kudos

Hi manish,

I don't think this is a keyword in ABAP.

Sorry, just checked. It is used with logical DB.

Regards,

Atish

Message was edited by:

Atish Sarda