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 not printing

Former Member
0 Likes
799

Hello everybody,

I am printing an ALV report. The problem i am facing is,

1. When using write statement top of page event is triggered but O/P IN GRID header is blank?

2. When using REUSE_ALV_COMMENTARY_WRITE, header is printed. But how can I move the texts to custom position.

Urgent reply needed.

Thanks.

Hello everybody,

I am printing an ALV report. The problem i am facing is,

1. When using write statement top of page event is triggered but O/P IN GRID header is blank?

2. When using REUSE_ALV_COMMENTARY_WRITE, header is printed. But how can I move the texts to custom position.

Urgent reply needed.

Thanks.

4 REPLIES 4
Read only

Former Member
0 Likes
762

Hi,

If you can use OOP, You can try the class CL_DD_DOCUMENT and the methods ADD_TEXT and ADD_GAP. You can refer the report DTC_ALVTEST_0.

Read only

Former Member
0 Likes
762

Thanks for the reply,

I am creating report without using OOPs concept. Please help.

Read only

0 Likes
762

Hi Michael,

One idea could be place ur text in the wa as per ur requirement(i.e. position).

eg: WA_LIST_COMMENTARY-INFO+20(10) = 'My Header'.

APPEND WA_LIST_COMMENTARY TO IT_LIST_COMMENTARY.

Now Pass this internal table to COMMENTARY WRITE FM.

But here u have restriction. Max length that can be passed to

this internal table is 60 characters.

Thanks,

Vinod.

Read only

0 Likes
762

Hi

1. Try to avoid the write statement while using ALV.

2. You can concatenate the spaces to the actual text and pass it to the INFO field in the slis_listheader structure of REUSE_ALV_COMMENTARY_WRITE. But the INFO field is of length 60 characters. So in one line you can print 60 chars (including spaces).

Satya.