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, including Purchase Tax Invoices. Specifically, for the Purchase Tax Invoice resource, it supports multiple operations such as creating, updating, deleting, canceling, closing, reopening, and creating cancellation documents.

The Create Cancellation operation for Purchase Tax Invoices allows users to generate a cancellation document for an existing purchase tax invoice identified by its DocEntry. This is useful in scenarios where a previously issued tax invoice needs to be formally canceled within SAP, ensuring accurate financial records and compliance.

Practical example:
A company issues a purchase tax invoice but later discovers an error or needs to void it due to a return or correction. Using this node's "Create Cancellation" operation, the user can automate the creation of the corresponding cancellation document directly in SAP, streamlining accounting workflows and reducing manual intervention.

Properties

Name Meaning
DocEntry The unique identifier (number) of the Purchase Tax Invoice document to create cancellation for. It is required.

Output

The node outputs the JSON response returned by the SAP Service Layer API after performing the requested operation. For the "Create Cancellation" operation on a Purchase Tax Invoice, the output JSON typically contains details about the newly created cancellation document or confirmation of the action.

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

The node does not output binary data.

Dependencies

  • Requires connection to an SAP Service Layer instance.
  • Requires credentials including:
    • Base URL of the SAP Service Layer API.
    • Username.
    • Password.
    • Company database name.
  • The node authenticates by sending a login POST request to /Login endpoint and uses session cookies for subsequent requests.
  • No additional external dependencies beyond the SAP Service Layer API and valid credentials.

Troubleshooting

  • Authentication errors: If login fails, verify that the base URL, username, password, and company database are correct and that the SAP Service Layer is accessible.
  • Invalid DocEntry: Ensure the DocEntry number corresponds to an existing Purchase Tax Invoice in SAP; otherwise, the API will return an error.
  • Permission issues: The user account must have sufficient permissions to create cancellation documents.
  • Network/SSL issues: The node disables SSL certificate verification (rejectUnauthorized: false), but network connectivity problems or firewall restrictions may still cause failures.
  • Error messages: The node returns error messages from the SAP API in the output JSON under the error key. Review these messages to identify issues such as invalid parameters or operation not allowed.

Links and References

Discussion