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

Schedule background Job Programatically at specified date and time

Former Member
0 Likes
2,311

Hi Everybody,

how can i schedule a job in background programatically for a spefic date and time ?

Thanks and Regards

srikanta

4 REPLIES 4
Read only

Former Member
0 Likes
862

Hi Srikanth,

Use FM JOB_OPEN and JOB_CLOSE , and specify the start date and start time

check the documentation of that FM s

Read only

0 Likes
862

Hi Chandrasekhar,

my requirement is :

in selection screen there will be two run mode :

1) Run in Foreground

2) Run in Background

If user selects ' Run in Background ' option , a block will open where user can give

job schedule date and

job schedule time.

Based on this date and time program will be scheduled in background.

I have used like this :

CALL FUNCTION 'JOB_OPEN'

EXPORTING

jobname = v_jname

SDLSTRTDT = p_date

SDLSTRTTM = p_time

IMPORTING

JOBCOUNT = v_jcnt

EXCEPTIONS

CANT_CREATE_JOB = 1

INVALID_JOB_DATA = 2

JOBNAME_MISSING = 3

OTHERS = 4.

where v_jname is jobname

v_jcnt is jobcount

p_date is schedule date ( taken screen value)

p_time is schedule time ( taken screen value)

but the job is sxcheduling immediately

Give suggestion.

Thanks in advance.

Srikanta

Read only

Former Member
0 Likes
862

hi use this..

http://help.sap.com/saphelp_nw04/helpdata/en/fa/096d67543b11d1898e0000e8322d00/frameset.htm

see the left hand side for the content..as

start time window with job_close...

regards,

venkat.

Read only

Former Member
0 Likes
862

Hi,

Use JOB_OPEN , JOB_CLOSE function modules.

<REMOVED BY MODERATOR>

Regards,

Ramya

Edited by: Alvaro Tejada Galindo on Mar 19, 2008 5:48 PM