Application Development 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: 

Parallel processing

former_member697611
Discoverer
561

what is a parallel processing in SAP? how do we use parallel processing?

5 REPLIES 5

geert-janklaps
Active Contributor
0 Kudos
227

Hi,

Parallel processing is distributing a workload over multiple threads speeding up overall processing time.

For example if you have a workload of 1000 records in an internal table that need to be processed and you have 4 threads available. By distributing the load over these 4 available threads you are able to process 4 records at the same time, theoretically this could mean that you could reduce the overall processing time to 1/4th of the processing time you would have without implementing parallel processing. (in practice the chances that you actually reduce the processing time to 1/4th are rather slim, since some records might take more processing time than other, but I think you get the picture)

An excellent example on how to implement parallel processing can be found here: https://blogs.sap.com/2019/03/19/parallel-processing-made-easy/

Best regards,

Geert-Jan Klaps

Sandra_Rossi
Active Contributor
227

asked again and again and again...

Abinathsiva
Active Contributor

michael_piesche
Active Contributor
0 Kudos
227

There are several ways you can implement parallel processing. The requirements will reduce the number of options.

The main technique would be to call the same Function Module multiple times and wait for the responses. But you could also Submit the same report multiple times and schedule it as a background job and not have to wait for the responses.

I would suggest you study your requirements, do a little research, and come back, if necessary, with specific questions.

keremkoseoglu
Contributor
0 Kudos
227

Here is an ABAP class library which can split given tasks into parallel processed jobs

https://github.com/keremkoseoglu/ABAP-Library/tree/master/job