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) specifically for managing production-related documents. The "Update" operation on the "Production Order" resource allows users to modify existing production orders by sending partial updates in JSON format.
Common scenarios where this node is beneficial include:
- Automating updates to production orders based on changes in manufacturing schedules.
- Integrating SAP B1 production order updates into broader workflows, such as ERP automation or MES (Manufacturing Execution System) synchronization.
- Quickly patching specific fields of a production order without needing to resend the entire document.
For example, a user might update the status or quantities of a production order dynamically from an external system or after quality checks.
Properties
| Name | Meaning |
|---|---|
| DocEntry | The unique identifier (key) of the production order to update. Required for this operation. |
| JSON Body | The JSON content representing the fields and values to update in the production order. This is the request body sent as a PATCH to the SAP B1 Service Layer. |
Output
The node outputs an array of JSON objects corresponding to each input item processed. Each output item contains:
json: The response from the SAP B1 Service Layer API after attempting the update. This typically includes the updated production order data or confirmation of the update.- In case of errors, the
jsonfield contains anerrorproperty 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.
- Username and password for authentication.
- Company database name.
- The node performs a login request to obtain session cookies used for subsequent API calls.
- The environment must allow HTTPS requests to the SAP B1 Service Layer endpoint.
- No additional external libraries beyond standard n8n helpers are required.
Troubleshooting
- Authentication failures: If login fails, verify that the username, password, and company database are correct and that the SAP B1 Service Layer is accessible.
- Invalid DocEntry: Providing a non-existent or incorrect DocEntry will result in errors from the API indicating the document was not found.
- Malformed JSON Body: Ensure the JSON body is valid and conforms to the expected schema for production orders; otherwise, the API may reject the update.
- Network issues: Connection timeouts or SSL errors can occur if the SAP B1 server is unreachable or has invalid certificates. The node disables strict SSL verification (
rejectUnauthorized: false) but network connectivity must be stable. - API errors: Any other errors returned by the SAP B1 Service Layer will be included in the output's
errorfield for diagnosis.
Links and References
- SAP Business One Service Layer Documentation
- SAP B1 Production Orders API Reference (example link, check actual version)
- n8n HTTP Request Node Documentation (for understanding underlying request mechanics)