‎2010 Apr 15 10:56 AM
Hi Experts,
I have created a table maintenance generator for a custom table and assigned T-code .
while creation T-code , i have passed view name and update = 'X'.
here my requirement is to display the data in table only, it should not allow to edit.
can you please guide me how to make all the entries in display mode.
user will maintain the table in another program using FM 'VIEW_MAINTENANCE_CALL'.
Thanks
Sai
‎2010 Apr 15 11:10 AM
You can make it display only by using authorization object(S_TABU_DIS) or by modifying the layout. But, then Even by using "'VIEW_MAINTENANCE_CALL' user will not be able to change the data.
Regards
Vinod
‎2010 Apr 15 11:04 AM
In the delivery maintaince tab of the table use the option delivery maintiance allowed with restrictions..
Regards
Satish Boguda
‎2010 Apr 15 11:05 AM
CALL FUNCTION 'VIEW_MAINTENANCE_CALL'
EXPORTING
action = 'U' " S=display / U=update
show_selection_popup = ' '
view_name = k_view
TABLES
dba_sellist = rangetab
EXCEPTIONS
foreign_lock = 2
no_tvdir_entry = 8.
in the report block the field in range tab and check by keeping action = 'S' for display .
‎2010 Apr 15 11:10 AM
You can make it display only by using authorization object(S_TABU_DIS) or by modifying the layout. But, then Even by using "'VIEW_MAINTENANCE_CALL' user will not be able to change the data.
Regards
Vinod
‎2010 Apr 15 11:20 AM
As per my understanding the table maintenance should only display data when the transaction is run. In transaction maintain SHOW = X instead of UPDATE = X.
‎2010 Apr 15 11:24 AM
Hi sai,
Did u create Manintance view for that table?
In the Maintenance view one column with name P pass 'R' for all teh fields.
It will not allow to edit any field.
Regards,
Pravin
‎2010 Apr 15 12:27 PM
Hi,
Thanks For your reply.
Snipper,Vinod
if i use VIEW_MAINTENANCE_CALL FM for display.....in display mode change icon is coming, after clicking that icon it is coming to change mode.
Satyajith,pravin
i will try your suggestion and i will get back to you
Thanks & Regards
Gopi
‎2010 Apr 15 12:32 PM
hmmm when you just need to show the entries in the table, why dont you just build a simple SALV report to read the table contents and display them?
I mean there is no need to work with 'VIEW_MAINTENANCE_CALL' for simple display options.
‎2010 Apr 15 12:34 PM
Or create a parameter transaction for SE16
This has an advantage that it will give the user a selection screen to choose the entry from ....
I think Satyajit's solution wont work as you will again have the toggle display/change mode button & the user can change the entries by pressing it.
On the other hand Pravin's idea of creating a maintenance view with all the fields having the attribute R does sound promising....
Refer: [http://help.sap.com/saphelp_NW70EHP1core/helpdata/en/80/808b57e12511d295f300a0c929b3c3/frameset.htm]
BR,
Suhas
‎2010 Apr 15 12:40 PM
Hi Florian,
Yes, You are correct.
But the problem is, it is already existed program in PRD, clinet wants to make these small changes without any new dev.
Thanks & Regards
Sai
‎2010 Apr 15 12:45 PM
ah ok that explains it
i knew it! it´s always the customers making us throw up...
anyway nothing much to add since you got all the information you need to complete the task.
good luck with it.
‎2010 Apr 15 2:03 PM
Hi all,
Thank you very much for all your replies.
My problem was solved using authorization objects.
Thanks
Sai
‎2010 Apr 15 12:36 PM
Hi Sai ,
Hope you are trying to make table maintainance of your table should be in display mode. if so , Please refer the below link , the tips have been given to make the table maintainance non-Editable.
[http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=93454609]
A field can be made non editable by simply unchecking that input checkbox for that field.