Hi -
In a .csv file I have a column Project Code which is a shortcut dimension 4. In my XMLPORT is there any way i can just validate a field in the Gen. Journal table and get this secondary dimension into the Dimension set entry table or do I have to something else.
Any help is highly appreciate.
Thanks
RJ.
0
Answers
IF DimVal.GET(GLSetup."Shortcut Dimension 3 Code",ProjectDim) THEN BEGIN
DimManagment.GetDimensionSet(TempDimSetEntry,GenJnlLine."Dimension Set ID");
TempDimSetEntry."Dimension Set ID" := GenJnlLine."Dimension Set ID";
TempDimSetEntry."Dimension Code" := DimVal."Dimension Code";
TempDimSetEntry."Dimension Value Code" := DimVal.Code;
TempDimSetEntry."Dimension Value ID" := DimVal."Dimension Value ID";
IF TempDimSetEntry.INSERT THEN;
GenJnlLine."Dimension Set ID" := DimManagment. GetDimensionSetID(TempDimSetEntry);
END;
Any help appreciated.
Thanks
RJ.
I have put a code in there Glsetup.get and shortcut dimension 3 code is my project code which is absolutely correct. Still it won't work.
Thanks
RJ.
Also is your DataItem called GenJnlLine?