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 production-related documents, specifically focusing on Production Orders among other resources. It allows users to perform various operations such as creating, updating, retrieving, and managing the lifecycle of production orders within SAP B1.
A common use case is automating the creation of production orders based on external triggers or data sources, streamlining manufacturing workflows by programmatically interacting with SAP B1. For example, a manufacturing company could use this node to automatically create production orders when new sales orders are confirmed, ensuring timely production scheduling.
Properties
| Name | Meaning |
|---|---|
| JSON Body | Content to send as the request body when creating or updating a production order. This should be a JSON object representing the production order details according to SAP B1's API schema. |
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 for the requested operation.- For a successful "create" operation, this will include the newly created production order details.
- For errors, it includes an
errorfield with the error message.
No binary data output is produced by this node.
Dependencies
- Requires connection to an SAP Business One Service Layer instance (version 8).
- Needs credentials including:
- Base URL of the SAP B1 Service Layer.
- Username and password for authentication.
- Company database name.
- The node authenticates by sending a login request to obtain session cookies used in subsequent requests.
- The node uses HTTP requests with cookie-based session management.
- TLS certificate verification is disabled (
rejectUnauthorized: false), which may require attention in secure environments.
Troubleshooting
- Authentication failures: If login fails, verify that the base URL, username, password, and company database are correct and that the SAP B1 Service Layer is accessible.
- Invalid JSON Body: When creating or updating, ensure the JSON Body property is correctly formatted and matches SAP B1's expected schema; otherwise, the API will return errors.
- Session issues: The node relies on session cookies obtained at login. Network issues or changes in SAP B1 configuration might cause session invalidation.
- SSL/TLS warnings: Since TLS verification is disabled, some environments may block requests or raise security warnings. Consider enabling proper certificates if possible.
- Error messages: Errors returned from SAP B1 API are passed through in the output under the
errorkey. Review these messages for specific API-level issues.
Links and References
- SAP Business One Service Layer API Documentation
- SAP B1 Production Orders API Reference
- n8n HTTP Request Node Documentation (for understanding underlying request mechanics)