Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8894

Removing the duplicate value for the required field in display report

$
0
0

Dear Experts,

 

 

I want to display the report by removing the duplicate values from the required field as i was trying to use delete adjacent duplicates but not getting the required ouput.

 

 

Report having the current display

 

 

Sales order        Material         Batch           Reqd Qty

 

1001887             1001089     59504               200

 

1001887             1001089     59505               200

 

1001887              1001089    59506               200

 

 

Requirement

 

 

Sales order        Material         Batch           Reqd Qty

 

1001887             1001089        59504               200

 

1001887             1001089       59505             

 

1001887              1001089       59506          

 

 

Piece of coding is as below

 

 

SELECT

           VBELN

           POSNR

           MATNR

          J_3ASIZE

           WMENG

           KZDIE

          ZSO_ASSIGN

 

       FROM ZPR_COLLECTIVE INTO TABLE GT_MRP FOR ALL ENTRIES IN GT_MCHA WHERE

                                                                              MATNR = GT_MCHA-MATNR AND

                                                                           J_3ASIZE = GT_MCHA-J_3ASIZE AND

                                                                            ZSO_ASSIGN NE 'X'.

       SORT GT_MRP BY VBELN.

 

    DELETE ADJACENT DUPLICATES FROM GT_MRP COMPARING WMENG.

 

Best rgds/thnks,

 

Srikanth


Viewing all articles
Browse latest Browse all 8894

Trending Articles



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