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

Sorting the Columns in Table Maintainence

Former Member
0 Likes
1,604

I have created a table maintainence for Z table.

I want to add the column sorting functionality.

By default, I cannot see the Sort button on the tool bar.

Any idea?

Pranu

I have created a table maintainence for Z table.

I want to add the column sorting functionality.

By default, I cannot see the Sort button on the tool bar.

Any idea?

Pranu

9 REPLIES 9
Read only

Former Member
0 Likes
1,358

Hi Pranu,

I think in SAP the tables automatically have sort property.

It will sort the data as per the first primary key then second and so on....

So if you need your data to get sorted, just make the field on which you want to sort the table as First Primary key of table.

Hope it helps.

Thanks,

Daya.

Read only

0 Likes
1,358

That is the standard functionality.

I have 6 columns and 1 is primary keys.

User want to sort on any column.

Same like we sort in SE16 output.

Thanks

Edited by: Pranu Pranu on May 6, 2010 9:25 AM

Read only

0 Likes
1,358

Hi Pranu,

Got your point.

You can sort your table contents via any field. Use Menuoptions->Settings->Format Lists->Sort

Hope it helps.

Thanks,

Daya

Read only

0 Likes
1,358

Hi

You can write your own code in the PBO and PAI of your screen and you can add additional buttons to default tool bar.

Read only

0 Likes
1,358

Input some entries in ztable selection screen and execute.

Go to Edit-->>Sort in ascending order--


>>Sort in descending order.

Read only

0 Likes
1,358

Hello Daya / Manas,

The option that both of you suggested are available in SE16 but not in SM30.

Thanks

Read only

0 Likes
1,358

Meera, I want to keep that as the last option.

Was wondering if there is anything I can use.

Pranu

Edited by: Pranu Pranu on May 6, 2010 1:36 PM

Read only

0 Likes
1,358

Pranu,

Yes we don't get the functionality of sorting in SM30. If you need to fulfill your requirement go as Meera suggested.

Read only

0 Likes
1,358

Hi Pranu,

I didn't get your issue previously.

So as of now I think the option Meera gave is good and quite feasible.

Not sure if they will be helpful, but do check the EVENTS option provided under Menu options of TMG.

Best Wishes,

Daya