on 06-02-2009 2:45 PM
Hi Experts,
I'm facing a program in sapscript in the page setup and need advice and guidance from all experts. Presently, my page setup is
First Page
Page FIRST
Meaning First page
Next page NEXT
Page Counter Initiatize Counter
Next Page
Page NEXT
Meaning Next page
Next page NEXT
Page Counter Increase Counter
It will print the first page, if more data, it will print continue in next page and subsequence to next page again.
Now, my requirement is I need to print another printout, let's name as Final Page.
This printout will be printed, no matter how many pages there are.
For example the sequence of printout can be
1) FIRST page, FINAL page.
OR
2) FIRST page, NEXT page, FINAL page
OR
3) FIRST page, NEXT page, NEXT page, NEXT page, FINAL page.
Could someone guide me how to I proceed with this?
Thanks in advance.
Create a element in main window, in the end call that element.
In that element put code to issue new page using page FINAL.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi all,
Thanks for all the replies.
Let me explain my requirement again, I'm sorry for the confusing.
All I want to do is to add an extra page (FINAL page) in the end of the printout.
The FINAL page layout is totally different with FIRST page and NEXT page
My form works perfectly, if the page setup like: -
1) FIRST page.
OR
2) FIRST page, NEXT page
OR
3) FIRST page, NEXT page, NEXT page, NEXT page.
After I added another page (Final page) in sapscript, nothing is shown.
1) FIRST page, FINAL page.
OR
2) FIRST page, NEXT page, FINAL page
OR
3) FIRST page, NEXT page, NEXT page, NEXT page, FINAL page.
FYI, I found the LOOP and ENDLOOP. Therefore, I added the code after the LOOP..ENDLOOP.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'SI'
EXCEPTIONS
OTHERS = 01.
But the sy-subrc returns '1'.
Should I control it in the ABAP program or in SAPscript?
Can someone explain me how should I proceed with this?
Hi myahsam wong,
Thats right but wat would be the parameters like Which form name I need to pass in OPEN_FORM as I have two forms say FORM1 and FORM2
OPEN_FORM(which form name I need to pass in parameter FORM)
START_FORM (here will pass FORM1)
write_form
END_FORM
START_FORM (here will pass FORM2)
write_form
END_FORM
CLOSE_FORM
Thanks
Basu
Hi wong,
You should use the command NEW-PAGE for forcefull page break.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.