SAP Service Layer (Purchases) icon

SAP Service Layer (Purchases)

Todas las entidades de Purchases de SAP Service Layer

Overview

This node interacts with the SAP Service Layer to manage purchase-related documents in SAP Business One. Specifically, for the Purchase Quotation resource and the Cancel operation, it sends a request to cancel an existing purchase quotation identified by its unique document entry number (DocEntry). This is useful when a purchase quotation needs to be invalidated or withdrawn from processing.

Common scenarios include:

  • Automatically cancelling purchase quotations that are no longer valid.
  • Integrating cancellation workflows into broader automation processes.
  • Synchronizing cancellations between SAP Business One and other systems.

Example: Cancel a purchase quotation with DocEntry 12345 to prevent further processing or approval.

Properties

Name Meaning
DocEntry The unique identifier (number) of the purchase quotation document to cancel. Required.

Output

The node outputs the JSON response returned by the SAP Service Layer after attempting to cancel the purchase quotation. This typically includes confirmation of the cancellation or details about any errors encountered.

The output structure is:

{
  "json": {
    // Response data from SAP Service Layer API for the cancel action
  },
  "pairedItem": {
    "item": <index_of_input_item>
  }
}

No binary data 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 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 n8n environment.

Troubleshooting

  • Authentication failures: If login credentials are incorrect or the SAP Service Layer is unreachable, the node will return an error message indicating authentication failure or connection issues.
  • Invalid DocEntry: Providing a non-existent or incorrect DocEntry will result in an error from the SAP API stating that the document was not found.
  • Permission issues: Insufficient permissions for the user may cause the cancellation request to fail.
  • Network/SSL errors: Since the node disables strict SSL verification (rejectUnauthorized: false), network issues or misconfigured endpoints might still cause failures.

To resolve errors:

  • Verify SAP credentials and connectivity.
  • Confirm the DocEntry exists and is correct.
  • Ensure the user has rights to cancel purchase quotations.
  • Check network access and firewall settings.

Links and References

Discussion