on 06-06-2012 12:01 PM
Hi All,
Webdynpro Component: /SAPSRM/WDC_DODC_SC_I_BD
View: V_DODC_SC_I_BD
Field: PURCHASING_GROUP_DROPDOWN
I have to display the field as number instead of purchasing group text.
Please let me know how we can achieve this or let me know in which method this table is being populated
Thanks & Regards
Praveen
Class: /SAPSRM/CL_CH_WD_DODM_SC_I_BD
Method: /SAPSRM/IF_CLL_MAPPER~REFRESH
Created an Implicit Enhancement Implementation for the above class method to change the text to values.
* Determine index for drop-down and fill Purchasing Group Drop-down text
mv_purch_data_index = 0.
lv_counter = 0.
REFRESH lt_purch_data_dropdown.
LOOP AT mt_purch_data INTO ls_purch_data.* fill purchasing group for drop-down
ADD 1 TO lv_counter.
MOVE ls_purch_data-be_pur_group TO ls_purch_data_dropdown-text.
APPEND ls_purch_data_dropdown TO lt_purch_data_dropdown.* determine index
IF ( ls_purch_data-proc_group-otype EQ ms_orgdata-proc_group_ot ) AND ( ls_purch_data-proc_group-objid EQ ms_orgdata-proc_group_id ).
mv_purch_data_index = lv_counter.
ENDIF.
ENDLOOP.
*retrieve node for Purchasing Group Dropdown
lon_main_node = mon_cll_set_facade->get_main_node( ).
lon_purch_data_dropdown_node = lon_main_node->get_child_node( mc_purch_group_dropdown ).
lon_purch_data_dropdown_node->invalidate( ).
lon_purch_data_dropdown_node->bind_table(
new_items = lt_purch_data_dropdown
set_initial_elements = abap_true ).
lon_purch_data_dropdown_node->set_lead_selection_index( index = mv_purch_data_index ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Description of purchasing group would be displayed in drop down or search help.
Maybe you can change the purchasing group description in badi BBP_PGRP_FIND and return it to main program.
Perhaps in this way, number will be displayed instead of text description.
Regards,
Ricardo
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.