...
ServContract.VALIDATE("Serv. Contract Acc. Gr. Code",ContractTemplate."Serv. Contract Acc. Gr. Code");
ServContract."Template No." := ContractTemplate."No.";
ServContract.CreateDim(
DATABASE::"Service Contract Template",ContractTemplate."No.",
// Delete the following line.
0,'',0,'',0,'');
// End of the deleted line.
WITH ServContract DO BEGIN
CreateDim(
DATABASE::"Service Contract Template","Template No.",
DATABASE::Customer,"Bill-to Customer No.",
DATABASE::"Salesperson/Purchaser","Salesperson Code",
...
...
ServContract.VALIDATE("Serv. Contract Acc. Gr. Code",ContractTemplate."Serv. Contract Acc. Gr. Code");
ServContract."Template No." := ContractTemplate."No.";
ServContract.CreateDim(
DATABASE::"Service Contract Template",ContractTemplate."No.",
// Add the following line.
0,'',0,'',0,'',0,'');
// End of the added line.
WITH ServContract DO BEGIN
CreateDim(
DATABASE::"Service Contract Template","Template No.",
DATABASE::Customer,"Bill-to Customer No.",
DATABASE::"Salesperson/Purchaser","Salesperson Code",
...
...
WITH ServContract DO BEGIN
CreateDim(
DATABASE::"Service Contract Template","Template No.",
DATABASE::Customer,"Bill-to Customer No.",
DATABASE::"Salesperson/Purchaser","Salesperson Code",
// Delete the following line.
DATABASE::"Responsibility Center","Responsibility Center");
// End of the deleted line.
END;
ContractDisc.RESET;
ContractDisc.SETRANGE("Contract Type",ServContract."Contract Type");
ContractDisc.SETRANGE("Contract No.",ServContract."Contract No.");
...
...
WITH ServContract DO BEGIN
CreateDim(
DATABASE::"Service Contract Template","Template No.",
DATABASE::Customer,"Bill-to Customer No.",
DATABASE::"Salesperson/Purchaser","Salesperson Code",
// Add the following lines.
DATABASE::"Responsibility Center","Responsibility Center",
DATABASE::"Service Order Type","Service Order Type");
// End of the added lines.
END;
ContractDisc.RESET;
ContractDisc.SETRANGE("Contract Type",ServContract."Contract Type");
ContractDisc.SETRANGE("Contract No.",ServContract."Contract No.");
...