Actions45
- Inventory Gen Entrie Actions
- Inventory Gen Exit Actions
- Inventory Transfer Request Actions
- Product Tree Actions
- Production Order Actions
Overview
This node interacts with the SAP Business One Service Layer (version 8) to manage various document types, including Product Trees. Specifically, the Create Cancellation operation for the Product Tree resource allows users to create a cancellation document related to an existing Product Tree document identified by its DocEntry. This is useful in scenarios where a previously created product tree document needs to be reversed or canceled officially within SAP B1.
Practical examples include:
- Canceling a production order's product tree when the production plan changes.
- Reversing a mistakenly created product tree document without deleting it.
- Managing document lifecycle by creating official cancellation documents that maintain audit trails.
Properties
| Name | Meaning |
|---|---|
| DocEntry | The unique identifier of the Product Tree document to create a cancellation for. |
Output
The node outputs JSON data representing the response from the SAP B1 Service Layer after attempting to create the cancellation document. This typically includes details about the newly created cancellation document or error information if the operation failed.
The output structure is:
{
"json": {
// Response object from SAP B1 Service Layer API,
// e.g., confirmation of cancellation document creation or error details
},
"pairedItem": {
"item": <index_of_input_item>
}
}
No binary data is produced by this node.
Dependencies
- Requires connection to an SAP Business One Service Layer instance (version 8).
- Needs credentials including base URL, username, password, and company database name.
- The node performs login to obtain session cookies before making API requests.
- The SAP Service Layer API must support the
/CreateCancellationDocumentendpoint for the Product Tree resource.
Troubleshooting
- Authentication errors: If login fails, verify the provided SAP credentials and company database name are correct.
- Invalid DocEntry: Ensure the
DocEntrycorresponds to an existing Product Tree document; otherwise, the API will return an error. - API endpoint not found: Confirm that the SAP Service Layer version supports the
CreateCancellationDocumentaction on Product Trees. - Network issues: Check connectivity to the SAP Service Layer URL and ensure SSL certificates are valid or set to ignore if self-signed.
- Error messages: The node returns error messages from the SAP API in the output JSON under the
errorkey. Review these messages to identify issues such as permission problems or invalid parameters.