Showing results for 
Search instead for 
Did you mean: 

create draft document of stock transferences

Former Member
0 Kudos

I created a draft document of transferences of stock with SDK.

Code header:

Dim sboTransferDraft As SAPbobsCOM.Documents sboTransferDraft = SBOCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts)

sboTransferDraft.DocObjectCodeEx = "67"

sboTransferDraft.CardCode = "C00001"

sboTransferDraft.DocDate = Now

sboTransferDraft.TaxDate = Now

sboTransferDraft.Comments = "Comments"


Line code



But I do not obtain to modify the warehouse origin.

somebody can help me?


Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sérgio ,

I have tried your problem and also couln't solve it. It looks like the Warehouse value is written to the Filler field in the drafts table (ODRF), but that field does not seem to be exposed via the documents object.

Hope it helps,


Former Member
0 Kudos

Hi Adele

I already had seen this situation, but I do not know to exceed this.

I go to make one update to the field after the insertion.

it is not good a practical one, but for already it functions.