10-18-2007 11:43 PM
Hello,
I have a header and item data.My output should be in ALV.
Can anyone tell me how this can be done?
Points will be rewarded!!
Thanks,
A Pothuneedi
10-19-2007 12:10 AM
Hi,
You can use the function module REUSE_ALV_HIERSEQ_LIST_DISPLAY instead of REUSE_ALV_LIST_DISPLAY.
You can refer to the standard program BCALV_TEST_HIERSEQ_LIST.
If you want to display in tree view fashion then you can refer to the standard programs BCALV_TREE_DEMO or BCALV_TREE_SIMPLE_DEMO
Hope it helps.
Reward if it is useful.
Thanks,
Srinivasa Rada
10-19-2007 12:25 AM
What do I need to modify in BCALV_TREE_SIMPLE_DEMO to fit my requirement?
I see just one table data being used but I have a header and an item table.
10-19-2007 12:45 AM
Build your own internal tables, field catalog and use them whereever it is required by referring to the standard program.
Thanks,
Srinivas
10-19-2007 2:13 AM
hi
I hope u use the FM for ALV REUSE_ALV_GRID_DISPLAY.
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.
-Seelan
05-14-2009 10:15 AM