I have an ITAB with an EBELN column. For each unique EBELN I need to call BAPI_PO_GETDETAIL1
. The BAPI Call takes a long time, so to improve performance I want to parallelize the calls. This is the Code that I got:
My issue is that the WAIT UNTIL started_tasks LT processes - 1
works two times, but after the third time when started_tasks successfully gets below processes – 1, when the BAPI gets called, I get a short dump with COMMUNICATION_FAILURE
on the BAPI call. My suspicion would be that it has something to do with waiting. I also searched on the internet what the error could mean, but found nothing that fixes the issue.
Can anybody tell me more about the error and what it means or has an idea how to fix this? Thanks in advance!