07-11-2012 4:32 PM
Dear all,
Is there any function module, which can change the status of a released status job to scheduled status ?
Thanks and regards,
Kartik
07-11-2012 4:51 PM
Hi karthik,
please try with this function module.
TMS_BCM_JOB_STATE_CHANGE
CALL FUNCTION 'TMS_BCM_JOB_STATE_CHANGE'
EXPORTING
iv_domname = iv_domname
iv_sysname = iv_sysname
iv_client = is_tmsjob-authckman
iv_operation = 'DERELEASE'
iv_jobname = is_tmsjob-jobname
iv_jobcount = is_tmsjob-jobcount
* IV_TARGETSRV =
* IS_JOBCTL =
IMPORTING
es_exception = ls_exception
EXCEPTIONS
alert = 1.
regards,
Ramya R
07-11-2012 4:47 PM
Hi Kartik,
You can use FM BP_JOB_MODIFY. This is how SM37 does it.
Also look at subroutine CHANGE_JOB_STATUS_SM37B in include LBTCHFXX. This will do the necessary checks and populate the FM as SM37 does.
Regards,
Shravan
07-11-2012 4:51 PM
Hi karthik,
please try with this function module.
TMS_BCM_JOB_STATE_CHANGE
CALL FUNCTION 'TMS_BCM_JOB_STATE_CHANGE'
EXPORTING
iv_domname = iv_domname
iv_sysname = iv_sysname
iv_client = is_tmsjob-authckman
iv_operation = 'DERELEASE'
iv_jobname = is_tmsjob-jobname
iv_jobcount = is_tmsjob-jobcount
* IV_TARGETSRV =
* IS_JOBCTL =
IMPORTING
es_exception = ls_exception
EXCEPTIONS
alert = 1.
regards,
Ramya R