12-03-2007 1:48 PM
hi,
how to display both header and item details using REUSE_ALV_GRID_DISPLAY, here header contains different ship to party addresses for each purchase order number.
thanks in advance
12-03-2007 2:22 PM
simplest way is to merge both header n detail table into 1 final internal table having columns of both tables..
Pass dis table to REUSE_ALV_GRID_DISPLAY function..
Hope dis helps..
Reward all helpful answers
12-03-2007 1:50 PM
12-03-2007 1:59 PM
hi
You can not display both header and item level data using resue_alv_grid_disp.
You need to use REUSE_ALV_HIERSEQ_LIST_DISPLAY
or go for tree control (sample prg: BCALV_GRID_DND_TREE)
Pavan
12-03-2007 2:22 PM
simplest way is to merge both header n detail table into 1 final internal table having columns of both tables..
Pass dis table to REUSE_ALV_GRID_DISPLAY function..
Hope dis helps..
Reward all helpful answers
12-04-2007 5:24 AM
data: ldt_table type sdydo_html_table,
lds_table type sdydo_html_line.
This function for displaying the Heading in the screen...
call funciton ''REUSE_ALV_GRID_DISPLAY'
EXPORTING
...
I_CALLBACK_HTML_TOP_OF_PAGE = 'ALV_EVENT_HTML_TOP_OF_PAGE'
I_CALLBACK_TOP_OF_PAGE = 'ALV_EVENT_TOP_OF_PAGE'
....
FORM ALV_EVENT_HTML_TOP_OF_PAGE.
concatenate '<tabl border=0><TR>><TD width=1770>'
'Date:' sy-datum
</TD></TR></Table>'
into lds_table.
append lds_table to ldt_table.
call method prc_dydo->add_static_html
exporting
table_with_html = ldt_table.
endform.
ENDFORM.
This function it is used for the display the Reprt.....
Form ALV_EVENT_TOP_OF_PAGE.
write statement.
endform.