‎2008 May 25 12:55 PM
Hi,
We are generating outbound Idocs in a report. In this report we are using Function Module Master_Idoc_Distribute. Now we have faced some performance issues and the basis consultant is asking us to:
Call the function module using CALL FUNCTION Master_Idoc_Distribute IN BACKGROUND TASK.
1) How will calling the FM Master_IDOC_Distribute in background task help improve the performance?
2) By calling the function module in background task, will it have any impact on the sequencing of the idocs? If yes what is the way out, as the idoc sequence is very important.
Thanks in advance,
Mick
‎2008 May 25 1:20 PM
1) How will calling the FM Master_IDOC_Distribute in background task help improve the performance?
->Calling the FM in background task will help in performance as it will be called in the background process mode like a tRFC.So it will not occupy any dialog process which are limited.
2) By calling the function module in background task, will it have any impact on the sequencing of the idocs? If yes what is the way out, as the idoc sequence is very important.
->It will not have any impact on IDoc sequence.
‎2008 May 26 7:30 AM
Thanks Sourav. But if the idocs are going to be part of background process, will they be sent outside SAP in the same sequence in which they are created by the ABAP report? And will they reach XI (Middleware) in the same sequence?
Any help/suggestions would be appreciated.
‎2008 May 26 9:33 AM
The sequence is decided the way the data is saved in EDIDD structure.This will never be hampered any way when you do it in background.The abap code will trigger in wxactly the same way as in foreground.