cancel
Showing results for 
Search instead for 
Did you mean: 

Buttons under ADD ITEM should be disabled

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

jason_boggans
Active Contributor
0 Kudos

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