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


Please Help Members By Posting Answers For Below Questions

Where do you code the hide statement?

569


What are the function modules used to create batch input session? : abap bdc

627


Why do we use dynamic where conditions?

876


hi i need detailed information on badi and bapi how can this work in real time senarios plz explain with exp

3210


How are BAPI different from Normal function modules ?

1578






Explain how data is stored in cluster table?

659


What are the different functions used in sap script? What are the parameters used in each function?

619


What are the screen elements.

519


What is an abap data dictionary? : abap data dictionary

606


What are the steps to be followed to set lockobjects? : sap abap data dictionary

626


What are field symbols?

636


Difference between sy-tabix and sy-index? Where it is used? Can you check sy-subrc after perform?

609


How do we assign dynamic views while creating material master and generating bdc? : abap bdc

628


What is runtime analysis?

602


How can you access the function code from menu painter?

635