‎2011 Apr 12 9:26 AM
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?
‎2011 Apr 12 5:13 PM
You're trying to get a TMG to mimic a module pool.
So why not just create a module pool instead?
Rob
‎2011 Apr 12 12:21 PM
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...
‎2011 Apr 12 1:30 PM
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]
‎2011 Apr 12 4:52 PM
>
> 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
‎2011 Apr 12 5:10 PM
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.
‎2011 Apr 12 5:13 PM
You're trying to get a TMG to mimic a module pool.
So why not just create a module pool instead?
Rob
‎2011 Apr 13 2:54 AM