2007 Jun 12 1:01 AM
Hello,
My requirement is to DIABLE the DELETE button in Table Maintanence generator screen .
can anybody tell me how to do it ...
thanks
2007 Jun 20 12:36 AM
Hi,
Try this..
In the PBO before the module LISTE_INITIALISIEREN..
Create a new PBO module..
Then in that new module then in the internal table EXCL_CUA_FUNCT add an entry with the row DELE..Like the following.
EXCL_CUA_FUNCT-FUNCTION = 'DELE'.
APPEND EXCL_CUA_FUNCT.
Thanks
Naren
Hello,
My requirement is to DIABLE the DELETE button in Table Maintanence generator screen .
can anybody tell me how to do it ...
thanks
2007 Jun 12 1:07 AM
You can write the code in table maintaince event to disable delete button by using screen structure .
else just goto se51 use program name and screen number and you can delete delete button in layout.
2007 Jun 12 1:14 AM
Hello ,
It is defined under PF-STATUS ...so can you please tll me in step by step to disable the delete button .
thanks
2007 Jun 12 1:17 AM
Yep ,click on pf-status and it will go menu painter and remove delete function code and activate...
2007 Jun 12 1:26 AM
Sorry i gave wrong answer ,to hide delete button in table maintaince is somewhat messy,so better to create new screen to maintain table data and use whatever in sm30 except delete button.
2007 Jun 12 1:27 AM
If you know the function code, say if the function code for delete button is 'DELE',
then you can use the statement
set pf-status '<PF status name>' excluding 'DELE'. in the PBO section of the screen.
Regards,
Ravi
2007 Jun 12 2:24 AM
I tried it , but the complete status ismissing ...but i want only DELETE to be disabled ..
urgent
thanks
2007 Jun 12 2:36 AM
Hello Shishu,
Better to create ztransaction by using dialog program ( Create table control) ,i had similar requirement ,i tried and it is fully messy.
Hope you uderstand.
Thanks
seshu
2007 Jun 12 3:57 AM
if you are giving the table to the user for maintaining it ... then you don't want him to delete the data ....
<b>go for Authorisation of the object </b> ... tell to basis to give only create and Display of the Table in the Maintainance ... it was the simplest method ... instead of going for the Menu exit and for new Menu placing on it...
<b>many of the tables we are maintaining to the Customer with Authorisation for only Create/Display ...</b>
Girish
2007 Jun 12 4:47 AM
2007 Jun 12 4:52 AM
Hi,
Create a new maintenance view in se11..
Go to SE11.
Give a new view name..
Press create..
Choose the radio button ..maintenance view..
Press enter..
Give the table name..
Give all the field names that you want to see..
Choose the last tab..Not sure of the name in the last tab...Sorry I don't have the system..
There you have the option..to say "change and read" , "insert & change"..
Choose the radio button that doesn't have the delete..
Create a table maintenance for this maintenance view..
Then go to sm30..GIve the view and press maintain..
Now you will not see the delete button..
Hope this helps..
Thanks,
Naren
2007 Jun 12 6:12 AM
Yep I did the way u told ,,,,But we dont have option where we can only disable delete button ......
we have change & read
read only
read,changfe,delete&insert.
so i could not make it
any other solution please
thanks
2007 Jun 12 5:02 AM
hi ,
Use SET PF-STATUS ' ' EXCLUDING ' ICON NAME ' . This should solve yoour problem .
Regards,
Ranjita
2007 Jun 12 6:15 AM
Hi,
Try this..
GO TO SE80..
GIve the program name..SAPL + function group name that you used for TM..
Then in the tree that is displayed..
Is there is any node for GUI status??
If the GUI status created specifically for custom function group..
Then you can directly modify the GUI status in SE41..
Thanks,
Naren
2007 Jun 12 9:03 AM
just tell to your basis .... to give Authoriation for only Create/Display to the Tcode ...
basis knows and he will do it .
Girish
2007 Jun 20 12:01 AM
Hello All,
Is there any other way to disable the DELETE button from ABAPers side ...not from BASIS side..
thanks
2007 Jun 20 12:15 AM
Hi,
Please check my last reply..
check in se80 for the function group if there is any gui status created for that table maintenance program..
If so go to that GUI status and remove the delete button from the GUI status.
Thanks
Naren
2007 Jun 20 12:23 AM
Hi Naren ,
Thanks for your replies...
But in SE80 there isno GUI status defined for this ....it is taking standard GUI status which is generated while generating the Table Maintanence generator.
thanks
2007 Jun 20 12:36 AM
Hi,
Try this..
In the PBO before the module LISTE_INITIALISIEREN..
Create a new PBO module..
Then in that new module then in the internal table EXCL_CUA_FUNCT add an entry with the row DELE..Like the following.
EXCL_CUA_FUNCT-FUNCTION = 'DELE'.
APPEND EXCL_CUA_FUNCT.
Thanks
Naren
2007 Jun 20 1:23 AM
Hello Naren ,
Thanks a lot for giving me the correct solution ...
It is really gr8 man ...
problem solved and awarding fullpoints..