Skip to Content
Former Member
Aug 09, 2012 at 08:00 AM

Exception text in error segment of SXMB_MONI



Can anyone help me in providing the UDF code to raise exceptions and fail the mapping, placing error message in Error Segment of SXMB_MONI?

I used this one:

throw new RuntimeException("Mapping fail");

But I can see it only in trace:

<Trace level="1" type="T">RuntimeException during appliction Java mapping com/sap/xi/tf/_MM_GetSAPRoles_Request_ Thrown: Runtime exception when processing target-field mapping /ns1:MT_GetSAPRoles_Request; root message: Exception:[ Mapping fail] in class Amdocs_Authorization_GetSAPRoles.FL_Roles method RaiseException

Thanks in advance.