Can't set document ownercode
I'm trying to set de ownercode of a Delivery Note, this is my code:
DNote.CardCode = MyCardCode
DNote.DocDate = Today
DNote.DocDueDate = Today
DNote.DocumentsOwner = MyId
I add correctly the SBO object(result=0):
When i go to SBO, i can see the delivery note created, but its ownercode is empty!!!