SAP B1 Service Layer 8 - Produccion icon

SAP B1 Service Layer 8 - Produccion

Interact with SAP B1 Service Layer 8 - Produccion

Overview

This node interacts with the SAP Business One Service Layer (version 8) to manage various business documents and entities, specifically here focusing on the "Product Tree" resource. The "Delete" operation allows users to delete a specific Product Tree document identified by its unique DocEntry. This is useful in scenarios where obsolete or incorrect product tree records need to be removed from the SAP B1 system to maintain data accuracy.

Practical example: A manufacturing company uses this node to automate cleanup of outdated product trees after product redesigns, ensuring only current configurations are active in their ERP system.

Properties

Name Meaning
DocEntry The unique identifier (string) of the Product Tree document to delete. Required field.

Output

The node outputs an array of JSON objects corresponding to each input item processed. For the "Delete" operation on Product Trees, the output JSON contains the response from the SAP B1 Service Layer API confirming the deletion or detailing any error encountered.

Example output JSON structure:

{
  "json": {
    // Response object from SAP B1 API indicating success or failure of deletion
  },
  "pairedItem": {
    "item": 0
  }
}

No binary data is produced by this node.

Dependencies

  • Requires connection credentials for SAP Business One Service Layer API, including:
    • Base URL of the SAP B1 Service Layer endpoint.
    • 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 with certificate verification disabled (rejectUnauthorized: false).

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 specified DocEntry does not exist or is already deleted. Confirm the DocEntry value before running.
  • Network issues: Ensure the node can reach the SAP B1 Service Layer URL without firewall or proxy blocking.
  • Permission issues: The user account must have sufficient rights to delete Product Tree documents.
  • Error messages: The node returns error details in the output JSON under the error key. Review these messages to identify issues such as invalid parameters or server errors.

Links and References

Discussion