‎2009 Mar 20 7:47 AM
Dear experts:
if we got a warning message in the return table after the BAPI call, is there a chance that the BAPI has already carried out it's process? i mean the bapi has changed the database?
if there is, can you please give an example here? thank you very much. ^ - ^
‎2009 Mar 20 8:06 AM
Hi,
As far as i know none of the BAPIs will update the database on its own. U have to explicitly call FM BAPI_TRANSACTION_COMMIT after ur actual BAPI call. Then only database will be updated.
I think u can always ignore warnings in BAPI/BDC.
Thanks,
Vinod.
‎2009 Mar 20 8:01 AM
‎2009 Mar 20 8:01 AM
Hi,
yes, some BAPI returns warning messages but still do what they should do. Unfortunately I don't remember any example but I've already seen it. What BAPI do you use and and what message do you get?
Cheers
‎2009 Mar 20 8:06 AM
Hi,
As far as i know none of the BAPIs will update the database on its own. U have to explicitly call FM BAPI_TRANSACTION_COMMIT after ur actual BAPI call. Then only database will be updated.
I think u can always ignore warnings in BAPI/BDC.
Thanks,
Vinod.
‎2009 Mar 20 8:15 AM
Hi,
there are some BAPIs which call COMMIT WORK directly and they don't need BAPI BAPI_COMMIT_WORK. For example BAPI_PROJECTDEF_CREATE.
Cheers
‎2009 Mar 20 8:25 AM
Hi,
Martin is right, some older BAPI is coded with the COMMIT WORK statement inside, so whether you like it or not, it will be committed.
For newer BAPI, then you will have to use BAPI_TRANSACTION_COMMIT. Otherwise DB update was not done.
IF you get the error message or UPDATE WAS TERMINATED then your database has NOT been updated yet. However if it's just a warning or informational type of message then, it may have updated your database.
Regards,
Lim...
‎2009 Mar 20 8:33 AM
‎2009 Mar 20 8:38 AM
‎2009 Mar 20 9:50 AM
Hi,
You check this out for better understanding [http://help.sap.com/saphelp_46c/helpdata/en/a5/3ec8654ac011d1894e0000e829fbbd/content.htm]
Regards,
Lim...