Actions4
- Sales Forecast Actions
Overview
This node interacts with the SAP Business One Service Layer specifically for managing Sales Forecast records. The "Delete" operation allows users to remove a specific sales forecast document identified by its unique document entry ID. This is useful in scenarios where outdated or incorrect sales forecasts need to be removed from the system to maintain accurate planning data.
Practical example: A company automating their sales forecasting process can use this node to delete obsolete forecasts after new data is available, ensuring that only relevant forecasts are considered in production planning.
Properties
| Name | Meaning |
|---|---|
| DocEntry | Identifier of the sales forecast document to delete |
Output
The output is a JSON object representing the response from the SAP B1 Service Layer after attempting to delete the specified sales forecast. If successful, it typically contains confirmation of deletion or an empty object. In case of failure, the output JSON includes an error field with the error message describing what went wrong.
No binary data is output by this node.
Dependencies
- Requires connection to an SAP Business One Service Layer instance.
- Needs credentials including base URL, username, password, and company database name.
- The node performs a login request to obtain session cookies used for subsequent API calls.
- The environment must allow HTTPS requests to the SAP Service Layer endpoint.
Troubleshooting
Common issues:
- Invalid or missing
DocEntry: The node requires a valid document identifier; ensure this is correctly provided. - Authentication failures: Incorrect credentials or company database name will prevent login.
- Network or SSL errors: The node disables strict SSL verification (
rejectUnauthorized: false), but network connectivity issues may still cause failures. - Attempting to delete a non-existent or already deleted sales forecast will result in an error from the SAP API.
- Invalid or missing
Error messages:
- Errors returned from the SAP Service Layer API are captured and returned in the output's
errorfield. - Typical messages include authentication errors, not found errors for invalid
DocEntry, or permission denied errors.
- Errors returned from the SAP Service Layer API are captured and returned in the output's
Resolution tips:
- Verify credentials and company database details.
- Confirm the
DocEntrycorresponds to an existing sales forecast. - Check network connectivity to the SAP Service Layer endpoint.
- Review SAP user permissions for deleting sales forecasts.
Links and References
- SAP Business One Service Layer Documentation
- n8n HTTP Request Node Documentation (for understanding underlying request mechanics)