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

Warning issue in BAPI call

Former Member
0 Likes
1,877

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. ^ - ^

1 ACCEPTED SOLUTION
Read only

vinod_vemuru2
Active Contributor
0 Likes
1,466

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.

8 REPLIES 8
Read only

Former Member
0 Likes
1,466

This message was moderated.

Read only

mvoros
Active Contributor
0 Likes
1,466

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

Read only

vinod_vemuru2
Active Contributor
0 Likes
1,467

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.

Read only

0 Likes
1,466

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

Read only

0 Likes
1,466

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...

Read only

0 Likes
1,466

thank you guys , very helpful ^ - ^

Read only

Former Member
0 Likes
1,466

could someone post an example here? thanks

Read only

0 Likes
1,466

Hi,

You check this out for better understanding [http://help.sap.com/saphelp_46c/helpdata/en/a5/3ec8654ac011d1894e0000e829fbbd/content.htm]

Regards,

Lim...