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, including Purchase Delivery Notes. Specifically, the "Close" operation for the Purchase Delivery Note resource allows users to close a purchase delivery note by its unique identifier (DocEntry). Closing a document typically marks it as finalized or completed in SAP, preventing further modifications.
Common scenarios where this node is beneficial include automating the workflow of purchase document management within SAP, such as programmatically closing delivery notes after goods receipt confirmation or batch processing multiple delivery notes as part of an ERP integration.
Practical example: After receiving goods from a supplier, you can use this node to close the corresponding Purchase Delivery Note automatically, ensuring that the document status in SAP reflects the current state without manual intervention.
Properties
| Name | Meaning |
|---|---|
| DocEntry | The unique numeric identifier of the Purchase Delivery Note to be closed (required). |
Output
The node outputs the JSON response returned by the SAP Service Layer API after attempting to close the specified Purchase Delivery Note. This JSON typically contains details about the updated document status or any messages from the SAP system confirming the closure.
If an error occurs during the operation, the output JSON will contain an error field with the error message describing what went wrong.
The node does not output binary data.
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.
- No additional external dependencies beyond the SAP Service Layer API and valid credentials.
Troubleshooting
- Authentication errors: If login fails, verify that the provided username, password, and company database are correct and that the SAP Service Layer endpoint is reachable.
- Invalid DocEntry: Ensure the
DocEntrynumber corresponds to an existing Purchase Delivery Note in SAP; otherwise, the API may return a "not found" or similar error. - Permission issues: The user account must have sufficient permissions to close Purchase Delivery Notes.
- Network/SSL issues: The node disables SSL certificate verification (
rejectUnauthorized: false), but network connectivity problems or firewall restrictions could still cause failures. - Error messages: Errors returned from SAP are captured and output in the
errorfield. Review these messages to identify issues such as invalid operations or missing parameters.
Links and References
- SAP Business One Service Layer Documentation
- OData Protocol Overview
- n8n HTTP Request Node Documentation (for understanding underlying HTTP requests)