Skip to Content
avatar image
Former Member

sapscript modification inserting new page after PAGE NEXT

Hy Gurus

I am printing a sales order using transaction VA03. I need to insert at the end of form the sales condtitions in new page or a new window .

In my sapscript there are two pages FIRST and NEXT (NEXT calls like next page always NEXT ).

Is possible to insert a new page or window after the next ? and how can i do? in program from SE38 there is an istruction that i could use the instruction is

CALL FUNCTION 'WRITE_FORM'

EXPORTING

element = 'SUPPLEMENT_TEXT'

EXCEPTIONS

element = 1

window = 2.

Can you help me? i am new about sapscript.

Thanks in advance

Edited by: Paolo9999 on Nov 11, 2011 3:36 PM

Edited by: Paolo9999 on Nov 11, 2011 3:36 PM

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Nov 11, 2011 at 06:17 PM

    Hi,

    Here you debug and find the last text element of main window

    Follow below steps:

    1) Create a new page at end name it as some TERMS AND CONDITIONS or depends on your requirement.

    2) Find out the last text element in the form using debugging

    3) Pages should be linked as

    First --> Next --> Next

    4) In the last text element identified

    Write the following code

    /: NEW-PAGE <YOUR LAST PAGE NAME>

    Hope this helps.

    Regards,

    -Sandeep

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 14, 2011 at 06:08 AM

    Hi Paolo,

    Wheather it is solved or not i don't know, If it is not solved create one more SAPScript for only Terms and conditions. Call this form after the main form by using FMs OPEN_FORM, CLOSE_FORM, START_FORM & END_FORM.

    Regards,

    Surya.

    Add comment
    10|10000 characters needed characters exceeded