10-23-2006 4:29 PM
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
10-23-2006 7:18 PM
Suggest you look at programs SALV_* ... especially Hierseq and Tree.
Best!
Jim
10-23-2006 7:45 PM
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.
10-23-2006 7:51 PM
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
10-23-2006 8:50 PM
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