Delete Check Results
After performing a check request you will be able to delete the check results of a business object. Therefore, you can use the function below:
| API | Function |
|---|---|
| REST | POST delete |
| SOAP | ComplianceBF (WSDL) | delete (JavaDoc) |
Similiar to Get Check Results, the function requires the system id of the pre-system (clientSystemid), the BSM client (clientIdentCode), an username and the ID of the business object you want to delete:
{
"clientSystemId": "BRUYES",
"clientIdentCode": "SAP_JNH_080",
"userName": "API_TEST",
"resultLanguageIsoCodes": [
"en"
],
"boIdClientSystem": "SAP_JNH_080_SALES_ORDER_1"
}<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:de.aeb.xnsg.bsm.compliance.bf.checkrequest">
<soapenv:Header/>
<soapenv:Body>
<urn:getCheckResult>
<request>
<clientSystemId>BRUYES</clientSystemId>
<clientIdentCode>SAP_JNH_080</clientIdentCode>
<userName>API_TEST</userName>
<resultLanguageIsoCodes>de</resultLanguageIsoCodes>
<boIdClientSystem>SAP_JNH_080_SALES_ORDER_1</boIdClientSystem>
</request>
</urn:getCheckResult>
</soapenv:Body>
</soapenv:Envelope>You can validate, if the request could be executed successfully by checking if any error occured.
{
"hasErrors": false,
"hasOnlyRetryableErrors": false,
"hasWarnings": false,
"messages": []
}<?xml version="1.0" encoding="UTF-8"?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:deleteResponse xmlns:ns2="urn:de.aeb.xnsg.bsm.compliance.bf.checkrequest">
<result>
<hasErrors>false</hasErrors>
<hasOnlyRetryableErrors>false</hasOnlyRetryableErrors>
<hasWarnings>false</hasWarnings>
</result>
</ns2:deleteResponse>
</S:Body>
</S:Envelope>Further details, like error messages, warnings and other informations will also be provided in the field messages:
{
"hasErrors": false,
"hasOnlyRetryableErrors": false,
"hasWarnings": false,
"messages": [
{
"messageType": "INFO",
"messageIdentCode": "NO_TRANSACTION_FOUND",
"messageTexts": [
{
"languageISOCode": "en",
"text": "No check transaction of client \"ATC\" with transaction number (transactionIdHost) \"SAP_JNH_080_SALES_ORDER_32$DEFAULT\" created by partner system \"PGTEST1BSM_JER\" was found."
}
],
"indentationLevel": 0
}
]
}<?xml version="1.0" encoding="UTF-8"?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:deleteResponse xmlns:ns2="urn:de.aeb.xnsg.bsm.compliance.bf.checkrequest">
<result>
<hasErrors>false</hasErrors>
<hasOnlyRetryableErrors>false</hasOnlyRetryableErrors>
<hasWarnings>false</hasWarnings>
<messages>
<messageType>INFO</messageType>
<messageIdentCode>NO_TRANSACTION_FOUND</messageIdentCode>
<messageTexts>
<languageISOCode>en</languageISOCode>
<text>No check transaction of client "ATC" with transaction number (transactionIdHost) "SAP_JNH_080_SALES_ORDER_32$DEFAULT" created by partner system "PGTEST1BSM_JER" was found.</text>
</messageTexts>
<indentationLevel>0</indentationLevel>
</messages>
</result>
</ns2:deleteResponse>
</S:Body>
</S:Envelope>Updated 10 days ago
What’s Next
In the next section, you'll learn how to handle changes of the check results.