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

Services for Object

Former Member
0 Likes
1,082

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.

8 REPLIES 8
Read only

Former Member
0 Likes
971

Hi,

You can do this by Screen Varients,

Rgds

Yogesh

Read only

Former Member
0 Likes
971

Try to use SHD0 T-code.

if you want more i can send you by email.

Amit.

Read only

0 Likes
971

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

Read only

0 Likes
971

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.

Read only

athavanraja
Active Contributor
0 Likes
971

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

Read only

b_deterd2
Active Contributor
0 Likes
971

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

Read only

Former Member
0 Likes
971

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??

Read only

b_deterd2
Active Contributor
0 Likes
971

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