Application Development and Automation 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: 
Read only

ALV Header

Former Member
0 Likes
1,109

Hi,

I have one requirement in ALV for displaying the Header and Item detials.For displaying the Item details I have used REUSE_ALV_GRID_DISPLAY.For header I have written normal write statements in top of pgae. Because REUSE_ALV_COMMENTARY_WRITE is not useful for me.How to display the our own Report Header in ALV grid?

Regards,

Anu.

12 REPLIES 12
Read only

Former Member
0 Likes
1,080

Hi

I believe you can't do it using REUSE_ALV_GRID_DISPLAY, try REUSE_ALV_LIST_DISPLAY

Max

Read only

former_member632991
Active Contributor
0 Likes
1,080

Hi,

Displaying the header details i top of page using write statement will not work with ALV.

Either use REUSE_ALV_COMMENTARY_WRITE .

or if you have to just disply header of the grid then use REUSE_ALV_GRID_DISPLAY with its exporting parameter I_GRID_TITLE.

regards,

Sonika

Read only

Former Member
0 Likes
1,080

Hi Anu,

Try using "REUSE_ALV_HIERSEQ_LIST_DISPLAY"

Atul

Read only

Former Member
0 Likes
1,080

Hi,

I am not very sure if you want header data in the table or that you need to display the header details in the same manner as TOP-OF-PAGE but if latter is the case then you can try checking

Report :BCALV_TEST_FULLSCREEN

Here REUSE_ALV_GRID_DISPLAY has a import param

<b>i_callback_html_top_of_page</b>

You can try this .

Regards

Nishant

Read only

Former Member
0 Likes
1,080

I have used REUSE_ALV_LIST_DISPLAY.When I press Execute button it is showing Header and Item detials and when I press BACK button from that page it is displaying only header detials.why again it is ahowing Header detials only.Actually it will show selection screen.right?what could be the reason?

Regards,

Anu.

Read only

0 Likes
1,080

how did u write the top of page??

Read only

0 Likes
1,080

Hi

Where do you have written header data?

You should use the event TOP_OF_PAGE

Max

Read only

0 Likes
1,080

Hi

Where do you have written header data?

You should use the event TOP_OF_PAGE

Max

Read only

0 Likes
1,080

Thank you.I missed the Top of page event.

Read only

0 Likes
1,080

how can we display for every sales order, the sales Order items dipslay in new page using this FM 'REUSE_ALV_LIST_DISPLAY'?

Read only

0 Likes
1,080

Hi Anu Raadha,

For that you have to fill the sort table for VBELN, POSNR

sort-fieldname = 'VBELN'.

...

sort-up = 'X'.

sort-group = '*'. "for new page

append sort to it_sort.

sort-fieldname = 'POSNR'.

...

sort-up = 'X'.

sort-group = '*'. "for new page

append sort to it_sort.

and pass it to alv FM sort parameter.

Regards

vijay

Read only

former_member632991
Active Contributor
0 Likes
1,080

Hi,

i think it is because you have not cleared the workarea or internal table of headerlist.

free the headerlist table after calling the topof page.

Regards,

Sonika