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

Table Maintenance : Sort and Additional column

abhishekjain
Participant
0 Likes
1,020

Hi All,

1) We have a requirement wherein a column needs to be added to the table maintenance without it being a part of table.

For E.g. there is a table ZTABLE with fields PERNR, ENDDA and BEGDA. Here I have to add new column for Name only to the table control and not to the table ZTABLE. Is this possible. If yes then how.

2) We want to add 'Sort' buttons on the screen for table maintenance. How we can add it.

3) Sort should be dependant on column similar to ALV. Column will be selected and the data will be sorted depending on entries in that column. How this can be done?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
903

You're trying to get a TMG to mimic a module pool.

So why not just create a module pool instead?

Rob

6 REPLIES 6
Read only

Former Member
0 Likes
903

Hi Abhishek,

1)You cannot add column to table without being a part of table, Since Table maintainence reflects your Table contents n to modify or add records..

You cannot dd fields or make any changes in your ZTABLE after creating table maintainence. If u want to add fields , You have to delets that table maintainence and creat new one.

2) You can add sort buttons like in ALV using program and using type SLIS_LAYOUT_ALV_SPEC .

3) You can SORT with different columns independently using SORT BY <FIELDNAME>

Hope I guided in correct way...

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
903

To add a field you have to create a maintenance view and do it.

To add a button refer this blog link:[http://help-abap.blogspot.com/2008/09/add-custom-button-on-maintianence-view.html]

Read only

0 Likes
903

>

> To add a field you have to create a maintenance view and do it.

Hello Keshav,

I don't think you can do this. I had tried & SAP won't let me add standalone fields in a maintenance view.(Makes sense to me as well)

BR,

Suhas

Read only

0 Likes
903

I had tried & SAP won't let me add standalone fields in a maintenance view

Thats true Suhas. When maintenance view is concerned the multiple table fields used must have a relation .Without a relation its not possible. I was just telling the possibility to OP . I think so he has to do it through ALV or any other means through table control etc.

Read only

Former Member
0 Likes
904

You're trying to get a TMG to mimic a module pool.

So why not just create a module pool instead?

Rob

Read only

0 Likes
903

Hi All,

Thanks for your replies.