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: 

BOM IDocs can be created manually, but not by scheduled job

Former Member
0 Kudos

Hi, we are using the SAP report program "RBDSEBOM" with a variant to create BOM IDocs. This program has two steps. The first step is to select BOM's, and the second step is to create IDocs for the BOM's selected in the first step.

We manually execute the program via SE38, and can create BOM IDocs. However, when we schedule a background job to do the same work, the job can only do the first step of the report program, that is, select BOM's. It can not create any IDocs for the selected BOM's. The job log says:

Selection finds 143 BOMs

0 master IDocs set up for message type XXXX

This is the QA environment. We scheduled the same job in the DEV environment. There, the job runs successfully. In both QA and DEV environments, ALE is configured the same.

Question: Is this due to security restriction in the QA environment? We could not find any reason why the IDocs could not be created by the background job.

Any advice will be appreciated.

Thanks!

2 REPLIES 2

Sandra_Rossi
Active Contributor
0 Kudos

Hi,

SAP note 178714 (old but maybe still applicable) seems to say that there is a P_DIRECT flag to set to 'X' (I think). Did you try?

Sandra

vijaymanikandan
Contributor
0 Kudos

Hi,

Check the below code in the program,

IF P_DIRECT IS INITIAL AND SY-BATCH IS INITIAL. "note490511

PERFORM SHOW_BOM_LIST.

ELSE.

PERFORM SEND_BOMS.

ENDIF.

Check OSS Note 490511 - ALE: Manual BOM distribution in the background

Regards,

Vijay V

Edited by: Vijay Venkataraman on Jun 19, 2011 11:52 PM