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 B1 Service Layer 7 API to manage inventory-related resources, specifically here focusing on creating a Stock Transfer document. It allows users to create stock transfer records in SAP Business One by sending custom JSON data representing the stock transfer details.
Typical use cases include automating stock movement between warehouses or locations within an organization, synchronizing stock transfers from other systems into SAP B1, or programmatically managing inventory logistics without manual entry in SAP.
For example, a warehouse management system could trigger this node to create a stock transfer when goods are moved from one storage location to another, ensuring SAP B1 inventory records stay up-to-date.
Properties
Name | Meaning |
---|---|
JSON Body | The JSON content sent as the request body to create the stock transfer. This should contain all necessary fields according to SAP B1's Stock Transfer API schema. |
Output
The node outputs an array of JSON objects corresponding to each input item processed. Each output item contains:
json
: The full JSON response returned by the SAP B1 Service Layer after creating the stock transfer. This typically includes details of the created stock transfer document such as its unique identifier and status.- In case of errors, the
json
field contains anerror
property with the error message describing what went wrong.
No binary data is produced by this node.
Dependencies
- Requires connection credentials for SAP B1 Service Layer API, including:
- Base URL of the SAP B1 Service Layer endpoint
- Username and password for authentication
- Company database name
- The node performs a login request to obtain session cookies used for subsequent API calls.
- The node uses HTTP requests with cookie-based session management.
- No additional external dependencies beyond the SAP B1 Service Layer API and valid credentials.
Troubleshooting
- Authentication failures: If login fails, verify that the base URL, username, password, and company database are correct and that the SAP B1 Service Layer is accessible.
- Invalid JSON Body: Ensure the JSON Body property contains valid JSON matching the expected structure for a stock transfer in SAP B1. Malformed or incomplete JSON will cause API errors.
- API errors: The node returns error messages from the SAP B1 API in the output. Common issues include missing required fields, invalid references (e.g., non-existent warehouse codes), or permission issues.
- Network issues: Check connectivity to the SAP B1 Service Layer endpoint and ensure SSL certificates are valid or that the node is configured to ignore unauthorized SSL if needed.
- Session handling: The node manages session cookies internally; if sessions expire quickly, consider adjusting SAP B1 settings or re-authenticating as needed.
Links and References
- SAP Business One Service Layer API Documentation
- SAP B1 Stock Transfer Object Reference (example link, consult your version)
- n8n HTTP Request Node documentation for understanding request options: https://docs.n8n.io/nodes/n8n-nodes-base.httpRequest/
This summary covers the "Stock Transfer" resource with the "Create" operation based on the provided source code and property definitions.