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 B1 Service Layer 8 - Produccion to manage various inventory and production-related documents. Specifically, for the Inventory Gen Entrie resource and the Create Cancellation operation, it creates a cancellation document for an existing inventory general entry identified by its document entry number (DocEntry). This is useful in scenarios where an inventory entry needs to be reversed or invalidated due to errors, returns, or adjustments.
Practical example: If a user mistakenly posted an inventory receipt, they can use this node operation to create a cancellation document that effectively reverses the original entry, maintaining accurate inventory records.
Properties
| Name | Meaning |
|---|---|
| DocEntry | The unique identifier (document entry number) of the inventory general entry to cancel. |
Output
The node outputs a JSON object 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.
Example output structure:
{
"DocEntry": 12345,
"Message": "Cancellation document created successfully",
...
}
If an error occurs, the output JSON will contain an error field with the error message.
Dependencies
- Requires connection to an SAP B1 Service Layer instance.
- Needs credentials including base URL, username, password, and company database name.
- The node performs a login request to obtain session cookies before making API calls.
- The SAP B1 Service Layer API must support the
/InventoryGenEntries({DocEntry})/CreateCancellationDocumentendpoint.
Troubleshooting
- Authentication errors: Ensure the provided credentials (username, password, company DB) are correct and have sufficient permissions.
- Invalid DocEntry: If the specified
DocEntrydoes not exist or is already cancelled, the API may return an error. - Network issues: Verify connectivity to the SAP B1 Service Layer URL and that SSL certificates are valid or properly handled.
- API endpoint errors: Confirm that the SAP B1 version supports the
CreateCancellationDocumentaction on Inventory General Entries.
Common error messages:
"Unauthorized": Check credentials and user permissions."Not Found"or"Document does not exist": Verify theDocEntryvalue."Operation not allowed": The document might be in a state that cannot be cancelled.