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 here focusing on the Stock Transfer resource and its Delete operation. It allows users to delete a stock transfer document identified by its primary key (DocEntry). This is useful in scenarios where a previously created stock transfer needs to be removed from the system, for example, if it was created in error or is no longer needed.

Practical examples include:

  • Automating cleanup of erroneous stock transfers.
  • Integrating SAP B1 stock transfer deletion into broader workflows that handle inventory adjustments.
  • Managing stock transfer lifecycle programmatically without manual intervention in SAP B1 UI.

Properties

Name Meaning
DocEntry / Key Primary key of the stock transfer document to delete. This identifies which record to remove.

Output

The node outputs an array of JSON objects corresponding to each input item processed. For the Delete operation on Stock Transfer, the output JSON typically contains the response from the SAP B1 Service Layer after attempting to delete the specified stock transfer. This may include confirmation of deletion or error details.

Example output structure:

{
  "json": {
    // Response from SAP B1 Service Layer API after deletion attempt
  },
  "pairedItem": {
    "item": 0
  }
}

If an error occurs during the request, 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 logging in to the SAP B1 Service Layer and manages session cookies internally.
  • No additional external dependencies beyond the SAP B1 Service Layer API.

Troubleshooting

  • Authentication errors: If login fails, verify the provided SAP B1 credentials and company database name are correct.
  • Invalid DocEntry: Deletion will fail if the specified DocEntry does not exist or is invalid. Confirm the key corresponds to an existing stock transfer.
  • Permission issues: Ensure the user account has sufficient permissions to delete stock transfers.
  • Network/SSL errors: The node disables SSL certificate verification (rejectUnauthorized: false) to avoid issues with self-signed certificates, but network connectivity and firewall settings must allow access to the SAP B1 Service Layer endpoint.
  • Error messages: Errors returned from the SAP B1 API are passed through in the output's error field. Review these messages for specific causes.

Links and References

Discussion