I added a Currency Code field to the Item Vendor table so that when this field is changed (e.g., to USD), it also updates in the Requisition Line table. This allows a vendor to use a different currency code for an item without changing their default currency code. My question is how to implement this, as I'm very new to this environment and missing the underlying logic.
local procedure UpdateRequisitionLineCurrencyCode(ItemNo: Code[20]; CurrencyCode: Code[10])
var
RequisitionLine: Record "Requisition Line";
begin
//INSERT YOUR FILTER
if RequisitionLine.FindSet() then
repeat
RequisitionLine."Currency Code" := CurrencyCode;
RequisitionLine.Modify();
until RequisitionLine.Next() = 0;
end;
}
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.