Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8372

Re: HOW TO IMPORT SALES ORDER IN SAP 9.1 USING A XML FILE

$
0
0

Hi Amit,

 

First you need to know how the XML should look like.

I recommend you to export an order and examine how the XML should look like.

Use this code to export :

        Dim oDoc As SAPbobsCOM.Documents

        Set oDoc = oCompany.GetBusinessObject(oOrders)

        oDoc.GetByKey (4000)

       

        oCompany.XmlExportType = xet_ExportImportMode

        oDoc.SaveXML ("C:\Test\Order.xml")

 

Second, form your source XML to follow the SAP XML format, you can do this by hand or use an XSLT to transfor your source XML to SAP XML.

Use this code to load the XML file

    Dim oDoc As SAPbobsCOM.Documents

    oDoc = oCompany.GetBusinessObjectFromXML("C:Test\MyOrder.XML", 0)

    Dim iErr as Integer = oDoc.Add()

 

 

Regards

Edy


Viewing all articles
Browse latest Browse all 8372

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>