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

ALV

1) how to specify sorting order on column in ALV ?

2) how to specify subtotal on column in ALV ?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Oct 14, 2006 at 01:12 PM

    1) You can simply fill the SORT parameter whening call the function module or the method(depending on which ALV you are using.

    2) You will need to set the DO_SUM flag in the field catalog for that field, you also will need to add a sort to the SORT table and mark the flag for SUBTOTAL.

    REgards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 15, 2006 at 08:44 AM

    Hi Sudarshan

    Do like this ..

    DATA: LS_SORT TYPE SLIS_SORTINFO_ALV.

    CLEAR LS_SORT.

    LS_SORT-FIELDNAME = 'MATNR'.

    LS_SORT-SPOS = 1.

    LS_SORT-UP = 'X'.

    APPEND LS_SORT TO E06_LT_SORT.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 15, 2006 at 10:35 AM

    hi sudhrsan,

    pls chk this link.

    http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_enhanced.htm

    its a good link for ALv. very hlpful.

    rgds

    anver

    if hlped mark points

    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.