SAP Function SLS_MISC_GET_MEDIAN - calculate median from list of numbers

Parameter Reference Type Length Text
MEDIAN LS_MEDIAN P 4 PAW - decimal number length 5 with 2 decimals

Parameter Reference Length Optional Text
P_NUM SLS_NUMS 4 PAW - Structure to simply hold a list of numbers

Exception Text
LIST_OF_NUMBER_IS_EMPTY There were no numbers passed for calculation

Functionality
This FM is useful to calculate median from the list of numbers.