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, for the Inventory Counting - Delete operation, it deletes an existing inventory counting record identified by a primary key.

Typical use cases include automating the removal of obsolete or incorrect inventory counting documents from SAP B1, helping maintain accurate inventory records. For example, if an inventory counting document was created in error or is no longer needed, this node can programmatically delete it without manual intervention in SAP.

Properties

Name Meaning
DocEntry / Key The primary key identifier of the inventory counting document to delete.

Output

The node outputs a JSON object representing the response from the SAP B1 Service Layer after attempting the deletion. If successful, this typically contains confirmation details or an empty success response. In case of failure, the output JSON includes an error field with the error message describing what went wrong.

No binary data output is produced by this operation.

Dependencies

  • Requires connection credentials to the SAP B1 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 SAP B1 API and n8n's HTTP request helper.

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: Deletion will fail if the provided primary key does not exist or is invalid. Ensure the DocEntry corresponds to an existing inventory counting document.
  • Permission issues: The user account must have sufficient permissions to delete inventory counting records.
  • Network/SSL issues: The node disables SSL certificate verification (rejectUnauthorized: false), but network connectivity problems or firewall restrictions may still cause failures.
  • Error messages: Returned errors are included in the output JSON under the error key. Review these messages to identify issues such as resource not found, invalid input, or server errors.

Links and References

Discussion