What does an extract statement do in the ABAP program?
Answer Posted / tech3
Once you have declared the possible record types as field
groups and defined their structure, you can fill the extract
dataset using the following statements: EXTRACT. When the
first EXTRACT statement occurs in a program, the system
creates the extract dataset and adds the first extract
record to it. In each subsequent EXTRACT statement, the new
extract record is added to the dataset EXTRACT HEADER. When
you extract the data, the record is filled with the current
values of the corresponding fields. As soon as the system
has processed the first EXTRACT statement for a field group
, the structure of the corresponding extract record in the
extract dataset is fixed. You can no longer insert new
fields into the field groups and HEADER. If you try to
modify one of the field groups afterwards and use it in
another EXTRACT statement, a runtime error occurs. By
processing EXTRACT statements several times using different
field groups, you fill the extract dataset with records of
different length and structure. Since you can modify field
groups dynamically up to their first usage in an EXTRACT
statement, extract datasets provide the advantage that you
need not determine the structure at the beginning of the
program.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
when do you need to create an internal table with header line ? and with out a header line?
What are the internal tables and work area?
Write special commands of list?
In select-options, how to get the default values as current month first date and last date by default?
What are the functional areas, user groups? How does abap query work in relation to these?
What is a 'z' report?
Update types in Call transaction method. What is the difference?
Example of table cluster and cluster tables.
How do you use tab sets in layout sets?
How do you populate data into a multiple line field?
How do you validate the selection criteria of a report? And how do you display initialvalues in a selection screen?
When you prefer lsmw?
How to create user interfaces for lists?
What is the BAPI_CUSTMATINFO_GETDETAILM used for? what is the input and output of this bapi.
How do you send files to the legacy systems from SAP and vice versa? How does one know that the legacy files have come on to the SAP server you are working on?