cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with header UDFs when creating document using Baseentry, BaseLine

Former Member
0 Kudos

I am creating delivery documents based on a sales order via the XML API. Everything works fine and my delivery is created and properly linked to the correct sales order. I have one issue with my header UDFs not getting populated with the values from my XML. They are actually carrying forward the sales order UDF values.

Is this by design? Is there some way to not have this happen on inserts?

I set my document lines like this:

<Document_Lines>

      <row>

        <BaseType>17</BaseType>

        <BaseEntry>386</BaseEntry>

        <BaseLine>2</BaseLine>

        <Quantity>2.000000</Quantity>

      </row>

      <row>

        <BaseType>17</BaseType>

        <BaseEntry>386</BaseEntry>

        <BaseLine>1</BaseLine>

        <Quantity>6.000000</Quantity>

      </row>

      <row>

        <BaseType>17</BaseType>

        <BaseEntry>386</BaseEntry>

        <BaseLine>3</BaseLine>

        <Quantity>4.000000</Quantity>

      </row>

      <row>

        <BaseType>17</BaseType>

        <BaseEntry>386</BaseEntry>

        <BaseLine>0</BaseLine>

        <Quantity>36.000000</Quantity>

      </row>

    </Document_Lines>

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Curtis,

Header UDF? Yes... AT least, because since the delivery can be created from several sales order, B1 just cannot determine from which to take the values. You could that, since the new document comes from a single sales order it will take its values, but no.

You have to fill them by hand.

Regards,

Eric

Former Member
0 Kudos

I am setting the UDFs manually on my delivery document like this:

<U_ZED_BATCHID>981cd546-1e2</U_ZED_BATCHID>

        <U_ZED_EXTSYNCHKEY>SW_945_391_AFullShipPallet.xml</U_ZED_EXTSYNCHKEY>

But for some reason the values on the sales orders are being carried forward instead