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

Disabling DELETE button in Table maintanenece generator screen

shishupalreddy
Active Contributor
0 Likes
4,728

Hello,

My requirement is to DIABLE the DELETE button in Table Maintanence generator screen .

can anybody tell me how to do it ...

thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,342

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

19 REPLIES 19
Read only

Former Member
0 Likes
3,342

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.

Read only

0 Likes
3,342

Hello ,

It is defined under PF-STATUS ...so can you please tll me in step by step to disable the delete button .

thanks

Read only

0 Likes
3,342

Yep ,click on pf-status and it will go menu painter and remove delete function code and activate...

Read only

0 Likes
3,342

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.

Read only

0 Likes
3,342

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

Read only

0 Likes
3,342

I tried it , but the complete status ismissing ...but i want only DELETE to be disabled ..

urgent

thanks

Read only

0 Likes
3,342

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

Read only

Former Member
0 Likes
3,342

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

Read only

0 Likes
3,342

Heloo,

Can you please elaborate the concept ....

thanks

Read only

Former Member
0 Likes
3,342

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

Read only

0 Likes
3,342

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

Read only

former_member196299
Active Contributor
0 Likes
3,342

hi ,

Use SET PF-STATUS ' ' EXCLUDING ' ICON NAME ' . This should solve yoour problem .

Regards,

Ranjita

Read only

Former Member
0 Likes
3,342

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

Read only

Former Member
0 Likes
3,342

just tell to your basis .... to give Authoriation for only Create/Display to the Tcode ...

basis knows and he will do it .

Girish

Read only

0 Likes
3,342

Hello All,

Is there any other way to disable the DELETE button from ABAPers side ...not from BASIS side..

thanks

Read only

Former Member
0 Likes
3,342

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

Read only

0 Likes
3,342

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

Read only

Former Member
0 Likes
3,343

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

Read only

0 Likes
3,342

Hello Naren ,

Thanks a lot for giving me the correct solution ...

It is really gr8 man ...

problem solved and awarding fullpoints..