SAP B1 Service Layer 7 - Inventario icon

SAP B1 Service Layer 7 - Inventario

Interact with SAP B1 Service Layer 7 - Inventario

Overview

This node interacts with the SAP Business One Service Layer (version 7) specifically for inventory-related resources. It allows users to perform various operations on inventory documents such as Inventory Gen Exit, Inventory Gen Entry, Stock Transfers, Items, and others.

For the Inventory Gen Exit resource with the Reopen operation, the node sends a request to reopen a previously closed or canceled inventory exit document identified by its primary key (DocEntry). This is useful in scenarios where an inventory exit document needs to be reactivated for further processing or correction after it was closed or canceled.

Practical example:
A warehouse manager realizes that an inventory exit document was prematurely closed. Using this node, they can reopen the document to make necessary adjustments before finalizing it again.


Properties

Name Meaning
DocEntry / Key Primary key of the Inventory Gen Exit document to identify which document to reopen.

The property DocEntry / Key is a string representing the unique identifier of the inventory exit document you want to reopen.


Output

The node outputs JSON data representing the response from the SAP B1 Service Layer API after attempting to reopen the specified inventory exit document.

  • On success, the output JSON contains details of the reopened inventory exit document or confirmation of the action.
  • On failure, the output JSON contains an error field with the error message explaining what went wrong.

No binary data output is produced by this node.


Dependencies

  • Requires connection credentials to the SAP Business One Service Layer API, including:

    • Base URL of the SAP 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.

  • The node uses HTTP methods (POST for reopening) to interact with the SAP API endpoints.


Troubleshooting

  • Authentication errors:
    If login fails, verify the SAP Service Layer base URL, username, password, and company database are correct and accessible.

  • Invalid DocEntry:
    If the provided DocEntry does not exist or is invalid, the API will return an error. Ensure the key corresponds to an existing inventory exit document.

  • Permission issues:
    The user account must have sufficient permissions to reopen inventory exit documents in SAP B1.

  • Network or SSL errors:
    The node disables strict SSL verification (rejectUnauthorized: false), but network connectivity issues or firewall restrictions may still cause failures.

  • Error messages:
    Errors returned from the SAP API are passed through in the output JSON under the error field. Review these messages to understand specific issues.


Links and References

Discussion