cancel
Showing results for 
Search instead for 
Did you mean: 

Main Window Last Record

Former Member
0 Kudos

Hi gurus,

How can I know if the MAIN Window is full. I have a requirement wherein if the MAIN is full, I have to print "Continued on the next page" but I dont know how to determine if the MAIN window is full or not and I will print on the next page.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Write the condition in your variable window or where you want to write the continued statement....

if &nextpage& ne 0

continued...

endif.

this will work

regards

padma

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

What is the behavior of the variable &NEXTPAGE& in SAPscript?

Regards,

Andre

Former Member
0 Kudos

Hi,

The &NEXTPAGE& increments if the data in main window overflows or if you have new-page in your script

If no more data to be displayed then the current page is the last page and the nextpage is set to 0.

You can check for this condition while printing your footer information like contd.....

regards

padma

Former Member
0 Kudos

Hi,

In the editor of ur main window go for

/: BOTTOM

  • "Continued on the next page"

/: ENDBOTTOM

regards

pritam.

Former Member
0 Kudos

Hi,

Write "Continued on the next page" in the control command

bottom .....endbottom.

Example:

/: BOTTOM

/: "Continued on the next page"

/: ENDBOTTOM.

This will give the line "Continued on the next page" at the bottom of the main window. Try it out.

Regards,

Swapna.

Former Member
0 Kudos

Hi Andre.

You dont have to worry about when the Main is full or not.

If you have lots of data, they will be printed in the next Page continuesly.

What you need to do is add new window after the Main and add text with "Continued on the next page".

In the Condition tab of the window, tick "Only before end of Main window".

Hope this will solve your problem.

Regard

az

Former Member
0 Kudos

Hi,

Is this applicable to SAPscript?

Regards

Andre

Former Member
0 Kudos

Hi

Some of it is applicable.

You can try this way. Add window and put this code and your text.

IF &NEXTPAGE& NE '0' OR &NEXTPAGE& NE ' '

Regards

az