Skip to Content
avatar image
Former Member

Message trace

Hi,

I have PI7.0. I want to trace a particular field of message. In my scenario thousannds of messages are passing through the PI every minutue.

Let In the reveiver side one particular message is not received: how to trace it. And The receiver end dont have message ID.

How to trace the particular field so that We can know that partcular field belogs to which message ID.

Any help will be appreciated.

Thanks

Manisha

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Jul 07, 2009 at 04:39 AM

    If you aim to do a field based search then there seems to be no direct way to do this!....take help from the below threads:

    monitor-search

    customizing-monitoring

    This is what you may need:

    trex

    Regards,

    Abhishek.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      there is a JAVA table called XI_AF_MSG which holds the messages passed in and out of XI....but not sure how it can be used in your case.....

  • avatar image
    Former Member
    Jul 07, 2009 at 05:23 AM

    Hello Manisha,

    We can Trace our messages at AdapterEngine level using our customize adapter module. Use the Trace Object in your adapter module and configure it at receiver CC. How to do this is available in SAP help.

    Incase if you want to enable the default traceing without any custom adapter module, you need to enable the trace option for specific adapters in J2EE Visual adaministrator.

    Refer this links for information regarding loging and tracing

    https://wiki.sdn.sap.com/wiki/display/EP/PortalLoggingand+Tracing

    Check here how to enable log

    https://wiki.sdn.sap.com/wiki/display/VC/Enable+Log

    Regards,

    Prasanna

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hello Manisha,

      Yes using MappingTrace we can access field values fron our UDF. In order to use them you need to instansiate first . The following code snipet will give you some idea.

      If you are using it in UDF

      MappingTrace trace=container.getTrace();
      
      trace.addWarning("Field i value" + i);

      If you are implementing it in external java program use this.

      Map param=new HashMap();
      MappingTrace trace=(MappingTrace)param.get(StreamTransformationConstants.MAPPING_TRACE);;
      trace.addWarning("Field i value" + i);

      Since MappingTrace you can use addInfo and AddWarning, Using AbstractTrace trace you can use addDebug also,

      AbstractTrace trace = null;
      trace =(AbstractTrace) param.get(StreamTransformationConstants.MAPPING_TRACE);
      trace.addDebugMessage("Field i value"+i)

      All the trace message will be shown in SXMB_MONI.

      Regards,

      Prasanna

  • avatar image
    Former Member
    Jul 07, 2009 at 08:59 AM

    This message was moderated.

    Add comment
    10|10000 characters needed characters exceeded