Actions88
- Purchase Credit Note Actions
- Purchase Invoice Actions
- Purchase Delivery Note Actions
- Purchase Down Payment Actions
- Purchase Order Actions
- Purchase Quotation Actions
- Purchase Request Actions
- Purchase Return Actions
- Purchase Tax Invoice Actions
Overview
This node integrates with the SAP Service Layer to manage purchase-related documents in SAP Business One. Specifically, for the Purchase Quotation resource and the Create Cancellation operation, it allows users to create a cancellation document for an existing purchase quotation identified by its DocEntry. This is useful when a previously issued purchase quotation needs to be formally cancelled within SAP, ensuring accurate record-keeping and workflow management.
Practical scenarios include:
- Automatically cancelling purchase quotations that are no longer valid or were created in error.
- Integrating cancellation workflows into broader automation processes, such as supplier communication or inventory adjustments.
Properties
| Name | Meaning |
|---|---|
| DocEntry | The unique identifier (number) of the purchase quotation to cancel. This is required. |
Output
The node outputs the JSON response returned by the SAP Service Layer API after attempting to create the cancellation document. This typically includes details about the newly created cancellation document or an error message if the operation failed.
The output structure is:
{
"json": {
// Response data from SAP Service Layer about the cancellation creation
},
"pairedItem": {
"item": <index_of_input_item>
}
}
No binary data output is produced by this operation.
Dependencies
- Requires connection credentials to the SAP Service Layer API, including:
- Base URL of the SAP Service Layer endpoint.
- Username and password for authentication.
- Company database name.
- The node performs a login request to obtain session cookies used for subsequent API calls.
- The SAP Service Layer must support the
POST /PurchaseQuotations({DocEntry})/CreateCancellationDocumentendpoint.
Troubleshooting
- Authentication errors: If login fails, verify the SAP Service Layer credentials and company database name.
- Invalid DocEntry: Ensure the
DocEntrycorresponds to an existing purchase quotation; otherwise, the API will return an error. - Permission issues: The user account must have sufficient permissions to create cancellation documents.
- Network or SSL errors: The node disables strict SSL verification (
rejectUnauthorized: false), but network connectivity and firewall settings should allow access to the SAP Service Layer. - Error messages: Returned errors from the SAP API are included in the output JSON under the
errorkey. Review these messages for specific causes.
Links and References
- SAP Business One Service Layer Documentation
- SAP Service Layer API Reference (search for Purchase Quotations and CreateCancellationDocument)