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

ALV Report for multiple headers with Line Items

venkatasap
Participant
0 Likes
841

Hi Sap All.

here i have got a requirement to change the exisiting Zprogram which writes all the header information with line items in a normal simple report,now i have got to change the program in order to display in an ALV Format .

in the exisiting program they are using EXTRACT ,INSERT Statement and multiple select statements for getting the values into each field ofheader and line items for writing in a simple report.

so ijust want to know how i can populate all the data into alv grid.

can any one help me in this.

regards.

Varma

1 ACCEPTED SOLUTION
Read only

franois_henrotte
Active Contributor
0 Likes
529

you have to store all header records in an internal table and all item records in a second table

then you call function module REUSE_ALV_HIERSEQ_LIST_DISPLAY with both parameters T_OUTTAB_HEADER and T_OUTTAB_ITEM

1 REPLY 1
Read only

franois_henrotte
Active Contributor
0 Likes
530

you have to store all header records in an internal table and all item records in a second table

then you call function module REUSE_ALV_HIERSEQ_LIST_DISPLAY with both parameters T_OUTTAB_HEADER and T_OUTTAB_ITEM