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, specifically here focusing on Purchase Credit Notes. The "Close" operation for Purchase Credit Notes allows users to mark a specific purchase credit note as closed in the SAP system.

Typical use cases include automating the workflow of purchase credit notes by programmatically closing them once all necessary processing or approvals are complete. For example, after verifying and reconciling a purchase credit note, you can use this node to close it automatically, ensuring accurate document status tracking within SAP.

Properties

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

Output

The node outputs the JSON response returned by the SAP Service Layer API after attempting to close the specified Purchase Credit Note. This typically includes confirmation of the action or details about the updated document.

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

No binary data is produced by this operation.

Dependencies

  • Requires connection to an SAP Service Layer instance.
  • Needs credentials including:
    • Base URL of the SAP Service Layer API.
    • 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 API must support the POST /PurchaseCreditNotes({DocEntry})/Close endpoint.

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 Credit Note in SAP.
  • Permission issues: The user account must have sufficient permissions to close purchase credit notes.
  • Network or SSL errors: The node disables strict SSL verification (rejectUnauthorized: false), but network connectivity and firewall settings should allow communication with the SAP Service Layer.
  • Error messages from SAP: The node returns error messages from the SAP API in the output JSON under the error key. Review these messages to understand issues such as invalid operations or document states.

Links and References


Note: This summary focuses exclusively on the "Close" operation for the "Purchase Credit Note" resource as requested.

Discussion