Payload Search

Hi All,
This is with reference to the blog by Sravya:
ABAP based Trex in XI: Proto
We are having SP12 system. The solution suggested in the blog :
DATA payload TYPE ref to IF_XMS_PAYLOAD.
CALL METHOD xmb_msg->if_xms_message_xmb~get_payload_with_main_document
RECEIVING
return = payload.
CALL METHOD payload->getbinarycontent
RECEIVING
return = content.
Here "content" is not returning anything for success messages.
My question is : how are success messages interpreted in SXMB_MONI? for errored messages, we get the payload as attachment. so we can extract the payload. how can the same be done for success messages?
Can we extract the payload from some table using the message GUID?
Regards
Deepti

Hi Sam,
I knew about this but I'm on SP14.  I just wanted to build a simple query until we implement Trex.  A good old SAP trace to find the location of the payloads should help me out I guess!
Thanks
Yves

Similar Messages

  • 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

  • Issue in user defined payload search.

    Hi Experts,
    I tried to configure the payload search in SAP PI 7.1 EHP1 ; I followed the guides given in the links given below. After following every step, I am able to view till the last step but I am not able to get any output.
    After I define filter, extractors and prefixes; the filter becomes active. Now if I try to search with the message id I am able to find the values which I required are extracted (as expected). But when I try the same in SXI_MONITOR there is no result. I end up in getting no message available for selection window. I tried every variation which was prescribed in this websites which helped me fine tune my filter but still the error is very much present.
    Could you help me in solving this and throw light on why the test extractor is working but user-defined selection criteria is not working.
    I am using this in lower environment only.
    Links referred:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/803b22cf-ad75-2f10-0790-da055f2e8c0e?overridelayout=true
    http://help.sap.com/saphelp_nwpi711/helpdata/en/48/c85598f63335bfe10000000a42189d/content.htm
    http://scn.sap.com/people/niki.scaglione2/blog/2010/02/22/payload-searching-without-trex
    regards,
    Bharath

    hi barath,
    Extract during message processing will work for the messages that went through PI after this configuration has been done and it will not work for older messages.
    Extract with External batch job will apply this filter for older messages as well. Bit for achieving this you have to run batch job for program “SXMS_EXTRACT_MESSAGES”.
    We need to run the job for program “SXMS_EXTRACT_MESSAGES”. In SE38 we need to give this program name execute the program and give the date and time.
    after we need to check the messages in SXMB_MONI.
    Regards,
    Rajendar K

  • Payload Searching

    hi,
    this question is with reference to Alex's blog on payload searching.
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3196. [original link is broken] [original link is broken] [original link is broken]
    I have implemented this and my code searches all the first elements alone. My code fails when i try to filter the payload search based on the second/or succesive element value. i couldnt find a work around. Can anyone help me in this?
    Regards
    Deepti

    Hi All,
    I have found a work around for this. I converted my payload for each GUID into string and then had the search run using regular expressions.
    Deepti

  • 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>

  • Payload search w/o TREX

    Hi,
    I'm trying to find a way of searching XI messages for a payload value, without having to install TREX.
    Anyone have an idea if this is possible somehow?
    Related to this, is it possible to modify/control the generation of Msg ID?
    Will greatly appreciate input on this!
    /Mattias

    Hi,
    Have a look on this two weblogs:
    /people/sravya.talanki2/blog/2006/02/21/abap-based-trex-in-xi-proto
    /people/alessandro.guarneri/blog/2006/02/14/super-message-monitor-for-sap-xi
    Else develop you own abap program
    Mickael

  • 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

  • Payload search + BPEL 10.1.3.3

    Hi ,
    Can I perform search on payload(human task) ?. Please advice
    Thanks

    hi,
    From worklist application.I want to search task or instance based on payload whic is mapped to input variable data
    Thanks.

  • 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

  • Payload and Trace Search in SXMB_MONI

    All,
    We are on PI 7.11. As I understand the only way to have payload search capability in PI in production environment is through TREX. So I was thinking of writing a custom ABAP program for the same.
    Another thing is when we use multiple operations in one service interface, the only way to find in moni which operation actually got executed is to go through the trace in sxmb_moni.  So how about a custom ABAP program to read the trace.
    Your Thoughts.
    Thanks.

    Hi,
    That link is not much useful to me (I mean all the settings for fine in sxmb_adm..that i checked already)
    for more info: I am using SOAP adapter as a sender and receiver is R3
    Thanks
    Raja
    Edited by: Raja on Apr 15, 2008 10:47 AM

  • Payload Text Search

    Hi
    Does anyone know if its possible to do a payload text search within SXMB_MONI or any other message monitoring tool within PI?
    Instead of having to open each message and look at the payload.
    Thanks

    try implementing TREX;
    Standard functionality - /people/niki.scaglione2/blog/2010/02/22/payload-searching-without-trex
    https://websmp110.sap-ag.de/scl- Installation & Upgrade Guides- SAP NetWeaver-SAP NetWeaver PI 7.1- Installation
    Installation - Standalone Engines -SAP NetWeaver Search and Classification TREX

  • Context Search through TREX : Index Monitoring

    Hi,
    If you are using PI 7.1 with EHP1, then you can following threads to search the messages using Trex:
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d05c14c3-34af-2b10-a1b1-fa2a39e0d2ae
    /people/niki.scaglione2/blog/2010/02/22/payload-searching-without-trex
    It should be there, sicne Trex server is installed.
    Else, you have to write the ABAP code for search:
    /people/sravya.talanki2/blog/2006/02/21/abap-based-trex-in-xi-proto
    Regards,
    Sushama

    Hi ,
       The global settings is valid for all components u have selected for indexing. You can use the default value itself.
    ther are parameters like
        1)     Maximum number of messages per package to be transferred to the TREX server
        2)     Maximum size in KB of message packages transferred to the TREX server
        3)    Time interval in minutes for the periodic transfer of message packages to the TREX server for indexing
        4)    Time interval in hours for the periodic reorganization of the index of a component on the TREX server
        5)    Time period in days for the retention period of messages in the index
        6)    Time interval in minutes for the periodic processing of the TREX queue
        7)     Maximum number of entries for processing in the TREX queue
    Also ther are filters  available. if the filter is empty then all the messages will get indexed and will be available in search,
    if u enter any details in filter option, then  that particular interface only be indexed and only indexed messages will be available for content base search. The use of filter will improve the performance in case of large message flow and also it will save your hardware resources. but make sure that all required interfaces will be available in filter or other wise will searching you will get confused.
    Regards
    Pradeep P N

  • How to generate file name dynamically in receiver FIle adapter? Please help

    Dear Experts,
       I have a scenario where I need to generate output file with the name dynamically pulled from the XI payload.
       In receiver File communication channel I don't see any option where we can specify the XML path for the file name.
       For example:
       If my inbound XML structure (inbound interface) is like below:
       <filename>file123.txt</filename>
       <RootNode>
             <Element1>Product123</Element1>
       <RootNode>
      From this I need to pick the filename value and generate the output file with the same value.
      How can I achieve this? Please help!
    Thanks & Regards
    Gopal
    Edited by: gopalkrishna baliga on May 3, 2011 1:10 PM

    Gopal,
    You can use DynamicConfiguration class for this.
    You need to write UDF for this and with input of filename you want to set and map this UDF to the top level node.
    Refer the below famous blog from Micheal:
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    You can also use Variable substitution to get value from payload, search SDN on this.
    --Divyesh Vasani

  • TREX Engine not working in PI

    Hi Experts ,
      My team has configured TREX with PI, to monitor PI messages.
         I can see that , unlike the Integration Engine which has about 190000 messages,  there were no messages indexed for Adapter Engine, is this expected ?
      Am I missing some important configuration / settings.
    Please suggest.
    Regards,
    Arnab.

    Hi Arnab,
    For PI 7.1 with EHP1, then you can following threads to search the messages using Trex:
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d05c14c3-34af-2b10-a1b1-fa2a39e0d2ae
    /people/niki.scaglione2/blog/2010/02/22/payload-searching-without-trex
    It should be there, sicne Trex server is installed.
    Else, you have to write the ABAP code for search:
    /people/sravya.talanki2/blog/2006/02/21/abap-based-trex-in-xi-proto
    Also, if you have configured correctly cross check the steps below:
    The global settings is valid for all components u have selected for indexing. You can use the default value itself.
    ther are parameters like
    1) Maximum number of messages per package to be transferred to the TREX server
    2) Maximum size in KB of message packages transferred to the TREX server
    3) Time interval in minutes for the periodic transfer of message packages to the TREX server for indexing
    4) Time interval in hours for the periodic reorganization of the index of a component on the TREX server
    5) Time period in days for the retention period of messages in the index
    6) Time interval in minutes for the periodic processing of the TREX queue
    7) Maximum number of entries for processing in the TREX queue
    Also ther are filters available. if the filter is empty then all the messages will get indexed and will be available in search,
    if u enter any details in filter option, then that particular interface only be indexed and only indexed messages will be available for content base search. The use of filter will improve the performance in case of large message flow and also it will save your hardware resources. but make sure that all required interfaces will be available in filter or other wise will searching you will get confused.
    Also, check sap note: 1266924 if everything is fine!
    Hope this helps.
    Reg,
    Sushama
    Edited by: sushama pandey on Oct 5, 2010 6:53 AM

  • Correlating AS2 MDN to Original IDoc?

    Hi All -
    I have got the following scenario:
    1) Backend system (ECC) sends IDoc to SAP PI.
    2) SAP PI maps IDoc to EDIFACT message and sends via AS2 to B2B Partner.
    3) B2B Partner sends back AS2 MDN to acknowledge receiving of AS2 message.
    __Question:__
    How can I now correlate the AS2 MDN to the original IDoc and so forward the acknowledgement to the Backend system?
    I was thinking to use the 'Correlation ID' which is contained in the AS2 MDN and is the same ID as the original SAP PI message.
    However, how do I practically retrieve the IDoc number (part of original IDoc message and used as identifier in the ECC system) from the persisted messages of SAP PI?
    Can I code an ABAP or JAVA program which is than called within a mapping to query the persisted messages and give back the correlating IDoc number?
    Are there other ways to achieve this?
    Thanks for your inputs.
    Best Regards, Mathias.

    Hi Mathias,
    Approach1:
    I would definately not consider using BPM overhead on a high volume scenario. As the Output file(that will be generated) will be a simple XML message with just the data required for corelating with the MDN. All MDN's are expected to received within 1 min or less than 5 min.(B'cos it is a System level Acknowledgement), Hence if the BPM is not closed within the specified time period(1min or 5 min), raise an exception.
    The Corelation file that will be generated can look like
    <MDN_Corr>
       <SenderAS1ID>        --> Will be used for Corelating the MDN
       <ReceiverAS2ID>      --> Will be used for Corelating the MDN
       <TimeStamp>
       <IDOCNumber>
       <EDI_ISA_Control_No> --> Will be used for Corelating the MDN
       <EDI_Message_Type> 
    </MDN_Corr>
    Approach2:
    It might be very resource intensive to perform payload search. (and in some cases, the messages are archived, hence might result in bad search). Hence, you can have Z-Table all the fields as mentioned in the XML message. 1:1 mapping b/n EDI_ISA control number & IDOC_Number will be your lookup key-value params
    -SM

Maybe you are looking for

  • Excel 2013 - Locked file when trying to save

    After a user opens an excel file from a personal network share (EMC/ISILON storage) and make changes to the file, the user get a FILE LOCKED BY <USER> (Same user that is currently editing the file). We have also had issues where a user goes to open a

  • Reversal from cost center

    Hi all,          What is the effect on the costing, when I using the movement type 202 (reversal from cost center).at different storage location such as vendor rejection storage location, scrap storage location. Rakesh.

  • Where are the ID and Password fields in End User Login ?

    Hi: I need to modifiy the ID / Password labels of the end-user login. I searched it in the WPMessages.properties, but i only find the variable UI_PWD_LABEL, and if i change it, it saw in the Admin Login but not in the User Login. Any idea? Thanks, MJ

  • How To Work With Jtree Pls Help

    I heared about JTree but dont have idea to use it in form6i where i can get help or sample form can i use jtree in forms 6i

  • How di I copy and paste sections of pages

    How di I copy and paste sections of pages