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 various purchase-related documents in SAP Business One. Specifically, for the Purchase Down Payment resource and the Create Cancellation operation, it allows users to create a cancellation document for an existing purchase down payment identified by its DocEntry. This is useful when you need to reverse or cancel a previously recorded down payment in your SAP system.
Typical scenarios include:
- Automatically cancelling a purchase down payment when a related business process changes.
- Integrating SAP purchase down payment cancellations into broader workflows such as vendor management or financial reconciliation.
- Ensuring data consistency between SAP and other systems by programmatically managing purchase down payments.
Properties
| Name | Meaning |
|---|---|
| DocEntry | The unique identifier (document entry number) of the purchase down payment to cancel. |
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 error information if the operation failed.
The output structure is:
{
"json": {
// Response object from SAP Service Layer for the cancellation creation
},
"pairedItem": {
"item": <index_of_input_item>
}
}
No binary data is produced by this node.
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 be accessible from the n8n environment where this node runs.
Troubleshooting
- Authentication errors: If login fails, verify that the SAP Service Layer URL, username, password, and company database are correct and that the SAP server is reachable.
- Invalid DocEntry: If the specified
DocEntrydoes not exist or is incorrect, the API will return an error. Double-check the document number before running the node. - Permission issues: Ensure the user account has sufficient permissions to create cancellation documents for purchase down payments.
- Network issues: Connection timeouts or SSL errors may occur if the SAP Service Layer endpoint is unreachable or uses self-signed certificates. The node disables strict SSL verification (
rejectUnauthorized: false) but network connectivity must still be ensured. - API errors: Any error messages returned by the SAP Service Layer API will be included in the node output under the
errorfield. Review these messages for specific causes.
Links and References
- SAP Business One Service Layer Documentation
- SAP Service Layer Purchase Down Payments API Reference (example link, adjust based on actual version)