SAP B1 Service Layer 8 - Produccion icon

SAP B1 Service Layer 8 - Produccion

Interact with SAP B1 Service Layer 8 - Produccion

Overview

This node interacts with the SAP Business One Service Layer (version 8) to manage inventory general entries. Specifically, the "Update" operation allows users to modify an existing Inventory Gen Entry document in SAP B1 by specifying its unique identifier (DocEntry) and providing the updated content as a JSON body.

Common scenarios for this node include:

  • Automating updates to inventory adjustment documents based on external system changes.
  • Integrating SAP B1 inventory adjustments with other business processes or applications.
  • Correcting or amending inventory entry details programmatically without manual intervention.

For example, if a warehouse management system detects discrepancies in stock levels, it can trigger this node to update the corresponding Inventory Gen Entry in SAP B1 with corrected quantities or item details.

Properties

Name Meaning
DocEntry The unique identifier of the Inventory Gen Entry document to update.
JSON Body The JSON content representing the fields and values to update in the Inventory Gen Entry.

Output

The node outputs an array of JSON objects, each corresponding to an input item processed. For the "Update" operation, the json output contains the response from the SAP B1 Service Layer after attempting to update the specified Inventory Gen Entry. This typically includes the updated document data or confirmation of success.

If an error occurs during the update, the output JSON will contain an error field with the error message describing what went wrong.

The node does not output binary data.

Dependencies

  • Requires access to an SAP Business One Service Layer API endpoint (version 8).
  • Needs credentials including base URL, username, password, and company database name to authenticate against the SAP B1 Service Layer.
  • The node performs a login request to obtain session cookies used for subsequent API calls.
  • The environment must allow HTTPS requests with potentially self-signed certificates (rejectUnauthorized: false is set).

Troubleshooting

  • Authentication failures: If login credentials are incorrect or the SAP B1 Service Layer is unreachable, the node will fail at the login step. Verify credentials and network connectivity.
  • Invalid DocEntry: Providing a non-existent or incorrect DocEntry will cause the update request to fail. Ensure the document ID exists in SAP B1.
  • Malformed JSON Body: The JSON provided in the "JSON Body" property must conform to SAP B1's expected schema for Inventory Gen Entries. Invalid or incomplete JSON may result in errors.
  • SSL issues: Since the node disables SSL certificate verification, ensure this is acceptable in your environment. Otherwise, connection errors may occur.
  • Error messages: Errors returned from SAP B1 are passed through in the output under the error key. Review these messages for specific causes.

Links and References

Discussion