hello,
i want to display a hierchical lsit with the function 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'. Per every header line, several item lines shall be put out. This doesn't work, with my trial to declare the key_info...
header01 = attribute
item02 = same attribute (but several lines for the header attribute)
Can you help me, is there more to group??
Many thanks,
Stef
Hi Stefanie,
It is very difficult to say what is wrong in your program. Please have a look on example report:
BCALV_TEST_HIERSEQ_LIST in packet SLIS.
Concerning the key_info, I didn't undestand your code sample completely...
My feeling is that you shoudld use something like that:
ls_keyinfo-header01 = 'FIELDNAME1'.
ls_keyinfo-item01 = 'FIELDNAME1'.
ls_keyinfo-header02 = 'FIELDNAME2'.
ls_keyinfo-item02 = 'FIELDNAME2'.
and so on.
and then pass this structure (ls_keyinfo) to the FM
'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
The FIELDNAME1 for example is the columns which present in both - MASTER(header) and SLAVE(items) tables, which you pass to 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'.
Add a comment