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 "Get by Key" operation for the Stock Transfer resource allows users to retrieve detailed information about a specific stock transfer document by providing its unique identifier (DocEntry).

Common scenarios where this node is beneficial include:

  • Fetching details of a particular stock transfer to verify its status or contents.
  • Integrating SAP B1 stock transfer data into other systems or workflows.
  • Automating reporting or auditing processes that require up-to-date stock transfer information.

For example, a user can input the DocEntry of a stock transfer to retrieve all associated data such as source and destination warehouses, items transferred, quantities, and document status.

Properties

Name Meaning
DocEntry / Key Primary key of the stock transfer document to retrieve. This uniquely identifies the record.

Output

The node outputs a JSON object representing the full details of the requested stock transfer document as returned by the SAP B1 Service Layer API. The structure typically includes fields such as document metadata, item lines, quantities, warehouse information, status, and timestamps.

If an error occurs (e.g., invalid DocEntry or connectivity issues), the output JSON will contain an error field with the error message describing the problem.

No binary data output is produced by this operation.

Dependencies

  • Requires connection to a SAP Business One Service Layer instance (version 7).
  • Needs credentials including base URL, username, password, and company database name to authenticate via the SAP B1 login endpoint.
  • The node performs a login request to obtain session cookies used in subsequent API calls.
  • The environment must allow HTTPS requests to the SAP B1 Service Layer endpoint, with TLS certificate verification disabled (rejectUnauthorized: false) in this implementation.

Troubleshooting

  • Authentication failures: If login credentials are incorrect or the SAP B1 service is unreachable, the node will return an error message from the login attempt. Verify credentials and network access.
  • Invalid DocEntry: Providing a non-existent or malformed DocEntry will result in an error response from the API. Confirm the DocEntry value corresponds to an existing stock transfer.
  • Session cookie issues: The node relies on session cookies obtained at login. If the session expires or cookies are not properly handled, subsequent requests may fail. Restarting the workflow or re-authenticating may help.
  • SSL/TLS errors: Since the node disables strict SSL verification, if the SAP B1 server uses self-signed certificates, ensure network security policies allow this configuration.
  • API endpoint changes: Changes in the SAP B1 Service Layer API paths or versions may cause failures. Confirm compatibility with SAP B1 version 7.

Links and References


Note: This summary is based solely on static analysis of the provided source code and property definitions without runtime execution.

Discussion