Skip to Content
author's profile photo
Former Member

SAPSCRIPT

hi experts,

In SAPSCRIPT i want print 'terms and conditions' at the last page of a sales order how will i do it in layout RVORDERS01 amd with a condition that some sales order will have 5 pages and some may have 10 pages how to define dynamically and how take a hard copy print out for sale order ?

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 03:08 PM

    HI,

    Create a separate window for the 'Terms and Conditions', then in that window use the below condition

    /: IF &PAGE& EQ &SAPSCRIPT-FORMPAGES&.

    " Write the code here, this will print in the last page

    /: ENDIF.

    Regards

    Sudheer

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Sep 28, 2007 at 03:10 PM

    Hi,

    First u create terms and conditions using SO10 transaction, then that name u include in ur script...at last page u create one window for terms & conditions then u write code as following way..

    INCLUDE 'STANDARD TEXT NAME' TEXT ID NAME..

    then it will print..

    <b><REMOVED BY MODERATOR></b>

    praveen

    Message was edited by:

    Alvaro Tejada Galindo

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 28, 2007 at 06:34 PM

    try condition something like this..

    /: IF &PAGE& EQ &SAPSCRIPT-FORMPAGES&.

        • NEW-PAGE

        /: ENDIF.

        Add comment
        10|10000 characters needed characters exceeded

      • Posted on Sep 29, 2007 at 06:05 AM

        Hi..

        This is the Way to check whether a page is LAST PAGE in the Output.

        /: IF &NEXTPAGE(C) = '0'

        • <<WRITE YOUR TEXT >>

        /: ENDIF

        <b>Reward if Helpful.</b>

        Add comment
        10|10000 characters needed characters exceeded