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 manage inventory generation entries, specifically allowing creation of new inventory generation entry records in SAP. It authenticates via a login endpoint to obtain a session cookie and then sends the provided data as a JSON payload to create an inventory generation entry.

Typical use cases include automating inventory adjustments or stock movements within SAP by programmatically creating inventory generation entries. For example, a manufacturing workflow could automatically record raw material consumption or finished goods production by creating corresponding inventory entries without manual SAP UI interaction.

Properties

Name Meaning
Data The JSON object containing the details of the inventory generation entry to create. This should conform to the expected SAP Service Layer schema for inventory generation entries.

Output

The node outputs the JSON response from the SAP Service Layer API after creating the inventory generation entry. This typically includes the created record's details such as its unique identifier and any other fields returned by SAP upon successful creation.

No binary data output is produced by this operation.

Dependencies

  • Requires an active SAP Service Layer API endpoint.
  • Needs credentials including URL, company database name, username, password, and optionally language code.
  • 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: Indicates login to SAP Service Layer failed. Check credentials and network connectivity.
  • Operation not supported: If the operation parameter is incorrect or unsupported, ensure "create" is selected for Inventory Gen Entry resource.
  • API errors: Errors returned from SAP will be included in the output if "Continue On Fail" is enabled; otherwise, they will cause the node to error out. Validate the JSON data structure matches SAP expectations.
  • SSL issues: The node disables SSL verification which may cause security warnings; ensure your SAP endpoint uses trusted certificates or adjust accordingly.

Links and References

Discussion