on 09-04-2007 3:27 PM
Hi ,
I have a typical problem with SAP SCRIPT
where in i have to generate the form in 2 pages
first page consist of Goods Issue material documnet number
Second page should consist of serial number s for that document number
where i am print the first page but unable to print the second
i have taken all mandt action like
PAGES
first-> second
second->second
then i have given /: NEW PAGE <page> in main window
then the footer shifts to the next becoz the footer window is after the main window
then i have given the same in footer window but the new page is not triggering
i tried with conditions like IF &NEXTPAGE& EQ 0. and all other but unable to find the solutions
HI,
you need to put the PROTECT and ENDPROTECT in the Foter window
Regards
Sudheer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
No need to call the new-page in your situvation, use the PROTECT and ENDPROTECT ...
Regards
Sudheer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
I could imagine a solution like this:
We can say, your MAIN window's tables are gt_main_gi and gt_main_sn in your printer program.
LOOP AT gt_main_gi INTO wa_main_gi.
write all windows, MAIN, HEADER, FOOTER, everything to the 1st page
CALL FUNCTION 'WRITE_FORM'...
ENDLOOP.
here comes the NEW-PAGE call - see below
LOOP AT gt_main_sn INTO wa_main_sn.
write all windows, MAIN, HEADER, FOOTER, everything to the 2nd page
CALL FUNCTION 'WRITE_FORM'...
ENDLOOP.
new page part
In your SAPScript
/E NEW_PAGE
/: NEW-PAGE
In your program
CALL FUNCTION 'WRITE_FORM'
EXPORTING element = 'NEW_PAGE'.
Regards
Tamá
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.