2023 Jun 02 9:50 AM
Dear All ,
I have a custom report where multiple char fields are there in ALV Grid output . Problem is when user try to select 2 or more fields together and sort it in the ALV output the sorting with those 3 fields together is not happening . When we select only 1 field then sorting is fine .
User doesn't want sorting to be done on specified fields so I can't code it in my report . Is there any way to in GRID ALV to make sure that sort happens manually in output for multiple CHAR type fields .
Thanking in Advance .
2023 Jun 02 12:28 PM
Not sure to understand, but could you first perfom the Consistency Check for your ALV Grid and correct any reported problem. (Check also for fields with conversion-exit, if this information is in the field catalog)
Explain to the user that the order of the fields is important.
2023 Jun 02 12:52 PM
I never saw such an issue in ALV.
If you first select several columns, and secondly press the sort button, all lines are sorted based on all selected columns.
You should add screenshots to make it clear for us exactly what you do.
Concerning my test:
SALV_DEMO_TABLE_SIMPLE
2023 Jun 05 10:07 AM
We are trying to sort these 3 fields phase / system code / work center and you can see they are not sorted in any order . If I select only one and try , it works but when as a whole it doesn't.
Is there any way to make sur to as a whole it works , user can select any other columns also so I can't pass it in the alv before hand.
2023 Jun 05 3:53 PM
You have sorted the rows in descending order. They are correctly sorted.
In my example, I sorted them in ascending order.
2023 Jun 05 3:54 PM
ALV sorts by the leftmost column first, and continues with the next sort columns from left to right.