Skip to Content
0
Former Member
Mar 20, 2008 at 05:09 PM

Records are getting overwritten in the internal table using Select query.

773 Views

Hi All,

I have following query :

Loop at i_salesplant.

select maramatnr mvkeVKORG mvkeVTWEG maraZZCOEAFE maraZZCOEAFEUOM mvkeZZALLPOL

into corresponding fields of table i_zallocpol from mara inner join mvke on

mvkematnr = maramatnr

where MARA~zzobjtype = I_ZZOBJTYPE

and MVKE~VKORG = i_salesplant-vkorg

and MVKE~VTWEG = T_VTWEG.

ENDLOOP.

My Que : For example lets say first it selects all the records for Sales Org 1000. Next when you select the records for the Sales Org 2000 the earlier records are getting overwritten.

Please let me know your valuable inputs.

Thanks,

Chandravadan