10-08-2014 12:02 AM
Hi Folks,
I am trying to update the supplying vendor field in outline agreement header ( Reference data section ) using bapi BAPI_CONTRACT_CHANGE. I am passing the supplying vendor in in HEADER-SUPPL_VEND field and setting HEADERX-SUPPL_VEND to 'X'.
The execution ends with success message but the new supplier vendor does not show up in outline agreement.
Has anyone faced similar issue when using this BAPI. I have noticed the header structure of bapi has a field to allow update of vendor but event that does not work (which makes sense ), But the supplier vendor field can be updated in edit mode by end user, so this should ideally be updated when using BAPI.
Any input will be helpful in this regard.
Cheers,
Vivek
10-08-2014 12:17 AM
Is the bapi transaction commit called after the BAPI call?
Found these notes from FM documentation:
Message was edited by: Jay Raj
10-08-2014 2:34 PM
Hi Jay,
I did go through the documentation, the field I am trying to update is not covered by the exception provided in FM documentation. Yes I did use BAPI_TRANSACTION_COMMIT.
Regards,
Vivek
08-25-2015 3:23 PM
In transaction ME32K, we can't change the vendor so ... BAPI replicates the transaction.
08-25-2015 3:30 PM
Yes, the contract vendor cannot be changed. but I was trying to update supplying vendor and of course that can be updated using ME32k. Check the screenshot attached to original question post.
08-25-2015 3:49 PM
OK. You are right. I'm getting same result.
Have you checked all the relevant notes? I can't update the delivery address as well.
1674929 | MEMASSSA: Changed delivery address when changing storage loc | |
1061344 | EKPO-ADRN2 in BAPI_SAG_CREATE |