09-29-2009 3:06 PM
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
09-29-2009 6:30 PM
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.
09-29-2009 3:55 PM
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.
09-29-2009 6:30 PM
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.
09-30-2009 10:39 AM
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,
09-30-2009 5:12 PM
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?
09-30-2009 8:17 PM
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.