I have my table with field "EntryType" of Option datatype with options new, renewal &cancellation I want to add this particular option for specific entryNo to the code of "reason code"
table(231)
For Example for entry 001, EntryType is "New" then I want to add this to code of "Reason code" Table similar for different entries I tried some code but it doesnt working
local procedure reasoncode()
var
ReasonCode: Record 231;
begin
if not ReasonCode.Get(format(InsuranceTable."Transaction Type")) then begin
ReasonCode.Init();
ReasonCode.Code := format(InsuranceTable."Transaction Type");
ReasonCode.Insert(true);
end
end;
thanks,