2008 Jun 09 10:36 AM
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.
2008 Jun 09 10:46 AM
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.
2008 Jun 09 10:52 AM
Thanks for the reply,
I am creating report without using OOPs concept. Please help.
2008 Jun 09 11:04 AM
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.
2008 Jun 09 11:05 AM
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.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |