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, including Purchase Requests. Specifically, for the Purchase Request - Cancel operation, it sends a cancellation request for a given purchase request identified by its unique document entry number (DocEntry). This is useful in scenarios where a purchase request needs to be invalidated or withdrawn after creation but before further processing.

Practical examples include:

  • Automatically canceling a purchase request if certain conditions are met in an automated workflow.
  • Integrating SAP purchase request cancellations into broader business process automations.
  • Managing purchase requests programmatically without manual intervention in the SAP interface.

Properties

Name Meaning
DocEntry The unique identifier (document entry number) of the purchase request to be cancelled.

Output

The node outputs a JSON object representing the response from the SAP Service Layer API after attempting to cancel the specified purchase request. The structure typically includes status information and any relevant data returned by the SAP system confirming the cancellation.

If an error occurs during the request, the output JSON will contain an error field with the error message describing what went wrong.

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.
    • Username and password for authentication.
    • Company database identifier.
  • The node performs a login POST request to obtain session cookies used for subsequent API calls.
  • The SAP Service Layer must be accessible from the n8n environment where this node runs.

Troubleshooting

  • Authentication errors: If login fails, verify that the SAP Service Layer credentials (username, password, company DB) are correct and that the SAP server is reachable.
  • Invalid DocEntry: If the provided DocEntry does not exist or is incorrect, the SAP API will return an error. Double-check the document entry number.
  • Permission issues: Ensure the user account has sufficient permissions to cancel purchase requests.
  • Network issues: Connection timeouts or SSL errors may occur if the SAP Service Layer endpoint is unreachable or uses self-signed certificates. The node disables strict SSL verification (rejectUnauthorized: false) but network connectivity must still be ensured.
  • Error messages: The node returns error messages from the SAP API in the output JSON under the error key. Use these messages to diagnose issues.

Links and References


Note: This summary is based on static analysis of the node's source code and property definitions without runtime execution.

Discussion