cancel
Showing results for 
Search instead for 
Did you mean: 

How to access elements of "UDSAttrs"?

Former Member
0 Kudos
Hi,
I managed to receive alert mails.
I managed to have UDS attributes embedded...
I struggled a little to make them appear:...You have to give value "*" for all attributes you do not explicitly specify, like "sender party", "receiver party", ...
Now I want to proceed to email-templating to hide "ugly" JSON code from peoples from business.
...but can not find documentation: How to access elements of "UDSAttrs"-array? Is there some smarter solution than ASCII-Templating available? . . HTML-Mail would be "state of the art" - I guess ;-) Regards, Dieter ___________________________Example_____________:-)_______________ { "ToParty": "", "ScenarioId": "dir://IFLOW/IF___:-)___INVOIC", "UDSAttrs": { "FileName": "invoic5.txt", "Timestamp": "20170811T130742Z", "Directory": "/__:-)__/In" }, "RuleId": "76a924dc4283387b92313ea2cb224984", "AdapterType": "XI_J2EE_MESSAGING_SYSTEM", "ErrCat": "Mapping", "ToService": "BS_SAP_ERP_HED_200", "ScenarioName": "IF___:-)___INVOIC", "Severity": "MEDIUM", "Timestamp": "2017-08-11T15:37:41Z", "MonitoringUrl": "http://__:-)__:50000/webdynpro/resources/sap.com/tc~lm~itsam~ui~mainframe~wd/FloorPlanApp?applicationID=com.sap.itsam.mon.xi.msg&msgid=e944f1a6-7ea8-11e7-a8d0-0000008cbbee", "MsgId": "e944f1a6-7ea8-11e7-a8d0-0000008cbbee", "FromService": "BC___:-)__", "Namespace": "http://www.__:-)__/INVOIC", "ErrCode": "EXCEPTION_DURING_EXECUTE", "ErrLabel": "1200", "ErrText": "Runtime Exception when executing application mapping program com/sap/xi/tf/_MM___:-)___INVOIC02_; Details: com.sap.aii.mappingtool.tf7.MessageMappingException; Runtime exception when processing target-field mapping /E1EDKA1/IDOC/INVOIC02/PARTN; root message: Unhandled RFC exception:\nNO_RECORDS_FOUND<\/Name>NO_RECORDS_FOUND<\/Text>null<\/ID>000<\/Number><\/Message><\/rfc:ZINV_ILNMAP.Exception>", "FromParty": "", "Component": "af.hpd.hdb01hpd", "Interface": "SI___:-)___Out" }

Accepted Solutions (0)

Answers (1)

Answers (1)

manoj_khavatkopp
Active Contributor
0 Kudos

Hi Dieter,

There is another standard consumer job provided by SAP with having custom template defined refer note : 2088606 for more info on this Job config refer this Blog.

Other option is you can actually read the Alert JMS queue via sender JMS channel and customize customize the content in required format via JAVA/XSLT and send a mail.

Br,

Manoj