on 02-19-2009 1:01 PM
Hi,
I want to print some condition text in last page of a Main window of my custom sapscript, we can't use &NEXTPAGE& in Main window. Is there any other method to identify the last page.
Use Google before posting:
"Q: In an SAPscript, some "END OF PAGE" text should be printed on the last page below the footer and it is not. How can I proceed?
EXPERT RESPONSE
In SAPscript, there are a few ways to print text only on the last page. The logical approach depends on whether you are using the MAIN window or a secondary window to print the text. If you are printing this text in the MAIN window, then simply put the words in a text element which prints last."
Source: http://searchsap.techtarget.com/expert/KnowledgebaseAnswer/0,289625,sid21_gci1219845,00.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Venu gopal,
In the print program use the control break statement.
Refer this code
*AT LAST*
call function 'WRITE_FORM'
exporting
element = 'GRAND_TOTAL'
* FUNCTION = 'SET'
* TYPE = 'BODY'
window = 'MAIN'
Regards,
Sravanthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Handle it in the printprogram instead of the layout.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the program you can check when the loop ends and then activate a different element of the sapscript main window. This will print in the main window just after the main data loop.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.