SAP B1 Service Layer 8 - Produccion icon

SAP B1 Service Layer 8 - Produccion

Interact with SAP B1 Service Layer 8 - Produccion

Overview

This node interacts with the SAP Business One Service Layer (version 8) to manage inventory-related documents, specifically focusing on "Inventory Gen Exit" among other resources. The Update operation allows users to modify an existing Inventory Gen Exit document by specifying its unique identifier (DocEntry) and providing a JSON body with the updated content.

Common scenarios for this node include automating updates to inventory exit records in SAP B1, such as adjusting quantities, changing item details, or updating status fields. For example, a warehouse management workflow could use this node to update exit documents after physical stock verification or corrections.

Properties

Name Meaning
DocEntry The unique identifier of the Inventory Gen Exit document to update. Required for update.
JSON Body A JSON object containing the fields and values to update in the Inventory Gen Exit document.

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 B1 Service Layer API call.
    • On success, this includes the updated document data returned by the API.
    • On failure, it contains an error field with the error message.

No binary data is produced by this node.

Dependencies

  • Requires connection credentials to the SAP Business One Service Layer API, including:
    • Base URL of the SAP B1 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.
  • The environment must allow HTTPS requests to the SAP B1 Service Layer endpoint.
  • No additional external libraries beyond n8n's built-in HTTP request helper are required.

Troubleshooting

  • Authentication errors: If login fails, verify that the username, password, and company database are correct and that the SAP B1 Service Layer is accessible.
  • Invalid DocEntry: Ensure the DocEntry corresponds to an existing Inventory Gen Exit document; otherwise, the update will fail.
  • Malformed JSON Body: The JSON provided must conform to the expected schema of the SAP B1 API for Inventory Gen Exit updates. Invalid fields or types may cause errors.
  • Network issues: Connection timeouts or SSL errors can occur if the SAP B1 server is unreachable or has invalid certificates. The node disables strict SSL verification (rejectUnauthorized: false), but network connectivity must be stable.
  • Error messages: The node returns error messages from the SAP B1 API directly in the output under the error key. Review these messages to identify issues such as permission problems or invalid operations.

Links and References

Discussion