here is the function module I'm using the bet the benefit coverage amount for an employee.
form coverage_reg_basic.
if pnp-sw-found eq 1.
data: ee_benefit_data like rpbeneedat,
covam like T74FC-COVAM,
salary like p0008-ansal,
error_table like rpbenerr occurs 0,
rule like t74fc,
currency like t5ud3-curre,
bcove like t74fb-bcove.
2. get bcove
select bcove from t74fb into bcove
where barea = p0168-barea and bplan = p0168-bplan.
endselect.
if not bcove is initial.
Get employee data into the structure
CALL FUNCTION 'HR_BEN_READ_EE_BENEFIT_DATA'
EXPORTING
PERNR = pernr-pernr
DATUM = v_begda
REACTION = 'N'
ENDDA = v_endda
IMPORTING
EE_BENEFIT_DATA = ee_benefit_data
TABLES
ERROR_TABLE = error_table.
CALL FUNCTION 'HR_BEN_GET_PLAN_COVERAGE'
EXPORTING
EE_BENEFIT_DATA = ee_benefit_data
BPLAN = p0168-bplan
BCOVE = bcove
ADDNO = p0168-addno
DATUM = v_begda
SALARY_OVERRIDE = p0168-salov
COVERAGE_OVERRIDE = p0168-covov
DESIRED_CURRE = 'CAD'
REACTION = 'D'
IMPORTING
COVERAGE_RULE = rule
COVERAGE_SALARY = salary
COVERAGE_AMOUNT = covam
TABLES
ERROR_TABLE = error_table.
v_cov = covam.
wa_results_totals-reg_cov = v_cov.
clear v_cov.
endif.
endif.
endform.
this works perfect in my DEV client put when I transport it to the Production client, the function module always results in 0 for the salary and covam,
anyway ideas on what could be different across instances.
thanks