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

problem on ALV

hi,

i have a requirment where i have to put page breaks in th ALV Grid output...

Pleas help me..

Thanks and Regards

shanto aloor

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 23, 2008 at 06:22 AM

    Hi...

    Check the standard tcode

    FBL5N.....

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 23, 2008 at 06:22 AM

    HI,

    In order to achieve the Page Breaks, we need to fill in the sort catalog structure, LVC_S_SORT, as follows:

    FS_SORT-SPOS = '1'. u201C Sort order position

    FS_SORT-FIELDNAME = 'CARRID'. u201C Field name on which page break need to be triggered. Whenever this field changes, page break will trigger

    FS_SORT-GROUP = ''. u201C This has 2 options. u2018u2019 for page breaks and u2018Uu2019 for underlines.

    FS_SORT-OBLIGATORY = 'UL'. u201C If you need to retail these page breaks through out, we need to set this as obligatory. Otherwise, if the end user selects any other field and presses SORT, then page breaks would disappear.

    APPEND FS_SORT TO T_SORT.

    However, in ALV grid, you will not be able to see the page breaks on the screen. Once you convert the ALV grid to u201CList Outputu201D, you could see the page breaks or during print from the ALV grid.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 23, 2008 at 06:32 AM

    <<Cut and pasted answer - points removed>>

    Hi Shanto,

    To set the Page Breaks, yot need to fill in the sort catalog structure, LVC_S_SORT:

    FS_SORT-SPOS = '1'. u201C Sort order position

    FS_SORT-FIELDNAME = 'CARRID'. "The field name where the page break should trigger. Whenever the field changes, the page break will trigger.

    FS_SORT-GROUP = ''. u201C This has 2 options. u2018u2019 for page breaks and u2018Uu2019 for underlines.

    FS_SORT-OBLIGATORY = 'UL'. "If you need to retail these page breaks through out, we need to set this as obligatory. Otherwise, if the end user selects any other field and presses SORT, then page breaks would disappear.

    APPEND FS_SORT TO T_SORT.

    Note: In ALV grid, you will not be able to see the page breaks on the screen. Once you convert the ALV grid to u201CList Outputu201D, you could see the page breaks or during print from the ALV grid.

    Regards,

    John Mani

    Edited by: Matt on Dec 23, 2008 12:23 PM

    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.