Skip to Content
0
Former Member
Apr 11, 2008 at 07:30 PM

job_close

181 Views

Hi,

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'
AUTHORITY-CHECK OBJECT 'S_RZL_ADM'
            ID 'ACTVT' FIELD '01'.
   IF sy-subrc <> 0.
     ret = err_no_authority.
     RAISE job_close_failed.
   ENDIF.
 ENDIF.
ENDIF.
ENDIF.

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

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

is there anything that I am missing?