Application Development 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: 

ALV report

Former Member
0 Kudos

Hi All,

i am currently working on ALV Hierarchical sequential list output report, the

requirement was to display the multilpe records at header internal table and item table.

example:

header level

vkorg matnr lgort ........................

xx1 xxxxx 001 ........................

xx1 xxxxx 002 .......................

item level

vkorg matnr lgort ........................

xx1 xxxxx-01 001 ........................

xx1 xxxxx-01 002 ........................

xx1 xxxxx-02 001 .......................

xx1 xxxxx-02 001 ........................

please any one help me if possible few examples.

Thanks in advance.

Rajeev

4 REPLIES 4

Former Member
0 Kudos

Suggest you look at programs SALV_* ... especially Hierseq and Tree.

Best!

Jim

Former Member
0 Kudos

hi,

pls try with function module --> 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'

The internal table t_outtab_header needs to be filled with the internal table containing header details. The internal table t_outtab_item needs to be filled with the internal table containing item details.

Former Member
0 Kudos

Rajeev,

You can use the function module REUSE_ALV_HIERSEQ_LIST_DISPLAY for ALV hierarchy display and you need to give ur hearde as well as item level internal table..

If you want to use objects then use the following:

CL_GUI_ALV_TREE

CL_GUI_COLUMN_TREE

CL_GUI_ALV_TREE_SIMPLE

Former Member
0 Kudos

Hi,

The following are the steps followed to display heirarchical list.

1. Create a field catalog for the header table.

create a field catalog for the item table. The fields which are common in the both the tables are displayed as header table fields. Suppress these fields in the item table.

2. Specify KEY Field information. Key fields which link the header n item tables are specified.

3. Build Layout.

4. use appropriate function module to display the list.

check these programs <b>BALVHD01</b>

<b>BALVHD01_GROUP</b>

Regards,

Vara