Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Some questions regarding ALV

Hello experts,

I want to ask some questions regarding ALV.Here are my questions guys:

1. If i sort the itab by certain fields would it be displayed as such when the report output displays via ALV?for example, I sorted the itab by date and dealer would it be displayed in ALV like in itab?

2. after sorting, my boss wants me to sum all the quantity of that certain dealer based on a given date so I want to know if it is possible to make uline in ALV after the given date and dealer? for example:



|05/05/2006| 10

|05/05/2006| 10

|05/05/2006| 10

|05/05/2006| 20


| --->how can I do this?


Thanks a lot guys!

Message was edited by: viraylab

Message was edited by: viraylab

Former Member
Former Member replied

hi Viray,

that sort table is a parameter of the function module , if you want to use sort and subtotals then you need to fill the sort table as mentioned in the above and pass it to Fm.

            I_BACKGROUND_ID         = 'ALV_BACKGROUND'
            I_CALLBACK_PROGRAM      = G_REPID
            I_STRUCTURE_NAME        = 'SFLIGHT'
            IS_LAYOUT               = GS_LAYOUT
            IT_FIELDCAT             = GT_FIELDCAT[]
*           IT_EXCLUDING            =
            IT_SPECIAL_GROUPS       = GT_SP_GROUP[]
            IT_SORT                 = GT_SORT[]



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question