Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to sort database table in View SM30

chau1995
Active Participant
0 Kudos
2,008

Dear everyone,
I have a table in the system and inputted some value in SM30 (table which was TMG)
But My table doesn't sort by order ascending/descending at SM30
I want to sort it, and tried some code, but It conflicts with some event (change/save/display/delete).
Could anyone please help me with this issue.
Thanks so much

6 REPLIES 6

Abinathsiva
Active Contributor
719

HI,

Go to TMG in the menu Environment -> modification -> events, add an event name that comes from the F4 help of the field... this could help to sort in TMG screen

0 Kudos
719

I don't know what event for it

Sandra_Rossi
Active Contributor
719

It's been already answered:

How to sort database table in View SM30 site:sap.com

former_member1716
Active Contributor
0 Kudos
719

Hello chau1995,

Recommend You to Go through the blogs available in the FORUM, there are few discussing the same.

You can use the below Links to start with:

BLOG

THREAD

Regards!

0 Kudos
719

This code is conflicted with some events (ex: delete). So i think it is not good to resolve this issue

0 Kudos
719

Hi Chau,

please check the below link..hope it helps to your requirement.

https://blogs.sap.com/2016/12/27/sorting-with-anymultiple-fields-in-table-maintenance/

Best Regards,

Santhosh