SAP Service Layer (Purchases) icon

SAP Service Layer (Purchases)

Todas las entidades de Purchases de SAP Service Layer

Overview

This node integrates with the SAP Service Layer to manage various purchase-related entities, specifically here focusing on Purchase Invoices. It allows users to perform operations such as creating, updating, retrieving, deleting, and managing the lifecycle of purchase invoices directly from n8n workflows.

A common use case is automating the creation of purchase invoices in SAP when new purchase data arrives from other systems or forms. For example, after receiving a purchase order approval, this node can create the corresponding purchase invoice in SAP automatically by sending the required JSON payload.

Properties

Name Meaning
JSON Body The JSON content sent as the request body when creating or updating a purchase invoice.
  • The JSON Body property expects a JSON object representing the purchase invoice details according to SAP's API schema.
  • This property is shown only for operations that send data (Create and Update).

Output

The node outputs an array of JSON objects, each corresponding to one input item processed:

  • On success, the output JSON contains the response from the SAP Service Layer API, which includes details of the created purchase invoice or the result of the requested operation.
  • On failure, the output JSON contains an error field with the error message describing what went wrong.

No binary data output is produced by this node.

Dependencies

  • Requires connection credentials to the SAP Service Layer API, including:
    • Base URL of the SAP Service Layer endpoint.
    • Username and password for authentication.
    • Company database identifier.
  • The node authenticates by sending a login request to obtain session cookies used in subsequent requests.
  • The node uses HTTP methods (GET, POST, PATCH, DELETE) to interact with the SAP API endpoints.

Troubleshooting

  • Authentication errors: If login fails, verify the base URL, username, password, and company database values are correct and that the SAP Service Layer is accessible.
  • Invalid JSON Body: Ensure the JSON provided in the JSON Body property matches the expected schema for purchase invoices in SAP. Malformed or incomplete JSON will cause API errors.
  • Operation not allowed: Some operations require a valid DocEntry number; ensure it is provided when needed.
  • Network issues: Check connectivity to the SAP Service Layer endpoint and that SSL certificates are valid or properly handled (the node disables strict SSL verification).
  • Error messages: The node returns error messages from the SAP API in the output under the error key. Use these messages to diagnose issues such as missing fields, invalid data, or permission problems.

Links and References


This summary focuses on the "Purchase Invoice" resource and the "Create" operation, describing how to provide the JSON body and interpret the output. The node supports many other purchase-related resources and operations similarly.

Discussion