cancel
Showing results for 
Search instead for 
Did you mean: 

Test XML file and Message Mapping test tab not compatible

sahana_ps
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member186851
Active Contributor
0 Kudos

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>

former_member586297
Discoverer
0 Kudos

Copy and paste from the Header tag (<Header>), and put it in the MT segment which you need to test.

former_member186851
Active Contributor
0 Kudos

Hello Sahana,

In sxmb_Moni,in the paylod right click->select view source.

XML will open in notepad,use that payload,it will work

Former Member
0 Kudos

Hi.

You can try to remove <ns0:Message1> tag.

Regards.