Hi,
I have the following situation:
itab1: bukrs kostl gjahr monat amount1 amount2
itab2: bukrs kostl gjahr hsl01 hsl02.......hsl12
I need to get the amount2 of itab1 from itab2.
monat is the period in itab1 but in itab2 hsl01 is the amount for period 01.
This is the code that i have so far:
loop at itab1 into wa_itab2.
read table itab2 into wa_itab2 with key bukrs = wa_itab1-bukrs
kostl = wa_itab1-kostl
gjahr = wa_itab1-gjahr
concatenate 'wa_itab2-hsl' monat into l_amnt.
wa_itab1-amount2 = ?
endloop.
How do i get the value of l_amnt?
Thanks,
MJ