‎2007 Jun 18 10:48 AM
HAI,
I WANT SEND <b>NEW-PAGE</b> COMMAND SATEMENT FROM MY PRINT PROGRAM TO SMART FORM . MY NEW PAGE IS <b>LAST</b>
CALL FUNCTION 'CONTROL_FORM'
EXPORTING
COMMAND = <b>" WHAT CAN I WRITE HERE</b>
EXCEPTIONS
UNOPENED = 1
UNSTARTED = 2
OTHERS = 3
‎2007 Jun 18 11:00 AM
May be you can do it this way Create a text element in the main window and give the command there in the text element and call that text element from the program.
NEW-PAGE LAST
‎2007 Jun 18 11:05 AM
Hi,
Please check this out.
http://help.sap.com/saphelp_erp2005vp/helpdata/en/d6/0dba68494511d182b70000e829fbfe/frameset.htm
regards:
Sapna
‎2007 Jun 18 11:09 AM
hI..,
<b>CALL FUNCTION 'CONTROL_FORM'
EXPORTING
COMMAND = 'NEW-PAGE LAST'
EXCEPTIONS
UNOPENED = 1
UNSTARTED = 2
OTHERS = 3 </b>
Regards,
sai ramesh
Plz do remember to close the thread when ur problem is solved !!
Message was edited by:
Sai ramesh
‎2007 Jun 18 11:41 AM
hi,
CALL FUNCTION 'CONTROL_FORM'
EXPORTING
COMMAND = 'new-page [page-name]'
**here pass new page name as per your need.
EXCEPTIONS
UNOPENED = 1
UNSTARTED = 2
OTHERS = 3
you pass control statement to parameter <b>COMMAND</b> of <b>CONTROL_FORM</b>, by using this function module we can pass control commands to scriptform from print program.
regards,
Ashokreddy.
Message was edited by:
Ashok Reddy