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 Tax Invoice resource and the Update operation, it allows users to update an existing purchase tax 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 tax invoices after receiving new information or corrections, integrating SAP purchase tax invoice updates into broader workflows, or synchronizing external systems with SAP Business One data.

For example, a user might use this node to update the tax details or supplier information of a purchase tax invoice automatically when changes occur in an external accounting system.

Properties

Name Meaning
DocEntry The unique identifier (number) of the purchase tax invoice to update.
JSON Body The JSON content representing the fields and values to update on the purchase tax invoice.

Output

The node outputs a JSON object representing the response from the SAP Service Layer API after attempting to update the purchase tax invoice. This typically includes the updated purchase tax invoice data or an error message if the update failed.

The output structure is:

{
  "json": {
    // Updated purchase tax invoice data returned by SAP Service Layer
  },
  "pairedItem": {
    "item": <index_of_input_item>
  }
}

If the update fails, the json field contains an error property with the error message.

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.
    • 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: Ensure the DocEntry corresponds to an existing purchase tax invoice; otherwise, the update will fail.
  • Malformed JSON Body: The JSON body must be valid and conform to the SAP Service Layer's expected schema for purchase tax invoices. Invalid fields or formats may cause errors.
  • Network issues: Connection problems or SSL certificate issues can cause request failures. The node disables strict SSL verification (rejectUnauthorized: false), but network connectivity must still be stable.
  • Error messages: Errors returned from the SAP Service Layer API are passed through in the output under the error key. Review these messages to identify issues such as permission problems or invalid data.

Links and References


Note: This summary focuses exclusively on the Purchase Tax Invoice resource and the Update operation as requested.

Discussion