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

Reg Table maintenance generator

Former Member
0 Likes
1,343

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,283

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

12 REPLIES 12
Read only

Former Member
0 Likes
1,283

In the delivery maintaince tab of the table use the option delivery maintiance allowed with restrictions..

Regards

Satish Boguda

Read only

Former Member
0 Likes
1,283

 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 .

Read only

Former Member
0 Likes
1,284

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

Read only

Former Member
0 Likes
1,283

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.

Read only

Former Member
0 Likes
1,283

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

Read only

0 Likes
1,283

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

Read only

Former Member
0 Likes
1,283

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.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,283

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

Read only

0 Likes
1,283

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

Read only

0 Likes
1,283

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.

Read only

0 Likes
1,283

Hi all,

Thank you very much for all your replies.

My problem was solved using authorization objects.

Thanks

Sai

Read only

Former Member
0 Likes
1,283

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.