cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding ALV standarad sort functionality

sreelatha_gullapalli
Active Participant
0 Kudos

Hi All,

We are developing the webdynpro ABAP application using ALV functionality which will display the data. Here as per the SAP standard functionality if we click on sort option if there are same values for multiple records in a single column then it will show only once by grouping all the rows.

Is there any way to avoid that functionality and if the same value is there in multiple rows also for a perticular column it should display in all the rows.

Coould some body help me on this perticular scenario.

Thanks & Regards,

Sreelatha Gullapalli.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

In the CL_SALV_WD_FIELD there is method IF_SALV_WD_SORT~SET_GROUPING_ALLOWED that is used for this Shows Whether Same Values in Field Are Combined. Please try to set this value and then run the WD applicatioin..

When you get the Model reference i'e config table, get all the field references and loop through them and use the above method.

Try this out.. By default it is True set to FALSE and then run the WDA.

Regards,

Lekha.

sreelatha_gullapalli
Active Participant
0 Kudos

Hi Lekha,

Thank you very much for the quick response. Can you provide me some sample code for this what are all th evariables required and all.

Thanks & Regards,

Sreelatha Gullapalli.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

The following documents are good to have for reference with respect to ALV. Sorting is well explained.

Some good links for ALV

[ALV TIPs|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/40794172-b95a-2910-fb98-b86d8a0918b4]

This is an 7.02 document but it is still valid for 7.01 in many functions.

[ALV in 7.02|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0b6a153-a132-2d10-bcb3-ac585332542a?quicklink=index&overridelayout=true]

Edited by: Baskaran Senthivel on Nov 12, 2010 5:10 PM