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 Return resource and the Create Cancellation operation, it allows users to create a cancellation document for an existing purchase return identified by its DocEntry. This is useful when a previously recorded purchase return needs to be canceled or reversed in the system.
Typical use cases include:
- Automatically canceling a purchase return due to errors or changes in business decisions.
- Integrating SAP purchase return cancellations into automated workflows.
- Keeping SAP data synchronized with other systems by programmatically managing purchase returns.
Properties
| Name | Meaning |
|---|---|
| DocEntry | The unique identifier (document entry number) of the purchase return to cancel. 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 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 failures: If login fails, check that the provided username, password, and company database are correct and that the SAP Service Layer is reachable.
- Invalid DocEntry: Providing a non-existent or incorrect
DocEntrywill cause the API call to fail. Verify the document ID before running the node. - Permission issues: Ensure the SAP user has sufficient permissions to create cancellation documents for purchase returns.
- Network issues: The node disables SSL certificate verification (
rejectUnauthorized: false), but network connectivity problems or firewall restrictions can still block access. - Error messages: The node returns error messages from the SAP API in the output JSON under the
errorkey. Review these messages to diagnose issues.
Links and References
If you need further details on other operations or resources, feel free to ask!