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 Update operation, it allows users to update an existing purchase down payment document 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 down payments based on external triggers or workflows.
  • Synchronizing purchase down payment data from other systems into SAP Business One.
  • Modifying details of a down payment without manual entry in SAP.

For example, if a company receives updated payment terms or amounts for a down payment, this node can be used to patch those changes directly into SAP.

Properties

Name Meaning
DocEntry The unique identifier (number) of the purchase down payment document to update. Required.
JSON Body A JSON object containing the fields and values to update in the purchase down payment.

Output

The node outputs the response from the SAP Service Layer API as JSON. This typically includes the updated purchase down payment document's data reflecting the changes made.

  • The output is structured as a JSON object representing the updated entity.
  • If an error occurs, the output JSON contains an error field with the error message.
  • 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 before making the update call.
  • 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: Ensure the DocEntry number corresponds to an existing purchase down payment document; otherwise, the update will fail.
  • Malformed JSON Body: The JSON body must be valid and conform to the SAP Service Layer schema for purchase down payments. Invalid fields or types may cause errors.
  • Network issues: Connection timeouts or SSL errors may occur if the SAP Service Layer endpoint is unreachable or has invalid certificates.
  • Error messages: The node returns error messages from the SAP API in the output JSON under the error key. Review these messages to identify issues such as permission problems or invalid requests.

Links and References

Discussion