Skip to Content

SAP Jobs: Control programatically

I need a quick suggestion.

I need to control the below parameters for a particular background job -

  • Job Name
  • Job Class
  • Status
  • Exec. Target
  • User
  • ABAP Program Name
  • Variant
  • Scheduled Start Date
  • Scheduled Start Time
  • Status

I know we can leverage of tables TBTCO, TBTCP.

But is there any FM (function module) or BAPI to handle the background job through our custom program???

Prompt reply will be highly appreciated and rewarded.

Thanks

Partha S Goswami

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 01, 2014 at 03:25 PM

    Hi Partha!

    Yes we have so many FM's ( BAPI_XBP*) to control the Job sechduling! do let me know what exactly you want to control through the custom program!

    Do you want to get the Job log information or schedule the job!


    pastedImage_0.png (22.2 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 02, 2014 at 12:34 AM

    Hi Partha

    Please see if the following links are helpful for your scenario

    Scheduling background job by triggering an event - ABAP Development - SCN Wiki

    Also this thread speaks about similar requirement

    Thanks

    Rishi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 02, 2014 at 04:30 AM

    Hi,

    You can use the following BAPIs for scheduling a job in background

    BAPI_XBP_JOB_OPEN - This BAPI solves the first step in scheduling a job in the R/3 background processing system. You can create the job with this method.

    Using additional BAPI calls BAPI_XBP_JOB_ADD_ABAP_STEP and BAPI_XBP_JOB_ADD_EXT_STEP, you can add job steps to the job.

    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.