Skip to Content
1

How to set user defined fields via SAP B1 jco?

Nov 04, 2016 at 08:34 AM

111

avatar image
Former Member

I am trying to create A/R invoice in SAP Business One via Jco.

https://answers.sap.com/questions/50050/item-number-is-missing-specify-an-item-number-inv1.html

But I can't find a way to set user defined field.

Is there any solution?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
DIEGO LOTHER Nov 05, 2016 at 05:38 PM
1

Hi Hao,

I usually work with SDK and C#, but I saw some sample codes with Jco. Did you try something like this:

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

At the parameter aIndex you can provide a string with the name of your udf field like "U_yourfield".

Hope it helps.

Kind Regards,

Diego Lother

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Thank you!

It works fine in Java.

0