Hi
Hi ,
I have small doubt in alv hierachail report ,
can anyone tell me how the header and the item level data match
i have iheader and iitem internal tables.
say i have matnr in iheader ,do i need to have the matnr field in iitem also
so if expand the iheader then i needed to get the material desc for that material.
DATA: s_keyinfo TYPE slis_keyinfo_alv.
s_LAYOUT-EXPAND_FIELDNAME = 'EXPAND'.
iKNOW THAT I HAVE TWO PASS SOMETHING TO S_KEYINFO TO RELATE .CAN ANYONE TELL ME HOW TO DO THIS.
CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
EXPORTING
i_callback_program = v_repid
is_layout = s_layout
it_fieldcat = t_fieldcatalog
i_tabname_header = 'IHEADER'
i_tabname_item = 'IITEM'
is_keyinfo = s_keyinfo
TABLES
t_outtab_header = iHEADER
t_outtab_item = iItEM
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Thanks