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 Delivery Notes. Specifically, for the Purchase Delivery Note - Delete operation, it allows users to delete a purchase delivery note identified by its unique document entry number (DocEntry). This is useful in scenarios where a purchase delivery note was created erroneously or needs to be removed from the system.

Practical examples:

  • Automatically deleting obsolete or incorrect purchase delivery notes as part of an automated workflow.
  • Cleaning up test or draft documents in SAP after validation failures.
  • Integrating with other systems to synchronize and remove purchase delivery notes when they are deleted elsewhere.

Properties

Name Meaning
DocEntry The unique identifier (number) of the Purchase Delivery Note to delete. Required input.

Output

The node outputs a JSON object representing the response from the SAP Service Layer API after attempting to delete the specified Purchase Delivery Note. Typically, this will include confirmation of deletion or error details if the operation failed.

If the deletion is successful, the output JSON usually contains status information confirming the removal. If there is an error (e.g., document not found, permission issues), the output JSON will contain an error field with the error message.

No binary data output is produced by this operation.

Example output on success:

{
  "Message": "Document deleted successfully"
}

Example output on error:

{
  "error": "Document with DocEntry 123 not found"
}

Dependencies

  • Requires connection to an SAP Service Layer instance.
  • Requires credentials including base URL, username, password, and company database name.
  • The node performs a login request to obtain session cookies before making API calls.
  • The SAP Service Layer API must support DELETE operations on Purchase Delivery Notes.

Troubleshooting

  • Common issues:

    • Invalid or missing DocEntry: Ensure the correct document entry number is provided.
    • Authentication failure: Verify that the SAP credentials (username, password, company DB) are correct.
    • Network or SSL errors: The node disables strict SSL verification (rejectUnauthorized: false), but network connectivity to the SAP Service Layer endpoint must be available.
    • Document not found: Attempting to delete a non-existent Purchase Delivery Note will return an error.
  • Error messages:

    • "Document with DocEntry X not found": Check that the DocEntry exists in SAP.
    • "Authentication failed": Confirm credentials and SAP Service Layer availability.
    • Other HTTP or network errors: Review SAP Service Layer logs and network settings.

Links and References


This summary focuses solely on the Delete operation for the Purchase Delivery Note resource as requested.

Discussion