SAP Service Layer icon

SAP Service Layer

Interact with SAP Service Layer

Overview

This node integrates with the SAP Service Layer API to create new items in an SAP system. Specifically, for the "POST" resource and "Create Item" operation, it allows users to add a new item by specifying its code, name, and type. This is useful in scenarios where businesses want to automate inventory management or service item creation directly from their workflow automation platform.

Practical examples include:

  • Automatically adding new products to SAP when they are added to an e-commerce platform.
  • Creating labor or travel service entries in SAP based on project management tools.
  • Synchronizing item catalogs between external systems and SAP without manual data entry.

Properties

Name Meaning
Item Code The unique identifier/code for the item to be created in SAP.
Item Name The descriptive name of the item to be created.
Item Type The category/type of the item. Options:
- Items (Inventoriable)
- Labor (Service)
- Travel

Output

The node outputs a JSON object representing the response from the SAP Service Layer after attempting to create the item. This typically includes details about the newly created item or error information if the creation failed.

No binary data output is produced by this node.

Example output structure (simplified):

{
  "ItemCode": "string",
  "ItemName": "string",
  "ItemType": "string",
  "DocEntry": number,
  "Error": {
    "Code": number,
    "Message": "string"
  }
}

Dependencies

  • Requires access to an SAP Service Layer instance.
  • Needs credentials including base URL, username, password, and company database name.
  • The node performs a login request to obtain session cookies before making further API calls.
  • The environment must allow HTTPS requests to the SAP Service Layer endpoint.
  • No additional external libraries beyond standard HTTP request helpers are required.

Troubleshooting

  • Authentication failures: If login credentials are incorrect or the SAP Service Layer is unreachable, the node will fail at the login step. Verify credentials and network connectivity.
  • Permission issues: Ensure the user has rights to create items in SAP.
  • Invalid input errors: Providing invalid or missing item codes, names, or types will cause the API to reject the request. Make sure all required fields are correctly filled.
  • Session cookie handling: The node extracts session cookies from the login response; if SAP changes cookie formats, this may break. Check SAP Service Layer documentation for updates.
  • SSL certificate errors: The node disables strict SSL verification (rejectUnauthorized: false), but in some environments, this might cause warnings or failures. Adjust accordingly.

Links and References

Discussion