cancel
Showing results for 
Search instead for 
Did you mean: 

Adapter Module development : Reporting the message in RWB

Former Member
0 Kudos

Hi,

What is the way to change the error message that gets reported in RWB , when we select a perticular channel in communication channel monitoring, via adapter module?

I am able to write Error messages to Audit log but if any exception occurs, but the initial channel monitoring screen always reports error as

Error:null

I want to report the error on that screen as the same is reported in Adapter engine alerts and due to this, all my alerts have the container SXMS_TO_ADAPTER_ERRTXT always filled with value

Error:null

Any clues?

Rgds,

Amol

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

just to bring it up..

Any clues experts??

Former Member
0 Kudos

I got a way to do this.

The module exception that the code should generate needs to be like this

throw new ModuleException(new DeliveryException("Your own error message"));

OR

throw new ModuleException(new ConfigException("Your own error message"));

this will report an error in RWB as

Error: com.sap........ConfigException:Your own error message

bhavesh_kantilal
Active Contributor
0 Kudos

Amol,

This solved one of my problems as well.

Will give this a shot tom

Thanks,

Bhavesh

ravi_raman2
Active Contributor
0 Kudos

Amol.

Or you can create you own exception class..extending the module exception..in it..with custom messages..etc...then use that..Same difference...:-)

Regards

Ravi Raman