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

Re: How to display two movement type for same PO no.in same row in alv grid.

$
0
0

Hi Samadhan,

Try the following code for merging the Movement type into single row using Control Break statements(AT END OF...AT END).

"Sort the internal table based on PO Number and movement type

    SORT IT_TABLE BY PO_NUMBER BWART.

 

"Process the LOOP.

 

   LOOP AT IT_TABLE INTO WA_FINAL.

     WA_FINAL-PO_NUMBER = WA_TABLE-PO_NUMBER.

 

     "Merge Movement type

     IF WA_FINAL-BWART IS INITIAL. 

      WA_FINAL-BWART = WA_TABLE-BWART.

     ELSE.

     CONCATENATE WA_FINAL-BWART '/' WA_TABLE-BWART INTO WA_FINAL-BWART.

     ENDIF.

 

     AT END OF PO_NUMBER

      FLAT_END = 1.

     ENDAT.

   

     IF FLAG_END = 1.

      APPEND WA_FINAL TO IT_FINAL.

      CLEAR: WA_FINAL,

                   FLAG_END.

     ENDIF.

 

    ENDLOOP.

 

Regards

 

Rajkumar Narasimman


Viewing all articles
Browse latest Browse all 8808

Trending Articles



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