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

Re: How to join two internal table rows in alternative manner into one internal table?

$
0
0
  • Are you sure the lines of record in INT TABLE1 and INT TABLE2 are equal.
    • If yes,
      Data: Count type I.
      **LOOP the Second internal table.
      Loop at ITAB2 into WA_ITAB2.
      LV_INDEX = COUNT + 1.
      READ TABLE ITAB1 INTO WA_ITAB1 INDEX LV_INDEX.
      if sy-subrc = 0.
       APPEND WA_ITAB1 into IT_FINAL. 
      Clear: WA_ITAB1.
      endif.
      APPEND WA_ITAB2 into IT_FINAL.
      Clear: WA_ITAB2.
      ENDLOOP.

 

Regards,

 

Philip.


Viewing all articles
Browse latest Browse all 8538

Trending Articles



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