Skip to content

CAP Inbox not getting enabled for receiving events from SAP Cloud Application Event Hub #107

@Chaitanyaputhran

Description

@Chaitanyaputhran

What happened?

Hi Team,

We are currently integrating S/4 HANA events with the Resource Management BTP CAP Java application through SAP Cloud Application Event Hub (Event Broker).

The webhook URL is successfully triggered, and CAP event handlers are invoked as expected. However, the CAP Inbox mechanism does not appear to be enabled, even though we have explicitly configured it in our application.yaml as specified in the CAP documentation.

Our application.yaml configuration for enabling the inbox can be found here:
https://github.tools.sap/Cloud4RM/Resource-Request/blob/dev/events/project-integration-adapter/src/main/resources/application.yml#L41

We have followed the official CAP Inbox configuration guidelines as described in the documentation:
https://cap.cloud.sap/docs/guides/events/event-queues#inbox

Despite this setup, Inbox persistence does not seem to be active.

Issue Summary

  • Webhook URL is successfully called (visible in cf logs)
  • CAP event handlers are triggered
  • When an exception is deliberately thrown from the handler, the event is retried by Event Hub itself
  • No indication in logs that Inbox persistence is active

Additionally:

  • When processing fails inside the handler, the HTTP response status in CF logs reflects an error (e.g., 5xx), which triggers Event Hub retry.
  • If Inbox were enabled, our understanding is that the application should respond with HTTP 202 Accepted, even if processing fails internally, since the event should already be persisted in the Inbox table and handled transactionally by CAP.
Image

Kindly look into this issue and guide us on how to proceed.

Steps to reproduce

Our application.yaml configuration for enabling the inbox can be found here:
https://github.tools.sap/Cloud4RM/Resource-Request/blob/dev/events/project-integration-adapter/src/main/resources/application.yml#L41

Versions

Your Project Name https://github.tools.sap/Cloud4RM/Resource-Management
CAP Java SDK 5.20.0
OData version v4
Node.js version v20.11.0
@sap/cds 9.1.0
@sap/cds-dk 9.1.0
@sap/cds-mtxs 3.1.0
CAP version 4.1.0

OS / Environment

Cloud Foundry

Service Inventory

n/a — Test/demo app

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions