purchase variance entry

Hi there peeps

I would like to know how is the purchase variance entry being created in Navision? i would like to know which codeunit is called to create that entry? i’ve check codeunit 11,12,13,22 and 5895, but no luck for the variance. i would like to do a reverse variance entry for the purchase credit memo. please help on how the it’s been created for the purchase.

Thanking you in Advance

Posting of Cost Variances is handled by CU 5802.