I have to fix a legacy logic script and I'm struggling with it. Unfortunately I'm not familiar with this logic script, and I'm hoping someone can give me some hint to something I might be overlooking. I have to run the script that makes adjustments to the balance sheet and P&L accounts in the consolidation cube as a previous step to perform consolidation. There are several steps and after running them all I'm facing that for some data lines (what lines seem kind of random to me) are being set to 0. I've been running these steps individually and I came up to the conclusion that I'm having this issue within the RUN PROGRAM CONSOLIDATION function. I've found very little documentation about this fuction and I'm completely lost about why it is behaving as it is. Find attached the same script having run the CONSOLIDATION function and without it. The step 6 is the chunk of script that is transforming the lines being set to 0.
Thanks in advance!