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 Exit resource with the Get operation, it retrieves a single inventory generation exit record by its ID from the SAP system. This is useful in scenarios where you need to fetch detailed information about a specific inventory exit transaction, such as for auditing, reporting, or further processing within an automation workflow.

Practical examples include:

  • Retrieving details of a particular inventory exit to verify quantities and items removed from stock.
  • Fetching related entities linked to the inventory exit (e.g., document lines) to analyze transaction components.
  • Selecting only specific fields to optimize data transfer and processing.

Properties

Name Meaning
Select Comma-separated list of fields to retrieve from the inventory gen exit 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 retrieved inventory generation exit record. The structure corresponds directly to the SAP Service Layer's InventoryGenExits entity, including any selected fields and expanded related entities.

Example output JSON structure (simplified):

{
  "DocEntry": 123,
  "DocDate": "2024-06-16",
  "JournalMemo": "Exit for production",
  "DocumentLines": [
    {
      "ItemCode": "ITEM001",
      "Quantity": 10,
      "WarehouseCode": "WH001"
    }
  ],
  ...
}

If the user specifies Select, only those fields will be included. If Expand is used, related nested entities will be included under their respective keys.

No binary data output is produced by this operation.

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 disabled SSL certificate verification (rejectUnauthorized: false), which may require network security considerations.
  • The node manages session authentication by logging in and storing a session cookie for subsequent requests.

Troubleshooting

  • Failed to get session cookie: Indicates login to SAP Service Layer failed. Verify credentials and network connectivity.
  • Operation not supported: Occurs if an unsupported operation or resource is specified. Confirm that "Inventory Gen Exit" resource and "Get" operation are selected.
  • Empty or invalid ID parameter: The Get operation requires a valid record ID. Ensure the ID field is correctly set.
  • Network or SSL errors: Since SSL verification is disabled, some environments might block connections. Check firewall and proxy settings.
  • API errors returned by SAP: These will be surfaced in the node output under an error key if "Continue On Fail" is enabled. Review the error message for details like missing permissions or invalid parameters.

Links and References

Discussion