cancel
Showing results for 
Search instead for 
Did you mean: 

XML pattern

Former Member
0 Kudos

i am doing a scenario,,,i mean from legacy to SAP

Legacy people are asking for sample XML file from XI...so that they will their XML accordingly...

i am confused if i need to add message type and if any..

<ROOT>

<OrderNumber>12345</OrderNumber>

<AppointmentDateTime>MM/DD/YYYY HH:MM</AppointmentDateTime>

< ContactNumber>2345678</ ContactNumber>

<ReasonCodedescription>gtrbfv</ReasonCodeDescription>

<OrderType>ftgh</OrderType>

<LoadNumber>gghh</LoadNumber>

<StopNumber>ggg</StopNumber>

<AppointmentNumber>ggg</AppointmentNumber>

<AppointmentContactName>gggg</AppointmentContactName> -

</ROOT>

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Your message type use to be the header node in XML tags.

Please refer below XML sample file,

<?xml version="1.0" encoding="UTF-8"?>

<MT_Test>

<ROOT>

<OrderNumber>12345</OrderNumber>

<AppointmentDateTime>MM/DD/YYYY HH:MM</AppointmentDateTime>

< ContactNumber>2345678</ ContactNumber>

<ReasonCodedescription>gtrbfv</ReasonCodeDescription>

<OrderType>ftgh</OrderType>

<LoadNumber>gghh</LoadNumber>

<StopNumber>ggg</StopNumber>

<AppointmentNumber>ggg</AppointmentNumber>

<AppointmentContactName>gggg</AppointmentContactName> -

</ROOT>

</MT_Test>

If you don't want <MT_Test> then you can create the Message type with Name <ROOT> ...so under the fields will be with datatypes.

And you will get the XML structure as you are expecting.

Thanks

Swarup

Answers (0)