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



I trying to submit a program in BG using job_open, submit, job_close.

My submit has sy-uname, jobname, jobcount.

sy-subrc is 0 for sumit.

for job_close sy-subrc value is 5.

In debug when I went inside the job_close code...i found the below part

SELECT SINGLE * FROM tbtccntxt INTO wa_tbtccntxt
WHERE jobname  = jobname AND
jobcount = jobcount AND
ctxttype = 'INTERCEPTED'.

IF sy-subrc = 0.           "here the value is returned as '5'
            ID 'ACTVT' FIELD '01'.
   IF sy-subrc <> 0.
     ret = err_no_authority.
     RAISE job_close_failed.

I did check the table tbtccntxt and it doen't have any entries.

Though I have given sy-uname it doen't have authorization and is raising the exception.

is there anything that I am missing?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Apr 11, 2008 at 07:51 PM

    How come, that when table has NO entries (return code = 4), it still does the authorization check. If no entries available, then NO authorization check. I'm a bit confused, as to what the problem really is?

    If authorization check fails, then obviously you don't have the proper authorizations.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 11, 2008 at 07:53 PM

    Try to pass to X to strtimmed

        call function 'JOB_CLOSE'
            jobcount          = v_jobcount
            jobname           = v_jobname
            strtimmed         = 'X'  "<< pass X to this parameter
            job_was_released  = v_job_released
            invalid_startdate = 01
            jobname_missing   = 02
            job_close_failed  = 03
            job_nosteps       = 04
            job_notex         = 05
            lock_failed       = 06
            others            = 99.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member .Subramony A R .Subramony Ramakrishnan

      Thanks guys for all the help.

      ARS i checked the 'BP_JOB_READ'.

      Sy-subrc value is 0.

      Can something happen like I should get special authorizations from basis people?

      What I am suprised is the table "tbtccntxt" has zero entries.....does this mean no one ever executed anything in background...which is silly to think.....

      any other ideas....i know it's friday evening

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.