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

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

$
0
0

In case of both internal table lines are unpredictable...

Add this piece of code just before the code suggested by Philip..

ITAB1 and ITAB2 are table used in Philips code.. itab_1 and itab_2 is your internal tables.

 

if lines(itab_1) >= lines(itab_2).

    ITAB1 = itab_2.

    ITAB2 = itab_1.

else.

    ITAB1 = itab_1.

    ITAB2 = itab_2.

endif.

 

 

Regards

Sreekanth


Viewing all articles
Browse latest Browse all 9238

Trending Articles



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