cancel
Showing results for 
Search instead for 
Did you mean: 

Commit in Batch operation

pranay_aitha2
Participant
0 Kudos

Hi Experts,

We are calling a standard SAP FM in our code, which is triggered by the $batch operator for POST service, is there any way to by pass the Commit check, when ChangeSet is used and triggers Commit or Roll back.

Regards,

Pranay Aitha.

Accepted Solutions (0)

Answers (1)

Answers (1)

kammaje_cis
Active Contributor
0 Kudos

Hi Pranay,

The purpose of change-set is to group related operations inside a single LUW. So COMMIT will be triggered once after all grouped operations.

If you do not want a COMMIT, why do you pass it in a $batch change-set. Why can't you just call in a regular CREATE?. Other option within $batch is to put it outside the change-set. That would ensure that Commit is not called. I have not tried this but do not see any reason for it to not work.

Thanks

Krishna

pranay_aitha2
Participant
0 Kudos

Hi Krishna,

thanks for the reply,

our requirement is, we need to send a table input to SAP via gateway, since POST only accepts line input. we planned of using batch operation for that.

It is okay to process the records separately, though a Commit is involved while processing these records, So we are not able to send a Batch with Changeset.

How can we POST two records with out using changeset in batch operation ?

Regards,

Pranay Aitha.

kammaje_cis
Active Contributor
0 Kudos

Remove --changeset commands in the batch request body.

pranay_aitha2
Participant
0 Kudos

I did try that, that returns no response