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: 

report

Former Member
0 Kudos

when does the top-of-page gets triggered ?if we use skip statement before top-of-page will the event triggers or not ?plz expalin with exact answer?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Top of page will trigger after the first write statement. If there is no write statement in the report then this event will not trigger.

Regards,

Ram

8 REPLIES 8

Former Member
0 Kudos

Hi,

Top of page will trigger after the first write statement. If there is no write statement in the report then this event will not trigger.

Regards,

Ram

former_member784222
Active Participant
0 Kudos

Hi,

The top-of-page event is triggered when your first write statement or skip is executed.

Note that if the write statement does not print anything, top-of-page is not executed. But if you have a skip statement top-of-page is surely executed.

Thanks and regards,

S. Chandra Mouli.

suresh_datti
Active Contributor
0 Kudos

In general, top-of-page event gets triggeerd when it encounters the first WRITE statement.. but if the SKIP statement is before the first write statement, then top-of-page occurs immediately after the SKIP statement.

~Suresh

Former Member
0 Kudos

What do you mean by 'before top of page' ? I guess u meant the position of coding top of page. something like this, I guess..

SKIP..

WRITE...'afafdsf'

TOP OF PAGE

Perform write_top_of_Page.

I beleive there is no relevance for where the code for TOP of page is coming or not. ie, regrdless of before 'WRITE' or after,.. it will be triggered on first, skip or write statement...whichever comes first.

so in ur example, yes, TOP of page will be triggered.

Former Member
0 Kudos

Hi,

Whenever any first list output is generated like write, skip, irrespective of where you declare (before or after the top of page) the top of page event will get triggered.

Hope this info would be helpful.

Regards,

kumar.

Former Member
0 Kudos

hi,

Top-of-page is triggerred on reaching the first write statement in your program.

Reward points if it is helpful.

Regards,

Sangeetha.A

0 Kudos

Hi,

Top of page triggere when it comes across any of the three below..

Write staement.

Skip,

Uline..

The actual thing is you need to understant the report..

See if you are displaying any /some records or something in the output of a report then you can include top of page..

If you are not displaying anything in the output I mean blank output whats the need of Top of page..

Sp SAP has gone for this kinda solution..

If write OR SKIP Or ULINE there in the output your top-of-page triggers..

You write a sample program using events , yourself will find the solution..

reward if understood

regards,

nazeer

Former Member
0 Kudos

hi,

first when we debugg initialization gets trigered them start-of-selection then it goes to end-of-selection but the loop does not run ,it goes to top-of-page then again it goes to end-of-selection then it runs the loop then goes to end-of-page....

if top-of-page has a write statement written then it displays or else it does not dispaly anything.

if useful reward with points.

with regards,

madhuri.