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

Finding maximum occurance of a field value in internal table

$
0
0

Hi,

My Requirement is to find the maximum occurrence of a field value (module of object) and categorize the program as that module...

 

itab 1.JPG

 

The above internal table (ITAB 1) has the fields (program name, objects used in the program, object type, module of the object). Based on the maximum occurrence of the module, I need to categorize the program under which module it comes.

 

Ex:   in the above case, ZBAPI_SALESORDER_GETLIST has more number of ‘SD’ types of objects, so ZBAPI_SALESORDER_GETLIST program belongs to module ‘SD’. Similarly  Ztest2 program belongs to Module ‘MM’.

 

Finally I need to prepare the internal table (ITAB 2) as shown.

 

ITAB 2

 

itab 2.JPG

 

Thanks


Viewing all articles
Browse latest Browse all 8076

Trending Articles



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