Quantcast
Channel: SCN : Discussion List - Supplier Relationship Management (SAP SRM)
Viewing all articles
Browse latest Browse all 3184

Disable custom button added in SC line item during display mode

$
0
0

Hi All,

 

We have added a custom button in WDC: /SAPSRM/WDC_UI_SC_DOTC_BD view: V_SC_DOTC_BASIC at item level next to Delete button.

Now problem is this custom field is always enabled. We need to disable the custom button when the shopping cart is opened in display mode.

 

How to get the mode (Display / change) while adding code to disable the button in WDDOMODIFYVIEW method?

I know the code to disable the button which is given below But I need to call this code only if the cart is opened using display mode.

 

DATA:  lo_button  TYPE REF TO cl_wd_toolbar_button. 

lo_button  ?= view->get_element( 'COPY' ). 

lo_button->set_visible( '01' ). 

lo_button  ?= view->get_element( 'PASTE' ). 

lo_button->set_visible( '01' ).

 

Regards, Sasi


Viewing all articles
Browse latest Browse all 3184

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>