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 integrates with the SAP Business One Service Layer 9 to manage Sales Forecast records. Specifically, the Update operation allows users to modify an existing sales forecast by specifying its unique identifier and providing updated data in JSON format.

Common scenarios for this node include:

  • Automating updates to sales forecasts based on new market data or internal planning changes.
  • Integrating SAP B1 sales forecast updates into broader workflows, such as syncing with CRM or ERP systems.
  • Correcting or adjusting forecast entries programmatically without manual intervention.

For example, a user might update a sales forecast document identified by DocEntry with revised quantities or dates by sending the updated fields in the JSON body.

Properties

Name Meaning
DocEntry Identifier of the sales forecast document to update. Required for update operations.
JSON Body JSON content representing the fields and values to update in the sales forecast record.

Output

The node outputs an array of JSON objects corresponding to each input item processed. Each output item contains:

  • json: The response from the SAP B1 Service Layer API after performing the update operation. This typically includes the updated sales forecast data or confirmation of success.
  • pairedItem: Metadata linking the output to the original input item index.

If an error occurs during processing, the output JSON will contain an error field with the error message.

The node does not output binary data.

Dependencies

  • Requires connection credentials to the SAP Business One Service Layer API, including:
    • Base URL of the SAP B1 Service Layer.
    • Username and password for authentication.
    • Company database name.
  • The node authenticates by sending a login request to obtain session cookies used in subsequent requests.
  • No additional external dependencies beyond the SAP B1 Service Layer API.

Troubleshooting

  • Authentication errors: 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 DocEntry: Ensure the DocEntry provided corresponds to an existing sales forecast document; otherwise, the update will fail.
  • Malformed JSON Body: The JSON body must be valid and conform to the expected schema of the sales forecast entity in SAP B1. Invalid fields or types may cause errors.
  • Network issues: Connection problems or SSL certificate issues can cause request failures. The node disables strict SSL verification (rejectUnauthorized: false), but network connectivity must still be stable.
  • Error messages: Errors returned from the SAP B1 API are passed through in the output's error field. Review these messages for clues on required corrections.

Links and References

Discussion