cancel
Showing results for 
Search instead for 
Did you mean: 

How to add Header data ?

Former Member
0 Kudos

Hi,

I have the following XML structure and i need to replicate the same in XI as data type and i want to know how to create a DT for the following xml structure

I need to include the to and from server names and how to do it dynamically, how to get the from and to server names dynamically.

<?xml version="1.0" encoding="iso-8859-1" ?>

- <biztalk_1 xmlns="urn:biztalk-org:biztalk:biztalk_1">

- <header>

- <delivery>

- <message>

<messageID>1773692</messageID>

<sent>2007-02-28T09:02:05</sent>

<subject>BA Customer CheckIn</subject>

</message>

- <to>

<address>TST200</address>

</to>

- <from>

<address>LDSYS</address>

</from>

</delivery>

</header>

- <body>

- <doc:BACUSTOMER.CheckIn xmlns:doc="urn:sap-com:document:sap:business" xmlns="">

- <BACustomer>

<Customer>0017855501</Customer>

<Char8ExtBA>17855501</Char8ExtBA>

<BAType>ZY</BAType>

<CompanyCode>0010</CompanyCode>

<Country>US</Country>

<Name>SIRIS CORPORATION</Name>

<Name2 />

<Name3 />

help would be appreciated and rewarded with points

Thanks,

srini

Accepted Solutions (0)

Answers (4)

Answers (4)

stefan_grube
Active Contributor
0 Kudos

In the IR it is not possible to create a data/message type with different namesapces like in your example.

What you can do is: Create a message type with a unique namespace and add the requested namespace dor the node BACUSTOMER with an XSLT mapping.

Regards

Stefan

Former Member
0 Kudos

HI,

I think the given xml is not complete one.

you can create the MT with the given xml, and try to access Message ID.

but for accessing the message ID, we can do through UDF in mapping.

see below link to get more details.

Header info -

Regards

Chilla

Former Member
0 Kudos

Sirini,

in datatype can you cant have dynamicaly . it is fixed . otherwork aroundis you define it datatype and use it when it is required

Former Member
0 Kudos

Srinivas,

As per my knowledge I think it might not be possible.

---Satish