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) specifically for production-related resources. It allows users to perform various operations on production orders, such as closing, canceling, reopening, creating, updating, deleting, and retrieving production order documents.
The Close operation for the Production Order resource sends a request to close a specific production order identified by its document entry number (DocEntry). This is useful in scenarios where a production order has been completed or needs to be finalized in the SAP system to prevent further changes.
Practical example:
A manufacturing company uses this node to automate their production workflow. Once a production order is finished on the shop floor, the node can be triggered to close that order in SAP B1, ensuring inventory and costing are updated accordingly and no further edits are allowed.
Properties
| Name | Meaning |
|---|---|
| DocEntry | The unique identifier (document entry number) of the production order to be closed. |
Output
- The output JSON contains the response from the SAP B1 Service Layer after attempting to close the specified production order.
- Typically, this will include confirmation details or status information about the closed document.
- If an error occurs, the output JSON will contain an
errorfield with the error message. - No binary data output is produced by this node.
Example output JSON snippet on success:
{
"DocEntry": 123,
"Status": "Closed",
...
}
Example output JSON snippet on error:
{
"error": "Document not found or already closed"
}
Dependencies
- Requires connection credentials to the SAP Business One 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 before making subsequent API calls.
- The environment must allow HTTPS requests to the SAP B1 Service Layer.
- No additional external dependencies beyond the SAP B1 API and n8n's HTTP request capabilities.
Troubleshooting
Common issues:
- Invalid or missing
DocEntry: Ensure the document entry number corresponds to an existing production order. - Authentication failures: Verify the SAP B1 credentials and company database name are correct.
- Network connectivity problems: Confirm that the SAP B1 Service Layer URL is reachable from the n8n instance.
- Permission errors: The user account used must have rights to close production orders.
- Invalid or missing
Common error messages:
"Document not found": The specifiedDocEntrydoes not exist; check the value."Unauthorized"or"Login failed": Credentials are incorrect or expired."Document already closed": The production order is already closed and cannot be closed again."SSL certificate error": If using self-signed certificates, ensurerejectUnauthorizedis set appropriately or provide valid certificates.
Resolution tips:
- Double-check input parameters.
- Test credentials separately via Postman or similar tools.
- Review SAP B1 user permissions.
- Check network/firewall settings.