cancel
Showing results for 
Search instead for 
Did you mean: 

GOS Authorization

Former Member
0 Kudos

How to hide or disable the create attachment option from GOS tool bar..?

User shouldnt able to do this using create attachment, please suggest any

solution.

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member183148
Contributor

Manjunathm,

     Please close the thread if help's you. It helps others knowing how to deal with it once you close it.

Thanks

former_member183148
Contributor

Dear Manju,

            Please note that that as GOS name suggests  any change to GOS menu will affect all the transaction codes. If in case you need changes to be specific to some transaction codes only then you can try solution as suggested by Ravi.


Thanks,

Kolusu

former_member585060
Active Contributor

Hi,

What you can do is you can completely remove the Create attachment option from the pop up.

You can implement the badi "GOS_SRV_SELECT",  add the below code in the Method SELECT_SERVICES.

Add the below logic in that.

  IF sy-tcode = 'ME21N' OR

     sy-tcode = 'ME22N' OR

     sy-tcode = 'ME21'  OR

     sy-tcode = 'ME22'.

    DATA:      ls_option TYPE sgos_sels.

    ls_option-sign   = 'E'.

    ls_option-option = 'EQ'.

    ls_option-low    = 'PCATTA_CREA'.

    APPEND ls_option TO et_options.

  ENDIF.

Activate the badi, as this Badi will triiger every time the GOS toolbar is displayed, we need to restrict based on the tcodes being used.

Or

You can use Badi "GOS_SRV_REQUEST" to disable creation of attachment once the Create attachment is clicked.

This badi is a filter dependant badi, so add filter as "PCATTA_CREA", add the below code in that,

IF   sy-tcode = 'ME21N' OR

      sy-tcode = 'ME22N' OR

      sy-tcode = 'ME21'  OR

      sy-tcode = 'ME22'.

   

     DATA: lwa_object TYPE sibflporb.

  

     lwa_object-instid  = is_lpor-instid.

     lwa_object-objtype = is_lpor-typeid.

     lwa_object-catid   = 'BO'.

     CALL FUNCTION 'GOS_ATTACHMENT_LIST_POPUP'

       EXPORTING

         is_object = lwa_object

         ip_mode   = 'D'.    " Display


   ENDIF.

Thanks & Regards

Bala Krishna

Message was edited by: Bala Krishna

Former Member
0 Kudos

Thanks bala, but i just want to restrict only 'create attachment option' but not the entire 'create' option.

I cant use the ABAP program to achieve the same since we require to restrict it for multiple t codes in SAP. So if you have any idea about restricting the same at Authorization object level, please specify.

former_member585060
Active Contributor
0 Kudos

Hi,

You can go with Second option, you will have create attachment button but still user cannot create any attachment.

If we remove that SY-TOCDE filter then it will trigger every time GOS tool bar is triggered for all tcodes.

Regarding Authorization Objects check the below note.

OSS Note 1293080 – GOS: Attachment list autorization object S_GOS_ATT

Thanks & Regards

Bala Krishna

janosdezsi
Product and Topic Expert
Product and Topic Expert
0 Kudos

Please check the corresponding section of the GOS Troubleshooting guide:

A service is active but it has to be inactive - Technology Troubleshooting Guide - SCN Wiki

"In general a service can be hided using the transaction SGOS (table SOGSCUST) or the BAdI GOS_SRV_SELECT". You can find an example implemenation of the BAdI in your system.

Best regards,

Janos