Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Header and Item data in ALV

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

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

0 Kudos

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.

0 Kudos

Build your own internal tables, field catalog and use them whereever it is required by referring to the standard program.

Thanks,

Srinivas

Former Member
0 Kudos

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

Former Member
0 Kudos

Closed.