Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ME_PROCESS_PO_CUST post method

Hi,

Is it possible to update/override any values at the PO item level in the method POST of the Badi ME_PROCESS_PO_CUST?

I tried with the below code, but it was not updating anything. I could update with process_item method but just checking whats wrong with the below code in POST method.

data: Header type MEPOHEADER,

items type PURCHASE_ORDER_ITEMS,

item like line of items,

itemdata type MEPOITEM,

l_flag type c.

CALL METHOD im_header->get_data

receiving

re_data = header.

CALL METHOD im_header->get_items

receiving

re_items = items.

loop at items into item.

CALL METHOD item-item->get_data

receiving

re_data = itemdata.

itemdata-mwskz = 'XX'.

itemdata-txz01 = 'sample text changed'.

CALL METHOD item-item->set_data

EXPORTING

im_data = itemdata.

endloop.

Thanks in Advance

Somesh

Not what you were looking for? View more on this topic or Ask a question