cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the log status when running Application Jobs via API

MegumiInoue
Explorer
186

Hi Exparts,

I am currently testing running jobs via API on S/4HANA Cloud Public Edition.
I can run the jobs successfully, but I don't know how to get the results.

I tried several APIs that are supposed to return results, but the return value does not change whether the job log status is success or error.
Is there any way to get information related to the job log?

Ideally, I would like to obtain the Log Status that is displayed as shown below.

MegumiInoue_0-1730092180213.png

The APIs I tried are as follows:

Schedule an Application Job
https://help.sap.com/docs/SAP_S4HANA_CLOUD/0f69f8fb28ac4bf48d2b57b9637e81fa/719bbb943fc84cd884fa889d...
⇒Although JobStatus and ReturnCode appear to indicate the result, the values ​​do not change depending on the log status.

Read Application Job Status
https://help.sap.com/docs/SAP_S4HANA_CLOUD/0f69f8fb28ac4bf48d2b57b9637e81fa/66cfe7da5a28422b9d05adc4...
⇒Although JobStatus and ReturnCode appear to indicate the result, the values ​​do not change depending on the log status.

Read Detailed Job and Step Information
https://help.sap.com/docs/SAP_S4HANA_CLOUD/0f69f8fb28ac4bf48d2b57b9637e81fa/01ff6d4fa9c84f3788e5c057...
⇒It appears that JobStatus, JobAppRC, StepStatus and StepAppRC are related to the result, but the values ​​do not change depending on the log status.

Best Regards,
Megumi Inoue

View Entire Topic
MegumiInoue
Explorer

I solved this issue myself.

We can get more detailed data by using the following API.

 

Read an Application Job Without Parameters

https://help.sap.com/docs/SAP_S4HANA_CLOUD/0f69f8fb28ac4bf48d2b57b9637e81fa/69eac648a7e34e4bae848a87...