RE: PHYSICAL INVENTORY JOURNALS
You can create a Dataport to import into Physical Inventory Journal.
DataItem Name
Item Journal Line <Item Journal Line>
*********************************************
Dataport - OnInitDataport()
//starting line no
lineno:=10000;
// find last used Document No.
no_series.RESET;
no_series.SETRANGE("Series Code",'IJNL-PHYS');
IF no_series.FIND('-') THEN
EVALUATE(docno,no_series."Last No. Used");
// create next Document No.
docno:=docno+1;
*********************************************
Item Journal Line - OnBeforeImportRecord()
"Journal Template Name":='PHYS. INVE';
"Journal Batch Name":='DEFAULT';
"Document No." := FORMAT(docno);
"Posting Date":=TODAY;
//chose as Positive Inventory (2)
"Entry Type":=2;
"Line No.":=lineno;
*********************************************
Item Journal Line - OnAfterImportRecord()
VALIDATE("Item No.","Item No.");
VALIDATE(Quantity,Quantity);
lineno:=lineno+10000;
My data file is a text document <Item No.><TAB><Quantity> something like this:
77756 25
32567 5
14526 24