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

create a generic alv header

Former Member
0 Likes
876

hi experts,

Please help me to create generic alv header. It can be function module which we can call in any report and get the header details in the report as the data we have pass to shoe in the report.

Thanks in advance.

sahil

8 REPLIES 8
Read only

Former Member
0 Likes
848

Hi,

Can you explain your requirement in detail.

Regards,

Kiran

Read only

Former Member
0 Likes
848

Moderator message - Welcome to SCN. Have a look at FM REUSE_ALV_COMMENTARY_WRITE Rob

Read only

0 Likes
848

Hi rob,

Thanks for reply but my requirement is to create a generic function module where i can pass the diffrent header details for different alv report and it will display. So for that what logic shoul i use to create such type of generic function module .

Thanks,

Sahil

Read only

0 Likes
848

That's what this FM does. Check its documentation.

Rob

Read only

0 Likes
848

What is "different header details"? I assume you mean the selection criteria as entered by the user. What else, system, time, date, client, user name? Please describe your problem in all relevant detail to keep people from guessing. Also search for existing solutions, a lot of brains have been thinking about a central function for outputting selection criteria already.

Thomas

Read only

0 Likes
848

Hi Thomas,

Thanks for reply, 'different header details' means like i have created common function module which display header details on alv report. So whenever i create a report and want to show header detail on alv report than i just call this function module in the report and pass the values that i want to display on the header. It can be function module or subroutine.

Thanks

sahil

Read only

0 Likes
848

hi ,

U need to write this FM REUSE_ALV_COMMENTARY_WRITE in Top of page event in the ALV to write the header information.

Regards,

Bharani

Read only

RaymondGiuseppi
Active Contributor
0 Likes
848

Just perfom some search

- on [RS_REFRESH_FROM_SELECTOPTIONS in forum|http://forums.sdn.sap.com/search.jspa?q=RS_REFRESH_FROM_SELECTOPTIONS&objID=c42] and [wiki|http://wiki.sdn.sap.com/wiki/dosearchsite.action?searchQuery.queryString=RS_REFRESH_FROM_SELECTOPTIONS&searchQuery.spaceKey=conf_global]

- on [REUSE_ALV_COMMENTARY_WRITE in forum|http://forums.sdn.sap.com/search.jspa?q=REUSE_ALV_COMMENTARY_WRITE&objID=c42] and [wiki|http://wiki.sdn.sap.com/wiki/dosearchsite.action?searchQuery.queryString=REUSE_ALV_COMMENTARY_WRITE&searchQuery.spaceKey=conf_global]

Regards,

Raymond