Hi,
Have any body tried to print the Serial Number from Sales Line table by writing a job? actually when we check the salesline form there are many datasources in that be 3 main datasource are sales table,sales line and inventDim. i can pick the itemid from sales line w.r.t sales.salesId but there is problem in displaying Serial Number from InventDim datasource. The code is
SalesTable SalesTable;
SalesLine SalesLine;
InventDim InventDim;
select SaleTable where SalesTable.SalesId == '000022';
while select ItemId, inventDimId from SalesLine where SalesLine.SalesId == SalesTable.SalesId // ie '000022'
{
// now we select the serial number (ie inventSerialId field of InventDim Table)
select inventSerialId from InventDim where InventDim.inventDimId == SalesLine.InventDimId;
print SalesLine.ItemId;
print InventDim.inventSerialId; // but its displaying wrong serial no. which is not same as the serial number in the Form Pause; } how to print correct serial no. ?? can any body