Skip to Content
avatar image
Former Member

How to set user defined fields via SAP B1 jco?

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?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Nov 05, 2016 at 05:38 PM

    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

    Add comment
    10|10000 characters needed characters exceeded