Quantcast
Channel: NAV Three Tier — mibuso.com
Viewing all articles
Browse latest Browse all 10032

Dimensions Prod. Order Components

$
0
0
HI: I'm with the NAV16 version and using Global dimension 1 and Global dimension 2 to define two dimensions associated with Items.
Each Item has two dimensions by default and these must be of the type 'Same code'.
When I create a production order, the dimensions of the Prod. Order Line are placed correctly with the dimensions that correspond to the Item to be manufactured.
But when I check the lines of components I see that the dimensions are those of Prod. order line rather the dimensions corresponding to the Items components.
That is so because the table 5407 Prod. Order Component, when the Item No. is validated will trigger a local procedure CREATEDIM:

LOCAL CreateDim(Type1 : Integer;No1 : Code[20])
TableID[1] := Type1;
No[1] := No1;
"Shortcut Dimension 1 Code" := '';
"Shortcut Dimension 2 Code" := '';

ProdOrderLine.GET(Status,"Prod. Order No.","Prod. Order Line No.");

"Dimension Set ID" :=
DimMgt.GetDefaultDimID(
TableID,No,'',"Shortcut Dimension 1 Code","Shortcut Dimension 2 Code",
ProdOrderLine."Dimension Set ID",DATABASE::Item);


In the call to DimMgt.GetDefaultDimID among other parameters is passed a SourceCode as a ‘Blank’ and the SetID from Prod. Order Line.
At the end the system returns the dimensions of the Prod. Order line (passing a SourceCode blank, cannot be defined priorities).
Is this correct?
Must components lines have the dimensions of the production order line, when these dimensions depend on the product?
¿Could be called the function with a non-blank SourceCode, and define priorities with this SourceCode?.
Thank you.

Viewing all articles
Browse latest Browse all 10032

Trending Articles