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 purchase-related documents in SAP Business One. Specifically, for the Purchase Quotation resource and the Create Cancellation operation, it allows users to create a cancellation document for an existing purchase quotation identified by its DocEntry. This is useful when a previously issued purchase quotation needs to be formally cancelled within SAP, ensuring accurate record-keeping and workflow management.

Practical scenarios include:

  • Automatically cancelling purchase quotations that are no longer valid or were created in error.
  • Integrating cancellation workflows into broader automation processes, such as supplier communication or inventory adjustments.

Properties

Name Meaning
DocEntry The unique identifier (number) of the purchase quotation to cancel. This is required.

Output

The node outputs the JSON response returned by the SAP Service Layer API after attempting to create the cancellation document. This typically includes details about the newly created cancellation document or an error message if the operation failed.

The output structure is:

{
  "json": {
    // Response data from SAP Service Layer about the cancellation creation
  },
  "pairedItem": {
    "item": <index_of_input_item>
  }
}

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 name.
  • The node performs a login request to obtain session cookies used for subsequent API calls.
  • The SAP Service Layer must support the POST /PurchaseQuotations({DocEntry})/CreateCancellationDocument endpoint.

Troubleshooting

  • Authentication errors: If login fails, verify the SAP Service Layer credentials and company database name.
  • Invalid DocEntry: Ensure the DocEntry corresponds to an existing purchase quotation; otherwise, the API will return an error.
  • Permission issues: The user account must have sufficient permissions to create cancellation documents.
  • Network or SSL errors: The node disables strict SSL verification (rejectUnauthorized: false), but network connectivity and firewall settings should allow access to the SAP Service Layer.
  • Error messages: Returned errors from the SAP API are included in the output JSON under the error key. Review these messages for specific causes.

Links and References

Discussion