SAP Function RP_GET_SS_RATES_TH - Function to return Social Security Rates from Tables - Thailand

Parameter Reference Type Length Default Optional Text
BEGDA T7THSR-BEGDA D 8
CATGE T7THSR-CGTYP C 4
ENDDA T7THSR-ENDDA D 8
PERNO P0001-PERNR N 8

Parameter Reference Type Length Text
EMPR_COMP_RATE T7THSR-EMRPC P 3
EMPR_STAT_RATE T7THSR-EMRPC P 3
EMP_COMP_RATE T7THSR-EMEPC P 3
EMP_STAT_RATE T7THSR-EMEPC P 3

Exception Text
TABLE_ENTRY_NOT_FOUND Table entry for the specified key was not found

Functionality
Returns the Statutory and Company contribution percentages for SocialSecurity read from the table T7THSS and T7THSC respectively. The inputparameters are the category of contribution(which is also the subtypeof the infotype 0365), the begin and end date for which thecontribution rates are required. The output parameters are thestatutory and company contribution rates for employee and employer.

Example
CALL FUNCTION 'RP_GET_SS_RATES_TH'
EXPORTING
CATGE = P_CATGE
BEGDA = P_BEGDA
ENDDA = P_ENDDA
IMPORTING
EMP_STAT_RATE = P_EMP_STAT_RATE
EMPR_STAT_RATE = P_EMPR_STAT_RATE
EMP_COMP_RATE = P_EMP_COMP_RATE
EMPR_COMP_RATE = P_EMPR_COMP_RATE
EXCEPTIONS
TABLE_ENTRY_NOT_FOUND = 1
OTHERS = 2.