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 entities, including Purchase Returns. Specifically, for the Purchase Return - Delete operation, it allows users to delete a purchase return document identified by its unique DocEntry number.
Typical use cases include automating the removal of erroneous or obsolete purchase return records from SAP Business One via workflows in n8n. For example, if a purchase return was created by mistake or needs to be removed due to changes in business processes, this node can programmatically delete that record without manual intervention.
Properties
| Name | Meaning |
|---|---|
| DocEntry | The unique identifier (number) of the purchase return document to delete. This is required. |
Output
The node outputs a JSON object representing the response from the SAP Service Layer API after attempting to delete the specified purchase return. If successful, the output typically contains confirmation details or an empty object indicating deletion success.
If an error occurs, the output JSON will contain an error field with the error message describing what went wrong.
The output is structured as an array of items, each with a json property holding the response and a pairedItem property linking back to the input item index.
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 be accessible from the environment where n8n runs.
- No additional external dependencies beyond standard HTTP requests.
Troubleshooting
- Authentication errors: If login fails, verify the SAP Service Layer credentials (username, password, company DB) are correct and that the SAP server is reachable.
- Invalid DocEntry: Deletion will fail if the provided
DocEntrydoes not exist or is incorrect. Double-check the document number. - Permission issues: Ensure the user account has sufficient permissions to delete purchase returns in SAP.
- Network/SSL issues: The node disables SSL verification (
rejectUnauthorized: false) which may cause warnings; ensure network connectivity and consider security implications. - Error messages: Errors returned from SAP are captured and output in the
errorfield. Use these messages to diagnose issues such as invalid operations or missing documents.
Links and References
- SAP Business One Service Layer Documentation
- SAP Service Layer API Reference
- OData Query Options (used for select and filter parameters in other operations)