REPORT zdynamic_call.
TYPE-POOLS : abap.
PARAMETER p_func TYPE c LENGTH 30.
DATA : gt_tab TYPE abap_func_parmbind_tab.
DATA : gs_line LIKE LINE OF gt_tab.
DATA : gs_import_para TYPE rsfbpara.
DATA : day_in TYPE d.
DATA : last_day_of_month TYPE d.
FIELD-SYMBOLS <fs> TYPE any.
GET REFERENCE OF day_in INTO gs_line-value.
day_in = '20160910'.
gs_line-name = 'DAY_IN'.
gs_line-kind = abap_func_exporting.
INSERT gs_line INTO TABLE gt_tab.
GET REFERENCE OF last_day_of_month INTO gs_line-value.
gs_line-name = 'LAST_DAY_OF_MONTH'.
gs_line-kind = abap_func_importing.
INSERT gs_line INTO TABLE gt_tab.
CAL FUNCTION p_func PARAMETER-TABLE gt_tab.
TYPE-POOLS : abap.
PARAMETER p_func TYPE c LENGTH 30.
DATA : gt_tab TYPE abap_func_parmbind_tab.
DATA : gs_line LIKE LINE OF gt_tab.
DATA : gs_import_para TYPE rsfbpara.
DATA : day_in TYPE d.
DATA : last_day_of_month TYPE d.
FIELD-SYMBOLS <fs> TYPE any.
GET REFERENCE OF day_in INTO gs_line-value.
day_in = '20160910'.
gs_line-name = 'DAY_IN'.
gs_line-kind = abap_func_exporting.
INSERT gs_line INTO TABLE gt_tab.
GET REFERENCE OF last_day_of_month INTO gs_line-value.
gs_line-name = 'LAST_DAY_OF_MONTH'.
gs_line-kind = abap_func_importing.
INSERT gs_line INTO TABLE gt_tab.
CAL FUNCTION p_func PARAMETER-TABLE gt_tab.
BREAK-POINT.