Actions34
- Inventory Counting Actions
- Inventory Gen Entrie Actions
- Inventory Gen Exit Actions
- Inventory Posting Actions
- Item Actions
- Stock Transfer Actions
Overview
This node integrates with the SAP Business One Service Layer (version 7) to manage inventory-related operations. Specifically, for the "Inventory Gen Entrie" resource and the "Create Cancellation" operation, it allows users to create a cancellation document for an existing inventory general entry in SAP B1.
Typical use cases include:
- Automating the cancellation of inventory entries that were created in error.
- Integrating SAP B1 inventory management into broader workflows where cancellations need to be triggered programmatically.
- Maintaining accurate inventory records by reversing or canceling previously posted inventory entries.
For example, if an inventory general entry was mistakenly posted, this node can be used to generate the corresponding cancellation document automatically, ensuring data consistency without manual intervention.
Properties
Name | Meaning |
---|---|
DocEntry / Key | Primary key of the inventory general entry to target for cancellation. |
Output
The node outputs JSON data representing the response from the SAP B1 Service Layer after attempting to create the cancellation document. The structure typically includes details about the cancellation document created or error information if the operation failed.
Example output JSON structure:
{
"DocEntry": 12345,
"Message": "Cancellation document created successfully",
...
}
If an error occurs, the output JSON will contain an error
field with the error message.
The node does not output binary data.
Dependencies
- Requires connection to SAP Business One Service Layer API (version 7).
- Needs credentials including base URL, username, password, and company database name.
- The node performs login to obtain session cookies before making API requests.
- No additional external dependencies beyond the SAP B1 Service Layer API.
Troubleshooting
- Authentication errors: If login fails, verify the provided SAP B1 credentials and company database name are correct.
- Invalid DocEntry: If the specified primary key does not exist or is incorrect, the API will return an error. Ensure the DocEntry corresponds to an existing inventory general entry.
- Permission issues: The user must have sufficient permissions in SAP B1 to create cancellation documents.
- Network/SSL issues: The node disables SSL certificate verification (
rejectUnauthorized: false
). If connecting to a secured endpoint, ensure network connectivity and firewall rules allow access. - Error messages: Errors returned from SAP B1 API are passed through in the output's
error
field. Review these messages for specific causes.