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: 

Shipping data within BAPI_PO_CHANGE

Former Member
0 Kudos

Hi all.

I'm using BAPI_PO_CHANGE within BADI ME_PURCHDOC_POSTED in order to change shipping data (field PLIFZ only).

Since I couldn't do it within the BADI implemantation I'm trying to di it by using the above BAPI.

The table's name is POSHIPPINGEXP.

The following are the input parameters for the BAPI:

lv_pur_order = PO number.

lt_shippingexp-po_item = '00010'.

lt_shippingexp-plnd_delry = '10'. "Constatnt

lt_shippingexp-del_create_date = sy-datum.

call function 'BAPI_PO_CHANGE'

exporting

purchaseorder = lv_pur_order

tables

return = lt_return[]

poshippingexp = lt_shippingexp[].

Somehow I keep getting same result: Success message with "No data was changed".

What's wrong with these parameters ? Something's missing ? maybe parameters POSHIPPING & POSHIPPINGX ?

And Is it possible to update IM_EKPV within the BADI ME_PURCHDOC_POSTED ? If yes - how ?

I'll apriciate your help.

Thanks in advance,

Rebeka

3 REPLIES 3

Former Member
0 Kudos

Hi,

Even if it shows a success message.

Try to capture warning messages.They give us clue of what has missed.

I think some more parameters need to be passed.

Regards,

Subhashini

Former Member
0 Kudos

Hi

Populate POSHIPPINGX also. This should help.

Thanks

Former Member
0 Kudos

It's not possible.