cancel
Showing results for 
Search instead for 
Did you mean: 

How to set value in date UDF using SAP B1 JCO?

0 Kudos

I am able to set String value to UDF using JCO like below.

invoice.getLines().getUserFields().getFields().item(java.lang.Object aIndex).setValue(java.lang.Object aValue)

But it is not working for date type UDF like (Purchase date, Payment Date).

Is there any way to do it?

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

I got the solution by passing date in "yyyy-MM-dd" format.

Answers (0)