Hello All:
Normally I used SDK's Document.line.Unitprice to set price before discount to the order entry. However via doing through xml's. The error message keep on sending back that rdr1.unitprice does not exist. O
Then I change the Unitprice tag to Price. While error message disappeared. The result however still shows system's default price as unitprice not the amount that I specified. Has anyone else had similar problem? Here a snip of my xml> and in SDK it's just simply
oCompany.XmlExportType = SAPbobsCOM.BoXmlExportTypes.xet_ExportImportMode;
odoc = ( ( SAPbobsCOM.Documents )( oCompany.GetBusinessObjectFromXML( sXmlFileName, SAPbobsCOM.BoObjectTypes.oOrders) ) );
My xml looks like something:
<?xml version="1.0" encoding="Windows-1252" standalone="yes" ?>
<BOM>
<BO>
<AdmInfo>
<Object>17</Object>
</AdmInfo>
<ORDR>
<row>
<DocDueDate>20070522</DocDueDate>
<CardCode>Customer1</CardCode>
<NumAtCard>something</NumAtCard>
<ShipToCode>0003</ShipToCode>
</row>
</ORDR>
<RDR1>
<row>
<LineNum>0</LineNum>
<ItemCode>4</ItemCode>
<Quantity>24</Quantity>
<UnitPrice>297.6</UnitPrice>
</row>
<row>
<LineNum>1</LineNum>
<ItemCode>5</ItemCode>
<Quantity>192</Quantity>
<UnitPrice>595.2</UnitPrice>
</row>
<row>
<LineNum>2</LineNum>
<ItemCode>6</ItemCode>
<Quantity>144</Quantity>
<UnitPrice>595.2</UnitPrice>
</row>
<row>
<LineNum>3</LineNum>
<ItemCode>7</ItemCode>
<Quantity>24</Quantity>
<UnitPrice>297.6</UnitPrice>
</row>
</RDR1>
</BO>
</BOM>