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, enabling users to manage various SAP resources programmatically. Specifically, for the Production Order - Update operation, it allows updating an existing production order record in SAP by specifying its ID and the data fields to modify.

Common scenarios where this node is beneficial include:

  • Automating updates to production orders based on external triggers or workflows.
  • Synchronizing production order statuses or details from other systems into SAP.
  • Adjusting production parameters dynamically without manual SAP GUI interaction.

For example, a manufacturing workflow could update the quantity or status of a production order automatically when certain conditions are met in an external system.

Properties

Name Meaning
ID The unique identifier of the production order record to update. This is required to specify which record will be modified.
Data A JSON object containing the fields and values to update on the production order. This must be a valid JSON structure representing the changes to apply.

Output

The node outputs the JSON response returned by the SAP Service Layer API after performing the update operation. This typically includes the updated production order data as confirmed by SAP.

The output structure is:

{
  "json": {
    // Updated production order fields as returned by SAP
  }
}

No binary data output is produced by this operation.

Dependencies

  • Requires connection credentials to the SAP Service Layer API, including:

    • Base URL of the SAP Service Layer endpoint.
    • Company database name.
    • Username and password for authentication.
    • Optional language setting.
  • The node authenticates by logging in to SAP Service Layer and managing session cookies internally.

  • Uses HTTPS requests with certificate verification disabled (rejectUnauthorized: false), which may require appropriate network security considerations.

Troubleshooting

  • Failed to get session cookie: Indicates login to SAP Service Layer failed. Verify credentials (URL, company DB, username, password) are correct and that the SAP Service Layer service is accessible.

  • Operation not supported: If an unsupported operation or resource is specified, the node throws an error. Ensure the resource is set to "productionOrder" and operation to "update".

  • Invalid JSON in Data property: The data input must be valid JSON. Malformed JSON will cause request failures.

  • Network or SSL errors: Since HTTPS agent disables strict SSL verification, network issues or firewall restrictions might block access. Confirm network connectivity to the SAP Service Layer endpoint.

  • API errors from SAP: Errors returned by SAP (e.g., invalid field names, permissions) will be included in the node output if "Continue On Fail" is enabled; otherwise, they will stop execution. Review SAP API documentation for error meanings.

Links and References

Discussion