cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

deleted question

0 Likes
View Entire Topic
Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Burak,

You should use $batch operations in order to send multiple items to the same OData service. Your service must provide support for batch operations. Check this blog for UI5 details on how to implement this.

Regards,
Ivan

former_member489109
Participant
0 Likes

Thanks for answer.

What is the difference between batch and deep entity?

Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert
0 Likes

HI Burak,

Deep entity will post a nested structure (i.e: header and line items) in a single run. It also reduces the number of Odata calls, but it implies you are using an Odata with $expand feature. If this is your case, than you should be using NW Gateway as you OData provider to be able to implement this feature.

Batch operations will send multiple Odata operations on a single run. Suppose your app has a hierarchy table grouped by header an line items at the 2nd level of each header. You edit some of the line items on multiple headers and now you need to send them to your Odata service in a single run to update the table. You could call the OData service multiple times (one for each header) using the deep entity creation, but you want to do it in a single run. That's where the $batch request will aid you. You could send multiple deep entity calls on a single batch request.

Regards,
Ivan

junwu
SAP Champion
SAP Champion
0 Likes

batch: send multiple requests(each one contains a record) in one shot

deep entity: one request is sent, which contains multiple records

former_member489109
Participant
0 Likes

Hi ivan.mirisola again,

I have a question for about batch operation.

Example;

I have a table with 10 row. I am using batch operation and each one goest to createSet.(10 row.)

Bapi works for every line.(It actually needs to work once for all lines.)

Because I have to take the result of each line and process according to the result.(commit , rollback..)

I can't do because batch data is sent one by one.Can you please help me ?

Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert
0 Likes

Is this what you are looking for?