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

Re: add multilple PO's to already existing ALV report

$
0
0

Hi Vinay Reddy,

 

Loop Contains two internal tabels .

 

itab1 -> PR Details,

Itab2-> PO Details, ( Corresponding PR Details ).

 

Sort Itab1 by PR

Sort itab2 by PR

 

data: v_tabix type sy-tabix.

 

 

loop at itab1

read itab2 with key prno = itab1-prno.

v_tabix = sy-tabix.

if sy-subrc  =  0.

loop at itab2 from v_tabix.

if itab1-pr EQ itab2-pr.

MOVE-CORRESPONDING itab1 to finalitab.
MOVE-CORRESPONDING itab2 to finalitab.

append finalitab. clear finalitab.

endif.

endloop.

else.

MOVE-CORRESPONDING itab1 to finalitab.

append finalitab. clear finalitab.

CLEAR v_tabix.

endloop.

 

 

Regards,

Venkat.


Viewing all articles
Browse latest Browse all 8652

Trending Articles



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