Skip to Content
author's profile photo Former Member
Former Member

page break in ALV reports

How to achieve <b>page break in ALV reports</b>?

My requirement is suppose if we are printing sales order details for each sals order items page break should be triggered.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 08, 2006 at 10:31 AM

    Hi,

    You can use the option of Grouping to achieve this.

    For more details, read the documentation of the data element SLIS_CTRLS, which is used for the structure field slis_sortinfo_alv-group.

    slis_sortinfo_alv is the line type of the parameter IT_SORT of the FM REUSE_ALV_GRID_DISPLAY.

    If you use '*' as the value for slis_sortinfo_alv-group, it will initiate a page break and if you use 'UL', the ALV will use Underline to differentiate between the group.

    Example:

    sort-spos = '10'.

    SORT-FIELDNAME = 'Years'.

    SORT-TABNAME = 'DATA_TAB2'.

    sort-UP = 'X'.

    sort-subtot = 'X'.

    SORT-GROUP = '* '.

    APPEND SORT. CLEAR SORT.

    But you need to take Print out only then you can see the difference.

    Regards,

    Ram

    Pls reward points if helpful

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 08, 2006 at 10:34 AM

    hi check:

    alv-page-break

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.