IDoc communication is based on transactional Remote Function Call (tRFC).
You can optimize the performance of ALE processing by using the following settings and procedures:
Suppressing Background Processing
Setting Dispatch Status to Dispatch OK
Check the tRFC Status