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 8 for production-related resources, specifically here focusing on the Product Tree resource. The "Save Draft to Document" operation allows users to convert a draft version of a product tree document into a finalized document within SAP Business One.
Typical use cases include:
- Automating the transition of product tree drafts into official documents as part of a manufacturing or production workflow.
- Integrating SAP B1 production data updates into broader automation pipelines.
- Ensuring that draft product trees created or modified in external systems are saved and committed properly in SAP B1.
For example, after preparing or modifying a product tree draft externally, this node can be used to save it as an official document in SAP B1 without manual intervention.
Properties
| Name | Meaning |
|---|---|
| DocEntry | The unique identifier (document entry number) of the product tree draft to be saved. |
Output
The node outputs JSON data representing the response from the SAP B1 Service Layer API after attempting to save the draft to a document. This typically includes details about the saved document such as its status, identifiers, and any metadata returned by SAP.
If an error occurs, 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 SAP B1 Service Layer API, including:
- Base URL of the SAP B1 Service Layer instance.
- 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 B1 Service Layer endpoint.
- Proper permissions in SAP B1 are required to perform the "Save Draft to Document" operation on Product Trees.
Troubleshooting
- Authentication errors: If login fails, verify the username, password, company database, and network connectivity to the SAP B1 Service Layer.
- Invalid DocEntry: Ensure the
DocEntryprovided corresponds to an existing draft product tree document; otherwise, the API will return an error. - Permission issues: Lack of sufficient rights in SAP B1 may cause authorization errors when saving drafts.
- Network or SSL issues: The node disables strict SSL verification (
rejectUnauthorized: false), but network problems or incorrect URLs can still cause failures. - Error messages: Returned errors from SAP B1 are passed through in the output's
errorfield. Review these messages to identify issues like invalid parameters or server-side problems.
Links and References
- SAP Business One Service Layer Documentation
- SAP B1 Production Module Overview
- n8n HTTP Request Node Documentation (for understanding underlying request mechanics)