XML payload search in Xi messages

Hi All,
I need to get the XML pay load for a message which contains a specific value for a specific field. Also I need to get the XML message ID of this message. Is there any option available in Xi for this purpose?
Thanks in advance..

Hi,
sure it is but you need to use trex search engine for that
http://help.sap.com/saphelp_nw04/helpdata/en/43/6030fae92f5f87e10000000a1553f6/content.htm
once you configure trex you will
be able to search for XML payload from RWB
(runtime workbench of XI)
this is the first - fast way
there are also some non standard ways
but these are pretty slow and if you have many messages
they will not be very efficient in use:
/people/alessandro.guarneri/blog/2006/02/14/super-message-monitor-for-sap-xi
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Similar Messages

  • XML Payload extraction from XI Message

    Hi to all,
    I use the SXI_MONITOR transaction to see the XML Payload of XI Messages. In this transaction, each successfully message has a field "MainDocument" under "Response" section that contains the XML Payload of the message.
    <B>There is a function module that I can use to extract the XML from MainDocument field?</B> I've tryed to look into SXMSCLUP and SXMSCLUR abap data tables but here I founded only the SOAP Header and SOAP Body data of the message. Here I can't see the "Payloads" data, so the MainDocument tag.
    Can anyone help me?
    Thanks!

    Ciao Gabriele,
    there are differente way to do it.
    one time I got same issue and I got some answer on the community.
    Unfortunately there was no more need for it so i did not implement but
    easily speaking in all the mapping got the payload therefore u need just to create a full mapping adn to process the data u get.
    In java for example is given as input stream that u can store some where and process.
    I pasted the result below:
    IN java
    How to get the whole payload
    in abap
    /people/udo.martens/blog/2006/02/16/own-logging-of-xi-messages
    please rewars point is useful thanks.
    regards,
    Giamma

  • Xpath Payload search by giving Message ID

    Hi,
    I have requirement that we are interested to find the content of a payload in particular XPATH location, for example PO number in the PO payload . We would like to search the content by giving Message ID and the pipeline ID in ABAP Code.
    Please throw some clues to get this by coding ABAP.
    Appreciate your thoughts.
    Thanks,
    laxman

    Hi Michal,
    Thanks for your quick reply, for some reason Sraavya's code is having Syntax errros "The Type "SXMS_MMFPAYLOADS" is unknown.". We have Sp13 doesn't it support sp13?.
    Sraavya's blog might be helpful for our requirement.
    Basically we wanted use the Alert framework. When alerts Triggered then we would like to call a webservice and send the error message, other header data and etc and OrderNumber in PO XML using Xpath, the difference from search is that using alert framework we can get the Message ID, using with this message ID we would like to search the Xpath fields from a payload.
    We are cloning SXMSALERT_PROCESS_DATA_GET program to achive our goal.
    So here I have mesasge ID as the input and I need to get the Payload content and then reading the field using XPATH.
    Thanks,
    laxman

  • Where is stored xml payload of XI messages

    Hi to all,
    where can I find the XML payload of each XI Message that I see in the SXI_MONITOR? I want to find the table or the FUNCTION MODULE that contains/retries the XML Payload.
    Thanks to all!

    Hi,
    The messages are stored in the Table.
    SXMSPMAST---->Integration Engine: Message Queue (Master)
    SXMSSYERR---->XMS: System Error Error Codes
    SXMSCLUP -
    >XMB: Property Cluster
    SXMSCLUR -
    >XMB: Resources Cluster
    Regards
    San

  • AIA 11gR1 Mail Message with an XML payload

    Hi,
    I'm currently facing an issue related to message payload which is itself a XML fragment.
    Use case: The business requires some error out record to notify to the Business users as an XML payload in the mail message body whichis generated in the process flow.
    Reported Issue: The default MIME TYPE with text/html is unable to send the XML payload in body part. I get a blank message body in the mail.
    Any useful thoughts is welcome.
    Regards
    Soumya

    Which version are you using? I also had problems with XML as the payload with 9i Rel. 1. I upgraded to Rel. 2 and it works o.k.

  • Changing XML payload

    Hello,
      Is it possible to change the xml payload when an XI message has run into error ?
      And after the change, restart the processing.
      Like with idoc's, change the idoc segment data and reprocess the idoc again.
    Regards, Michel

    Yes you can..
    See the SAP help link below to modify messages - >
    http://help.sap.com/saphelp_nw70/helpdata/en/44/f5c3de84056c30e10000000a114a6b/frameset.htm
    Arvind R

  • Validating XML Payload

    Hi,
    I have written a document/literal style web service that takes DOM Document as input and returns a DOM Document .
    In doc/lit style web services the DOM document will be opened and passed as XML payload in the request message.
    I want to validate this xml payload in the wsdl.
    Any ideas about how i can do this?
    Karan

    either, or, or download some freebee.

  • Testing XML Payload of Message Mapping in RWB

    Hi All,
    Is there any way where we can test the XML payload of Message Mapping bypassing the usual testing of messages thorugh IE .
    What i mean here is passing tge XML payload of Message Mapping directlyy to Adapter Engine...
    Regards
    Vinay P.

    Hi Vinay
    As said above
    You can use Testing the Runtime feature to do this task
    RWB -> Component Monitoring -> Integration engine Test tab
    You can also use this feature for Adapter engine and J2SE adapter - File & JDBC
    http://help.sap.com/saphelp_nw70/helpdata/EN/33/b99eebd9261b4886d6f6a354b8dcdf/content.htm
    Follow michal blog give above for screen shots
    Thanks
    Gaurav

  • What is payload, xi-soap message and xml payload....

    can any 1 explains abt What is payload, xi-soap message and xml payload....

    Hi Shiva,
    see this abstract from messages file:
    "The SOAP header of a message contains all the important information that the Integration Server requires to forward the message, while the payload contains the actual business data (such as <PurchaseOrder> in the example above). <b>You can also append an unlimited number of attachments to the message before it is sent. Attachments typically comprise non-XML data, for example, pictures, text documents, or binary data."</b>
    Check this link for more info:
    http://help.sap.com/saphelp_nw04/helpdata/en/b6/0b733cb7d61952e10000000a11405a/content.htm
    Regards,
    Subhasha

  • Integration Engine Monitor with PI Payload Search (Tcode: ZMONI)

    Hi Team,
    Good day.
    I have been trying to search the internet on how to use the PI Payload Search (PIPS) functionality of the Integration Engine Monitor (Tcode: ZMONI) but so far I did not find one.
    Does anyone know how to use every functionality of the PI Payload Search? Is there a manual or a how-to document for this function?
    The PI Payload Search tab contains the following fields:
    Sender
         Idoc Number
         Idoc Message Type
    Message Version
         Message version
         Content To Be Searched
         Mime Type
         Payload Sequence Number
    Message Size Selection
         Message Bytes
    Content Search
         Namespace
         XML Element Name
         XML Search Value
    Output Format
         Output to ZIP
         Filename
         GUI Download Path
         HTTP_POST URL
         FTP Server
         FTP User
         FTP Pwd (scrambled)
         FTP Directory
    When executing Variant
         Change TVARV for dates
    I could send you an email if you need more information or screenshot. Thank you in advance
    KR,
    Carlo
    Edited by: Carlo Borja on Dec 23, 2011 5:20 AM

    Hi. Carlo
    Correct me if I wrong, this tx is customized , it's not standard.
    However , you can search using
    TREX . :
           http://help.sap.com/saphelp_banking60/helpdata/en/47/06b054c7750e8ae10000000a155369/content.htm
    WithOut TREX :
           Payload Searching without TREX
    Regards.
    Luis Ortiz

  • Payload search without TREX

    We have around thousand messages thru PI and need to search a particular field in the xml payload in PI like name, city etc, is there a way to get that message without using TREX, thanks

    Hi,
    Without trex you can use this weblog and can able to search the messages:
    /people/alessandro.guarneri/blog/2006/02/14/super-message-monitor-for-sap-xi
    else you can use suggestion 3 from michal in this thread:
    search material in payload
    else you can come up with this report:
    /people/paolo.romano2/blog/2007/09/07/xi-search-through-the-payload-of-a-messagewithout-trex
    Regards,
    ---Satish

  • & exists in XML payload

    Hey guys
    i m having a strange problem in my scenario,specially with FCC,i have a HTTP to File scenario and some times i get '&' or '&amp;' in the payload,now i can take care of  &amp; by changing the encoding to ISO-8859-1 but i still cant handle &.
    i dont have any mappings in my scenario so i keep on getting errors in RWB saying that ; expected after &.
    any idea how can i handle this?
    thanx
    ahmad

    Hey
    yes its possible through adapter module too.
    it can actually be done by means of Java mapping or adapter module.
    have a look at the following Re: Ampersand ('&')  in  XML - Mapping error
    regards
    ahmad
    Message was edited by:
            Ahmad

  • "Error while parsing SOAP XML payload: no element found" received when invoking Web Service

    Running PB 12.1 Build 7000.  Using Easysoap.  Error ""Error while parsing SOAP XML payload: no element found" received when invoking Web Service".  This error does not appear to be coming from the application code.  Noticed that there were some erroneous characters showing up within the header portion of the XML ("&Quot;").  Not sure where these are coming from.  When I do a find within the PB code for ""&quot;" it gets located within two objects, whereas they both reference a "temp_xml_letter".  Not sure where or what temp_xml_letter resides???   The developer of this is no longer with us and my exposure to WSDL and Web Services is rather limited.  Need to get this resolved...please.
    This is the result of the search.  Notice the extraneous characters ("&quot;"):
    dar1main.pbl(d_as400_mq_xml)
    darlettr.pbl(d_email_xml)
    ---------- Search: Searching Target darwin for 'temp_xml'    (9:52:41 AM)
    ---------- 2 Matches Found On "temp_xml":
    dar1main.pbl(d_as400_mq_xml).d_as400_mq_xml:  export.xml(usetemplate="temp_xml_letter" headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0  template=(comment="" encoding="UTF-8" name="temp_xml_letter" xml="<?xml version=~"1.0~" encoding=~"UTF-16LE~" standalone=~"yes~"?><EmailServiceTransaction xmlns=~"http://xml.xxnamespace.com/Utility/Email/EmailService" ~" xmlns:imc=~"http://xml.xxnamespace.com/IMC~" xmlns:xsi=~"http://www.w3.org/2001/XMLSchema-instance~" xmlns:root=~"http://xml.xxnamespace.com/RootTypes~" xmlns:email=~"http://xml.xxnamespace.com/Utility/Email~" xsi:schemaLocation=~"http://xml.xxnamespace.com/Utility/Email/EmailService http://dev.xxnamespace.com/Utility/Email/EmailService/V10-TRX-EmailService.xsd~"><EmailServiceInformation><EmailServiceDetail __pbband=~"detail~"><ApplicationIdentifier> applicationidentifier </ApplicationIdentifier><AddresseeInformation><AddresseeDetail><Number> number </Number></AddresseeDetail></AddresseeInformation><EmailMessageInformation><Ema
    darlettr.pbl(d_email_xml).d_email_xml:  export.xml(usetemplate="temp_xml_letter" headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0  template=(comment="" encoding="UTF-8" name="temp_xml_letter" xml="<?xml version=~"1.0~" encoding=~"UTF-16LE~" standalone=~"yes~"?><EmailServiceTransaction xmlns=~"http://xml.xxnamespace.com/Utility/Email/EmailService" ~" xmlns:imc=~"http://xml.xxnamespace.com/IMC~" xmlns:xsi=~"http://www.w3.org/2001/XMLSchema-instance~" xmlns:root=~"http://xml.xxnamespace.com/RootTypes~" xmlns:email=~"http://xml.xxnamespace.com/Utility/Email~" xsi:schemaLocation=~"http://xml.xxnamespace.com/Utility/Email/EmailService http://dev.xxnamespace.com/Utility/Email/EmailService/V10-TRX-EmailService.xsd~"><EmailServiceInformation><EmailServiceDetail __pbband=~"detail~"><ApplicationIdentifier> applicationidentifier </ApplicationIdentifier><AddresseeInformation><AddresseeDetail><Number> imcnumber </Number></AddresseeDetail></AddresseeInformation><EmailMessageInformation><Ema
    ---------- Done 2 Matches Found On "temp_xml":
    ---------- Finished Searching Target darwin for 'temp_xml'    (9:52:41 AM)

    Maybe "extraneous" is an incorrect term.  Apparantly, based upon the writeup within Wiki, the parser I am using does not interpret the "&quot;"?  How do I find which parser is being utilized and how to control it?
    <<<
    If the document is read by an XML parser that does not or cannot read external entities, then only the five built-in XML character entities (see above) can safely be used, although other entities may be used if they are declared in the internal DTD subset.
    If the document is read by an XML parser that does read external entities, then the five built-in XML character entities can safely be used. The other 248 HTML character entities can be used as long as the XHTML DTD is accessible to the parser at the time the document is read. Other entities may also be used if they are declared in the internal DTD subset.
    >>>

  • SSL/TLS security certificate data match with XML Payload in SAP PI

    Hi,
    We are working on a solution where we would want to use SSL/TLS or WS Security with client server mutual authentication using client server certificates.
    But, once the sender is authenticated using the certificates, can the XML payload be matched for the correctness with the certificate information? Is this available to PI integration engine at any time? Like Sender A autheticated as A using certificates, must be stopped if his XML payload is saying that he is sender B (which is most unlikely if we trust the senders but did not want to leave a loophole).
    Any ideas here?
    Thanks and Regards,
    Vijay

    Hi Wolfgang,
    Cross-posting is discouraged and against the forum rules, because it is misused and makes a mess of the search due to distributed discussions and answers.
    I will move it to the PI forum and add a watch on it as it is security forum related.
    Unfortunately, the forum software does not have the option to "mirror" threads.
    Cheers,
    Julius
    Edited by: Julius Bussche on Sep 14, 2009 9:50 PM

  • Reading XML payload from text file

    Hello,
    I have a text file with XML payload in it. The text file has some header information and then the XML payload. How do I read only the XML payload for processing in PI?
    the structure of the text file is something like this..
    Header Information
    Payload
    Sample:
    #Datetime: 20140318-09:28:50.129
    #MessageID: sample123
    #Sender: TEST
    #SenderParty: TEST
    #ReceiverService:
    #ReceiverParty: Test
    #Interface: Test123
    #InterfaceNamespace: http://test.com
    <?xml version="1.0" encoding="UTF-8"?>
    <Sample ><Header>......
    Please advise.
    Thank you.
    Larry.

    package com.learning.utils;
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.Reader;
    import com.sap.aii.mapping.api.AbstractTransformation;
    import com.sap.aii.mapping.api.StreamTransformationException;
    import com.sap.aii.mapping.api.TransformationInput;
    import com.sap.aii.mapping.api.TransformationOutput;
    public class FetchPayload extends AbstractTransformation {
      String strData = null;
      @Override
      public void transform(TransformationInput arg0, TransformationOutput arg1)
      throws StreamTransformationException {
      // TODO Auto-generated method stub
      getTrace().addInfo("File Reading started ");
      String strData = convertStreamToString(arg0.getInputPayload()
      .getInputStream());
      getTrace().addInfo("File Reading successfully completed ");
      try {
      getTrace().addInfo("Generating XML started");
      strData.substring(strData.indexOf("<?xml"), strData.length());
      arg1.getOutputPayload().getOutputStream().write(
      strData.getBytes("UTF-8"));
      getTrace().addInfo("Generating XML started");
      } catch (IOException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
      public String convertStreamToString(InputStream in) {
      StringBuffer sb = new StringBuffer();
      try {
      InputStreamReader isr = new InputStreamReader(in);
      Reader reader = new BufferedReader(isr);
      int ch;
      while ((ch = in.read()) > -1) {
      sb.append((char) ch);
      reader.close();
      } catch (Exception exception) {
      return sb.toString();
    and u can get  the xml as a resultant which  u can use as input for next message mapping.
    thanks and regards,
    Praveen T

Maybe you are looking for

  • Computer reads itunes but itunes doesn't

    when i plug my ipod into the usb the screen goes into a do not disconnect screen and the computer recognizes the new device in the usb but itunes wont recognize that the ipod is in and thus wont update

  • Transfering costs from cost centre to a WBS

    Dear Experts, I have 250 PO's where the cost is booked to the cost centre. They were suppose to be loaded on to WBS elements. How do i transfer these costs to the WBS? Thanks Burzes

  • Performance issue - Result set

    Hi, I am facing performance problem with query execution. The code almost looks like this Statement stmt = con.createStatement(ResultSet.TYPE_FORWARD_ONLY, ResultSet.CONCUR_READ_ONLY); stmt.setFetchSize(0); result = stmt.executeQuery("SELECT  name, p

  • %edittable / cancel prompt table / calendar prompt

    Hello, Context : in my page I have a string field "Value" that can contains a date, a string, ... according to a selection made by the user. In my record I have put a %EDITTABLE for prompt table on this field Value. The problem is that sometimes, I d

  • Finder crash on lion

    I installed lion and afterwards the finder keeps crashing. I can access documents that I search for but I can't open folders... any ideas how to fix this? thanks!