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 B1 Service Layer (version 8) to manage various inventory and production-related documents. Specifically, for the "Inventory Gen Entrie" resource with the "Cancel" operation, it allows users to cancel an existing inventory general entry document in SAP Business One.
Typical use cases include automating inventory adjustments or corrections by programmatically cancelling previously created inventory general entries. For example, if an inventory entry was created in error or needs to be voided due to changes in stock management, this node can perform the cancellation via the SAP Service Layer API.
Properties
| Name | Meaning |
|---|---|
| DocEntry | The unique identifier (document entry number) of the Inventory General Entry document to cancel. This is a required string input. |
Output
The node outputs JSON data representing the response from the SAP Service Layer after attempting to cancel the specified inventory general entry document. The output JSON typically contains details about the success or failure of the cancellation request.
If the cancellation is successful, the JSON will contain confirmation details from SAP. If there is an error, the JSON will include an error field with the error message describing what went wrong.
No binary data output is produced by this node.
Dependencies
- Requires connection to an SAP Business One Service Layer endpoint.
- Requires credentials including:
- Base URL of the SAP Service Layer.
- Username and password for authentication.
- Company database name.
- The node performs a login request to obtain session cookies before making further API calls.
- The environment must allow HTTPS requests to the SAP Service Layer with certificate verification disabled (
rejectUnauthorized: false).
Troubleshooting
- Authentication errors: If login fails, verify that the base URL, username, password, and company database are correct and that the SAP Service Layer is accessible.
- Invalid DocEntry: If the provided
DocEntrydoes not exist or is invalid, the SAP API will return an error. Ensure the document number is correct. - Permission issues: The user account used must have sufficient permissions to cancel inventory general entry documents.
- Network issues: Connection problems to the SAP Service Layer endpoint will cause request failures.
- Error messages: Errors returned from SAP are included in the output JSON under the
errorkey. Review these messages to identify issues such as invalid operations or missing parameters.
Links and References
- SAP Business One Service Layer Documentation
- SAP B1 Inventory General Entries
- n8n HTTP Request Node Documentation (for understanding underlying request mechanics)