Application Development and Automation 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:Ā 
Read only

BAPI_ADDRESSORG_CHANGE

bhargava_dns
Participant
0 Likes
761

Hi everybody,

I am using this  BAPI_ADDRESSORG_CHANGE to update the mobile number and telephone number of the vendor.

When i am running the above BAPI in SE37 and also as a standalone program it runs fine and updates the corrosponding feilds,

but once i call this program in module pool along side other functional modules i see that BAPI runs fine and even the address no is also getting

generated but the data is not getting updated in the adr2 table. I have run the  BAPI_TRANSACTION_COMMIT after even the data is not getting commited.

can anyone let me know what could be the problem of this sought of behaviour.

3 REPLIES 3
Read only

Former Member
0 Likes
644

Hi Bhargava,

                     Please check again whether you are using just COMMIT WORK or BAPI_TRANSACTION_COMMIT because both has some difference.

Check sy-subrc after commit. Donot check the table soon after the process. You might be reading the data from the buffer. Try log out- login again. Think this might help.

Happy Coding,

Santhosh Yadav

Read only

0 Likes
644

Hi santhosh,

I have checked with both the commits...but the result is same.

when i am testing the BAPI using standalone using BAPI commit the DB is getting updated,

but when using it in the module pool its not working

Read only

0 Likes
644

Does this BAPI return any error messages...?? Secondly make sure you have the leading zeros in address number. Please paste your sample code