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 interact with inventory generation entries in an SAP system. Specifically, the Inventory Gen Entry - Get operation retrieves a single inventory generation entry record by its ID. This is useful for scenarios where you need to fetch detailed information about a specific inventory entry, such as verifying stock movements, auditing inventory changes, or integrating SAP inventory data into other systems.

Practical examples include:

  • Fetching details of a particular inventory receipt or adjustment entry.
  • Retrieving related entities linked to the inventory entry (e.g., document lines) for comprehensive reporting.
  • Selecting only specific fields to optimize data transfer and processing.

Properties

Name Meaning
Select Comma-separated list of fields to retrieve from the inventory generation entry record. Leave empty to get all fields. Example: ItemCode, Quantity, WarehouseCode
Expand Comma-separated list of related entities to expand and include in the response. Example: DocumentLines, Attachments2

Output

The output is a JSON object representing the requested inventory generation entry record. It contains the fields of the inventory entry as returned by the SAP Service Layer API, optionally filtered by the "Select" property and including expanded related entities if specified.

Example structure (fields depend on SAP configuration and selected properties):

{
  "DocEntry": 12345,
  "DocDate": "2024-06-16",
  "JournalMemo": "Inventory adjustment",
  "DocumentLines": [
    {
      "ItemCode": "ITEM001",
      "Quantity": 10,
      "WarehouseCode": "WH001"
    }
  ],
  ...
}

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 performs a login request to obtain a session cookie before making further API calls.
  • Uses HTTPS requests with disabled SSL certificate verification (rejectUnauthorized: false), which may require attention in secure environments.

Troubleshooting

  • Failed to get session cookie: Indicates that login to the SAP Service Layer failed. Verify credentials and network connectivity.
  • Operation not supported: Occurs if an unsupported operation or resource is selected. Ensure "Get" operation is used with "Inventory Gen Entry" resource.
  • Empty or missing ID parameter: The "Get" operation requires a valid record ID. Make sure the ID is provided and correct.
  • API errors from SAP: Errors returned by the SAP Service Layer API will be included in the output if "Continue On Fail" is enabled; otherwise, they will cause the node to fail. Check error messages for details like invalid filters or permissions.
  • SSL issues: Since SSL verification is disabled, some environments might block the connection. Consider enabling proper certificates or adjusting security settings.

Links and References

Discussion