Hi Venkat,
As i mentioned you can use field symbols in place of WA_1 Not for types.
write below line after data for it1 and remove wa_1 line.
field-symbols : <fs1> type st_1.
data : it_temp type _ty_t_SC_1.
after writing above lines write this code
if source_package[] is not initial.
it_temp[] = source_package[].
sort it_temp by field1.
delete adjacent duplicates from it_temp compairing field1.
SELECT FIELD1 FIELD2
INTO TABLE IT1 FROM DSONAME
FOR ALL ENTRIES IN it_temp
WHERE FIELD1 = it_temp-FIELD1.
if sy-subrc is initial. (this check is for select statement)
sort it1 by field1.
clear it_temp.
loop at source_package assigning <SOURCE_FIELDS>.
read it1 assigning <fs1> with key field1 = <SOURCE_FIELDS>-field1.
if sy-subrc is initial.
<SOURCE_FIELDS>-field2 = <fs1>-field2.
endif.
endloop.
endif.
endif.
Please close the discussion if solved...