SAP B1 Service Layer 10 - Servicio icon

SAP B1 Service Layer 10 - Servicio

Interact with SAP B1 Service Layer 10 - Servicio

Actions19

Overview

This node interacts with the SAP Business One Service Layer (version 10) to manage various resources, including Service Calls. Specifically, for the Service Call - Delete operation, it deletes a service call record identified by its unique DocEntry number.

Typical use cases include automating the removal of obsolete or incorrect service calls from SAP B1, integrating cleanup workflows, or synchronizing data between SAP and other systems by deleting service calls programmatically.

For example, if a service call was created in error or is no longer relevant, this node can be used within an n8n workflow to delete that service call by specifying its DocEntry.

Properties

Name Meaning
DocEntry The unique numeric identifier of the service call to delete. This is required to specify which service call record to remove.

Output

The node outputs JSON data representing the response from the SAP B1 Service Layer after attempting the deletion. Typically, this will be an empty object or confirmation message indicating successful deletion.

If an error occurs during the request, the output JSON will contain an error field with the error message describing what went wrong.

No binary data is produced by this operation.

Example success output:

{}

Example error output:

{
  "error": "Service call not found"
}

Dependencies

  • Requires valid credentials for the 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 POST request to obtain session cookies (B1SESSION and optionally ROUTEID) which are then used for subsequent requests.
  • The node uses HTTP methods like DELETE to interact with the SAP B1 REST API.
  • No additional external dependencies beyond the SAP B1 Service Layer API and proper credential configuration in n8n.

Troubleshooting

  • Authentication errors: If login fails, ensure the provided username, password, company DB, and base URL are correct and that the SAP B1 Service Layer is accessible.
  • Invalid DocEntry: If the specified DocEntry does not exist, the API may return an error indicating the resource was not found.
  • Network issues: Connection failures or SSL certificate problems may occur; the node disables strict SSL verification (rejectUnauthorized: false), but network connectivity must still be ensured.
  • Permission issues: The user account must have sufficient permissions to delete service calls in SAP B1.
  • Error messages: Errors returned from the SAP B1 API are captured and output as { "error": "<message>" }. Review these messages to diagnose issues.

Links and References

Discussion