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 Orders. Specifically, the "Cancel" operation for the Purchase Order resource allows users to cancel an existing purchase order by specifying its unique identifier (DocEntry). This is useful in scenarios where a purchase order needs to be invalidated or stopped before further processing, such as when an order was created by mistake or circumstances have changed.

Practical examples:

  • Automatically canceling purchase orders that fail certain validation checks.
  • Integrating with other systems to cancel purchase orders based on external triggers.
  • Managing purchase order lifecycle within automated workflows.

Properties

Name Meaning
DocEntry The unique numeric identifier of the purchase order to be canceled (required).

Output

The node outputs a JSON object representing the response from the SAP Service Layer API after attempting to cancel the specified purchase order. This typically includes details about the canceled purchase order or confirmation of the cancellation action.

If an error occurs during the cancellation process, the output JSON will contain 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 name.
  • The node performs a login request to obtain session cookies used for subsequent API calls.
  • The SAP Service Layer must be accessible from the environment where n8n runs.
  • No additional external dependencies beyond the SAP Service Layer API and valid credentials.

Troubleshooting

  • Authentication errors: If login fails, verify that the username, password, and company database are correct and that the SAP Service Layer endpoint is reachable.
  • Invalid DocEntry: Providing a non-existent or incorrect DocEntry will result in an error from the API indicating the purchase order could not be found.
  • Permission issues: Ensure the authenticated user has sufficient permissions to cancel purchase orders.
  • Network issues: Connection timeouts or SSL errors may occur if the SAP Service Layer is unreachable or has certificate issues; check network connectivity and SSL settings.
  • Error messages: The node returns error messages from the SAP Service Layer API in the output JSON under the error key. Use these messages to diagnose issues.

Links and References

Discussion