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

Disable only delete button in attachment list

Former Member
0 Likes
4,828

Hi,

There is a requirement where I have to disable only the Delete button available in the attachment list window of transaction FTR_EDIT based on the authorization of the user. I have gone through couple of threads which discuss about disabling create, delete and edit buttons considered together in the window. Please share your ides/findings to disable only the delete button rather than the set of buttons.

Regards,

~Athreya

Hi,

There is a requirement where I have to disable only the Delete button available in the attachment list window of transaction FTR_EDIT based on the authorization of the user. I have gone through couple of threads which discuss about disabling create, delete and edit buttons considered together in the window. Please share your ides/findings to disable only the delete button rather than the set of buttons.

Regards,

~Athreya

7 REPLIES 7
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
2,819

Hi Athreya

Can you please attach screen shot of this attachment stuff..Is it the GOS icon..? If yes then a simple search of disabled GOS delete functionality will provide you the answer

Nabheet

Read only

0 Likes
2,819

Hi Nabheet,

My requirement is to disable only the delete button. I have attached the screen capture of what I could do so far.

Here the buttons New, edit and delete have been disabled but I need only delete button to be disabled in the screen.

Appreciate your help,

~Athreya

Read only

Former Member
0 Likes
2,819

Hi Athreya Hegde,

         Please follow the below link, I get help from the same and i did GOS document upload for a recruitment Module...

GOS Toolbar Part 8 : Disable Delete Function in SAP

Hope it useful for you...

Thanks,

Vijay SR

Read only

ThangaPrakash
Active Contributor
0 Likes
2,819

Hello Athreya,

Try to find the screen number of the pop up screen and go to the GUI of that screen.

In the screen flow logic, using the INSERT modification, do your authorization check and disable the delete button.

Regards,

Thanga

Read only

Former Member
0 Likes
2,819

Hello Athreya,

May be you need to find BadI to achieve this functionality. we have similar requirement in PP Tcode and we have achieved with the help of BadI implementation.

Regards,

Deepti

Read only

Former Member
0 Likes
2,819

Hi,

Thank you all for your useful inputs. Seems like it is not possible to disable only the delete button without having effects on insert and edit buttons. I went through the ABAP code for the pop up screen and it is a standard implementation to consider all these button together for enabling or disabling.

Appreciate your help,

~Athreya

Read only

pappu_kumar2
Participant
0 Likes
2,819

Hello,

I have disable/hide "Create / Change / Delete " button to GOS popup screen toolbar.

Followed below step :

1. Implemented BAdi : GOS_SRV_SELECT ,Method : SELECT_SERVICES : Inside this method we need to write logic to disable/hide any GOS toolbar button.

Sample Code :

ls_exclude_option-sign = 'E'. 
ls_exclude_option-option = 'EQ'. 
ls_exclude_option-low = 'PCATTA_CREA'. "Create attachment... APPEND ls_exclude_option TO et_options.

2. "PCATTA_CREA" : Get these values from table : SGOSATTR.

Ref: https://help.sap.com/saphelp_46c/helpdata/en/be/3fe63659241157e10000009b38f889/frameset.htm

gos-toolbar.png

~Pappu~