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

Former Member
0 Likes
424

hi

if the bapi doesnt update databsse

we have to use BAPI_TRANSACTION_COMMIT it will update the databse

by checking only we are knowing it.

so

how to know when we have to use BAPI_TRANSACTION_COMMIT without checking(whether the main bapi will update).

is there any difference to between the

bapis

1) . which are not use BAPI_TRANSACTION_COMMIT

2) . which are use BAPI_TRANSACTION_COMMIT

1 ACCEPTED SOLUTION
Read only

former_member195698
Active Contributor
0 Likes
406

As of Release 4.0 BAPIs must not execute 'COMMIT WORK' commands.

Reason : The caller should have control of the transaction. Several BAPIs should be able to be combined within one LUW.

The following commands must not be used:

CALL TRANSACTION

SUBMIT REPORT

SUBMIT REPORT AND RETURN

Check the link for further details on this.

http://help.sap.com/saphelp_nw04/helpdata/en/e0/9eb2370f9cbe68e10000009b38f8cf/frameset.htm

Regards,

Abhishek Jolly

4 REPLIES 4
Read only

former_member195698
Active Contributor
0 Likes
407

As of Release 4.0 BAPIs must not execute 'COMMIT WORK' commands.

Reason : The caller should have control of the transaction. Several BAPIs should be able to be combined within one LUW.

The following commands must not be used:

CALL TRANSACTION

SUBMIT REPORT

SUBMIT REPORT AND RETURN

Check the link for further details on this.

http://help.sap.com/saphelp_nw04/helpdata/en/e0/9eb2370f9cbe68e10000009b38f8cf/frameset.htm

Regards,

Abhishek Jolly

Read only

0 Likes
406

thanku abhisek

wt finally i understood is

so internally commit work calls with only 'BAPI_TRANSACTION_COMMIT'

Read only

0 Likes
406

Yes, the BAPI's created with new guidelines will not have COMMIT WORK or ROLLBACK Statement in it. Based on the Failure/Success of the BAPI we have to explicitly call BAPI_TRANSACTION_ROLLBACK and BAPI_TRANSACTION_COMMIT which will have ROLLBACK WORK or COMMIT WORK Respectively in it.

Regards,

Abhishek

Read only

Former Member
0 Likes
406

Hi Srinu,

Check the below link,

http://publib.boulder.ibm.com/infocenter/wbihelp/v6rxmx/index.jsp?topic=/com.ibm.wbia_adapters.doc/d...

<b>Kindly Reward points if you found this reply helpful</b>,

Cheers,

Chaitanya.