SAP Knowledge Base Article - Public

3721875 - APIs for Standard Framework for Situation Handling to fetch the data from S/4 HANA Public Cloud System

Symptom

Situation Handling API (API_BUSINESS_SITUATION_SRV) returns an empty result set when querying situation instances via the entity A_SitnInstance.

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Use the API_BUSINESS_SITUATION_SRV to query situation instances via the entity A_SitnInstance.
  2. Execute the GET request.
  3. Observe that the API returns an empty result set despite instances existing in the system.

Cause

  • This is as per the Standard functionality, The API_BUSINESS_SITUATION_SRV only supports querying situation instances of the Standard Framework.
  • Instances generated by the Situation Handling Extended Framework are stored in a different table and are not accessible via the API_BUSINESS_SITUATION_SRV.

Resolution

This API (API_BUSINESS_SITUATION_SRV) is there to fetch the Situation Instances created by the Standard Framework, this API cannot fetch the details for the Instances which are created

See Also

Refer to: API_BUSINESS_SITUATION_SRV Overview.

Keywords

situation handling, API_BUSINESS_SITUATION_SRV, extended framework, empty result, A_SitnInstance, Standard Framework, sit_inst, sit2_inst, query instances, SAP S/4HANA , KBA , CA-SIT-ENG , Situation Handling: Situation Engine , Problem

Product

SAP S/4HANA Cloud Public Edition all versions