cancel
Showing results for 
Search instead for 
Did you mean: 

Property 'ReturnReason' of 'DocumentLine' is invalid

pnt_a_schneider
Discoverer
0 Kudos

When trying to set the ReturnReason in the Draft Line in the DI it throws an Exception: "Property 'ReturnReason' of 'DocumentLine' is invalid". This happens in Version 9.3 and 10. Is there any way to set the ReturnReason in a Draft?

SAPbobsCOM.Documents oRetoureDraft = (SAPbobsCOM.Documents)SAPInfo.oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts);

oRetoureDraft.DocObjectCode = SAPbobsCOM.BoObjectTypes.oReturns;

oRetoureDraft.Lines.ReturnReason = 1;

Accepted Solutions (1)

Accepted Solutions (1)

ANKIT_CHAUHAN
Product and Topic Expert
Product and Topic Expert

Hi pnt_a.schneider,

This appears to be an Application Error.

The property can be set successfully for other Documents object but not for the Drafts.

Kindly create an incident under the component SBO-SDK-DI for SAP Business One Support Team to get it investigated.

Please mention the link of this thread while creating the incident.

Kind regards,

ANKIT CHAUHAN

SAP Business One Support

Answers (0)