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

Scheduled BACK GROUND Job not getting released in SM37, not sure if it's an Authorization issue or some other issue?

Hello Experts,

We have scheduled a Back Ground Job using below FM's

JOB_OPEN,

JOB_SUBMIT,

BP_JOB_READ,

BP_JOB_MODIFY,

JOB_CLOSE

now the issue is,Job is getting created and scheduled successfully, but its not getting released, can some one suggest whether its an Authorization Issue or some other issue in the code and what needs to be done here to resolve it?

Thanks in advance..!!

Regards,

Dilli.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Dec 01, 2015 at 03:07 PM

    Which parameters did you provide to JOB_CLOSE, did you catch every exception raised by FMs?

    Hint: Look at SAP provided samples in Background Processing / Programming with the Background Processing System (BC-CCM-BTC) - Scheduling a Job: Full-Control Method.

    Regards,

    Raymond

    Add a comment
    10|10000 characters needed characters exceeded

    • Did you execute SU53 or a trace of authorization thru ST01?

      Hint: Did you 'play' with some user name not equal to actual user or this is the first time this user schedule ajob, in this case check value returned in JOB_WAS_RELEASED, if not equal to 'X' current user isn't allowed and an admin should release the job. (Read documentation of the returned parameter)

      IF SY-SUBRC <> 0.

      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

      WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

      ELSEIF l_released = space.

      MESSAGE s157(oiucm).

      ENDIF

      For info

      We have caught all the exceptions from every FM

      A long time ago, an exception was triggerd, CANT_START_IMMEDIATE, exception which has been replaced by the export parameter...

      Regards,

      Raymond

  • Posted on Dec 02, 2015 at 12:37 PM

    Hello,

    why do you do BP_JOB_READ and BP_JOB_MODIFY before JOB_CLOSE?

    You should be able to control all job attributes using OPEN,SUBMIT,CLOSE

    Maybe whatever you do with MODIFY has something to do with it...

    Regards,

    Alex

    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.