Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8950

Logical Issue

$
0
0


Hi,

     I am having issue with following query-

 

 

 

 

     

LOOP AT IT_MKPF INTO WA_MKPF.

        SELECT PERNR

               USRID

          FROM PA0105

          INTO TABLE IT_PA0105

        WHERE USRID = WA_MKPF-USNAM.

      ENDLOOP.

 

 

That the loop is hitting the same select query more than 1000 times, I know that we should not write select query inside the 'LOOP' I have to pass  USNAM field into USRID field as they both are from different table and nothing having comman between them.

Please suggest me new query.

Thanks Regards.


Viewing all articles
Browse latest Browse all 8950

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>