05-10-2006 8:53 AM
Hello experts,
Is it possible to let sapscript create a new page based on a condition. Currently I am using At new f1 then calling FM CONTROL_FORM FOR NEW PAGE.
Also, how do I go back to 'loop at itab' whenever my field changes?
Again, thanks a lot guys and take care!
05-10-2006 9:32 AM
Use the control command below which will help u get a new page
New Page : Forcing a page break in a text.
Syntax :
/: NEW-PAGE [page_name]
Ex :
/: NEW-PAGE S1 -> Contents of S1 are printed in a new page.
05-10-2006 8:58 AM
Hi,
U can use:
/: If <condition>.
/: NEW-PAGE.
/: Endif.
or
create a element
/: NEW-PAGE
and use that wherever u want in ur driver program.
write_form
element : ur element.
U may incorporate the same condition of changing field in SAPSCRIPT itself.
This may help u..
Regards,
SImha.
Message was edited by: Narasimha Rao Bandla
05-10-2006 9:29 AM
Hi viraylab,
1. in se71 layout,
create a new text element
/E MYNEW
/: NEW-PAGE
2. Then in your drive program,
call this element using FM
WRITE_FORM
based upon your condition,
on which a new page should come.
3. Thats all !
regards,
amit m.
05-10-2006 9:32 AM
Use the control command below which will help u get a new page
New Page : Forcing a page break in a text.
Syntax :
/: NEW-PAGE [page_name]
Ex :
/: NEW-PAGE S1 -> Contents of S1 are printed in a new page.