Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI for Scheduling a background job

Former Member
0 Likes
5,174

Hi all,

is there any bapi for scheduling a background job?

i mean can we do background job using bapi

If not how can we create a bapi for scheduling a background job.

Thanks & Regards,

Azhar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,071

Hi,

Use 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.

With the BAPI call BAPI_XBP_JOB_CLOSE, you can finish defining the job and transfer it to the background processing system with the status Scheduled without start date.

You have execute the job with the BAPI calls BAPI_XBP_JOB_START_IMMEDIATELY or BAPI_XBP_JOB_START_ASAP.

I hope it would help you.

Regards,

Venkatram

5 REPLIES 5
Read only

Former Member
0 Likes
3,071

Hi

try this BAPI

BAPI_XBP_JOB_ADD_ABAP_STEP

regards

Shiva

Read only

Former Member
0 Likes
3,072

Hi,

Use 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.

With the BAPI call BAPI_XBP_JOB_CLOSE, you can finish defining the job and transfer it to the background processing system with the status Scheduled without start date.

You have execute the job with the BAPI calls BAPI_XBP_JOB_START_IMMEDIATELY or BAPI_XBP_JOB_START_ASAP.

I hope it would help you.

Regards,

Venkatram

Read only

arvind_aj
Product and Topic Expert
Product and Topic Expert
0 Likes
3,071

Hi Venkataram,

I am trying to use the FM BAPI_XBP_JOB_OPEN. Unfortunatley I am getting the error 'not logged on in interface XBP (function BAI_XBP_JOB_OPEN)'.

Let me know how to use this FM,

Thanks,

Arvind...

Read only

arvind_aj
Product and Topic Expert
Product and Topic Expert
0 Likes
3,071

Hi Venkataram,

I am trying to use the FM BAPI_XBP_JOB_OPEN. Unfortunatley I am getting the error 'not logged on in interface XBP (function BAI_XBP_JOB_OPEN)'.

Let me know how to use this FM,

Thanks,

Arvind...

Read only

3,071

The XBP BAPIs can be used only by first declaring the XBP usage via the "eXternal Management Interface Framework" (BAPI_XMI_LOGON, BAPI_XMI_LOGOFF). Search the forum for more details.