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 purchase-related documents within SAP Business One. Specifically, for the Purchase Down Payment resource and the Delete operation, it allows users to delete a purchase down payment document identified by its unique DocEntry. This is useful in scenarios where a previously created down payment needs to be removed from the system, such as when a transaction was entered incorrectly or is no longer valid.

Practical example:

  • A user wants to remove an erroneous purchase down payment record from SAP Business One by specifying its document entry number (DocEntry). The node sends a DELETE request to the SAP Service Layer API to perform this action.

Properties

Name Meaning
DocEntry The unique identifier (document entry number) of the purchase down payment to be deleted. It must be a number and is required.

Output

The node outputs a JSON object representing the response from the SAP Service Layer after attempting to delete the specified purchase down payment. The structure typically contains confirmation of deletion or error details if the operation failed.

If the deletion is successful, the output JSON usually confirms the removal of the document. 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 involved in this operation.

Dependencies

  • Requires connection to an SAP Business One Service Layer endpoint.
  • Needs credentials including:
    • Base URL of the SAP Service Layer API.
    • Username and password for authentication.
    • Company database name.
  • The node performs a login POST request to obtain session cookies used for subsequent API calls.
  • The environment must allow HTTPS requests to the SAP Service Layer with optional ignoring of SSL certificate validation (rejectUnauthorized: false).

Troubleshooting

  • Common Issues:

    • Invalid or missing DocEntry: The node requires a valid document entry number to identify which purchase down payment to delete.
    • Authentication failure: Incorrect username, password, or company DB will prevent login and thus all operations.
    • Network or SSL errors: Connection issues or invalid SSL certificates may cause request failures.
    • Document not found or already deleted: Attempting to delete a non-existent document will result in an error response.
  • Error Messages:

    • Errors returned from the SAP Service Layer are captured and returned in the output JSON under the error key.
    • Common messages include authentication errors, "not found" errors for the document, or permission denied errors.
  • Resolution Tips:

    • Verify credentials and company database settings.
    • Confirm that the DocEntry corresponds to an existing purchase down payment.
    • Ensure network connectivity and trust the SAP Service Layer SSL certificate or configure the node to ignore SSL verification if appropriate.
    • Check SAP Business One permissions for the user account.

Links and References


Note: This summary focuses on the Purchase Down Payment resource and the Delete operation as requested.

Discussion