SAP B1 Service Layer 7 - Inventario icon

SAP B1 Service Layer 7 - Inventario

Interact with SAP B1 Service Layer 7 - Inventario

Overview

This node integrates with the SAP B1 Service Layer 7 API to manage inventory-related data. Specifically, for the "Inventory Gen Entrie" resource and the "Update" operation, it updates an existing inventory general entry in SAP Business One by sending a PATCH request with the provided JSON body content.

Typical use cases include automating updates to inventory entries such as adjusting quantities, changing statuses, or modifying other relevant fields in SAP B1 inventory records. For example, a user might update an inventory general entry after a stock audit or correction to reflect accurate inventory levels.

Properties

Name Meaning
DocEntry / Key The primary key identifier of the inventory general entry to update.
JSON Body The JSON content representing the fields and values to update in the inventory entry.

Output

The node outputs a JSON object representing the response from the SAP B1 Service Layer API after attempting to update the inventory general entry. This typically includes the updated record details or confirmation of the update operation.

If an error occurs during the request, the output JSON will contain an error field with the error message describing what went wrong.

No binary data is produced by this node.

Dependencies

  • Requires connection credentials to the SAP B1 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 standard HTTP request helpers 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 / Key corresponds to an existing inventory general entry; otherwise, the update will fail.
  • Malformed JSON Body: The JSON body must be valid and conform to the expected schema of the SAP B1 inventory general entry resource. Invalid fields or types 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 B1 API are passed through in the output's error field. Review these messages to identify issues such as permission problems or invalid operations.

Links and References

Discussion