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

Badi implementation ME_PROCESS_PO_CUST

Former Member
0 Likes
1,212

There is a request to change a PO item field's value In ME22N when the user pushes check button.

Is it possible while writing code in implementation of IF_EX_ME_PROCESS_PO_CUST~CHECK?

I called the method SET_DATA but changes are not set because of the code below.

CHECK l_gparent->my_ibs_firewall_on EQ mmpur_yes OR

      l_gparent->my_cust_firewall_on EQ mmpur_yes.

How can I overcome this check?

Is there any way to CALL PROCESS_ITEM when user clicks 'Check' In ME22N?

There is a request to change a PO item field's value In ME22N when the user pushes check button.

Is it possible while writing code in implementation of IF_EX_ME_PROCESS_PO_CUST~CHECK?

I called the method SET_DATA but changes are not set because of the code below.

CHECK l_gparent->my_ibs_firewall_on EQ mmpur_yes OR

      l_gparent->my_cust_firewall_on EQ mmpur_yes.

How can I overcome this check?

Is there any way to CALL PROCESS_ITEM when user clicks 'Check' In ME22N?

3 REPLIES 3
Read only

Former Member
0 Likes
833

Are you trying to change a field at item level which is in display/non-editable mode ?

If so,then this BADI not going to help.

You will be able to set data for those fields which are input enable.

And this enable/disable activity very well done in SPRO

Let me know your comments.

Regards

Ansumesh

Read only

0 Likes
833

The field 'weunb' is in display and editable in ME22N. The problem is that when I write the code below in method IF_EX_ME_PROCESS_PO_CUST~CHECK. System do not recognize any change and as a result there is no message for user to save.


METHOD if_ex_me_process_po_cust~check.

DATA: lv_if_item TYPE REF TO if_purchase_order_item_mm,

           wa_item LIKE LINE OF i_items,

           ls_itm_data TYPE mepoitem.

  LOOP AT i_items INTO wa_item.
  lv_if_item
= wa_item-item.
    CALL METHOD lv_if_item->get_data
   RECEIVING
      re_data
= ls_itm_data.

     clear lt_itm_data-weunb.

     CALL METHOD lv_if_item->set_data

          EXPORTING

            im_data = ls_itm_data.

ENDLOOP.

ENDMETHOD.



Read only

madhu_vadlamani
Active Contributor
0 Likes
833

This message was moderated.