Message Mapping via Test tab

Hi All
I am trying to send a message via the Test tab of the integration server.I have entered all the details like sender and receiver service and sender interface and namespace. The scenario is JDBC to file. I am using EO as qualilty of effort .The scenario is asynchronous .Once i test the payload in message mapping it gives me the correct output values. But when the same payload I paste it and send via the test tab it does not go thru. I mean sometimes I get the same message at both sender and receiver.And other times it goes into error "Split mapping created no messages " .Can anyone please help me on this as to what might be the problem.
We have used enhanced interface determination in this.Is it due to this????
The payload appears like this.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
   <ns0:Message1>
      <ns1:MT_TEST xmlns:ns1="http://testinterface.com">
         <row>
            <DESCRIPTION/>
            <ITEM_NAME/>
            <CREATION_DATE/>
         </row>
      </ns1:MT_TEST>
   </ns0:Message1>
</ns0:Messages>

<?xml version="1.0" encoding="UTF-8"?>
<ns1:MT_TEST xmlns:ns1="http://testinterface.com">
<row>
<DESCRIPTION/>
<ITEM_NAME/>
<CREATION_DATE/>
</row>
</ns1:MT_TEST>
Only send the above structure as payload....do not include the other tags....they cause the error
Regards,
Abhishek.

Similar Messages

  • Problem is testing mapping via test tab - URGENT

    Hello experts,
    I have a idoc to file scenario. Now in my production environment, SAP r/3 is sending some 14 idocs containing around 13000 article informations in all. 12 of the 14 idocs have been processed successfully but 2 idocs errored out.
    When i see the monitor, it says null pointer exception in mapping. that means its giving error in one of my udf. But what exactly the error is can only be found if i test my mapping with this payload.
    I download the XML (which i very big as it contains some 850 article information) and when i try to upload this xml in the test tab, it gives me error that the tree cannot be created and IR hangs. It doesnt respond anymore and i need to forcefully close it via Task Manager. I dont understnad why is it not able to upload the XML. Is there any limit to which the test tab can take the xml or am i missing something.
    Please help as this si really urgent as i am working on the production system.
    regards,
    Yash

    hi
    Chk the XML structure first..It will really better if U can download the Altova XML tool (if possible ) and can chk the structure .
    Java null pointer exception comes if one of ur object is not getting the proper value..
    That means U initialize ur object ..U use also in any method..
    When U use the object in method it is not getting the exact "value"  u want to pass.Chk also the UDF..
    I think the error is due to the UDF u hv written..
    Cheers
    MANas

  • Regarding nodes shown in red colour in message mapping under test (tab)

    hi all.
    i just want to confrom one thing.
    i just created a file to rfc scenario and when i was tested and look in sxmb_moni its showing like the message was sucess but when i ltested in message mapping in design there were some nodes in sender Message type which were displayed in red colour.
    and when i look in runtime workbench the message is showing like system error.
    so can you guys tell me what could be the reason for this.
    waiting for your response.
    bye.
    regards.
    seeta ram.

    hi rinku .
    i think you havent understand my problem.
    here the message in moni was showing as succes but when i tested the same message which was in moni in message mapping (design) there were some nodes which were in red colour and these nodes are not populated to reciever message type  .but it was in sxmb_moni with all the nodes .
    what could be the reason for this.
    can u tell me fast and i case if u still havent understand the Q u can ask me.
    waiting for your response.
    bye.
    regards.
    seeta ram.

  • Parameterized Message Mapping (RFCLookup) test in ESB message behaviour

    Hi Gurus,
    I am using parameterized message mapping using RFCLookup function
    In the TEST tab of the mapping, I've provided my test xml instance message and inputted the Message Mapping Parameter (MMP) value with the RFC Receiver Communication Channel I am using,
    looking at the Trace level in the editor, the source field value was put to the RFC as the import parameter, but the mapping fails with error that the RFC returned my defined exception (no POnumber available for MaterialNumber) --> which is not the expected result because in the ERP backend there is an existing PO for the material.    I tested the RFC in the backend ERP itself and it is performing ok, with a PO number returned for the material (testing in SE37)
    I checked on the Comm Channel and my message is being passed to the RFC adapter, but up to this point only:
    RfcAdapter received a synchronous message. Trying to send sRFC for Z_RFC_NAME.
    RfcAdapter received a synchronous message. Trying to send sRFC for PIREPUSER.
    I have created the Binding for the Operation Mapping.
    Would any of you have an idea on what is missing or what is wrong?
    P.S.   my RFC has a defined exception in it, but currently I am not using it in the RFCLookup  mapping (unchecked "Use Exception" checkbox)

    Hi All,
    Solved the issue by passing the complete length of input parameter as defined in my RFC, e.g. input param in RFC is TYPE to a 12 char field, and the input parameter value being passed by the IDoc is only 6 chars.
    In this case i used formatNumber function to put leading zeroes to complete the input parameter length
    sourceField -->formatNumber --> RFCLookup --> targetField
    Weird behaviour though is that even if my message is successfully received in the receiving system, the RFC CommChannel that my RFCLookup is using is still only showing this:
    2010-12-01 23:14:32 Information RfcAdapter received a synchronous message. Trying to send sRFC for Z_FM_NAME.
    2010-12-01 23:14:32 Information RfcAdapter received a synchronous message. Trying to send sRFC for J2EE_GUEST.
    Why isn't the whole request response of the RFC captured by the RFC adapter?  (e.g. MDT has status DLVG, DLV...)

  • Missing node in Message Mapping when test mapping??

    Experts,
    I have the following Mapping Structures:
    Sender:
    <Recordset> 1-1
       <Records> 1:unbounded
            <field1>1:1
            <field2>1:1
    Receiver:
    <Recordset> 1-1
        <Header> 1-1
         <Records> 0-unbounded
               <field1>
               < field2>
         <Trailer> 1-1
    Mapping is completed for  all fields here.But one thing I notice is on Receiver side : all nodes are Green exept Records - it is Gray with some red smal dot in the gray..
    1.Question: What this means?Shouldn't all nodes turn green after mapping is done??
    2.When click on TEST on Message MApping I dont even see the Receiver Records node appearing on right(receiver side) But I was able to see Header and Trailer...Why the Records is missing??
    On the other hand the result from the test is successfull which is even more confusing ,How come it can be succesful since Records is not there...
    I can provide screenshots if needed for more clarity ..Any help is appreciated asap..Thanks much to all!
    J...

    Hi John,
       It is very simple and there is no complexity with this problem.
      <b> 1.Question: What this means?Shouldn't all nodes turn green after mapping is done??</b>
            If you mapped the source field to the correspoding target field..all the target fields get turn to green color. If you didn't mapp any target field that filed should appear with gray color..comming to the small circle in the recordset field...it is indicates that ..that field is "Unbounded".
       For resolving the above issue...do the mapping like this.
       <Recordset>---><Recordset>
       <Records>-------><Records>
       <field1>----><field1>
       <field2>-----> <field2>1
    Keep the empty constant value for the target field Header...
       empty constatnt---->Header.
    So once you done this check the mappping it will execute fine and even you able to see the recods node in the target structure.
      Please let me know if you have any queries...!
    Thanks and Regards,
    Chandu.

  • Use exported parameter from message mapping (via UDF) in next mapping prog

    Is there any chance to assign an exported parameter from one message mapping to another mapping program within an operation mapping?

    Hi,
    Try using  dynamic configuration
    1. Set value in message mapping and
    2. Get value in java mapping
    Refer this link http://help.sap.com/saphelp_nw04/helpdata/en/43/03612cdecc6e76e10000000a422035/content.htm
    Regards
    Suraj

  • Message-Mapping: difference test in IR and runtime

    Hi everybody,
    I got a very strage behavior.
    I got an element name CONTENT.
    When I test my mapping in IR element CONTENT will be filled
    During runtime the element CONTENT is NOT filled and the element is not generated!
    For testing I use exactly the same payload as produced is runtime.
    To make sure that there are not problems with cache, I manipulate other target field to see that the correct version is processed.
    Any ideas?
    Regards Mario

    Hi,
    for everybody:
    I think I got the problem.
    As I read dynamic attributes during runtime the behavior test <-> runtime was different.
    Regards Mario

  • How to Alert RFC connection failure via message mapping? Kindly Help!

    Hi Experts,
        I have a JMS - XI - RFC scenario.
    JMS receives the Rosattenet PIP contents and sends it to RFC function module in remote SAP R/3 system.
       I have a requirement where I have to monitor RFC connection failure because of the remote R/3 system being down. I have to send a email alert where the subject contains the PIP number to understand for which PIP the connection failed.
      The PIP number exists in the PIP content at the interface.
      If I use the Alert configuration in the runtime workbench for monitoring then I cannot dynamically pass the PIP number.
      Only way I think of triggering alert is in the message mapping via a Java UDF.
      But I am not sure how can I do this? How do I check in the UDF if RFC connection has failed? Is this the correct approach?
      How to acheive my requirement? Note that my email subject content is dynamic bacause if PIP number.
    Please help!
    Thanks
    Gopal
    Message was edited by:
            gopalkrishna baliga

    Hi Gopal,
    what version/sps of XI are u running?
    The easiest way to do what u want inside a UDF is to
    1. use JCo to try estabilish a connection to the remote SAP System
    2. if that fails, use JavaMail to send an email message
    Let your UDF work on the PIP number, accepting it as input, and (maybe) returning it as output if everything goes ok. Otherwise break the mapping execution as described by Michal in one of his last weblog (using Dynamic Configuration).
    Note that the above method doesn't guarantee that the message will be actually delivered, as some seconds could last between your check and the real RFC delivery operated by the Adapter Engine...
    I am evaluating a way to do the same with Alert Framework. I will let you know the result!
    Cheers,
    Alex

  • Runtime exception caught in Message mapping

    Hi,
       I have a scenario where I am splitting the source message and map them to 3 different target structures.
    When I test the scenario in the Mapping under Test tab it is throwing an error as follows:
    RuntimeException in Message-Mapping transformation: Cannot produce target element /ns0:Messages/ns0:Message1/Target1/xmlJob. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd.
    The result for one of the target message in message mapping as follows: Is there some problem with the below lines in bold letters:There is a UDF which causing this transformation.
    Please give some inputs on this.
    Start tag [ns1:MT_O_T3]
    Add raw attribute [ xmlns:ns1="http://pharma.com/"]
    Start tag [Row]
    Start tag [Title]
    Put value [job titile]
    Close tag [Title]
    Start tag [JobID]
    Put value [reference # 1]
    Close tag [JobID]
    Start tag [Country]
    Put value [US]
    Close tag [Country]
    Start tag [City]
    Put value [Mawo]
    Close tag [City]
    Start tag [State]
    Put value [SA]
    Close tag [State]
    Start tag [ZipCode]
    Put value [50123]
    Close tag [ZipCode]
    Start tag [Cname]
    Put value [ ]
    Close tag [Cname]
    Start tag [Cphone]
    Put value [ ]
    Close tag [Cphone]
    Start tag [Cemail]
    Put value [ ]
    Close tag [Cemail]
    Start tag [Cweb]
    Put value [http://www.pharma.com/]
    Close tag [Cweb]
    Start tag [Category]
    Put value [9901]
    Close tag [Category]
    Start tag [Travel]
    Put value [100]
    Close tag [Travel]
    Start tag [Telecommute]
    Put value []
    Close tag [Telecommute]
    Start tag [JobType]
    Put value [Executive]
    Close tag [JobType]
    Start tag [Clearance]
    Put value [None]
    Close tag [Clearance]
    Start tag [Education]
    Put value [1]
    Close tag [Education]
    before check 50000
    after check 50000
    before check 100000
    after check 100000
    after average 75000
    Start tag [Salary]
    Put value [Avg: 75000]
    Close tag [Salary]
    Start tag [Suitable]
    Put value [ ]
    Close tag [Suitable]
    Start tag [Expire]
    Put value [23]
    Close tag [Expire]
    Start tag [Sdesc]
    Put value [job titile]
    Close tag [Sdesc]
    Start tag [Ldesc]
    Put value [null]
    Close tag [Ldesc]
    Start tag [Requirements]
    Put value [test description]
    Close tag [Requirements]
    Close tag [Row]
    Close tag [ns1:MT_O_T3]
    Thanks
    BPR

    u replied that u r getting the erro while testing it from test tab.
    Ur mapping is not correct check the same which i told u in my previous reply.
    r u using any FCC.
    chirag

  • Message Mapping error:  RuntimeException in Message-Mapping transformation

    Hi,
    Being new to XI, I am struglling to sort out a basic mapping error. Appreciate if you could help out.
    Its an File->XI->R/3 scenario.
    My FCC successfully reads the File and creates an XML. However this XML is not transferred to the target XML structure which is exactly same except the root element name is different at top.
    I tried various forum tips but I still am getting the error.
    ( When I Test the Message mapping in test mode..it seems fine, however if I copy the XML from SXMB_MONI, it then throws the above error)
    I looked at the MM in text mode: below is the extract
    /ns0:MT_REQUEST_TO_SAP/REQUEST_DETAILS/MSG_HEADER=/ns0:MT_REQUEST/REQUEST_DETAILS/MSG_HEADER=
    /ns0:MT_REQUEST_TO_SAP/REQUEST_DETAILS/MSG_HEADER/SOURCE=/ns0:MT_REQUEST/REQUEST_DETAILS/MSG_HEADER/SOURCE=
    /ns0:MT_REQUEST_TO_SAP/REQUEST_DETAILS/MSG_HEADER/DESTINATION=/ns0:MT_REQUEST/REQUEST_DETAILS/MSG_HEADER/DESTINATION=
    /ns0:MT_REQUEST_TO_SAP/REQUEST_DETAILS/MSG_HEADER/MESSAGE_ID=/ns0:MT_REQUEST/REQUEST_DETAILS/MSG_HEADER/MESSAGE_ID=
    As seen the name space in both starts with nS0 and end of each line has '=' sign. Is that ok.
    I have run out of options and dont know , whats the problem. Please help.
    The target and Source XML structures are exactly same as shown below
    MT_REQUEST                                 MT_REQUEST_TO_SAP
       |__MSG_HEADER                            |__MSG_HEADER  
         |__SOURCE                                |__SOURCE
         |__DESTINATION                           |__DESTINATION
         |__MESSAGE_ID                            |__MESSAGE_ID
    And the SXMB_MONI Trace shows the following error
    <Trace level="1" type="T">com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation:
    Cannot produce target element /ns0:MT_REQUEST_TO_SAP.
    Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at ..
    Thanks
    Shirin
    Edited by: Shirin K on May 29, 2008 10:29 AM

    Hi Prakasu,
    As structure are exactly same, I have done 1:1 mapping. So all the fields in target structure are mapped, so no field has beeen left.
    In this structure, I do not have any 1:n relation. So 1:1 mapping should be fine.
    Apart from this could teher be any other reason.
    Regards
    Rajiv

  • Function Module Undefined during message mapping.

    Hi,
    My Scenario is Idoc to Multiple Files without any condition i have to drop 2 files at the 2 differient directories of  FTP,
    So we are using PI 7.1 and in the Message Mapping using Signature Tab we have added 2 Target messages and at the source we have used the IDOC.
    When we see the structure under Definition Tab in Message Mapping, We are facing the below error
    "FUNCTION MODEL UNDEFINED"
    So can anyone suggest what could be the problem, do i need to change any occurence in the signature tab for the message types else what shuld i do to get the structures in the Definiton Tab.
    Please suggest how to approach this..
    Thanks,
    --Kishore

    My Scenario is Idoc to Multiple Files without any condition i have to drop 2 files at the 2 differient directories of FTP,
    1. Use multi mapping - /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
    2. use two different inbound interfaces, and do two different interface determination without conditions for the same receiver determination

  • Message mapping source side

    Hi Experts,
    Is it possible to copy the message in source side in message mapping using src tab?
    Regards
    Sara

    You cant get the required target xml structure with values untill u complete the mapping
    Why because if you have any transformation in mapping means you have to generate the target values according to that
    So better to complete the mapping and take the xml file
    Regards
    Seshagiri
    Edited by: N V Seshagiri on Dec 2, 2008 7:05 AM

  • Test XML file and Message Mapping test tab not compatible

    Hi all,
    I need help in testing in message mapping test tab.
    I have a xml data taken from SXMB_MONI which looks lik below
    &?xml version='1.0' encoding='UTF-8'?>
    -&ns0:MT_Order xmlns:ns0="http://test.com/xi/test">
    -<Header>
          <fld1>
          <fld2>      
        -<Line>
            <line1>
    and in message mapping multimapping is used,so it looks like
    ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
       <ns0:Message1>
          <ns1:KVNR_Senden_MT xmlns:ns1="urn:lsv.de/SENDER">
             <Inhalt>
                <KE/>
                <VF/>
                <BBNRAB/>
                <BBNREP/>
    how can test this xml in message mapping test tab?please don't consider the structure .I don't have them.So,i have pasted some dummy structure

    Try like this,
    ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
    <ns0:Message1>
    <&ns1:MT_Order xmlns:ns0="http://test.com/xi/test">
    <Header>
          <fld1>
          <fld2>      
        -<Line>
            <line1>

  • Message Mapping vs Interface Mapping test tabs giving different results.

    Hi all,
    I am developing an interface that always requires an output file to be created (even if there is no data).  I have found a way to change my select statement in the JDBC sender to initiate the message even if there isn't any data (using UNION select -1 ID, '' col1, '' col2, etc.) and that seems to work fine.  I then put logic in the message mapping to suppress the row that contains the -1 ID value, which would result in an empty file when there is no other data, and should result in a file containing only the correct data when there is data.
    So, my problem: I am always getting empty files with this logic.  I tested the logic in the message mapping test tab and it worked perfectly, however when I test it using the interface mapping test tab it results in what becomes an empty file!
    My source and destination structures are fairly simple:
    Root
    --row
    ID
    col1
    col2
    The logic I use to suppress the ID = -1 row is:
    =removeContexts([]ifWithoutElse([keepss=true]Not([]equalsS([]ID, Constant([value=-1]))), SplitByValue([type=Each value]row)))
    Obviously, I'm stumped - any help would be appreciated!
    Edited by: Mike Morrison on Sep 23, 2010 5:04 PM

    Hi Mike,
    Can you quote the error log..u r getting error in message mappin or interface mapping?
    Please suggest the test results for both the mappings.
    Thanks,
    Sushama

  • Error when testing from Message mapping test tab

    Hi Experts,
    I am wondering that when i test the message in the MM test tab its giving error and target message is not generating. I am not testing end to end then why it is triggering communication channel?
    I can see that the 'RFC_Alert_Service_RFC_Receive' communication channel is in Red color RWB--> communication channel monitoring. I even even refreshed the cache and also activated the RFC channel but no use.
    Below are the error details:
    Error when testing message from test tab of mapping -->
    java.lang.RuntimeException: Exception during processing the payload.Problem when calling an adapter by using communication channel RFC_Alert_Service_RFC_Receiver (Party: , Service: RFC_Alert_Service, XI AF API call failed. Module exception: 'error while processing the request to rfc-client: com.sap.aii.af.rfc.afcommunication.RfcAFWException: RfcAdapter: receiver channel has static errors: can not instantiate RfcPool caused by: com.sap.aii.af.rfc.RfcAdapterException: error initializing
    Error in Communication channel monitoring -->
    Receiver channel 'RFC_Alert_Service_RFC_Receiver' for party '', service 'RFC_Alert_Service'
    Error can not instantiate RfcPool caused by:
    com.sap.aii.af.rfc.RfcAdapterException: error initializing RfcClientPool:com.sap.aii.af.rfc.core.repository.RfcRepositoryException: can not connect to destination system due to: com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: Password logon no longer possible - too many failed attempts.
    Please help me how can i resolve this issue to successfully test the message in mapping-test tab.
    Regards,
    Suresh.

    > Error in Communication channel monitoring -->
    > Receiver channel 'RFC_Alert_Service_RFC_Receiver' for party '', service 'RFC_Alert_Service'
    > Error can not instantiate RfcPool caused by:
    > com.sap.aii.af.rfc.RfcAdapterException: error initializing RfcClientPool:com.sap.aii.af.rfc.core.repository.RfcRepositoryException: can not connect to destination system due to: com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: Password logon no longer possible - too many failed attempts.
    Unlock the user you are using in the RFC channel and provide the correct password in the channel configuration. Once the channel error is resolved you would be able to test the Mapping sucessfully...
    >>why it is triggering communication channel?
    You would be using RFC lookup in the mapping....
    ~SaNv...
    Edited by: Santhosh Kumar V on Jul 8, 2009 5:48 PM

Maybe you are looking for