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 including Stock Transfers. The "Cancel" operation for the Stock Transfer resource allows users to cancel an existing stock transfer document in SAP B1.

Typical use cases include:

  • Automating cancellation of stock transfers that were created in error.
  • Integrating SAP B1 stock transfer management into broader workflows where cancellations need to be triggered based on external events or conditions.
  • Streamlining inventory adjustments by programmatically managing stock transfer statuses.

For example, a warehouse management system could trigger this node to cancel a stock transfer if a shipment is delayed or canceled.

Properties

Name Meaning
DocEntry / Key Primary key identifier of the stock transfer document to be canceled (string).

Output

The node outputs JSON data representing the response from the SAP B1 Service Layer after attempting the cancellation. This typically includes details about the canceled stock transfer or an error message if the cancellation failed.

The output structure is:

{
  "json": {
    // Response object from SAP B1 Service Layer API for the cancel operation
  },
  "pairedItem": {
    "item": <index_of_input_item>
  }
}

No binary data output 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 dependencies beyond the configured SAP B1 API credentials.

Troubleshooting

  • Authentication errors: If login fails, verify the username, password, and company database are correct and that the SAP B1 Service Layer is accessible.
  • Invalid DocEntry: Providing an incorrect or non-existent DocEntry will cause the API to return an error. Ensure the DocEntry corresponds to an existing stock transfer.
  • Permission issues: The user account must have sufficient permissions to cancel stock transfers.
  • Network issues: Connection problems to the SAP B1 Service Layer endpoint can cause request failures.
  • Error messages returned from the SAP B1 API are included in the output JSON under the error field. Review these messages for specific causes.

Links and References

Discussion