SAP B1 Service Layer 6 - Gestion Bancos icon

SAP B1 Service Layer 6 - Gestion Bancos

Interact with SAP B1 Service Layer 6 - Gestion Bancos

Overview

This node interacts with the SAP B1 Service Layer 6 specifically for bank management tasks. The "Incoming Payment - Cancel" operation allows users to cancel an existing incoming payment document in SAP Business One. This is useful in scenarios where a payment was recorded incorrectly or needs to be voided due to changes in business transactions.

Practical examples include:

  • Cancelling an incoming payment that was entered by mistake.
  • Voiding payments that are no longer valid before financial closing.
  • Automating cancellation of payments based on external triggers or workflows.

Properties

Name Meaning
DocEntry Identifier of the document (incoming payment) to be cancelled. This is a required string.

Output

The output is a JSON object representing the response from the SAP B1 Service Layer after attempting to cancel the specified incoming payment. It typically contains details about the success or failure of the cancellation request.

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

Example output structure on success:

{
  // SAP B1 API response confirming cancellation
}

Example output structure on error:

{
  "error": "Error message describing the issue"
}

Dependencies

  • Requires connection to SAP B1 Service Layer 6 API.
  • Needs credentials including base URL, username, password, and company database name.
  • The node logs into SAP B1 Service Layer using these credentials to obtain session cookies for authentication.
  • No additional environment variables are required beyond the configured credentials.

Troubleshooting

  • Authentication errors: If login fails, verify the SAP B1 credentials and company database name are correct.
  • Invalid DocEntry: Ensure the DocEntry corresponds to an existing incoming payment document in SAP B1.
  • Permission issues: The user account must have rights to cancel incoming payments.
  • Network/SSL issues: The node disables SSL verification (rejectUnauthorized: false), but network connectivity to the SAP B1 server must be stable.
  • Error messages: The node returns error messages from SAP B1 API directly in the output under the error key. Use these messages to diagnose issues such as invalid input or business logic constraints.

Links and References

Discussion