I believe the problem could be that QV is executing some other statements apart from the ones you labeled with REPLACE. To solve it (if indeed that's the problem), try using the IsPartialReload() function to split the code in two different streams, one for each reload mode with the statemens needed in each case.
Maybe you're dropping the table and reloading it later on in your code?
Hope this helps
Thx for reply,
but the problem persist even if i use a control like isPartialReload(). I conclude that using replace is not the right way. I walked around and i created a variable to manage changhing input table:
if $(variable)=version1 then load...
elseif $(variable)=version2 then load...
maybe is not performed but it works fine