cancel
Showing results for 
Search instead for 
Did you mean: 

Change dropdown values for ADD ITEM button in PO screen

Former Member
0 Kudos

Hi,

We have upgraded from SRM 5 to SRM 7.

Due to the new screens in SRM 7,in PO screen for adding any additional

lines from a shopping cart,we need to click on the ADD ITEM button

under the ITEMS tab as shown in attached document.However the issue we

are now facing is that the drowpdown values for this button show

the "external catalog" links also(as they are enabled in shopping cart

screen for the buyer).

For Shopping cart screen,the display for the dropdown options can be

controlled via badi BBP_SC_MODIFY_UI.However for PO there is no badi

available.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello.

External Catalog links for ADD_ITEMS are shown because of your User Attribute settings. If you remove them it will not be shown.

WD Comp. : /SAPSRM/WDC_UI_PO_DOTC_IT

View : V_PO_DOTC_BASIC

Method : VWDDOMODIFYVIEW

In this method Check for below Code. This enables the link for Catalog in PO.


*Initialise the Catalog Entries for the User
    wd_this->mo_dotm_po_i_bd->init_catalog_entries( io_view = view ).

If you dont want to remove it from the user setting then create a post exit for method VWDDOMODIFYVIEW.

Use this bit of Code.


  lr_toolbar_btn_choice ?= io_view->get_element( 'ADD_ITEM' ).   "add to item

          lr_menu_action_item ?= cl_wd_menu_action_item=>new_menu_action_item(
              id                   = lv_service_id    " Service ID of Catalog.
              on_action            = 'ADDITEM_CATALOGUE'    " name of action as defined in view
              text                 = lv_service_descript    " Decription of the catalog
              view                 = io_view ).  

          lr_toolbar_btn_choice->remove_choice( the_choice = lr_menu_action_item ).

Check the piece of Code in the class /SAPSRM/CL_CH_WD_DOTM_PO_I_BD method /SAPSRM/IF_CLL_DOTM_PO_I_BD~INIT_CATALOG_ENTRIES

Former Member
0 Kudos

Hi,

In the PO also if you click ADD items you will see only the Catalog link that is the std functionality

if you want to add line items in the PO .Go to the right hand side click setting you see the default row(line item) in the PO to

10. you can change the number here.

this is the procedure

Regards

G.Ganesh Kumar