Actions26
- Item Actions
- Production Order Actions
- Warehouse Actions
- Product Tree Actions
- Inventory Gen Entry Actions
- Inventory Gen Exit Actions
- SQL Query Actions
- Custom API Call Actions
Overview
This node integrates with the SAP Service Layer API to perform various operations on SAP resources, including Product Trees. Specifically, the Update operation for the Product Tree resource allows users to modify an existing product tree record by specifying its ID and the data fields to update.
Common scenarios where this node is beneficial include:
- Automating updates to production-related data in SAP, such as modifying components or quantities in a product tree.
- Synchronizing external systems or databases with SAP product structure changes.
- Streamlining manufacturing workflows by programmatically adjusting product trees without manual SAP GUI interaction.
For example, a user can update a product tree's components or attributes by providing the product tree ID and the updated JSON data representing the changes.
Properties
| Name | Meaning |
|---|---|
| ID | The unique identifier of the product tree record to update. This is required to specify which product tree to modify. |
| Data | A JSON object containing the fields and values to update in the product tree record. |
Output
The node outputs an array of JSON objects, each representing the response from the SAP Service Layer API for the update request. For the Update operation on Product Tree, the output JSON contains the updated product tree record as returned by SAP.
If multiple input items are processed, the output will be an array with one element per input item, each containing the corresponding update response.
No binary data output is produced by this node.
Dependencies
- Requires an active connection to the SAP Service Layer API.
- Needs credentials including the SAP Service Layer URL, company database name, username, password, and optionally language.
- Uses HTTPS requests with session cookie authentication obtained via a login call.
- The node disables SSL certificate verification (
rejectUnauthorized: false), which may require appropriate network security considerations.
Troubleshooting
- Failed to get session cookie: Indicates that login to SAP Service Layer failed. Verify credentials and network connectivity.
- Operation not supported: Occurs if an unsupported operation or resource is specified. Confirm that "update" operation is valid for "productTree" resource.
- API errors from SAP: Errors returned by SAP (e.g., invalid ID, malformed data) will be included in the output if "Continue On Fail" is enabled; otherwise, they will cause the node to error out. Check the error message details for resolution.
- SSL issues: Since SSL verification is disabled, ensure your environment trusts the SAP server or adjust settings accordingly.