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 Generation Exits. Specifically, the Cancel operation for the Inventory Gen Exit resource allows users to cancel an existing inventory generation exit document in SAP B1.
Typical use cases include:
- Automatically cancelling inventory exit documents when a related process is reversed or invalidated.
- Integrating cancellation workflows into broader automation pipelines to maintain data consistency.
- Managing inventory adjustments programmatically without manual intervention in SAP B1.
For example, if an inventory exit was created by mistake or needs to be voided due to changes in production plans, this node can cancel that document by specifying its unique identifier (DocEntry).
Properties
| Name | Meaning |
|---|---|
| DocEntry | The unique identifier of the Inventory Gen Exit document to cancel. This is a required string input. |
Output
The node outputs the JSON response returned by the SAP B1 Service Layer after attempting the cancellation. This typically includes confirmation details about the cancelled document or error information if the cancellation failed.
The output structure is:
{
// Response object from SAP B1 Service Layer API for the cancel action
}
If an error occurs during the request, the output JSON will contain an error field with the error message.
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 endpoint.
- 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.
- Proper permissions in SAP B1 are necessary to perform cancellation operations on inventory documents.
Troubleshooting
- Authentication errors: If login fails, verify the username, password, and company database values. Also ensure the SAP B1 Service Layer endpoint is reachable.
- Invalid DocEntry: If the specified
DocEntrydoes not exist or is already cancelled/closed, the API may return an error. Confirm the document ID is correct and the document status allows cancellation. - Permission denied: Ensure the user account has rights to cancel inventory generation exit documents.
- Network issues: Check connectivity and SSL certificate trust if requests fail due to network errors.
- Error messages: The node returns error messages from the SAP B1 API in the output JSON under the
errorkey. Use these messages to diagnose issues.
Links and References
- SAP Business One Service Layer Documentation
- SAP B1 Inventory Gen Exit API Reference
- n8n HTTP Request Node Documentation (for understanding underlying request mechanics)