SAP B1 Service Layer 7 - Inventario icon

SAP B1 Service Layer 7 - Inventario

Interact with SAP B1 Service Layer 7 - Inventario

Overview

This node interacts with the SAP Business One Service Layer (version 7) to manage inventory-related resources, specifically here focusing on the Stock Transfer resource and its Update operation. It allows users to update existing stock transfer documents in SAP B1 by sending a JSON payload with the desired changes.

Typical use cases include automating updates to stock transfer records such as modifying quantities, locations, or other relevant fields without manual intervention in the SAP interface. For example, a company might use this node to programmatically adjust stock transfers based on real-time warehouse data or integration with other systems.

Properties

Name Meaning
DocEntry / Key The primary key identifier of the stock transfer document to update.
JSON Body The JSON content representing the fields and values to update in the stock transfer.
  • DocEntry / Key is required to specify which stock transfer record will be updated.
  • JSON Body should contain the partial or full set of properties to modify on the stock transfer.

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 after attempting the update operation.
    • On success, this includes the updated stock transfer object or confirmation details.
    • On failure, it contains an error field with the error message describing what went wrong.

No binary data output is produced by this node.

Dependencies

  • Requires connection credentials for the SAP Business One Service Layer API, including:
    • Base URL of the SAP B1 Service Layer endpoint.
    • 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 with relaxed SSL verification (rejectUnauthorized: false).

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: Providing a non-existent or incorrect DocEntry will cause the update to fail. Ensure the key corresponds to an existing stock transfer.
  • Malformed JSON Body: The JSON body must be valid and conform to the expected schema of the stock transfer resource. Invalid fields or types may cause errors.
  • Network issues: Connection problems or SSL certificate issues can prevent successful API calls.
  • Error messages: The node returns error messages from the SAP API directly in the output under the error field. Use these messages to diagnose issues.

Links and References

Discussion