‎2010 Mar 16 9:45 AM
Hi,
Is there such a cammand INSERT: ... INTO HEADER and how do we use it. Thanks
‎2010 Mar 16 9:53 AM
Yes,
This is so called [Extracts|http://help.sap.com/saphelp_nw70/helpdata/EN/9f/db9ede35c111d1829f0000e829fbfe/frameset.htm]. It is used in former list techniques to process list on screens with a table that has different line type for each record.
Refer to that link above for more details.
Regards
Marcin
‎2010 Mar 16 9:53 AM
Yes,
This is so called [Extracts|http://help.sap.com/saphelp_nw70/helpdata/EN/9f/db9ede35c111d1829f0000e829fbfe/frameset.htm]. It is used in former list techniques to process list on screens with a table that has different line type for each record.
Refer to that link above for more details.
Regards
Marcin
‎2010 Mar 16 9:55 AM
hi shaheen
declare an internal table with header line.
data lt_itab type TABLE with header line.
append the record at the table
append ls_struct to lt_itab.
affter you read the lt_table with the key you want and the record will be in the header of the table.
best regard
Marco
‎2010 Mar 16 9:56 AM
Hi,
it is used in FIELD-GROUP.
You need to declare for example FIELD-GROUP: HEADER, ITEMS.
With INSERT you define what is the fields that you want to use.
Ex. for EKKO - EKPO.
INSERT: EKKO-EBELN INTO HEADER,
EKPO-EBELP INTO ITEMS.
For extract data you can use SELECT * FROM EKKO/EKPO.
After you can use EXTRACT: HEADER, ITEMS. for put the data in temporary dataset. After with statement LOOP. you can get the data from the temporary dataset.
Angelo.
‎2010 Mar 16 10:01 AM
‎2010 Mar 16 10:05 AM
Next time, please search before posting, also consult F1-help.
Thanks
Thomas