Hi @Bharatesh J R . As you suggest [The variable name has to be same as record name VendorLedgerEntry : Record "Vendor Ledger Entry". for this is warning is gone. But if I want to define two record Variable one for fetch the data and one for Modify as like below
var
CheckLedgerEntry: Record "Check Ledger Entry";
CheckLedgerEntryCopy: Record "Check Ledger Entry";
CheckLedgerEntry.Reset();
CheckLedgerEntry.SetCurrentKey("Bank Account No.", "Entry Status", "Check No.");
CheckLedgerEntry.SetRange("Bank Account No.", GenJournalLine."Account No.");
CheckLedgerEntry.SetRange("Entry Status", CheckLedgerEntry."Entry Status"::Printed);
CheckLedgerEntry.SetRange("Check No.", GenJournalLine."Document No.");
if CheckLedgerEntry.FindSet() then
repeat
CheckLedgerEntryCopy := CheckLedgerEntry;
CheckLedgerEntryCopy.Amount := BankAccountLedgerEntry."Amount (LCY)";
CheckLedgerEntryCopy.Modify();
until CheckLedgerEntry.Next() = 0;
In this case It will give the same warning for "CheckLedgerEntryCopy: Record "Check Ledger Entry"; [AA0072. how to handle this warining. Please suggest