SAP B1 Service Layer 7 - Inventario icon

SAP B1 Service Layer 7 - Inventario

Interact with SAP B1 Service Layer 7 - Inventario

Overview

This node integrates with the SAP B1 Service Layer 7 API to manage inventory-related resources, specifically focusing on Inventory General Entries when the "Inventory Gen Entrie" resource is selected. It supports various operations such as creating, updating, retrieving, and managing inventory entries.

For the Create operation on Inventory General Entries, the node sends a JSON body payload to the SAP B1 API to create a new inventory entry document. This is useful in scenarios where businesses need to automate inventory adjustments or additions directly from workflows, for example:

  • Automatically creating inventory adjustment entries after receiving stock.
  • Integrating inventory creation with other business processes like purchase orders or manufacturing completions.
  • Streamlining inventory data input without manual SAP GUI interaction.

Properties

Name Meaning
JSON Body The JSON content sent as the request body to create the inventory general entry. This should contain all necessary fields according to SAP B1's API specification for an inventory entry document.

Output

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

  • json: The full JSON response returned by the SAP B1 Service Layer API for the create operation. This typically includes details of the created inventory entry, such as its unique identifier and status.
  • pairedItem: Metadata linking the output to the original input item index.

If an error occurs during the request, 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 B1 Service Layer API, including:
    • Base URL of the SAP B1 Service Layer.
    • Username and password for authentication.
    • Company database name.
  • The node performs a login request to obtain session cookies used for subsequent API calls.
  • No additional external dependencies beyond standard HTTP requests.

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 JSON Body: Ensure the JSON body matches the expected schema for an inventory general entry in SAP B1. Invalid or incomplete data will cause API errors.
  • Network issues: Connection timeouts or SSL errors may occur if the SAP B1 server is unreachable or has invalid certificates. The node disables strict SSL verification (rejectUnauthorized: false) but network connectivity must be stable.
  • Error messages: Errors returned from the SAP B1 API are captured and included in the output under the error key. Review these messages to adjust the request payload or parameters accordingly.

Links and References


This summary focuses on the "Inventory Gen Entrie" resource with the "Create" operation as requested.

Discussion