05-08-2013 12:14 PM
Hi All,
I am working on a requirement where i need to disable DELETE and ATTACH icons of ME53N-->Services for Object-->Attachment List.
These two icons should be made in display mode for the Purchase Requisitions which are released.
I tried creating a z authorization object and the copying the standard class CL_GOS_SRV_ATTACHMENT_LIST and further assigning the custom class in SGOS transaction.
This method didn;t give me the solution.
Has anyone worked on such requirement ?????
Please let me know your tips for this requirement.....
Regards
Pavan
05-08-2013 2:07 PM
Hi,
Check the below document. May be helpful to your requirement.
http://scn.sap.com/docs/DOC-33485
Cheers,
Arindam
05-08-2013 2:07 PM
Hi,
Check the below document. May be helpful to your requirement.
http://scn.sap.com/docs/DOC-33485
Cheers,
Arindam
05-08-2013 2:28 PM
Hi Pavan,
Did you try with BADI gos_srv_select & it's method?
Search for information in google.
Also check this link & sap notes for help
http://scn.sap.com/thread/902269.
Thanks
Gourav.
05-09-2013 12:43 PM
Hi Kumar,
I have created implementation for GOS_SRV_SELECT and written this code.
if is_lpor-typeid = 'BUS2105'.
ls_option-sign = 'E'.
ls_option-option = 'EQ'.
ls_option-low = 'VIEW_ATTA'.
append ls_option to et_options.
endif.
But with this code, the 'attachment list' itself is disappeared from ME53N.
My requirement is to disable 'Delete' button in the attachment list for the Purchase Order which has release indicator '2'.
Can you help me what to code for this requirement?
Regards
Pavan
05-09-2013 2:01 PM
05-09-2013 4:09 AM
Hi ,
you need to get GET_GOS_MANAGER of interface class CL_PO_HEADER_HANDLE_MM.
then u can use method SET_RW_MODE - SGOS: Display/Change Mode of Generic Object Services
lets check.
Prabhu
05-10-2013 4:25 AM
Hi ,
get lo_gos class instance from program LMEGUICJJ(SAPLMEGUI) then call method SET_RW_MODE.
it should work.
Prabhu
05-10-2013 6:31 AM
Hi Prabhu,
Should the method SET_RW_MODE be called in the GOS_SRV_SELECT's implementation?
Regards
Pavan
05-10-2013 6:41 AM
Please check this link to disable delete stuff.
http://zevolving.com/2012/01/generic-object-services-gos-toolbar-part-8-disable-delete-function/
Thanks
Nabheet
05-10-2013 7:11 AM
Hi Pavan ,
in your case you cant implement badi GOS_SRV_SELECT bcos you need to check the PR document status.
so i think you need to use PR badi ME_PROCESS_REQ_CUST or something then you need to get access to gos manager of that document( can ref my prev comments).
once you have gos manager then u call SET_RW_MODE or get access to gp_model the change attributes of gp_model {O:216*\CLASS=CL_GOS_TOOLBOX_MODEL}-GP_MODE = 'D' Display.
i have checked it debug mode and its working fine with me , so try at your end and let me know if have any more doubts.
Regards
Prabhu
05-10-2013 7:22 AM
Hi Nabneet,
Thanks for your Help..
As per your link, the Delete, Change and Create buttons are made as Display mode.
1. Our requirement is to make only Delete and Change icons as Display mode... (Here even 'Create' icon is also getting into display mode...)
2. This functionality should be activated for the Purchase Orders which has Release Indicator '2'.
3. This functionality should be activated for certain users only.
Please help me...
Regards
Pavan
05-10-2013 8:59 AM
Hi Pavan
Please find below the solution detail. I have debugged and checked it it debugging.
CALL METHOD go_browser->set_custom_browser_settings
EXPORTING
io_sett = lo_sett.
I know its little bit complex but you will have control over all buttons.
thanks
Naheet
05-09-2013 12:46 PM
Hi,
Have you checked this:
CL_BINARY_RELATION=>READ_LINKS
It gives you the list of attachments.Also there is a BADI GOS_SRV_REQUEST which triggers before start of all services in GOS. Check this BADI in SE18.
An easier way might be possible depending on your release. Check if there is a Authorization object that can achieve this filtering. The object name is S_GOS_ATT. Check SAP note 1293080. You can check with your basis team. In that there is field ACTVT by setting values in the User profile you can control the Attachment access.
Cheers,
Arindam