09-17-2008 4:39 PM
I have created a table maintenance for one of my Z* tables. There is a z* transaction assigned to this (through SE93). I would like to take away the ability to delete records when they run the transaction to maintain this table.
Anyone know of a way to do this? Is there a way to grey out the delete button?
Thanks
09-17-2008 8:37 PM
Hi,
Sorry..I forgot the user has to Add also..
Ok..Try this..
Go to SE51...give the program SAPL + Function group name...The one which you used to create the table maintenance..
Give the screen number..
Press change..
Before the module LISTE_INITIALISIEREN..
Create a module..MODULE zmodule.
in the module add the the following code..
DATA: s_VIMEXCLFUN type VIMEXCLFUN.
* remove the delete button.
s_VIMEXCLFUN-function = 'DELE'.
APPEND s_VIMEXCLFUN TO excl_cua_funct.
Thanks
Naren
09-17-2008 4:42 PM
Hi,
Create a maintenance view in SE11..There in the "maintenance status" tab there is radio button to say "Read and change"
And then generate the table maintenance for the maintenance view...
Thanks
Naren
09-17-2008 6:26 PM
09-17-2008 4:42 PM
you can control with the help of Authorizations. Assign the Authorization object to that table maintenance and can block the users to use that option.
09-17-2008 4:45 PM
And also you can control this by creating a custom program and inside that call the function
VIEW_MAINTENANCE_CALL
in this there is a table parameter EXCL_CUA_FUNCT , for this append the DELETE button function code this way you can Exclude that option.
09-17-2008 6:41 PM
Hi,
Here are the steps..
Go to SE11..choose the radio button view..
give a z name..ZMAINT_VIEW.
Press create..
Choose the radio button maintenance view..
Press enter..
Give the table name as your z table and short description..
in that screen..there is a tab for "Maint. Status"...choose the tab...
There you can find the settings to make it Read and change only..
Thanks
Naren
09-17-2008 8:26 PM
I have that working now ... however, I need to make it so that the user can
Add
Edit
but not Delete, non of the options seem to let me do that?
09-17-2008 8:37 PM
Hi,
Sorry..I forgot the user has to Add also..
Ok..Try this..
Go to SE51...give the program SAPL + Function group name...The one which you used to create the table maintenance..
Give the screen number..
Press change..
Before the module LISTE_INITIALISIEREN..
Create a module..MODULE zmodule.
in the module add the the following code..
DATA: s_VIMEXCLFUN type VIMEXCLFUN.
* remove the delete button.
s_VIMEXCLFUN-function = 'DELE'.
APPEND s_VIMEXCLFUN TO excl_cua_funct.
Thanks
Naren
09-17-2008 9:01 PM