cancel
Showing results for 
Search instead for 
Did you mean: 

Can't set document ownercode

Former Member
0 Kudos

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

.....more code

I add correctly the SBO object(result=0):

Res=DNote.add

When i go to SBO, i can see the delivery note created, but its ownercode is empty!!!

What's wrong?

Thanks!

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member185703
Active Contributor
0 Kudos

Hi,

I guess the property gets ingnored under certain circumstances?!

Did you configure the data ownership stuff accordingly?

See "Administration" => "System Initialization" => "Authorization" => "Data Ownership Authorization"

If not I would not be surprised, if DI API would ignore this property (OK, could theorectially be worth an error code...).

HTH,

Frank