10-04-2013 12:25 PM
Hi Expert,
Need to display order wise in a page in script...if it's next order should be another page...how to display in script form...
In case a page can display 9 component but having 12 component for the order # it can come next page...more importantly next order no should start from another page means 3rd page..
for eg: one order having many component material..
Thanks & Regards
Savita
10-07-2013 6:17 AM
Hi Expert,
We need to display Production Order wise in a page...Next production order has production order has to come another page..
for eg: AT NEW..
I have used a functional module CONTROL_FORM. inside the loop. using AT NEW. works fine. but first page comes as empty and next page onward displaying data..
LOOP AT itab INTO wa_itab.
AT NEW aufnr.
CALL FUNCTION 'CONTROL_FORM'
EXPORTING
command = 'NEW-PAGE'
EXCEPTIONS
unopened = 1
unstarted = 2
OTHERS = 3.
ENDIF.
ENDAT.
ENDIF
endloop.
Thanks & Regards
Savita
10-04-2013 2:48 PM
You can use command NEW-PAGE against a Text Element which usually gets called from form driver program.
At any point of time you need a new-page, you just need to call the Text Element as shown below from the driver program using the WRITE_FORM..even also possible to call inside the loop.
Could be useful.
BR
Samal
10-04-2013 3:08 PM
u can use ,
/: NEW-PAGE command in SAP Script.
Please check the earlier posts you will get more examples
BR
Venkat
10-04-2013 3:48 PM
10-04-2013 3:52 PM
10-07-2013 6:17 AM
Hi Expert,
We need to display Production Order wise in a page...Next production order has production order has to come another page..
for eg: AT NEW..
I have used a functional module CONTROL_FORM. inside the loop. using AT NEW. works fine. but first page comes as empty and next page onward displaying data..
LOOP AT itab INTO wa_itab.
AT NEW aufnr.
CALL FUNCTION 'CONTROL_FORM'
EXPORTING
command = 'NEW-PAGE'
EXCEPTIONS
unopened = 1
unstarted = 2
OTHERS = 3.
ENDIF.
ENDAT.
ENDIF
endloop.
Thanks & Regards
Savita
10-07-2013 8:45 AM
Hi all,
I got answer for the first page is blank..if you use SY-TABIX NE 1...it works fine..and close this tread.
Thanks
Savita
10-07-2013 1:01 PM
To close it, you have to click the assumed answered link at the top of your initial message.
Neal