cancel
Showing results for 
Search instead for 
Did you mean: 

Using BAPI_TRANSACTION_COMMIT in iOS native app.

Former Member
0 Kudos

I am developing an native iOS Application. Where I am supposed to call BAPI_TRANSACTION_COMMIT. Please let me know the correct way/method for calling BAPI_TRANSACTION_COMMIT. A code snippet will be very helpful.

I have tried using  SUPLocalTransaction to commit the changes but it is not working.

Accepted Solutions (0)

Answers (1)

Answers (1)

midhun_vp
Active Contributor
0 Kudos

Please give more information to help you.

Are you talking about operation in SUP ?

- Midhun VP

Former Member
0 Kudos

hey thanks for replying. Yes, I am talking about SUP operations. We are setting some values with InspectionLot.SetUsageDecision BAPI. We want this data to reflect on SAP backend.

midhun_vp
Active Contributor
0 Kudos

I don't know much objective C but the scenario will to call an operation will be same in android, mac,ios, win....etc.

So I will explain you how to make an operation in general.

Create an operation for the RFC "BAPI_TRANSACTION_COMMIT" in any MBO which was created (lets say PO_list and operation name as "commit"). Then an API will be created "commit()". You need to use this API in the code as PO_list.commit(parater1,parameter2);

then call TestDB.save(); and TestDB.synchronize();

- Midhun VP