SAP Service Layer icon

SAP Service Layer

Interact with SAP Service Layer

Overview

This node integrates with the SAP Service Layer API to perform operations related to SAP business data. Specifically, for the "POST" resource and "Create Item" operation, it allows users to create a new item in the SAP system by providing essential details such as item code, name, and type.

This node is beneficial in scenarios where businesses want to automate the creation of inventory items, labor services, or travel entries directly from their workflow automation platform into SAP. For example, when a new product is added in an e-commerce system, this node can automatically create the corresponding item in SAP to keep inventory synchronized.

Properties

Name Meaning
Item Code The unique code identifier 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:

{
  "ItemCode": "string",
  "ItemName": "string",
  "ItemType": "string",
  // other SAP response fields...
}

Dependencies

  • Requires valid credentials to authenticate with the SAP Service Layer API, including base URL, username, password, and company database.
  • The node performs a login request to obtain session cookies before making the item creation request.
  • Network access to the SAP Service Layer endpoint must be configured and allowed.
  • No additional external dependencies beyond the SAP Service Layer API and proper credential configuration.

Troubleshooting

  • Authentication failures: If login fails, verify that the provided credentials (username, password, company DB) are correct and that the SAP Service Layer endpoint is reachable.
  • Permission errors: Ensure the authenticated user has permissions to create items in SAP.
  • Invalid input data: Missing or incorrect item code, name, or type will cause the API to reject the request. Double-check required fields.
  • Network issues: Connection timeouts or SSL errors may occur if the SAP server is unreachable or uses self-signed certificates. The node disables strict SSL verification (rejectUnauthorized: false), but network connectivity must still be ensured.
  • Error responses from SAP: The node returns the raw SAP API response in JSON; inspect this output for detailed error messages from SAP.

Links and References

Discussion