cancel
Showing results for 
Search instead for 
Did you mean: 

LAST PAGE FOR SAP SCRIPT

Former Member
0 Kudos

Hi Friends,

I have requirement to print multiple pages of sap script and then last page as terms and condition. No matter how many pages it prints, it should always print the terms and condition.

MY LAST PAGE IS NAMED THIRD

I tried putting NEW-PAGE THIRD in the main window of the first page, but then it gives me error

WRITE_FORM is invalid, START_FORM is missing.

Help me to meet the above mentioned requirement.

If you need more information please ask.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

If ypu've called THIRD the last page it means there are FIRST and SECOND pages aren't they?

So how is the flow of the pages?

If you insert the terms and condition in a new window (not the MAIN) , u can print those data only if the page is the last one, so if the system symbol for the next page is null:

/; IF &NEXTPAGE& = '0'
* &TERM&
* &CONDITION&
/: ENDIF

In this way those data will be printed in the last page automatically

Max

Former Member
0 Kudos

Hi Max thanks for the quick reply.

Let me tell you the flow of pages.

first page pointing to next page

next page pointing to next page

last page pointing to last page

the requirement for terms and condition is to be printed always on new page.

Please suggest me some solution and I will try it.

Thanks..

Former Member
0 Kudos

Hi,

You should debug and find the last text element in the Main window of the form...You are putting the code in the wrong text element which is forcing for the page break and hence the error.

1. Create a new page by Name : LAST (in your case it is THIRD)

2. Identify the text element which will be the last element in the form in the debug mode.

Mostly Ex: SUM, TOTAL, LAST etc.,

3. the page linking should be

First --> Next

Next --> Next

4. In the Text element identified in the step 3.

Write the following code

/: NEW-PAGE LAST

/: INCLUDE the standard text created for the terms and conditions in SO10

It should resolve your problem.

Former Member
0 Kudos

Dear Srikash,

I'm also having same problem . If i did what you said that's not working in my case .

The error displayed (i.e) too many pages >4 like that error occurred.

kindly guide me to do .....

advance thanks..........

erik_mertens3
Explorer
0 Kudos

Also had the error 'too many pages >4'. Solved it by removing the page link. At first the link was LAST --> LAST.

Erased the link, so now the page the LAST page points to is empty, error solved.

Answers (0)