Hi Sirdhar,
The length of VALUEPART* is 240 characters in BAPI Extension structure.
In below code, you are using offset position with more than 240 characters.
lw_extension-valuepart2 = lw_bape_prps+240(240).
lw_extension-valuepart3 = lw_bape_prps+240(185).
Please correct this to avoid any offset errors.
Thanks
-Learner