Hi Perm,
Your original question was - how to increment data in BPC. With the script provided this question is solved.
Now you have another issue - incorrect data load from BW. It's another story! You have to provide full details.
If I correctly understand you - that even without logic you have result not matching BW result!
Vadim