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 in SAP Business One. Specifically, for the Purchase Invoice resource and the Update operation, it allows users to update an existing purchase invoice by specifying its unique identifier (DocEntry) and providing the updated data in JSON format.

Common scenarios where this node is beneficial include:

  • Automating updates to purchase invoices based on external triggers or workflows.
  • Synchronizing purchase invoice data from other systems into SAP Business One.
  • Correcting or amending purchase invoice details programmatically without manual intervention.

For example, a user might use this node to update the billing address or payment terms of a purchase invoice after receiving new information from a vendor.

Properties

Name Meaning
DocEntry The unique identifier (number) of the purchase invoice to update. Required for the update operation.
JSON Body A JSON object containing the fields and values to update on the purchase invoice. This is the request body sent to SAP.

Output

The node outputs an array of JSON objects corresponding to each input item processed. Each output item contains:

  • json: The response from the SAP Service Layer API after attempting the update operation. This typically includes the updated purchase invoice data or an error message if the update failed.
  • pairedItem: Metadata linking the output to the input item index.

The node does not output binary data.

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.
  • No additional external dependencies beyond the SAP Service Layer API and valid credentials.

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: Providing a non-existent or incorrect DocEntry will result in an error from the SAP API indicating the document was not found.
  • Malformed JSON Body: Ensure the JSON body is correctly formatted and contains only valid fields supported by the SAP purchase invoice update endpoint.
  • Permission issues: The authenticated user must have sufficient permissions to update purchase invoices.
  • Network or SSL issues: The node disables strict SSL verification (rejectUnauthorized: false), but network connectivity problems or firewall restrictions can still cause failures.

Error messages returned by the node will be included in the output JSON under an error field, helping identify the root cause.

Links and References


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

Discussion