PlantScanner - SAP Service Layer icon

PlantScanner - SAP Service Layer

Interact with SAP Service Layer API

Actions26

Overview

This node integrates with the SAP Service Layer API to perform various operations on SAP resources. Specifically, for the Warehouse resource and the Update operation, it updates an existing warehouse record in the SAP system by sending a PATCH request with the provided data.

Common scenarios where this node is beneficial include:

  • Automating updates to warehouse information such as location details or capacity.
  • Synchronizing warehouse data between SAP and other systems.
  • Triggering updates based on external events or workflows.

For example, if a warehouse's address or operational status changes, this node can update the corresponding record in SAP automatically without manual intervention.

Properties

Name Meaning
ID The unique identifier of the warehouse record to update. This is required to specify which warehouse entry will be modified.
Data A JSON object containing the fields and values to update in the warehouse record.

Output

The node outputs the JSON response from the SAP Service Layer API after performing the update. This typically includes the updated warehouse record data reflecting the changes made.

The output structure is:

{
  "json": {
    // Updated warehouse record fields and values returned by SAP
  }
}

No binary data output is produced by this operation.

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 attention in secure environments.

Troubleshooting

  • Failed to get session cookie: Indicates 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 "warehouse" resource and "update" operation are selected.
  • Invalid ID or data format: Ensure the ID corresponds to an existing warehouse record and the data JSON is correctly structured according to SAP API requirements.
  • SSL issues: Since SSL verification is disabled, some environments might block the connection. Consider enabling proper certificates or adjusting security settings.
  • API errors: If SAP returns errors (e.g., validation errors), they will appear in the node output under an error message. Review the SAP API documentation for error codes and meanings.

Links and References

Discussion