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

How to display Header data

Former Member
0 Likes
433

Hi All,

How can i display header data in a simple report(its not an ALV report).

i am planning to use event TOP-OF-PAGE for this.is this correct?

Can anyone explain me through a piece of code.

Thanks,

Rupesh

3 REPLIES 3
Read only

rainer_hbenthal
Active Contributor
0 Likes
403

Have a look at function module 'REUSE_ALV_COMMENTARY_WRITE'

Read only

Former Member
0 Likes
403

Hi,

NO U R WRONG DONT USE TOP OF PAGE FOR HEADER TEXT

USE FIELD CATALOG

Regards,

V.Balaji

Reward if Usefull...

Read only

Former Member
0 Likes
403

Hi,

Top-of-page is an event which will produce a static header that is even you scroll the list the header will be displayed. But when you not use the top-of-page event You will notget the static header.

say for example,

data : itab like mara occurs 0 with header line.

select * from mara into table itab upto 100 rows.

loop at itab.

write : /1 itab-matnr.

endloop.

top-of-page.

write : /1 'header'.

also use the code,

data : itab like mara occurs 0 with header line.

select * from mara into table itab upto 100 rows.

write : /1 'header'.

loop at itab.

write : /1 itab-matnr.

endloop.

see the difference in the header.

Regards,

Sanki.