Hi Srinath,
Ofcourse Fill the setup table first, and check. Append the extract structure of data source 2lis_02_itm by zzland1 field.
Try this code...
Types : Begin Of ty_lfa1 ,
lifnr type lfa1-lifnr,
land1 type lfa1-land1,
End Of ty_lfa1.
DATA : IT_HDR1 TYPE TABLE OF MC02M_0ITM,
WA_HDR1 TYPE MC02M_0ITM,
IT_TY1 TYPE TABLE OF TY_lfa1 ,
WA_TY1 TYPE TY_lfa1.
IT_HDR1[] = C_T_DATA[].
if not it_hdr1 is initial.
select lifnr
land1
from lfa1into table it_ty1 for all ENTRIES IN it_hdr1 where lifnr = it_hdr1-lifnr.
endif.
LOOP at it_hdr1 into wa_hdr1.
READ TABLE it_ty1 into wa_ty1 with key lifnr = wa_hdr1-lifnr.
wa_hdr1-zzland1 = wa_ty1-land1.
modify it_hdr1 from wa_hdr1.
endloop.
c_t_data[] = it_hdr1[].
Thanks,
Swapna Jain