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 Return resource and the Create Cancellation operation, it allows users to create a cancellation document for an existing purchase return identified by its DocEntry. This is useful when a previously recorded purchase return needs to be canceled or reversed in the system.

Typical use cases include:

  • Automatically canceling a purchase return due to errors or changes in business decisions.
  • Integrating SAP purchase return cancellations into automated workflows.
  • Keeping SAP data synchronized with other systems by programmatically managing purchase returns.

Properties

Name Meaning
DocEntry The unique identifier (document entry number) of the purchase return to cancel. 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 error information if the operation failed.

The output structure is:

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

No binary data 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 n8n environment where this node runs.

Troubleshooting

  • Authentication failures: If login fails, check that the provided username, password, and company database are correct and that the SAP Service Layer is reachable.
  • Invalid DocEntry: Providing a non-existent or incorrect DocEntry will cause the API call to fail. Verify the document ID before running the node.
  • Permission issues: Ensure the SAP user has sufficient permissions to create cancellation documents for purchase returns.
  • Network issues: The node disables SSL certificate verification (rejectUnauthorized: false), but network connectivity problems or firewall restrictions can still block access.
  • Error messages: The node returns error messages from the SAP API in the output JSON under the error key. Review these messages to diagnose issues.

Links and References


If you need further details on other operations or resources, feel free to ask!

Discussion