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 Credit Notes. Specifically, the "Reopen" operation for the Purchase Credit Note resource allows users to reopen a previously closed or canceled purchase credit note in SAP Business One.

This functionality is useful in scenarios where a purchase credit note was prematurely closed or canceled and needs to be reactivated for further processing or correction. For example, if an accounting team closes a credit note but later discovers an error requiring adjustments, they can use this node operation to reopen it without creating a new document.

Properties

Name Meaning
DocEntry The unique identifier (document entry number) of the Purchase Credit Note to reopen.

The DocEntry property is required and specifies which purchase credit note will be reopened.

Output

The node outputs the JSON response returned by the SAP Service Layer API after attempting to reopen the specified purchase credit note. This typically includes the updated state of the document or confirmation of the action.

If an error occurs, the output JSON contains an error field with the error message describing what went wrong.

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 be accessible from the n8n environment.

Troubleshooting

  • Authentication errors: If login fails, verify that the SAP Service Layer credentials (username, password, company DB) are correct and that the service is reachable.
  • Invalid DocEntry: Errors may occur if the provided DocEntry does not exist or is invalid. Confirm the document number before running the node.
  • Permission issues: Ensure the user account has sufficient permissions to reopen purchase credit notes.
  • Network/SSL issues: The node disables SSL verification (rejectUnauthorized: false) for requests; however, network connectivity problems or firewall restrictions could still cause failures.
  • 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 such as invalid operations or missing documents.

Links and References


Note: This summary focuses on the "Purchase Credit Note" resource and its "Reopen" operation as requested.

Discussion