Hi Sundar ,
Good to hear that you were able to debug the package , Its better to open up another question if data is not writing back to the cube ,did u check the package log ? in the badi did u pass your internal table to CT_data ? script logic do u have the commit in place ?
Thanks
Dilum