Application Development 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: 

Top-of-page on each screen

Former Member
0 Kudos

Hi experts,

On my selection screen there are 3 pushbuttons.

for the first button click a report is generated and top-of-page appears for it.

but when the next time any button is clicked, directly the report gets printed without the top-of-page.

i want the top-of-page to be printed for each and every button click.

kindly help me out.

ragards,

mansi

1 ACCEPTED SOLUTION

Former Member
0 Kudos

trigger top of page event seperately for each button ..

for demo if u have to trigger top of page at line selection then see below syntax -

AT LINE-SELECTION.

TOP-OF-PAGE.

ULINE 1(100).

WRITE : 100 SY-VLINE.

WRITE 😕 SY-VLINE, 02 TEXT-000,SY-VLINE,

15 TEXT-001,SY-VLINE,

40 TEXT-002,SY-VLINE,

60 TEXT-003, 100 SY-VLINE.

WRITE :/100 SY-VLINE.

WRITE AT 1(100) SY-ULINE.

WRITE : 100 SY-VLINE.

END-OF-PAGE.

TOP-OF-PAGE DURING LINE-SELECTION.

Refer F1 help on Top-of-page -

Addition

... DURING LINE-SELECTION

Effect

Ensures that TOP-OF-PAGE is executed when generating secondary lists. (AT LINE-SELECTION, AT USER-COMMAND).

Note

The event TOP-OF-PAGE DURING LINE-SELECTION. is executed when generating each secondary list. If you want to generate different page headers for different secondary lists, you must specify this in the program (e.g. by using status variables).

null

5 REPLIES 5

Former Member
0 Kudos

trigger top of page event seperately for each button ..

for demo if u have to trigger top of page at line selection then see below syntax -

AT LINE-SELECTION.

TOP-OF-PAGE.

ULINE 1(100).

WRITE : 100 SY-VLINE.

WRITE 😕 SY-VLINE, 02 TEXT-000,SY-VLINE,

15 TEXT-001,SY-VLINE,

40 TEXT-002,SY-VLINE,

60 TEXT-003, 100 SY-VLINE.

WRITE :/100 SY-VLINE.

WRITE AT 1(100) SY-ULINE.

WRITE : 100 SY-VLINE.

END-OF-PAGE.

TOP-OF-PAGE DURING LINE-SELECTION.

Refer F1 help on Top-of-page -

Addition

... DURING LINE-SELECTION

Effect

Ensures that TOP-OF-PAGE is executed when generating secondary lists. (AT LINE-SELECTION, AT USER-COMMAND).

Note

The event TOP-OF-PAGE DURING LINE-SELECTION. is executed when generating each secondary list. If you want to generate different page headers for different secondary lists, you must specify this in the program (e.g. by using status variables).

null

0 Kudos

as u said i have included it in top-of-page during line selection but now for the first default report it does appear is it possible to include whtever i want to print both in top-of-page and top-of-page during line selection without causing redundant code

former_member404244
Active Contributor
0 Kudos

hI,

U need to use the event TOP-OF-PAGE during line- selection,to trigger on each page..

Regards,

Nagaraj

Message was edited by:

nagaraj kumar nishtala

Former Member
0 Kudos

mansi,

Wahtever the code you have written for first button , write that code in all other buttons also.

suggestion is use that code in a perform and call that perform in all other buttons.

Pls. reward if useful.

Former Member
0 Kudos

Hi Mansi,

Please use TOP-OF-PAGE. for getting the output on every page.

This will use to display the content on each page(like Heading info/ Logo/ etc).