Skip to Content

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

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Feb 08 at 07:33 AM

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

    Add comment
    10|10000 characters needed characters exceeded