Hi Suresh,
First of all, thanks for your help. This code works well but on the Badi flow it gives the same exception.
As I have already mentioned before, the only way to write data seems to be setting parameter
cl_uj_paral_calc=>gf_asyncinto true.
Anyone knows how I can change the value of this parameter? I have searched throughtout the forum but don't find anything...
Thanks!!!