Application Development and Automation 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: 
Read only

Sort Data in Maintain Table View

Former Member
0 Likes
1,028

Hello everybody,

I have created a generated Maintain View (from SE54) for one customizing table.

I want to sort the data of table (the sort includes fields that aren't keys) before showing the data in my view (SM30). Ho can I achieve this?

The method that I found is to sort the table TOTAL[] in the event AA (Instead of the standard read routine). The data is shown as sorted, but when i select one record for delete or I use the function "Position", then I'm in trouble, since the program doesn't read correctly the record I have selected.

Do you have any idea in how to solve this?

Thank you very much!

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
696

You should create a maintenance view with your sort keys first, then the missing primary keys and last the other fields from the database table. Use this view to generate the maintenance dialog.

Regards,

Raymond

2 REPLIES 2
Read only

RaymondGiuseppi
Active Contributor
0 Likes
697

You should create a maintenance view with your sort keys first, then the missing primary keys and last the other fields from the database table. Use this view to generate the maintenance dialog.

Regards,

Raymond

Read only

0 Likes
696

Hello Raymond,

thanks for you answer.

There is only one problem with your solution: since the primary keys are somewhere at the end of the table, the new records can not be saved in a transport job and implicit in the Database, because the key of the view is to long in this case.