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
- Use the API_BUSINESS_SITUATION_SRV to query situation instances via the entity A_SitnInstance.
- Execute the GET request.
- 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
SAP Knowledge Base Article - Public