Application Development and Automation 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: 
Read only

INSERT: ... INTO HEADER

Former Member
0 Likes
804

Hi,

Is there such a cammand INSERT: ... INTO HEADER and how do we use it. Thanks

1 ACCEPTED SOLUTION
Read only

MarcinPciak
Active Contributor
0 Likes
662

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

5 REPLIES 5
Read only

MarcinPciak
Active Contributor
0 Likes
663

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

Read only

Former Member
0 Likes
662

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

Read only

former_member302911
Active Participant
0 Likes
662

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.

Read only

Former Member
0 Likes
662

Thanks all

Read only

ThomasZloch
Active Contributor
0 Likes
662

Next time, please search before posting, also consult F1-help.

Thanks

Thomas