Application Development 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: 

ME_PROCESS_PO_CUST post method

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

Used the process_item yielding to the logic.

dev_factory01
Discoverer

I have similar issue where I need to set item details in POST method by using SET_DATA method.Please share me how we can find the solution for this.