01-15-2007 5:04 AM
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
01-15-2007 5:12 AM
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
01-15-2007 5:12 AM
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
01-15-2007 5:41 AM
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
01-15-2007 5:15 AM
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
01-15-2007 5:16 AM
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.
01-15-2007 5:41 AM
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).