SAP B1 Service Layer 3 - CRM icon

SAP B1 Service Layer 3 - CRM

Interact with SAP B1 Service Layer 3 - CRM

Overview

This node interacts with the SAP Business One Service Layer 3 CRM API to perform various operations on CRM resources such as Orders, Quotations, Business Partners, Activities, and Sales Opportunities. Specifically for the Order resource and the Create Cancellation operation, it creates a cancellation document for an existing order in SAP B1.

Typical use cases include automating order management workflows where cancellations need to be created programmatically based on business logic or external triggers. For example, if an order needs to be canceled due to stock unavailability or customer request, this node can create the corresponding cancellation document in SAP B1 automatically.

Properties

Name Meaning
DocEntry / Key The unique identifier (DocEntry) of the order for which the cancellation document will be created. This is required to specify the target order.

Output

The node outputs JSON data representing the response from the SAP B1 Service Layer after attempting to create the cancellation document. The structure corresponds to the SAP B1 API response for the cancellation creation endpoint and typically includes details about the newly created cancellation document or error information if the operation failed.

If the operation fails, the output JSON contains an error field with the error message.

No binary data output is produced by this node.

Dependencies

  • Requires connection credentials to the SAP Business One Service Layer API, including:
    • Base URL of the SAP B1 Service Layer.
    • Username and password for authentication.
    • Company database name.
  • The node authenticates by sending a login POST request to /Login endpoint and uses session cookies for subsequent requests.
  • The node sends HTTP requests to the SAP B1 Service Layer endpoints corresponding to the selected resource and operation.

Troubleshooting

  • Authentication errors: If login fails, ensure that the provided username, password, and company database are correct and that the SAP B1 Service Layer is accessible.
  • Invalid DocEntry: If the specified DocEntry does not exist or is incorrect, the API will return an error. Verify the DocEntry value corresponds to an existing order.
  • Permission issues: The user account used must have sufficient permissions to create cancellation documents.
  • Network issues: Ensure the SAP B1 Service Layer URL is reachable from the n8n environment and that SSL certificates are valid or properly handled (the node disables strict SSL verification).
  • 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


This summary focuses on the "Order" resource and the "Create Cancellation" operation as requested.

Discussion