2013 Nov 27 1:54 PM
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?
2013 Nov 28 11:00 AM
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
2013 Dec 01 7:55 PM
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.
2013 Dec 02 5:11 AM