‎2007 Nov 27 1:54 PM
Hi ,
in the different secondary lists i should get different different end of pages at bottom how should we do .
‎2007 Nov 28 6:25 AM
Hi..
You can use the SY-LSIND for this (if it is not an ALV report).
eg:
END-OF-PAGE.
CASE SY-LSIND.
WHEN 1.
WRITE:/ 'LIST 1 FOOTER'.
WHEN 2.
WRITE:/ 'LIST 2 FOOTER'.
ENDCASE.
Cheers..
‎2007 Nov 27 2:42 PM
You need to create different forms for each end of page. Attach this forms in the event table against the event END_OF_PAGE. Then Assign this EVENT table to respective ALV FM calls.
Regards,
Naimesh Patel
‎2007 Nov 28 6:25 AM
Hi..
You can use the SY-LSIND for this (if it is not an ALV report).
eg:
END-OF-PAGE.
CASE SY-LSIND.
WHEN 1.
WRITE:/ 'LIST 1 FOOTER'.
WHEN 2.
WRITE:/ 'LIST 2 FOOTER'.
ENDCASE.
Cheers..
‎2007 Nov 28 7:26 AM
hi
write the code under END-OF-PAGE EVENT.
eg.
end-of-page.
case sy-lsind.
when 1.
write : / 'footer1'..
when 2.
write : /'footer2'.
endcase.
u can also get heading for every secondary list on the top. using the event
TOP-OF-PAGE-DURING-LINESELECTION.
but this event should be write under
AT LINE-SELECTION.
E.g
at line-selection.
case sy-lsind.
.........
endcase.
TOP-OF-PAGE-DURING-LINESELECTION.
write : / 'second heading'.