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: 
Read only

Function Module MASTER_IDOC_DISTRIBUTE to be called in background task?

Former Member
0 Likes
863

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

3 REPLIES 3
Read only

Former Member
0 Likes
660

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.

Read only

0 Likes
660

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.

Read only

0 Likes
660

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.