New fiels in Purchase invoice line

I Created a new calculated field (X) in Purchase Invice Lines.

X= Amount * 5.

How can I update my Purchase Invloice Lines table, for this new field X has the new Value?

Thanks

One option is to create a processing report (A report with the option of Processing Only set to Yes) that has a the Purchase Line as the DataItem. Set any filters, in the o\OnAfterGetRecord() even set the field value and the a modify of the record.

But in what moment the Table is updatedd with the new Value?

Thanks BP, the problem was solved.