on 02-09-2008 4:03 PM
Hi, can anyone tell me how to create a Delivery Note from a draft document using DI-API?
Thanks.
Joseph
there's one sample in the diapi documention.
it descripes how create an order from a draft.
i place the code here:
Private Sub cmdDraftToOrder_Click()
Dim pDraft As SAPbobsCOM.Documents
Set pDraft = vCmp.GetBusinessObject(oDrafts)
Dim pOrder As SAPbobsCOM.Documents
vCmp.XmlExportType = xet_ExportImportMode
vCmp.XMLAsString = False
pDraft.GetByKey (3)
pDraft.SaveXML ("c:\drafts.xml")
'Here you should add a code that will change the Object's
'value from 112 (Drafts) to 17 (Orders) (Delivery is 15) and also you should
'remove the DocObjectCode node from the xml. You can use any
'xml parser.
'
'Create a new order
Set pOrder = vCmp.GetBusinessObjectFromXML("c:\drafts.xml", 0)
pOrder.Add
End Sub
use this code and update the xml like described.
if you're happy reward points
regards
David
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.