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 B1 Service Layer 8 - Produccion API to manage various inventory and production-related documents. Specifically, for the Inventory Transfer Request resource, it supports multiple operations including creating cancellation documents.

The Create Cancellation operation allows users to generate a cancellation document for an existing Inventory Transfer Request identified by its document entry number. This is useful in scenarios where an inventory transfer request needs to be reversed or invalidated after creation, such as correcting errors or handling changes in stock movement plans.

Practical example: If a warehouse mistakenly initiated an inventory transfer request, this operation can create a cancellation document to nullify that request without deleting the original record, maintaining audit trails and compliance.

Properties

Name Meaning
DocEntry The unique identifier (document entry number) of the Inventory Transfer Request to cancel.

Output

The node outputs the JSON response returned by the SAP B1 Service Layer API after attempting to create the cancellation document. This typically includes details about the newly created cancellation document or error information if the operation failed.

The output structure is:

{
  // Response fields from SAP B1 Service Layer related to the cancellation document creation
}

No binary data output is produced by this operation.

Dependencies

  • Requires connection to an SAP B1 Service Layer 8 instance.
  • Needs credentials including base URL, username, password, and company database name.
  • The node performs a login request to obtain session cookies used for subsequent API calls.
  • The SAP B1 Service Layer API must support the /InventoryTransferRequests({DocEntry})/CreateCancellationDocument endpoint.

Troubleshooting

  • Authentication errors: Ensure the provided credentials (username, password, company DB) are correct and have sufficient permissions.
  • Invalid DocEntry: If the specified document entry does not exist or is already cancelled, the API may return an error. Verify the DocEntry value.
  • API endpoint issues: Confirm that the SAP B1 Service Layer version supports the CreateCancellationDocument operation on Inventory Transfer Requests.
  • Network or SSL errors: The node disables strict SSL verification (rejectUnauthorized: false), but network connectivity and firewall settings should allow access to the SAP B1 service.
  • Error messages: The node returns error messages from the API directly in the output JSON under an error field. Review these messages for specific causes.

Links and References

Discussion