Hi Sanjana,
Just wrote a rough program and do some tweaks in it.
Correction one
select SRC_HEADNO BHD_GUID from /1BEA/CRMB_BDI into table lt_ BDI for all entries in c_t_data where SRC_HEADNO = c_t_data- SRC_HEADNO .
read table lt_ BDI into ls_ BDI with key SRC_HEADNO = l_t_data - SRC_HEADNO .
For the above statement check the technical name in the source structure ( SRC_HEADNO) and replace them
select SRC_HEADNO BHD_GUID from /1BEA/CRMB_BDI into table lt_ BDI for all entries in c_t_data where SRC_HEADNO = c_t_data- " proper technical name in the source structure .
read table lt_ BDI into ls_ BDI with key SRC_HEADNO = l_t_data -" proper technical name in the source structure.
Correction Two
l_t_data- HEADNO_EXT = BHD_GUID- HEADNO_EXT.
replace this line
l_t_data- HEADNO_EXT = ls_ BDH- HEADNO_EXT. " Correct statement
Thanks,
Shakthi Raj Natarajan