on 02-25-2014 12:46 PM
Manjunathm,
Please close the thread if help's you. It helps others knowing how to deal with it once you close it.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.