Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Modifying or Executing SAP jobs using .NET Connector

There are few scheduled jobs in SAP system and I want to execute or modify the timings of execution of these jobs via .NET Connector.

I know how to connect to SAP system using .NET

Is it possible to call SAP Jobs using some FM?

RfcDestination dest = RfcDestinationManager.GetDestination(rfcConfigParams);
RfcRepository repository = dest.Repository;
IRfcFunction rfcFunc = repository.CreateFunction("TH_GET_USER_LIST");
fcFunc.Invoke(des t);


1 Answer
SAP Expert

In SAP system, you have an external BAPI that can be called to manage SAP jobs, check this FM: "BAPI_XBP_JOB".

You can use BAPI_XBP_JOB* function modules to create/schedule a job to run the query. For more details, you can refer below link −

BAPI_XBP_JOB

There are various FM’s that can be used to start or stop a job immediately:

BAPI_XBP_JOB_START_IMMEDIATELY
BAPI_XBP_JOB_START_ASAP

And many more.

Advertisements

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.