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: 

BAPI_PO_CHANGE not able to change delivery address

Former Member
0 Kudos

Hi,

We have a BSP application to maintain our purchase orders and we use the BAPI_PO_CHANGE to maintain our changes to the PO. Now we want to add the ability to change delivery address of our PO, which we are trying to do with BAPI_PO_CHANGE using the export parameter table POADDRDELIVERY. We are for purpose of test, using the address number that are already in the system and passing it to the BAPI but still the changes are not reflected to the PO.

Has anyone faced similar issues before and can anyone guide us what we could be doing wrong?>

thanks,

GV

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Did you fill the following parameters:

1. Import parameters

PURCHASEORDER

2. Just fill the line item number in POITEM and POITEMX

3. Fill the Item number and Address number in POADDRDELIVERY

4. Follow ths BAPI using a commit work or BAPI_TRANSACTION_COMMIT

Should work fine.

Sam.

5 REPLIES 5

Former Member
0 Kudos

Hi, Did you only a test or tried it within a FM or program? Try to finish with the BAPI BAPI_TRANSACTION_COMMIT to be sure the commit work is done. Success.

Former Member
0 Kudos

Did you fill the following parameters:

1. Import parameters

PURCHASEORDER

2. Just fill the line item number in POITEM and POITEMX

3. Fill the Item number and Address number in POADDRDELIVERY

4. Follow ths BAPI using a commit work or BAPI_TRANSACTION_COMMIT

Should work fine.

Sam.

0 Kudos

Rob and Sam,

thank you both for your replies, I have been running this via se37 only and not through the program.

I will run it by calling in a program and let you know the output.

thanks,

0 Kudos

Rob, Sam

tried using this in program and teh commit after that but doenst work.

Is there any flag I need to set in any other parameter?

0 Kudos

Hey Gautam - This is what I did and it works for me. It doesnt work if the GR has been already done.

I am just using the examples that I did in my system

PURCHASEORDER 4600001000

POITEM-PO_ITEM 00001

APPEND PO_ITEM.

POITEMX-PO_ITEM 00001

APPEND PO_ITEMX.

POADDRDELIVERY-PO_ITEM 00001

POADDRDELIVERY-ADDR_NO 22154(new address no)

APPEND POADDRDELIVERY.