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

I am getting Exception INVALID_DATA in JOB_SUBMIT Function module

Former Member
0 Likes
918

Hi,

I am scheduling background job through programmatically using JOB_OPEN, JOB_SUBMIT and JOB_CLOSE.

But some times getting exception message INVALID_DATA and some times it's working fine.

Failure case I checked in side FM: JOB_SUBMIT and gone through it and checked failed in FM: BP_JOB_MODIFY and again gone inside failing inside the FM: BP_JOB_EDITOR. But I am surprising why it's working some times and why it's failing to scheduled the background job.

First I guess some authorization issue in S_BTCH_JOB and S_BTCH_ADM. But if authorization issue then some times it works and some times fails to schedule background job. What should be the reason.

Thanks

Hi,

I am scheduling background job through programmatically using JOB_OPEN, JOB_SUBMIT and JOB_CLOSE.

But some times getting exception message INVALID_DATA and some times it's working fine.

Failure case I checked in side FM: JOB_SUBMIT and gone through it and checked failed in FM: BP_JOB_MODIFY and again gone inside failing inside the FM: BP_JOB_EDITOR. But I am surprising why it's working some times and why it's failing to scheduled the background job.

First I guess some authorization issue in S_BTCH_JOB and S_BTCH_ADM. But if authorization issue then some times it works and some times fails to schedule background job. What should be the reason.

Thanks

1 REPLY 1
Read only

Sandra_Rossi
Active Contributor
0 Likes
659

Along with the exception INVALID_JOBDATA, you have probably an error message in the SY-MSG* system fields. You just need to check what it says.. .