Skip to Content

How to page split in script

Hi Experts,

I have a requirement to do page split in sap script means, in main window each header data 10 line items is there suppose one header under 10 line item was showed then for next header data have not proper  space  in first page for 10 line items then it should show next page all second header data plus all line item data under header data.But i have used protect..endprotect command for this requirement its not working. Anyone can help me for this requirement.

Thanks,

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Dec 26, 2014 at 01:09 PM

    Hi Ram,

    To split page you can use code as mentioned.

    CALL FUNCTION 'CONTROL_FORM'
      EXPORTING
      COMMAND = 'NEW-PAGE'
      EXCEPTIONS
      UNOPENED = 1
      UNSTARTED = 2
      OTHERS = 3.

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 26, 2014 at 05:50 PM

    Hello Experts,

    Exact requirement is here i am explaining please follow the  below screen shot.

    This is the requirement to show the batch line items in next page if in first page not enough space for all line items.here HWGL03B003 is first batch and HWGL03B004 is second batch.

    This is the logic where i have used PROTECT...ENDPROTECT command but its not working.

    Anyone can help me for this requirement.

    Thanks,

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 27, 2014 at 06:07 PM

    Hi Ram,

    For printing heading in second page.

    you can add conditions.

    IF &PAGE& NE '1'.

    Pass the heading for n pages.

    ENDIF.


    Hope it helpful.



    Regards,

    Venkat.

    Add comment
    10|10000 characters needed characters exceeded