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 documents in SAP Business One. Specifically, for the Purchase Quotation resource and the Delete operation, it allows users to delete a purchase quotation document identified by its unique DocEntry.

Common scenarios where this node is beneficial include automating the cleanup of obsolete or incorrect purchase quotations, integrating SAP document management into broader workflows, or synchronizing data between SAP and other systems.

For example, a purchasing team could use this node in an automated workflow to delete purchase quotations that were rejected or superseded, ensuring the SAP system stays up-to-date without manual intervention.

Properties

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

Output

The node outputs a JSON object representing the response from the SAP Service Layer after attempting to delete the specified purchase quotation. Typically, this will confirm successful deletion or provide error details if the operation failed.

If an error occurs, the output JSON will contain an error field with the error message.

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.
    • 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 errors: If login fails, verify the SAP Service Layer URL, username, password, and company database are correct and that the SAP server is reachable.
  • Invalid DocEntry: If the specified DocEntry does not exist or is incorrect, the delete operation will fail. Confirm the DocEntry value corresponds to an existing purchase quotation.
  • Permission issues: Ensure the user account has sufficient permissions to delete purchase quotations.
  • Network or SSL issues: The node disables strict SSL verification (rejectUnauthorized: false). If connectivity problems persist, check network settings and SAP server certificates.
  • 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

Discussion