Hi expert ,
I am able to post customer data through httpwebrequest but not able post SalesOrder data using same process . I have define the sales order values as below format .I can't understand which values are need to be define to post a SalesOrder in nav. When i am trying to post its return 5000 internal error . Please give suggestion if i missed to define a field value which is mandatory for a salesOrder .
<ins:Create>
<ins:SalesOrder>
<ins:No>1010</ins:No>
<ins:Sell_to_Customer_No>C001</ins:Sell_to_Customer_No>
<ins:Posting_Date>2013-07-12</ins:Posting_Date>
<ins:Order_Date>2013-07-12</ins:Order_Date>
<ins:Document_Date>2013-07-12</ins:Document_Date>
<ins:Bill_to_Customer_No>C001</ins:Bill_to_Customer_No>
<ins:Currency_Code>USD</ins:Currency_Code>
<ins:UDF1>1</ins:UDF1>
<ins:SalesLines>
<ins:Sales_Order_Line>
<ins:Type>2</ins:Type>
<ins:No>ITM001</ins:No>
<ins:VAT_Prod_Posting_Group>Vat-25</ins:VAT_Prod_Posting_Group>
<ins:Description>Item one</ins:Description>
<ins:Location_Code>White</ins:Location_Code>
<ins:Unit_Price>100</ins:Unit_Price>
<ins:Quantity>2</ins:Quantity>
<ins:Line_Amount>200</ins:Line_Amount>
<ins:Qty_to_Ship>2</ins:Qty_to_Ship>
<ins:Qty_to_Invoice>2</ins:Qty_to_Invoice>
<ins:Document_No>1010</ins:Document_No>
<ins:Line_No>1000</ins:Line_No>
<ins:UDF1>1</ins:UDF1>
</ins:Sales_Order_Line>
<ins:Sales_Order_Line>
<ins:Type>5</ins:Type>
<ins:No>S-FREIGHT</ins:No>
<ins:VAT_Prod_Posting_Group>Vat-25</ins:VAT_Prod_Posting_Group>
<ins:Description>Item one</ins:Description>
<ins:Location_Code>White</ins:Location_Code>
<ins:Unit_Price>5</ins:Unit_Price>
<ins:Quantity>1</ins:Quantity>
<ins:Line_Amount>5</ins:Line_Amount>
<ins:Qty_to_Ship>1</ins:Qty_to_Ship>
<ins:Qty_to_Invoice>1</ins:Qty_to_Invoice>
<ins:Document_No>1010</ins:Document_No>
<ins:Line_No>2000</ins:Line_No>
<ins:UDF1></ins:UDF1>
</ins:Sales_Order_Line>
</ins:SalesLines>
</ins:SalesOrder>
</ins:Create>
Thanks
Surajit
*This post is locked for comments