cancel
Showing results for 
Search instead for 
Did you mean: 

How to get error/exception details in alert short or long text?

gopalkrishna_baliga
Participant
0 Kudos

Hi Experts,

I have a file to file scenario. I have created a alert category and alert rule.

The alert title is setup as:

Error: &SXMS_ERROR_CODE& ( category &SXMS_ERROR_CAT& ) was found in a message &SXMS_MSG_GUID& from system &SXMS_FROM_SERVICE& and from interface &SXMS_FROM_INTERFACE&

The alert short text is setup as:

Error Details: &SXMS_TO_ADAPTER_ERRTXT&

however when the alert is triggered the title text is coming as expected but the short text contains only "Error Details:". That is, no value is printed by container variable SXMS_TO_ADAPTER_ERRTXT. Why is this so? What am I missing?

I want to get the exception details as we get in SXMB_MONI.

<SAP:Category>Application</SAP:Category>

<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>

<SAP:P1>com/sap/xi/tf/_DataIn_To_DataOut_</SAP:P1><SAP:P2>com.sap.aii.mappingtool.tf7.IllegalInstanceExcepti</SAP:P2>

<SAP:P3>on: Cannot create target element /ns0:DataOut/Tota</SAP:P3>

<SAP:P4>l. Values missing in queue context. Target XSD re~</SAP:P4>

<SAP:AdditionalText/>

<SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_DataIn_To_DataOut_; com.sap.aii.mappingtool.tf7.IllegalInstanceException: Cannot create target element /ns0:DataOut/Total. Values missing in queue context. Target XSD re~

</SAP:Stack>

Please help

Thanks

Gopal

Accepted Solutions (0)

Answers (4)

Answers (4)

Shabarish_Nair
Active Contributor
0 Kudos

for long text (adapter errors) use the below

&SXMS_TO_ADAPTER_ERRLINES[]&

former_member200962
Active Contributor
0 Kudos
Error Details: &SXMS_TO_ADAPTER_ERRTXT&

ADAPTER_ERRTXT holds a value only when the alert is raised from Adapter Engine....your error testx shows that the error is from IE (mapping) ....make the channel faill and you would see Error Details: containing some value.

naveen_chichili
Active Contributor
0 Kudos

Hi Gopal,

please go through the notes : #25477 and #1394710.Also check the [LINK|;

Thanks,

Naveen

Former Member
0 Kudos

Have you tried by giving the required parameters to long text in ALTCATDEF transaction ??

gopalkrishna_baliga
Participant
0 Kudos

Yes, I gave the required parameters in Long text as well but still no values displayed.

Long text is setup as below:

Error Details: &SXMS_TO_ADAPTER_ERRTXT&

Param1: &SXMS_AF_ERRPAR1&

Param2: &SXMS_AF_ERRPAR2&

Param3: &SXMS_AF_ERRPAR3&

Param4: &SXMS_AF_ERRPAR4&

Val1: &SXMS_AF_ERRVAL1&

Val2: &SXMS_AF_ERRVAL2&

Val3: &SXMS_AF_ERRVAL3&

Val4: &SXMS_AF_ERRVAL4&

Edited by: gopalkrishna baliga on Jun 27, 2011 7:37 AM