Skip to Content
author's profile photo Former Member
Former Member

script

hi,

i created a mail merge program in sapscript.my problem is after the last record one more page displays with blank main window with header and footer.plz correct me.

code :

:/ dear &itab-ename&

:/ your sal is &itab-sal&

:/new-page

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2007 at 06:15 PM

    Hi Manikandan,

    Reduce the height of main window in the first page and try.

    Regards,

    Satish

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2007 at 06:23 PM

    Hi Manikanda,

    <b>&NEXTPAGE& </b>is used to print the number of the following page. The output format is the same as with &PAGE& .

    Note that on the last page of the output, in each window that is not of type MAIN, &NEXTPAGE& has the value 0.

    So, have your code as below:

    :/ dear &itab-ename&

    :/ your sal is &itab-sal&

    <b>/: IF &NEXTPAGE& IS NOT INITIAL</b>

    :/new-page

    <b>/: ENDIF</b>

    Thanks,

    Vinay

    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.