Skip to Content
author's profile photo Former Member
Former Member

TBTCO - get Job Name

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Feb 25, 2009 at 06:55 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 25, 2009 at 07: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.