When I comment out it like
//TrHs = CanRegisterOnMedia("OPVc",mtFile);
TrHs=true;
I can export OPVc (payments) from the Integration module,otherwise I cannot (an empty file is created).
So, I guess there some other functionality behind this function.