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

Background Job

Former Member
0 Likes
643

Hi,

I have to schedule one job in background.After open the job I have written code

SUBMIT ymdmctpop_step

VIA JOB y_k_jobname NUMBER y_lv_jobcount

AND RETURN.

After this I have closed the same.

But what problem i am facing, is prog ymdmctpop_step is unable to execute.It is not getting triggered in the background. What could be the reason?

7 REPLIES 7
Read only

Former Member
0 Likes
622

Hi,

try to execute the program without the statement "AND RETURN".

With this statement your program wait until the other program finish (not in background).

Regards,

Read only

Former Member
0 Likes
622

Hi,

When scheduling a report with the SUBMIT ... VIA JOB job NUMBER n statement, you should always use the addition ...TO SAP-SPOOL.

Try :

SUBMIT ymdmctpop_step

TO SAP-SPOOL

VIA JOB y_k_jobname NUMBER y_lv_jobcount

AND RETURN.

Hope this helps...

In response to Jose: AND RETURN should always be added.. for VIA JOB...

Edited by: Srinivas Kalluri on Apr 17, 2009 1:30 PM

Read only

Former Member
0 Likes
622

Hi,

try to execute the program without the statement "AND RETURN".

With this statement your program wait until the other program finish (not in background).

Regards,

Read only

Former Member
0 Likes
622

Please note that When scheduling a report with the SUBMIT ... VIA JOB job NUMBER n statement, you should always use the addition ...TO SAP-SPOOL to pass print and/or archive parameters. Otherwise, default values are used to generate the list and this disturbs operations in a production environment.

Read only

ThomasZloch
Active Contributor
0 Likes
622

You should be setting STRTIMMED = 'X' when calling JOB_CLOSE. Also check if you have the authorization to release jobs.

Thomas

Read only

Former Member
0 Likes
622

But when i am writting code without 'AND RETURN', I am getting syntax error.

Read only

0 Likes
622

Hi,

Please check my edited version:

AND RETURN must be added...