SAP EXTRACT ABAP Statements
Get Example source ABAP code based on a different SAP table
Standard SAP Help for EXTRACT
EXTRACT
• EXTRACT ABAP Statement
ABAP Syntax(Obsolete)
What does it do? This statement appends the current content of the fields previously included in the field group
The extract dataset is created the first time
Latest notes:The field group
Example ABAP Coding
This example continues the example under
DATA: spfli_wa TYPE spfli,
sflight_wa TYPE sflight,
spfli_tab LIKE TABLE OF spfli_wa,
sflight_tab LIKE TABLE OF sflight_wa.
FIELD-GROUPS: header, flight_info, flight_date.
START-OF-SELECTION.
INSERT: spfli_wa-carrid spfli_wa-connid sflight_wa-fldate
INTO header,
spfli_wa-cityfrom spfli_wa-cityto
INTO flight_info.
SELECT *
FROM spfli
INTO TABLE spfli_tab.
SELECT *
FROM sflight
INTO TABLE sflight_tab.
LOOP AT spfli_tab INTO spfli_wa.
sflight_wa-fldate ='--------'.
EXTRACT flight_info.
LOOP AT sflight_tab INTO sflight_wa
WHERE carrid = spfli_wa-carrid AND
connid = spfli_wa-connid.
EXTRACT flight_date.
ENDLOOP.
ENDLOOP.
ABAP Code Snippet
Runtime Exceptions
Non-catchable Exceptions
Reason for error:
Runtime error:
Reason for error:
Not enough roll memory to create the extracts. Runtime error:
Runtime error:
Reason for error:
The occupied lenght of a single field is too large. Runtime error:
Reason for error:
Problems at creation of the extract dataset master file. Runtime error:
Runtime error:
Runtime error:
Runtime error:
Runtime error:
Reason for error:
Field group Runtime error:
Reason for error:
Local data is not allowed in field groups. Runtime error:
Reason for error:
Error when opening the external extract dataset master file. Runtime error:
Reason for error:
Total data length of a record to be extracted (inclusive Runtime error:
ABAP Code Snippet
Return to menu