cancel
Showing results for 
Search instead for 
Did you mean: 

Gateway and BAPI COMMIT ?

Former Member
0 Kudos

Hello all,

I have a short question for you, Gateway experts !

We are currently using the SAP NW Gateway 2.0 SP07 to create an OData service based on the BAPI_SALESORDER_CREATEFROMDAT2.

Normally to really create the order in SAP, we have to call just after, the BAP_TRANSACTION_COMMIT.

I read on another post on SCN that according to the version of the Gateway it is needed or not.

Can you tell me what to do with 2.0 SP07 ?

Thanks,

Luc

Accepted Solutions (1)

Accepted Solutions (1)

AshwinDutt
Active Contributor
0 Kudos

Hello Luc,


Call Commit as below by passing destination ->

/iwbep/if_sb_dpc_comm_services~commit_work(
EXPORTING
iv_rfc_dest
= lv_destination) .


Regards,

Ashwin

Former Member
0 Kudos

Hello Ashwin,

Thanks, I should write the ABAP code at the end of my OData class calling the BAPI... I understand.

But no way, to set up a parameter in the Gateway ?

Regards,

Luc

AshwinDutt
Active Contributor
0 Kudos

We need to call Commit explicitly after Create/Update/Delete.

I do not see any way to set up a parameter for this in GW Level.

if Create/Update/Delete is a part of BATCH operation then frame work it-self will issue commit after all the operations inside the BATCH are executed successfully.

Former Member
0 Kudos

Ok, thanks !

The OData service is called from a SAP UI5 application.

I think the best is to add the commit in the ABAP code of the wrap table.

Thanks,

Luc

Answers (0)