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: 

Using Function in background in Sap Gateway Methods

andreamaral
Explorer
0 Kudos
710

Hello experts 

I need to create a material quotation through a SAPUI5 application. However, when I include the quotation creation function in the method, the request breaks due to the quantity of materials. I thought about using a background function, but even then, the method remains stuck waiting for the function to finish. Is there a way to achieve this? Has anyone encountered something similar? 

 

3 REPLIES 3

thomas_mller13
Participant
0 Kudos
635

What do you mean by "breaks due to the quantity of materials"?

0 Kudos
617

When I have a list with more than a thousand materials, the quotation creation function takes so long to process that it times out the request to the application.

0 Kudos
609

You need a sort of queuing tool in order to do that in parallel. You could try Q-RFC or background RFC. Or you find a more elabrorated tool (e.g. ExeQwork Universal Process Tool). Each BAPI call should be one single background job and should have it's own LUW. I.E. the whoile action is done asynchronously.