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 for production-related resources, specifically here focusing on the Product Tree resource with an Update operation. It allows users to update existing product tree documents in SAP Business One by specifying the document key and providing the updated content as a JSON body.
Common scenarios include:
- Modifying the structure or details of a product tree after its initial creation.
- Adjusting component quantities or attributes within a product tree.
- Synchronizing changes from external systems into SAP B1 product trees.
Practical example:
- A manufacturing company wants to update the bill of materials (BOM) for a product due to a design change. Using this node, they provide the
DocEntryof the product tree and a JSON payload describing the new components or quantities, which updates the product tree directly in SAP B1.
Properties
| Name | Meaning |
|---|---|
| DocEntry | The unique identifier (document entry number) of the product tree document to update. |
| JSON Body | The JSON content representing the fields and values to update in the product tree. |
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 product tree data or confirmation of the update.- In case of errors, the
jsonfield contains anerrorproperty with the error message.
No binary data is produced by this node.
Dependencies
- Requires connection credentials to SAP B1 Service Layer API, including base URL, username, password, and 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.
- No additional external dependencies beyond standard HTTP requests.
Troubleshooting
- Authentication failures: If login fails, verify that the provided credentials (username, password, company DB) are correct and that the SAP B1 Service Layer is accessible.
- Invalid DocEntry: Errors may occur if the specified
DocEntrydoes not exist or is invalid. Confirm the document key is correct. - Malformed JSON Body: Ensure the JSON body is well-formed and matches the expected schema for updating a product tree in SAP B1.
- Network issues: Connection timeouts or SSL errors can happen if the SAP B1 server is unreachable or has certificate issues. Check network connectivity and SSL settings.
- API errors: The SAP B1 API might return errors for business logic violations (e.g., trying to update a locked document). Review the error messages returned in the output for guidance.
Links and References
- SAP Business One Service Layer Documentation
- SAP B1 Product Trees Overview
- n8n HTTP Request Node Documentation (for understanding underlying request mechanics)