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 various production-related documents, including Inventory Gen Exit documents. Specifically, the "Close" operation for the "Inventory Gen Exit" resource allows users to close an existing Inventory Gen Exit document in SAP B1.

Closing a document typically means finalizing it so that no further changes can be made, which is a common step in inventory and production workflows to ensure data integrity and proper stock management.

Practical example:
A manufacturing company uses this node to automatically close Inventory Gen Exit documents once all items have been physically moved out of inventory, ensuring that the document status in SAP reflects the actual inventory state.

Properties

Name Meaning
DocEntry The unique identifier (document entry number) of the Inventory Gen Exit document to close.

Output

The node outputs a JSON object representing the response from the SAP B1 Service Layer after attempting to close the specified Inventory Gen Exit document. This typically includes confirmation details or error information.

Example output structure:

{
  "DocEntry": 123,
  "Message": "Document closed successfully",
  ...
}

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

Dependencies

  • Requires connection to an SAP Business One Service Layer instance (version 8).
  • Requires credentials including base URL, username, password, and company database name.
  • The node performs login to obtain session cookies before making API requests.
  • No additional external dependencies beyond the SAP B1 Service Layer API.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials may cause login failures.
    • Incorrect DocEntry values will result in errors indicating the document was not found.
    • Network or SSL certificate issues might cause request failures; the node disables strict SSL verification (rejectUnauthorized: false) but network connectivity must be ensured.
  • Error messages:

    • "error": "Invalid login credentials": Check username, password, and company DB.
    • "error": "Document not found": Verify the DocEntry value corresponds to an existing Inventory Gen Exit document.
    • Other HTTP or API errors are returned as-is in the error field.

Links and References

Discussion