Thank you Sir Alex, I will try this and let you know how it works. also, i have another internal table in which I have a field called ZZSTORE. In that table which is called "int_tab_str" which has a work are as well. I have ZZMATERIAL and ZZSTORE as fields.
In that second internal table, my data lies like this:
ZZMATERIAL ZZSTORE
101 CTDPS
102 CRGPD
103 SEHTY
104 CAUFG
I need to merge that table to int_tab so I can bring ZZSTORE field in my int_tab. From there I can take all these fields and send them to it_std_tab and finally append to my final standard database table.
I am thinking about creating third final table in which I will have fields from Internal Table 1 and Internal Table 2 (ZZSTORE).
then I will do
SELECT * FROM INTERNAL TABLE 2
FOR ALL ENTRIES IN INTERNAL TABLE 1
WHERE ZZMATERIAL = INTERNAL TABLE 1-ZZMATERIAL.
LOOP AT INTERNAL TABLE 1
LOOP AT INTERNAL TABLE 2 WHERE ZZMATERIAL = ITAB1-ZZMATERIAL.
Here i think i will have to fill my third table but i do not know how.
ENDLOOP.
ENDLOOP.
Once this code is good then i need to know where to place this code in my scenario code. Please let me know.
Thanks.