Actions45
- Inventory Gen Entrie Actions
- Inventory Gen Exit Actions
- Inventory Transfer Request Actions
- Product Tree Actions
- Production Order Actions
Overview
This node integrates with the SAP Business One Service Layer (version 8) to manage various production-related documents, including Inventory General Entries. Specifically, the "Close" operation for the "Inventory Gen Entrie" resource allows users to close an inventory general entry document in SAP B1. Closing a document typically means finalizing it so that no further changes can be made, which is useful in workflows where document lifecycle management and status control are important.
Practical scenarios include:
- Finalizing inventory adjustments after physical stock counts.
- Locking inventory entry documents to prevent accidental edits.
- Automating document state transitions in production or warehouse management processes.
Properties
| Name | Meaning |
|---|---|
| DocEntry | The unique identifier (document entry number) of the Inventory General Entry document to close. This is required to specify which document to operate on. |
Output
The node outputs a JSON object representing the response from the SAP B1 Service Layer API after attempting to close the specified Inventory General Entry document. The structure depends on the SAP API response but generally includes confirmation of the operation or error details.
If the operation succeeds, the output JSON will contain the updated document data or a success message. If it fails, the output JSON will contain an error field with the error message.
No binary data output is produced by this node.
Dependencies
- Requires connection to an SAP Business One Service Layer instance (version 8).
- Requires credentials including base URL, username, password, and company database name.
- The node performs login via the SAP Service Layer API to obtain session cookies before making requests.
- The node uses HTTP requests with cookie-based authentication to interact with SAP B1.
Troubleshooting
- Authentication errors: If login fails, verify the provided SAP credentials and company database name are correct.
- Document not found: If the specified
DocEntrydoes not exist, the API will return an error. Ensure the document ID is valid. - Permission issues: The user must have sufficient permissions in SAP B1 to close documents.
- Network/SSL issues: The node disables SSL certificate verification (
rejectUnauthorized: false), but network connectivity and firewall settings must allow access to the SAP Service Layer endpoint. - Error messages: Errors returned from SAP B1 are passed through in the output's
errorfield. Review these messages for specific SAP-side issues.
Links and References
- SAP Business One Service Layer Documentation
- SAP B1 Service Layer API Reference (example link; check your SAP version)
- n8n HTTP Request Node documentation for understanding request options: https://docs.n8n.io/nodes/n8n-nodes-base.httpRequest/
This summary focuses on the "Close" operation for the "Inventory Gen Entrie" resource as requested.