SAP Function SMB_UIE_QM_TOP20MATERIALS - Top 20 materials

Parameter Reference Type Length Default Optional Text
IT_MONTHS SMB_UIE_MONTHS_TT h 6 months list for past 6 months

Parameter Reference Type Length Text
ET_MATERIAL SMB_UIE_MATERIALS_TT h 27 Top 20 material

Functionality
The function module displays the top 20 materials based on the totalquantity for each material from Vendor statics table. The functionmodule first calculates the material number and its corresponding sum oftotal quantity and it is sorted and only the top 20 entries are pickedinto export table. It takes the list of past six months as an inputparameter. The FM fetches only those entries from vendor Statics tablewhich are for the past six months

Example
The input parameter is the import table which enlist the past six monthinformation. The output parameter shows the list of top 20 materialnumbers, cumulative quantity of summarized inspection lots.
Input Parameter
Month
08.2010
09.2010
Output Parameters
Material Number Cumulative Quantity of SummarizedInspection Lots
R120945.000

Notes
This FM usually gets the input from function module from which it hasbeen called. User does not specify the input.

Further information
The SMB_UIE_MONTHS_LT, SMB_UIE_MATERIALS_LT structures with their tabletypes SMB_UIE_MONTHS_TT, SMB_UIE_MATERIALS_TT are used for import tableand export table respectively.