Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Order no in page wise, SCRIPT form

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

7 REPLIES 7

Former Member
0 Kudos

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

Former Member
0 Kudos

u can use ,

/: NEW-PAGE command in SAP Script.

Please check the earlier posts you will get more examples

BR

Venkat

Former Member
0 Kudos

Are we talking SAPScript, SmartForms, or Adobe?

Neal

0 Kudos

Neal

It's about SAPScript.

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

To close it, you have to click the assumed answered link at the top of your initial message.

Neal