Wiki

Scale Your Enterprise

User Tools

Site Tools

mbstring extension must be loaded in order to run mPDF

kb:kb_item_195

KB Item 195

Product

TASKCENTRE

Product Version (if applicable)

None Defined

Issue

Creating a Document with Batches using Task Centre

Symptom

Creating a Document with Batches using Task Centre

Cause

Resolution Notes

Create a SQL query calculating the sequential line number. This can be done using the ROW_NUMBER() function. i.e. (ROW_NUMBER() OVER (ORDER BY ItemCode ASC)*1)-1

Sample SQL Query: select GETDATE() DocDate, ItemCode, WhsCode, Quantity,

    (ROW_NUMBER() OVER (ORDER BY ItemCode ASC)*1)-1 as LineNumber,  DistNumber

from …

Then in the SAP Business One Connector on the Batch Number tab map the following fields from the query:

  1. Quantity to Quantity
  2. LineNumber to BaseLinNum
  3. DistNumber to BatchNum

KB Type

Solution

Item Date

06 Feb 2014

kb/kb_item_195.txt · Last modified: 2019/01/24 09:44 (external edit)