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 Delivery Note resource and the Update operation, it allows users to update an existing purchase delivery note by sending a PATCH request with the desired changes.

Typical use cases include automating updates to purchase delivery notes such as modifying quantities, prices, or other document details after creation but before final processing. This is useful in workflows where purchase delivery notes need to be programmatically adjusted based on external data or business logic.

Example scenario: After receiving updated shipment information from a supplier, you can use this node to update the corresponding purchase delivery note in SAP automatically, ensuring your system reflects the latest data without manual intervention.

Properties

Name Meaning
DocEntry The unique identifier (number) of the purchase delivery note to update.
JSON Body The JSON content representing the fields and values to update in the purchase delivery note.

Output

The node outputs an array of JSON objects, each corresponding to an input item processed. For the update operation, the output JSON contains the response from the SAP Service Layer API after attempting to update the specified purchase delivery note.

  • If successful, the JSON will contain the updated purchase delivery note data or confirmation of the update.
  • If an error occurs, the JSON will contain an error field with the error message.

No binary data output is produced by this node.

Dependencies

  • Requires connection to an SAP Service Layer instance.
  • Needs credentials including base URL, username, password, and company database name to authenticate against SAP.
  • The node performs a login POST request to obtain session cookies used in subsequent API calls.
  • The SAP Service Layer API must be accessible from the n8n environment.

Troubleshooting

  • Authentication errors: If login fails, verify that the SAP Service Layer URL, username, password, and company database are correct and that the SAP server is reachable.
  • Invalid DocEntry: Ensure the DocEntry number corresponds to an existing purchase delivery note; otherwise, the update will fail.
  • Malformed JSON Body: The JSON body must be valid and conform to the SAP Service Layer schema for purchase delivery notes. Invalid fields or types will cause errors.
  • Network issues: Connection timeouts or SSL errors may occur if the SAP server is unreachable or has invalid certificates. The node disables strict SSL verification (rejectUnauthorized: false) but network connectivity must be stable.
  • API errors: The SAP Service Layer may return detailed error messages in the response JSON. Review these messages to adjust the request accordingly.

Links and References


If you need further details about other operations or resources, please provide their names.

Discussion