FORM %CO14.
DATA: AMOUNT_P TYPE PC207-BETRG.
CLEAR amount_p.
amount_p = g_total.
CALL FUNCTION 'HR_IN_CHG_INR_WRDS'
EXPORTING
amt_in_num = amount_p
IMPORTING
amt_in_words = total_in_words
EXCEPTIONS
DATA_TYPE_MISMATCH = 1
OTHERS = 2