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

interactive

Former Member
0 Likes
450

Hi ,

in the different secondary lists i should get different different end of pages at bottom how should we do .

1 ACCEPTED SOLUTION
Read only

varma_narayana
Active Contributor
0 Likes
435

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..

3 REPLIES 3
Read only

naimesh_patel
Active Contributor
0 Likes
435

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

Read only

varma_narayana
Active Contributor
0 Likes
436

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..

Read only

former_member223446
Active Participant
0 Likes
435

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'.