SAP B1 Service Layer 9 - MRP icon

SAP B1 Service Layer 9 - MRP

Interact with SAP B1 Service Layer 9 - MRP

Actions4

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.
  • Error messages:

    • Errors returned from the SAP Service Layer API are captured and returned in the output's error field.
    • Typical messages include authentication errors, not found errors for invalid DocEntry, or permission denied errors.
  • Resolution tips:

    • Verify credentials and company database details.
    • Confirm the DocEntry corresponds 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

Discussion