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 Product Tree resource with the Get operation, it retrieves a single production tree record by its ID from the SAP system.

Typical use cases include:

  • Fetching detailed information about a specific product tree (bill of materials) in a manufacturing or production environment.
  • Integrating SAP production data into workflows for reporting, monitoring, or further automation.
  • Expanding related entities linked to the product tree to get comprehensive hierarchical data in one request.

For example, a user might want to retrieve a product tree by its unique ID and expand related components or subassemblies to analyze the full structure of a manufactured item.

Properties

Name Meaning
ID The unique identifier of the product tree record to retrieve. Required for the Get operation.
Select Optional comma-separated list of fields to include in the response. If empty, all fields are returned. Example: ItemCode, ItemName.
Expand Optional comma-separated list of related entities to expand in the response. Example: DocumentLines, Attachments2.

Output

The output is a JSON object representing the requested product tree record as returned by the SAP Service Layer API. It includes the fields specified in the Select property or all fields if none are specified.

If Expand is used, the output will also include nested objects or arrays corresponding to the related entities expanded.

No binary data output is produced by this operation.

Example output snippet (simplified):

{
  "ProductTreeID": "12345",
  "ProductCode": "PROD001",
  "Description": "Main Product Tree",
  "Components": [
    {
      "ComponentCode": "COMP001",
      "Quantity": 10
    }
  ]
}

Dependencies

  • Requires an active connection to an SAP Service Layer API endpoint.
  • Needs credentials including 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 be relevant depending on your SAP server setup.

Troubleshooting

  • Failed to get session cookie: Indicates login to SAP Service Layer failed. Check credentials and network connectivity.
  • Operation not supported: Occurs if an unsupported operation or resource is selected. Verify that "Product Tree" resource and "Get" operation are chosen.
  • Empty or invalid ID: The ID parameter is required for the Get operation; ensure it is provided and correctly formatted.
  • Network or SSL errors: Since SSL verification is disabled, issues may arise if the SAP server uses self-signed certificates or has network restrictions.
  • API errors: Errors returned by SAP (e.g., record not found) will be included in the output if "Continue On Fail" is enabled; otherwise, they will stop execution.

Links and References

Discussion