‎2008 May 27 10:23 AM
I want to disable the functionalities that come under "Services For Object" when i click on its icon.
The functionalities that come under it are Create, Workflow etc.
How can i do it.
‎2008 May 27 10:24 AM
‎2008 May 27 10:24 AM
Try to use SHD0 T-code.
if you want more i can send you by email.
Amit.
‎2008 May 27 10:41 AM
Hi Jony,
We appreciate your willingness to help out priti. However we would appreciate if you do that here in the forums rather than personal emails. this way apart from priti, many other people will get benefited.
Thanks for understanding,
Raja
‎2008 May 27 10:44 AM
Dear Raja,
i can understand.
Actually this should be sufficient information to priti to run the t-code and explore his self.
But i have some Screen-shots so if he wants i can send him.
Thank you.
Amit.
‎2008 May 27 10:37 AM
Hi priti suryawanshi ,
do not open duplicate posts for the same subject. this time i have deleted your other thread on the same subject. kindly do not repeat.
Raja
‎2008 May 27 10:39 AM
Hi,
I would suggest using badi GOS_SRV_SELECT.
This badi is created for your requirement: to restrict the generic object services.
Implement this badi and restrict the services in the method SELECT_SERVICES.
Should work just fine,
Regards,
Bert
‎2008 May 27 12:14 PM
But what do i pass and how do i restrict. I am not able to get it.
When i click on the icon of Services for Object, in the drop down i get options such as Create, Workflow. Now i want to deactivate or disable this. How do i do it. What should i pass to the badi??
‎2008 May 27 8:44 PM
Hi,
You have to fill the range table et_options .
The value of the field 'low' can be found in table SGOSATTR. In your case: if you want to prevent to start a workflow service the service name is WF_START.
The is_lpor can be used to restrict the service only in certain cases. For instance if you want to restruct the service to start a workflow only for invoices (bor object = BUS2081).
data: ls_options type sgos_sels.
if is_lpor-typeid = 'BUS2081'.
ls_options-sign = 'E'.
ls_options-option = 'EQ'.
ls_options-low = 'WF_START'.
append ls_options to et_options.
endif.
It works great. Give it a try.
Regards, Bert