2008 Mar 11 4:33 AM
Hi all,
I want to dispaly the header in the ALV grid output in such a way that 'From address' sholud come at left side of the report header and 'To address' should come at right side of the report header.
As of now both I am using the following code in the event 'HEADING' , both the things are coming at left side of the report header which is not desired.
So help me to display both the 'From address' and 'To address' things at opposite side the report header.
FORM HEADING.
wl_header-typ = 'S'.
wl_header-key = 'From address'.
wl_header-info = wa_adrc-name1.
APPEND wl_header TO tl_header.
CLEAR wl_header.
wl_header-typ = 'S'.
wl_header-info = city.
APPEND wl_header TO tl_header.
CLEAR wl_header.
wl_header-typ = 'S'.
wl_header-key = 'To address'.
wl_header-info = wa_adrc-name1.
APPEND wl_header TO tl_header.
CLEAR wl_header.
wl_header-typ = 'S'.
wl_header-info = city.
APPEND wl_header TO tl_header.
CLEAR wl_header.
ENDFORM.
Regards,
Sachin
2008 Mar 11 4:37 AM
Hi,
Try using WRITE statements to write in top of page instead of pass it to the header internal table. (U can give length specifications to write 'to address' in right side).
Just a suggestion. Hope this works.
Regards,
Ramya
Hi,
Try using WRITE statements to write in top of page instead of pass it to the header internal table. (U can give length specifications to write 'to address' in right side).
Just a suggestion. Hope this works.
Regards,
Ramya
2008 Mar 11 4:37 AM
Hi,
Try using WRITE statements to write in top of page instead of pass it to the header internal table. (U can give length specifications to write 'to address' in right side).
Just a suggestion. Hope this works.
Regards,
Ramya
2008 Mar 11 4:43 AM
Hi,
write statements will work only in case of list,block list,hierarchical sequential list display only .it will not work for the grid display.
for ur requirement u need to go for the OOALV(Object Oriented).
search for BCALV* programs in ur sap system for example program.
rgds,
bharat.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |