Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Get Characteristic Value On BADI Code Block

Former Member
0 Likes
753

Dear guys,
   I want get PO item detail's Material Data tab -> Cross-plant CM field -> Characteristic Values by abap.I write code at DADI(SE19), Implement the "ME_PROCESS_PO_CUST" - > Method: PROCESS_ITEM  (IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM)

Tip: I get the temporary PO item field "cuobj" has value, the configuration not yet save, so i use FM: VC_I_GET_CONFIGURATION get none,

2 REPLIES 2
Read only

Former Member
0 Likes
624

Dear Kelvin,

Please check whether material used is configurable material or not .

Can you share ur code which is used in the BADI Method PROCESS_ITEM.

Check Whether u are passing CUOBJ  (i.e., Instance )  properly on to Function Module.

Thanks and Regards,

Madhukumar

Read only

0 Likes
624

METHOD if_ex_me_process_po_cust~process_item.

  DATA : re_item TYPE mepoitem.

  CALL METHOD im_item->get_data RECEIVING re_data = re_item.


  "I want to execute CALL FUNCTION 'VC_I_GET_CONFIGURATION' , re_item-cuobj,  get
  "ES_LENGTH to fill out the "re_item-bpumz"
  re_item-bpumz = 2450.

  CALL METHOD im_item->set_data EXPORTING im_data = re_item.

ENDMETHOD.


But when the configuration is news or has be changed, call function 'VC_I_GET_CONFIGURATION' can't get nothing!
Is there any idea?