‎2008 Mar 19 1:15 PM
Hi Everybody,
how can i schedule a job in background programatically for a spefic date and time ?
Thanks and Regards
srikanta
‎2008 Mar 19 1:19 PM
Hi Srikanth,
Use FM JOB_OPEN and JOB_CLOSE , and specify the start date and start time
check the documentation of that FM s
‎2008 Mar 19 1:32 PM
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
‎2008 Mar 19 1:22 PM
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.
‎2008 Mar 19 1:23 PM
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