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 Inventory Gen Entry resource with the Verify Exists operation, it checks whether an inventory generation entry exists based on a given journal memo.

This is useful in scenarios where you want to confirm the presence of specific inventory entries before proceeding with further processing or automation workflows. For example, you might want to verify if an inventory generation entry with a particular journal memo has already been recorded to avoid duplicates or to trigger conditional logic depending on its existence.

Properties

Name Meaning
Journal Memo The journal memo string used to check if an inventory generation entry exists. Required.

Output

The output JSON contains information about the existence of the record matching the provided journal memo:

  • exists (boolean): Indicates whether one or more inventory generation entries with the specified journal memo exist.
  • count (number): The number of matching entries found.

Example output JSON:

{
  "exists": true,
  "count": 2
}

No binary data is produced by this operation.

Dependencies

  • Requires connection to an SAP Service Layer API endpoint.
  • Requires credentials including URL, company database name, username, password, and optionally language.
  • Uses HTTPS requests with disabled SSL certificate verification (rejectUnauthorized: false).
  • Requires n8n credential configuration for the SAP Service Layer API authentication.

Troubleshooting

  • Failed to get session cookie: This error occurs if login to the SAP Service Layer fails. Check that the credentials (URL, company DB, username, password) are correct and that the SAP Service Layer is accessible.
  • Operation not supported: If an unsupported operation or resource is selected, the node will throw an error. Ensure the resource and operation names are valid.
  • Network or API errors: Axios errors from HTTP requests may occur due to network issues, invalid parameters, or server errors. Enable "Continue On Fail" to handle these gracefully in workflows.
  • Incorrect journal memo format: If the journal memo does not match any records, the output will indicate zero count and exists as false.

Links and References


This summary focuses on the Inventory Gen Entry resource's Verify Exists operation as requested.

Discussion