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) specifically for inventory-related resources. It allows users to perform various operations on inventory documents such as creating, updating, closing, canceling, reopening, and retrieving inventory entries.

For the Inventory Gen Entrie resource, the node supports operations including closing an inventory entry, which is useful when finalizing or locking an inventory document after adjustments are complete.

Practical example:
A warehouse manager can use this node to close an inventory generation entry once all stock counts and adjustments have been verified, ensuring that no further changes can be made to that inventory record.

Properties

Name Meaning
DocEntry / Key Primary key of the inventory entry resource. This identifies the specific inventory document to operate on.

The DocEntry / Key property is required for operations that target a specific inventory entry, such as closing it.

Output

The node outputs JSON data representing the response from the SAP B1 Service Layer API for the requested operation. For the "Close" operation on Inventory Gen Entrie, the output JSON typically contains confirmation details about the closed inventory entry or any error messages if the operation failed.

No binary data output is produced by this node.

Example output structure (simplified):

{
  "DocEntry": 123,
  "Status": "Closed",
  "Message": "Inventory entry closed successfully"
}

Or in case of error:

{
  "error": "Error message describing what went wrong"
}

Dependencies

  • Requires connection to SAP Business One Service Layer API v7.
  • Needs credentials including:
    • Base URL of the SAP Service Layer.
    • Username and password for authentication.
    • Company database name.
  • The node authenticates via a login POST request to obtain session cookies used in subsequent requests.
  • The environment must allow HTTPS requests to the SAP Service Layer endpoint.

Troubleshooting

  • Authentication errors:
    If login fails, verify the username, password, and company database values. Also check network connectivity and SSL certificate trust settings since the node disables strict SSL verification (rejectUnauthorized: false).

  • Invalid DocEntry:
    Operations requiring a valid DocEntry will fail if the key does not exist or is mistyped. Ensure the correct primary key is provided.

  • Operation not allowed:
    Trying to close an already closed or canceled inventory entry may result in an error from SAP. Confirm the current status of the document before attempting state-changing operations.

  • API errors:
    The node returns error messages from the SAP Service Layer API in the output JSON under the error field. Review these messages for clues on misconfiguration or invalid requests.

Links and References

Discussion