Skip to Content

BACK page is increasing a counter?

Hi,

when I try to debug the SAPScript and it goes to BACK page, counter is increased

here is a list of pages used:

FIRST next is BACK

BACK next is FIRST

LAST no next page

a few things that might be important:

LAST page is the same as BACK.

"Leave counter unchanged" is set in both BACK and LAST.

pages BACK and LAST do not have MAIN window.

logic in MAIN window:

IF &NEXTPAGE& = 0 " this means we are at last page of the document

NEW-PAGE 'LAST' " this is in order to have back page info on the last page of output

ELSE

NEW-PAGE 'BACK'

ENDIF

any ideas why counter is increased in BACK page of the output?

this leads to incorrect number of pages in the document...

also, even if a document has only 1 page of output (for example one line item), it makes FIRST page appear twice - the second time with empty MAIN window

Regards,

Mindaugas

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 05, 2008 at 08:39 PM

    Hi.

    Change the 'BACK' page 'Page Counter' attribute 'Mode' to 'HOLD',

    this will not increment the page counter untill next "FIRST" page is triggred.

    Thanks,

    Aditya. V

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.