cancel
Showing results for 
Search instead for 
Did you mean: 

Change a DeliveryOrder

Former Member
0 Kudos

Hello together,

i want change a existing DeliveryOrder.

I have create this Scenario:


         <AdmInfo>

            <Object>15</Object>

            <Version>2</Version>

        </AdmInfo>

        <Documents>

            <row>

                <xsl:copy-of select="/vpf:Msg/vpf:Body/vpf:Payload[./@id=&apos;atom4&apos;]/BOM/BO/Documents/row/*"></xsl:copy-of>

            </row>

        </Documents>

        <Document_Lines>

            <xsl:copy-of select="/vpf:Msg/vpf:Body/vpf:Payload[./@id=&apos;atom4&apos;]/BOM/BO/Document_Lines/*"></xsl:copy-of>

                        <xsl:for-each select="$msg/Delivery/Items/row">

                <row>

                    <LineNum>

                        <xsl:value-of select="./LineNum+1"></xsl:value-of>

                    </LineNum>

                    <ItemCode>

                        <xsl:value-of select="./ItemCode"></xsl:value-of>

                    </ItemCode>

                    <Quantity>

                        <xsl:value-of select="./Quantity"></xsl:value-of>

                    </Quantity>

                    <InventoryQuantity>

                        <xsl:value-of select="./Quantity"></xsl:value-of>

                    </InventoryQuantity>

                    <WarehouseCode>

                        <xsl:value-of select="./WhsCode"></xsl:value-of>

                    </WarehouseCode>

                </row>

            </xsl:for-each>

        </Document_Lines>

<BatchNumbers>

            <xsl:copy-of select="/vpf:Msg/vpf:Body/vpf:Payload[./@id=&apos;atom4&apos;]/BOM/BO/BatchNumbers/*"></xsl:copy-of>

                        <xsl:for-each select="$msg/Delivery/Items/row">

                <xsl:if test="string-length(./BatchNumber)&gt;0">

                    <row>

                        <BaseLineNumber>

                            <xsl:value-of select="./LineNum+1"></xsl:value-of>

                        </BaseLineNumber>

                        <BatchNumber>

                            <xsl:value-of select="./BatchNumber"></xsl:value-of>

                        </BatchNumber>

                        <Quantity>

                            <xsl:value-of select="./Quantity"></xsl:value-of>

                        </Quantity>

                        <AddmisionDate>20151023</AddmisionDate>

                    </row>

                </xsl:if>

            </xsl:for-each>

        </BatchNumbers>

        <TaxExtension>

            <xsl:copy-of select="/vpf:Msg/vpf:Body/vpf:Payload[./@id=&apos;atom4&apos;]/BOM/BO/TaxExtension/*"></xsl:copy-of>

        </TaxExtension>

        <AddressExtension>

            <xsl:copy-of select="/vpf:Msg/vpf:Body/vpf:Payload[./@id=&apos;atom4&apos;]/BOM/BO/AddressExtension/*"></xsl:copy-of>

        </AddressExtension>

At first, the Update creates my new lines, i have no Errors. But no Inventory Posting was createt.

My Stock is unchanged. When  i called the Serial/Batch Report i get a Error: "No Batchnumbers are found".

What do i wrong?

Thanks

Ronny

Accepted Solutions (1)

Accepted Solutions (1)

pierrecanali
Active Participant
0 Kudos

Hi Ronny

as I know it is not possible to add lines in Delivery Notes. You can only change some values if the line is still open and there's no target document linked.

Generally what you can do inside SAP Business One can be done using DI api and vice-versa.

B1if uses DI api to manipulate database.

Regards,

Pierre

Former Member
0 Kudos

Hello Pierre,

thanks for your reply.

I solved it with Draft-Sceario.

Thanks and best Regards

Ronny

Answers (0)