Hello Everybody
I dont know how many of you experienced this problem. But I know those who faced the issue didn't share how actually they resolved it. So I think it is better to mark here how I get a resolution for this.
I actually created the template manually.
I got the schema for the UDO perfectly from this input.
<?xml version="1.0" encoding="UTF-16"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope/">
<env:Header><SessionID>Session</SessionID>
</env:Header><env:Body><dis:GetServiceMetadata xmlns:dis="http://www.sap.com/SBO/DIS">
<Service>Servicename</Service>
</dis:GetServiceMetadata></env:Body></env:Envelope>
From this, I got the schema of my UDO and from there I get all fields and data types.
Finally Generated this xml for Adding
<?xml version="1.0"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header>
<SessionID>session</SessionID>
</env:Header>
<env:Body>
<dis:Add xmlns:dis="http://www.sap.com/SBO/DIS">
<Service>UDO Code</Service>
<UDO Name>
<U_CardCpde>CCCC</U_CardCode>
<U_CardName>CCTEST</U_CardName>
<U_DocDate>20140201</U_DocDate>
<RowObjectCollection>
<RowObject>
<U_ItemCode>AAA01</U_ItemCode>
<U_ItemDesc>AAATest</U_ItemDesc>
</RowObject>
<RowObject>
<U_ItemCode>AAA02</U_ItemCode>
<U_ItemDesc>AAATest2</U_ItemDesc>
</RowObject>
</RowObjectCollection>
</UDO Name>
</dis:Add>
</env:Body>
</env:Envelope>
This added the UDO record.
All the details in bold are available in the schema.
Anoop