cancel
Showing results for 
Search instead for 
Did you mean: 

sapscript modification inserting new page after PAGE NEXT

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member186052
Active Participant
0 Kudos

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

Answers (1)

Answers (1)

former_member186055
Active Participant
0 Kudos

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.