Actions45
- Inventory Gen Entrie Actions
- Inventory Gen Exit Actions
- Inventory Transfer Request Actions
- Product Tree Actions
- Production Order Actions
Overview
This node integrates with the SAP Business One Service Layer (version 8) to perform various operations on inventory-related documents, specifically including Inventory Gen Entries. The "Save Draft to Document" operation allows users to convert a draft version of an inventory document into a finalized document within SAP B1.
Common scenarios for this node include automating inventory management workflows where drafts are prepared and then saved as official documents, such as saving a draft inventory generation entry after review or approval. This helps streamline inventory adjustments, stock entries, or corrections in SAP B1 directly from n8n workflows.
Example use case: After preparing an inventory generation entry draft with all necessary details, you can use this node to save that draft as a confirmed document in SAP B1, ensuring data consistency and triggering downstream processes like stock updates.
Properties
| Name | Meaning |
|---|---|
| DocEntry | The unique identifier (document entry number) of the inventory document draft to save. |
Output
The node outputs a JSON object representing the response from the SAP B1 Service Layer API after attempting to save the draft document. This typically includes details about the saved document, such as its new status, identifiers, and any metadata returned by SAP.
If an error occurs, the output JSON will contain an error field with the error message describing what went wrong.
No binary data output 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 for authentication.
- The node performs a login request to obtain session cookies used for subsequent API calls.
- The environment must allow HTTPS requests to the SAP B1 Service Layer endpoint.
Troubleshooting
- Authentication errors: If login fails, verify the provided SAP credentials and company database name are correct.
- Invalid DocEntry: Ensure the
DocEntryvalue corresponds to an existing draft document in SAP B1; otherwise, the API will return an error. - Network issues: Connection problems to the SAP Service Layer URL will cause request failures.
- Permission issues: The SAP user must have sufficient rights to save drafts to documents.
- 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 invalid parameters or unauthorized actions.
Links and References
- SAP Business One Service Layer Documentation
- SAP B1 Inventory Management Concepts (general reference)