on 11-10-2015 12:20 PM
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='atom4']/BOM/BO/Documents/row/*"></xsl:copy-of>
</row>
</Documents>
<Document_Lines>
<xsl:copy-of select="/vpf:Msg/vpf:Body/vpf:Payload[./@id='atom4']/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='atom4']/BOM/BO/BatchNumbers/*"></xsl:copy-of>
<xsl:for-each select="$msg/Delivery/Items/row">
<xsl:if test="string-length(./BatchNumber)>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='atom4']/BOM/BO/TaxExtension/*"></xsl:copy-of>
</TaxExtension>
<AddressExtension>
<xsl:copy-of select="/vpf:Msg/vpf:Body/vpf:Payload[./@id='atom4']/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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.