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 such as creating, updating, canceling, closing, reopening, and creating cancellation documents on inventory entities like Inventory Gen Exit, Inventory Gen Entry, Stock Transfers, Items, and others.

For the Inventory Gen Exit resource with the Create Cancellation operation, the node creates a cancellation document for a specific inventory exit record identified by its primary key (DocEntry). This is useful in scenarios where an inventory exit transaction needs to be reversed or invalidated due to errors or changes in business processes.

Practical examples:

  • Canceling an incorrect inventory exit that was posted by mistake.
  • Reversing an inventory exit after discovering discrepancies in stock counts.
  • Automating cancellation of inventory exits as part of a larger workflow in inventory management.

Properties

Name Meaning
DocEntry / Key Primary key of the Inventory Gen Exit record to identify which exit to create cancellation for.

Output

The node outputs JSON data representing the response from the SAP B1 Service Layer API after attempting the cancellation document creation. The structure typically contains details about the created cancellation document or error information if the operation failed.

Example output JSON structure:

{
  "DocEntry": 12345,
  "Message": "Cancellation document created successfully",
  // other fields returned by SAP B1 API
}

If an error occurs, the output JSON will contain an error field with the error message.

The node does not output binary data.

Dependencies

  • Requires connection to SAP Business One Service Layer API (version 7).
  • Needs credentials including base URL, username, password, and company database name.
  • The node authenticates by sending a login request to obtain session cookies used in subsequent requests.
  • Requires proper API permissions to perform cancellation operations on inventory exits.

Troubleshooting

  • Authentication errors: If login fails, verify the SAP B1 credentials and company database name are correct.
  • Invalid DocEntry: Providing an incorrect or non-existent DocEntry will cause the API to return an error. Ensure the key corresponds to an existing inventory exit.
  • Permission issues: Lack of sufficient permissions in SAP B1 may result in authorization errors.
  • Network/SSL issues: The node disables SSL verification (rejectUnauthorized: false) but network connectivity problems can still cause failures.
  • Error messages: The node returns error messages from the SAP B1 API in the output JSON under the error field. Use these messages to diagnose issues.

Links and References

Discussion