I m trying to change the shipping point in ME21N ...
I am using the badi me_process_po_cust and the method process_item.
After the execution of badi nothing happens.
Here is my code:
" GET PO Items
CALL METHOD im_item->get_data
re_data = lt_item.
CHECK lt_item-reslo IS NOT INITIAL.
I read the new shipping data from a z table
" Compare shipping Data
CALL METHOD im_item->get_shipping_data
re_ekpv = ls_ship.
" Setting the shipping Point
IF lv_ship <> ls_ship-vstel.
ls_ship-vstel = lv_ship.
lv_shipupdate = 'X'.
IF lv_shipupdate = 'X'.
CALL METHOD im_item->set_shipping_data
im_ekpv = ls_ship.
I have the endless loop problem ( i ll deal with later), for the moment I am stopping the seond iteration in debugging by changing the value of the lv_shipupdate variables.
I ll be waiting for your comments.