Hello Team,As per this Image i want to insert same data in this table itself .Only i want to replace table 23 instead of 18.I have written below function.
LOCAL DimentionInsertVendor(_VendorPar : Record Customer)
DefaultDimension.RESET;
DefaultDimension.SETRANGE("No.",_VendorPar."No.");
DefaultDimension.SETRANGE("Table ID",18);
IF DefaultDimension.FINDSET THEN REPEAT
//DefaultDimension.INIT;
DefaultDimension."Table ID" := 23;
DefaultDimension."No." := _VendorPar."No.";
DefaultDimension.VALIDATE("Dimension Code");
DefaultDimension."Dimension Code" := DefaultDimension."Dimension Code";
DefaultDimension.VALIDATE("Dimension Value Code");
DefaultDimension."Dimension Value Code" := DefaultDimension."Dimension Value Code";
DefaultDimension.MODIFY;
UNTIL DefaultDimension.NEXT=0;
when this code is executed only 1st record with table ID 23 is inserted and remaining records are not inserted.Please provide some suggestions.Thanks