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

Exception text in error segment of SXMB_MONI

21 Views

Hi,

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: com.sap.aii.mappingtool.tf7.MessageMappingException: Runtime exception when processing target-field mapping /ns1:MT_GetSAPRoles_Request; root message: Exception:[com.sap.aii.mapping.api.StreamTransformationException: Mapping fail] in class Amdocs_Authorization_GetSAPRoles.FL_Roles method RaiseException

Thanks in advance.