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