Actions45
- Inventory Gen Entrie Actions
- Inventory Gen Exit Actions
- Inventory Transfer Request Actions
- Product Tree Actions
- Production Order Actions
Overview
This node interacts with the SAP Business One Service Layer (version 8) to manage various production-related documents, including Inventory General Entries. Specifically, for the "Inventory Gen Entrie" resource and the "Reopen" operation, it sends a request to reopen a previously closed inventory general entry document in SAP B1.
This functionality is useful when a user needs to reverse the closing of an inventory document to make further modifications or corrections. For example, if an inventory adjustment was prematurely closed but requires additional updates, this node can reopen that document programmatically within an n8n workflow.
Properties
| Name | Meaning |
|---|---|
| DocEntry | The unique identifier (document entry number) of the inventory general entry document to be reopened. This is a required string input. |
Output
The node outputs JSON data representing the response from the SAP B1 Service Layer after attempting to reopen the specified inventory general entry document. The output JSON typically contains details about the success or failure of the operation, including any updated document status or error messages.
If the operation fails, the output JSON will contain an error field with the error message describing what went wrong.
No binary data output is produced by this node.
Dependencies
- Requires connection credentials to the SAP Business One Service Layer API, including:
- Base URL of the SAP B1 Service Layer.
- Username and password for authentication.
- Company database name.
- The node performs a login request to obtain session cookies before making subsequent API calls.
- The environment must allow HTTPS requests to the SAP B1 Service Layer endpoint.
- The node uses standard HTTP methods (POST for reopening) and expects JSON responses.
Troubleshooting
- Authentication errors: If login fails, verify the provided username, password, and company database are correct and that the SAP B1 Service Layer is accessible.
- Invalid DocEntry: Ensure the
DocEntryvalue corresponds to an existing inventory general entry document in SAP B1; otherwise, the API will return an error. - Permission issues: The user account used must have sufficient permissions to reopen documents.
- Network issues: Check connectivity to the SAP B1 Service Layer endpoint and ensure no firewall or proxy blocks the requests.
- Error messages: The node returns error messages from the SAP B1 API in the output JSON under the
errorkey. Review these messages to identify specific problems such as invalid operations or missing parameters.
Links and References
- SAP Business One Service Layer Documentation
- SAP B1 Service Layer API Reference (may require SAP support access)