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

Batch Program creating IDOC

Former Member
0 Likes
916

Hi,

We have a batch program scheduled to run every 5mins to detect any change in PM orders. If so it will create an IDOC.

The IDOC are not generated when the program is schedule as a batch job, there are no errors too. But when i run the same program from say SE38, it creates the IDOC.

Appreciate help in this regards asap.

thanks

Ram

6 REPLIES 6
Read only

Former Member
0 Likes
787

Is the IDoc generated as an output, meaning using an output type? If so, check if running RSNAST00 for that output type generates the IDoc.

Read only

0 Likes
787

IDOC is created using message type 'IORDER'.

IDOCs are getting created if i run the program direclty, but when scheduled as a batch job is when it fails to create

Read only

0 Likes
787

How are you creating the IDoc?

Read only

ferry_lianto
Active Contributor
0 Likes
787

Hi Ram,

Are you using standard program <b>IREAD_SM_PM_ORDERS</b> (t/code <b>IORD</b>) to generate PM IDoc?

Regards,

Ferry Lianto

Read only

0 Likes
787

Its a Zprogram which has been scheduled.

Read only

0 Likes
787

Ram

Why wont you debug your zprogram to check the reason behind. Take a job which has got failed from sm36.

Select the job and type jdbg in command line, then press enter to debug your job.

Check whether idooc getting created or not.

Regds

Manohar