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 B1 Service Layer 8 - Produccion API to manage Product Tree documents. Specifically, the "Cancel" operation allows users to cancel an existing Product Tree document identified by its unique DocEntry. This is useful in scenarios where a production plan or product structure needs to be invalidated or stopped after creation but before completion.
Practical examples include:
- Canceling a product tree when a production order is no longer needed.
- Reversing a mistakenly created product tree without deleting it.
- Managing production workflows by programmatically controlling document states.
Properties
| Name | Meaning |
|---|---|
| DocEntry | The unique identifier (string) of the Product Tree document to be canceled. Required. |
Output
The output is a JSON object representing the response from the SAP B1 Service Layer API after attempting to cancel the specified Product Tree document. It typically contains details about the success or failure of the cancellation request.
If the cancellation is successful, the JSON will reflect the updated state of the document or confirmation of the action. If there is an error, the 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 B1 Service Layer 8 instance.
- Needs credentials including base URL, username, password, and company database name for authentication.
- Uses session cookies obtained via a login POST request to authenticate subsequent API calls.
- The node depends on n8n's HTTP request helper to communicate with the SAP B1 API.
Troubleshooting
- Authentication errors: If login fails, check that the provided credentials (username, password, company DB) are correct and that the SAP B1 Service Layer endpoint is reachable.
- Invalid DocEntry: Errors may occur if the DocEntry does not exist or is already canceled/closed. Verify the DocEntry value before running the node.
- Network issues: Ensure the SAP B1 Service Layer URL is accessible from the n8n environment and that SSL certificates are valid or properly handled (the node disables strict SSL verification).
- API errors: The node returns error messages from the SAP API in the output JSON under the
errorkey. Review these messages to understand issues like permission problems or invalid operations.
Links and References
- SAP Business One Service Layer Documentation
- SAP B1 Production Module Overview
- n8n HTTP Request Node Documentation (for understanding underlying request mechanics)