02-25-2009 6:47 AM
Hi,
Is there any where I can get the job name when the program are running in background mode as I need to pass the job name with the date/time to the output log.
I'm trying get the job name from table TBTCO. However, i hint the error in ' incorrect expression ''SDLSTRTDT ' or 'SDLSTRTTM' in logical condition.
Below are the code i hint the errors. Is there any incorrectly. Please advise. Thanks.
SELECT jobname INTO TABLE i_job
FROM TBTCO
WHERE sdluname = sy-uname
SDLSTRTDT = p_date
SDLSTRTTM = p_time.
02-25-2009 6:55 AM
Try to use the FM [GET_JOB_RUNTIME_INFO|https://www.sdn.sap.com/irj/scn/advancedsearch?query=get_job_runtime_info&cat=sdn_all].
Regards
02-25-2009 7:00 AM
Hi,
If I use the FM you've mentioned, can I know where I can get all the import parameter value that need to pass to the FM?
02-25-2009 8:14 AM
No parameter is needed, you will get the current job name.
Regards
02-25-2009 7:16 AM
Hey,
Just a corrected where clause
SELECT jobname INTO TABLE i_job
FROM TBTCO
WHERE sdluname = sy-uname
AND SDLSTRTDT = p_date
AND SDLSTRTTM = p_time.
thanks\
Mahesh
02-25-2009 7:54 AM