cancel
Showing results for 
Search instead for 
Did you mean: 

Remove "New" icon in CRM Web Client Search Results

shaun_kitching
Active Contributor
0 Kudos

Hi

In CRM Web Client UI, I have setup various searches (see below image for example).

In the Results List, you will see a "New" icon...which will allow users to create a new transaction type.

I want to hide or deactive this button.  I only want ZMHF and ZMMJ to be created from a ZMCR and not directly (hence the reason for hiding this).

How do I hide this?

Thanks!!!!!!!!!!!!!!

Shaun

Accepted Solutions (1)

Accepted Solutions (1)

dharmakasi
Active Contributor
0 Kudos

Hi Shaun,

This new button will be available in search result component, you can find the component using F2 in web ui.

I would prefer to remove the corresponding process type from the popup after clicking on new button because this new button may contains some other document types as well.

You can use the below code in event of the 'New' buttn to remove the unwanted process type documents.

lr_context_node  = gr_proctype_popup->get_context_node( iv_cnode_name = 'PROCTYPE' )."#EC NOTEXT

 
CHECK lr_context_node IS BOUND.

  lr_current
= lr_context_node->collection_wrapper->get_first( ).

 
while lr_current is bound.

*Remove process types. If other transaction types are added in future, they will appear.

    lv_proc_type
= lr_current->get_property_as_string( 'PROCESS_TYPE' )."#EC NOTEXT

*    if lv_proc_type eq lc_phase. "DEMX2D90 25.09.2013 REM lv_proc_type eq lc_offer or

   
if lv_proc_type eq 'ZMHF' OR lv_proc_type eq ZMML.

      lr_context_node
->collection_wrapper->remove( lr_current ).

      lr_current
= lr_context_node->collection_wrapper->get_current( ).

   
else.

      lr_current
= lr_context_node->collection_wrapper->get_next( ).

   
endif.

 
endwhile.

Best Regards,

Dharmakasi.

shaun_kitching
Active Contributor
0 Kudos

Thank you!!!

Soon after posting, I found a more simple solution:

In customizing, I added consistency check PREDOC_EXISTS when saving. This will throw an error if ZMCR does not exist.

Therefore, the NEW button still exists and users can still click on it.....but they can't do anything with it

Cheers

Shaun

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Shaun,

There are two ways to address this problem  -

  1. Update the PFCG role. In the Authorization Object for the business activity exclude the unwanted Transactions from the 'Creation' option. This is the recommended way to resolve your issue.
  2. Get a developer to enhance the Toolbar related Method for the view in case to exclude the options of the unwanted transactions. The downside of this option is that every time you would want to update this list you will have to get a developer to do it for you.

Cheers,

Deepank