on 09-22-2011 1:46 PM
Hi All,
I have a requirement that while creating the shopping cart , depending upon the role of the user who is accessing it the drop down list in ADD item under item overview level should disabled.
There are many options provided under the icon Add Item (). in item overview option ie 1.With Free description 2.Internal goods and Services etc should be disabled.
I got one BADI BBP_SC_MODIFY_UI which may match my requirement , but can you please let me know how to implement this BADI according to my requirement, ie what parameters I need to pass into this BADI?
Regards
Shilpa
Hello,
In which version are you in?
If SRM 6.0 / 7.0
In Webdynpro component /SAPSRM/WDC_UI_SC_DOTC_BD enchance the method WDDOMODIFYVIEW post exit
Add below code.
DATA: lo_toolbar TYPE REF TO cl_wd_toolbar,
lo_toolbar_btn_choice TYPE REF TO cl_wd_toolbar_btn_choice.
Set visibility of button Add Item to Invisible.
lo_toolbar ?= view->get_element( id = 'ITEM_TABLE_TOOLBAR' ).
lo_toolbar_btn_choice ?= lo_toolbar->get_toolbar_item( id = 'ADD_ITEM' ).
ASSERT lo_toolbar_btn_choice IS NOT INITIAL.
lo_toolbar_btn_choice->set_visible('01' ).
If SRM 5.0/below
Try and check below links
Regards,
Neelima
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shilpa,
This Badi is only effective for SRM releases of 5.0 and below, it is not applicable for SRM releases 6.0+
Regards,
jason
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.