Testing message mapping

helo xi guroos.
i just got one doubt like
in my scenario i have created one message mapping program.
in this mapping program i want to test for multiple records in body.
i found a technique of duplicate subtree for creating dummy multiple records in body.
but while testing the result is not matching when compered to my last mapping test with only single record in body.
waiting for u r response.
bye.
regards.
seeta ram.

Hi Ram,
just see the maximum occurace of topmost target node - it should be 0..unbounded and then you will get multiple target nodes for multiple source nodes..........also just assign the topmost target node to a constant field if you dont have any condition for creation of topmost target node........
Thanks,
Rajeev Gupta

Similar Messages

  • How to test message mapping in XMLSPY if two receive message types exist?

    Hi gurus,
    In our message mapping, we have one send message and two receive messages, the testing is ok in message mapping test tool in ESR. While in XMLSPY, it gave the error because of the reason as follows:
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
       <ns0:Message1>
    Even after we added those statments, the error was still there.
    How can I resove this problem? Thanks in advance.

    Hi,
    In the source XML message you may find some extra tags being included.
    Just remove those extra tags, then it will work fine.
    For example:
    If your source XML message is:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
    <ns0:Message1>
    <ns1:MT_FileToFile_MultiMap_Src xmlns:ns1="http://FileToFile/MultiMap">
    <Input>
    <Name>ab</Name>
    <EmpId>123</EmpId>
    </Input>
    </ns1:MT_FileToFile_MultiMap_Src>
    </ns0:Message1>
    </ns0:Messages>
    remove the extra tags and then it will look like:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_FileToFile_MultiMap_Src xmlns:ns0="http://FileToFile/MultiMap">
    <Input>
    <Name>ab</Name>
    <EmpId>123</EmpId>
    </Input>
    </ns0:MT_FileToFile_MultiMap_Src>
    i hope this will help you,
    regards,
    ganesh.

  • Error in Multi Message Mapping

    Hi,
    I am getting the following error in my multi message mapping scenario where I am trying to create 2 different output files from a single input file based on some condition. I tested the message mapping by using a test file and it works fine, but when I use the same file and test it end to end the scenario is failing with the following error.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--
    Request Message Mapping
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="MAPPING">GENERIC</SAP:Code>
      <SAP:P1>Split mapping created no messages</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>Split mapping created no messages</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Is there something wrong with my configuration?
    The trace has the following content.
    Trace level="1" type="T">*** START APPLICATION TRACE ***</Trace>
      <Trace level="3" type="T">Document start</Trace>
      <Trace level="3" type="T">Start tag [ns0:Messages]</Trace>
      <Trace level="3" type="T">Add raw attribute [ xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge"]</Trace>
      <Trace level="3" type="T">Start tag [ns0:Message1]</Trace>
      <Trace level="3" type="T">Close tag [ns0:Message1]</Trace>
      <Trace level="3" type="T">Start tag [ns0:Message2]</Trace>
      <Trace level="3" type="T">Close tag [ns0:Message2]</Trace>
      <Trace level="3" type="T">Close tag [ns0:Messages]</Trace>
      <Trace level="3" type="T">Document end</Trace>
      <Trace level="1" type="T">*** END APPLICATION TRACE ***</Trace>
      <Trace level="2" type="T">Java mapping com/sap/xi/tf/_Employee1_MT_To_Employee1_MT_AND_Employee2_MT_MM_ completed. (executeStep() of com.sap.xi.tf._Employee1_MT_To_Employee1_MT_AND_Employee2_MT_MM_).</Trace>
      <Trace level="3" type="T">Message Type 1 Number of Messages 0</Trace>
      <Trace level="3" type="T">Message Type 2 Number of Messages 0</Trace>
      <Trace level="1" type="E">CL_XMS_PLSRV_MAPPING~ENTER_PLSRV</Trace>
      </Trace>
      <Trace level="3" type="System_Error">Error exception return from pipeline processing!</Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_TO_PERSIST" />
    - <!--
      -->
      <Trace level="3" type="T">Persisting message Status = 014</Trace>
      <Trace level="3" type="T">Message version 001</Trace>
      <Trace level="3" type="T">Pipeline CENTRAL</Trace>
      </SAP:Trace>

    Hi,
    The scenario I am trying to test is a multi mapping scenario where I am trying to split one source message and create two target messages by using two different receiver interfaces, one for each message.
    I am on PI 7.1 and when I test message mapping and operation mapping using the payload from SXMB_MONI, it is successful. Whereas when I test the scenario end to end I am getting the following error messages:
    Operation Mapping
    Employee_Out_SI_To_Employee1_In_SI_AND_Employee2_In_SI_OM
    Name
    Employee_Out_SI_To_Employee1_In_SI_AND_Employee2_In_SI_OM
    Namespace
    http://accenture.com/1:N_multi-mapping
    Runtime error
    Split mapping created no messages
    Start tag ns0:Messages Add raw attribute xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge" Start tag ns0:Message1 Close tag ns0:Message1 Start tag ns0:Message2 Close tag ns0:Message2 Close tag ns0:Messages
    Could someone please help
    Cheers,
    S

  • File-name not being fetched in a multi-message mapping by Dynamic Conf

    In a scenario, i have a BPM which has a transformation step which contains a mutimapping ...means 2 messages mapped to 1 messgaes, here in the mapping i m using an UDF and written code to extract the file name from dynamic configuration.....
    the problem is ...the same BPM contains another transformation step which contains a message mapping (which is not multi mapping), and here the code (UDF) works to fetch the file name...
    the code is all correct....and it looks like
    DynamicConfiguration conf = (DynamicConfiguration)
    container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String sourceFileName = conf.get(key);
    if (sourceFileName == null ){
    sourceFileName = "ErrorFile.xml";}
    return sourceFileName;

    Hi,
    The scenario I am trying to test is a multi mapping scenario where I am trying to split one source message and create two target messages by using two different receiver interfaces, one for each message.
    I am on PI 7.1 and when I test message mapping and operation mapping using the payload from SXMB_MONI, it is successful. Whereas when I test the scenario end to end I am getting the following error messages:
    Operation Mapping
    Employee_Out_SI_To_Employee1_In_SI_AND_Employee2_In_SI_OM
    Name
    Employee_Out_SI_To_Employee1_In_SI_AND_Employee2_In_SI_OM
    Namespace
    http://accenture.com/1:N_multi-mapping
    Runtime error
    Split mapping created no messages
    Start tag ns0:Messages Add raw attribute xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge" Start tag ns0:Message1 Close tag ns0:Message1 Start tag ns0:Message2 Close tag ns0:Message2 Close tag ns0:Messages
    Could someone please help
    Cheers,
    S

  • RuntimeException in Message-Mapping transformation: Runtime exception durin

    Hi Friends,
    Iam going test Message Mapping, i got the error like
      RuntimeException in Message-Mapping transformation: Runtime exception during processing target field mapping /ns0:LeapIndent_R3_MT/Recordset/RowData/QTY_TNS. The message is: Exception:[java.lang.NumberFormatException: empty String] in class com.sap.aii.mappingtool.flib3.Arithm method formatNumber[, com.sap.aii.mappingtool.tf3.rt.Context@27f972cf]
    Pls help me ..
    Thanks & Regards,
    Nvr

    Hi Ravi,
      Thanks for ur reply, the problem is solved, the Date field is Mandaratory, they are not mention the data field, so that way the problem is coming.
    Thanks & Regards,
    NVR

  • UDF Problem in message mapping

    Hi,
    I have proxy to file scenario where i am getting mapping error
    Runtime exception during processing target field mapping /ns0:DataManagement/payrollArea. The message is: Exception:[java.lang.NullPointerException] in class com.sap.xi.tf._DataManagement_to_DataManagementM4_ method SetFileName$[, com.sap.aii.mappingtool.tf3.rt.Context@1861efad].
    There is one UDF Set file Namewhich t is throwing  error.
    UDF Setfilename
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName");
    String targetFileName="DMS_" + a + ".dat";
    conf.put(key,targetFileName);
    return a;
    Please help me in this issue.
    Thanks in Advance

    Hi,
    This error will not come while actual run of scenario.
    During Testing Message mapping, this might be coming to you, but while actual run scenario will work fine.
    and one more thing ...
    please your code inside try .. catch block of java code
    try
    /* your actual code */
    catch(Exception e)
    String exception = e.toString();
    return exception;
    Hope this will help you.
    Regards
    Prabhat Sharma.

  • Message mapping in IR

    <b>Hi Folks,
    When you test Message Mapping in IR, If u copy a large XML (IDoc XML) in source pane of test tab, the XML is not
    getting displayed (Pane becomes blank white), yet Execution happens perfectly.
    Any suggestions / feed back on this particular issue...
    Waiting for your valuable answers...
    Cheers
    Ram.</b>

    Instead of copy and paste, save the xml and import.  this works quicker.
    I think it is just a cache thing.

  • Message mapping editor

    in messgae mapping editor, what are the nodes with a "red circle" mean....and what does green colored and red colored circle means,
    sometimes i encounter this problem while testing message mapping:
    "Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd"
    can u detail this

    The nodes with a little red-lined circle are the nodes that are marked with max occurrence > 1 (for example, unbounded). That means that these fields can occur repeatedly in the target message.
    Green circles mean fields that you have already mapped or that are not necessary to be mapped, they will be created automatically (for fields with 1...1 occurrence in target message).
    Grey circles mean fields that you haven't mapped yet, but that are not necessary (optional fields, with min occurrence = 0). In particular, nodes which accept multiple instances (with little red circle) will have gray circle, even if they have min occurrence >= 1. You'll have to pay attention on those.
    Red circles mean fields that are obrigatory in target message (for example, fields with min occurrence = 1) but are not mapped yet.
    Regards,
    Henrique.

  • In message mapping testing i'm getting this   Error

    hi,
       in message mapping testing i'm getting this error..  can u plz explain what is this error.. and how can i solve this error..
    12:27:47 Start of test
    Source code has syntax error:  D:/usr/sap/XID/DVEBMGS10/j2ee/cluster/server0/./temp/classpath_resolver/Mapf3292850763411dcbfab0013726698e1/source/com/sap/xi/tf/_TRNG_TEST_4_IM_RECEIVERS_.java:72: illegal start of expression </textarea> ^ D:/usr/sap/XID/DVEBMGS10/j2ee/cluster/server0/./temp/classpath_resolver/Mapf3292850763411dcbfab0013726698e1/source/com/sap/xi/tf/_TRNG_TEST_4_IM_RECEIVERS_.java:73: ';' expected } ^ 2 errors  Source code has syntax error:  D:/usr/sap/XID/DVEBMGS10/j2ee/cluster/server0/./temp/classpath_resolver/Mapf3292850763411dcbfab0013726698e1/source/com/sap/xi/tf/_TRNG_TEST_4_IM_RECEIVERS_.java:72: illegal start of expression </textarea> ^ D:/usr/sap/XID/DVEBMGS10/j2ee/cluster/server0/./temp/classpath_resolver/Mapf3292850763411dcbfab0013726698e1/source/com/sap/xi/tf/_TRNG_TEST_4_IM_RECEIVERS_.java:73: ';' expected } ^ 2 errors
    12:27:48 End of test
    thanks
    Babu

    BABU,
    In your message mapping correct the UDF code.
    There is a problem in your textarea and you have missed to place semi colon ";".
    Regards,
    Sarvesh

  • Message Mapping : Testing at Runtime

    Hi all,
    I am doing scenario File XI IDoc...
    I was encountering error.. Runtime exception in Mapping...
    So i tried the testing step described by michal.
    if i paste the payload of the data obtained from SXMB_MONI in test tab of message mapping editor i will get error
    <i>Cannot produce target element /WGSREQ02/IDOC/E1WGRK1. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd </i>
    but for the same paylod in "src" of testing tab if i add namespace the testing is working fine.
    Kindly can anybody give me suggestion
    Regards,
    Ramesh P
    Message was edited by:
            Ramesh Parashivamurthy

    Message Mapping
    http://help.sap.com/saphelp_nw04/helpdata/en/49/1ebc6111ea2f45a9946c702b685299/frameset.htm
    User Defined Functions:
    http://help.sap.com/saphelp_erp2004/helpdata/en/22/e127f28b572243b4324879c6bf05a0/frameset.htm
    Advanced Graphical Mapping:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/b9af5e71-0701-0010-d0b8-f612fb6593dd
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/be05e290-0201-0010-e997-b6e55f9548dd

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

  • Get source FileName - RuntimeException during test of Message Mapping

    Hi,
    Inside a graphical mapping, I want to get the source file name, and then use it.
    For that I use Michal's post inside a UdF: The specified item was not found.
    And that works perfectly during the treatment (File -> Mapping -> IDoc)...
    But my problem is when I try to test my Message Mapping inside the I.R (see tab "Test"), I have a RuntimeException due to the fact that DynamicConfiguration does not exist (obviously!) in the SOAP.
    So I tryed to encapsulate the line "String ourSourceFileName = conf.get(key);" by a try/catch or by using the method "containsKey", but I have always the same RuntimeException...
    is there someone who know how to catch this exception ?
    Regards
    Mickael
    Note: JavaDoc is: http://help.sap.com/javadocs/NW04S/current/pi/com/sap/aii/mapping/api/DynamicConfigurationKey.html

    Hi Progirl
    yes... but it will be not really pratical for the maintenance to think everytimes that this "error" is not an error and to think to delete the link in order to realize a test and then to not forget to add (again) this link.
    the risk is too important.
    Hi Varun,
    yes... but with the Test of Interface Mapping, I don't have the possibilty to see the Queue and all options than we have inside the Message Mapping... So it's will be not really practical for the maintenance.
    The solution is really to catch this exception directly inside the UdF which generates this Exception.
    I'm sure there is a Java solution for that, but not yet found the good syntax... I continue.
    Regards.
    Mickael

  • 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

  • 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

Maybe you are looking for

  • How can I edit a form that has "Extend Features in Adobe Reader"?

    I created a form in Adobe Acrobat Pro 9 and added Extend Features in Adobe Reader. I need to edit the form, but "Save a Copy" isn't removing the "Extend Features...". I get an error message that I can't edit the form & to "save a copy" in order to ed

  • Skype problem HTC 8S WP8.1

    Hello guys... I have a problem with skype on my WP device i just updated my phone to wp 8.1 and i download skype... and after that i installed skype,and skype just crash a lot of times and i can't call anyone.I just wait and nothing is happening just

  • Can anyone give me feedback on the 100-400mm lens?

    I am looking at replacing my 35-350mmL lens with a 100-400mm lens.    Anything I should know about the 100-400mm lens?

  • Need to "turn off" (disable) scientific notation

    How can I prevent real (floating point - whatever) numbers from displaying (within a table) in scientific notation. Appears to be for numbers > 9999999.. The number 27000000 is displayed as 2.7E7 Thanks

  • Credit card hacked thru iTunes?

    I have a credit card that wasn't stolen, and has no balance on it. However, the day after I made an iTunes purchase for $1 (I bought one song), someone tried to charge $2,700 on my card. My credit card company called me to ask if I authorized that ch