10-01-2008 3:28 PM
There are two input (importing) parameters to HR_BEN_CALC_TERMINATION_DATE that I'm not sure what to pass.
The first is "datum". What date is this, exactly? The second is "reaction". What values are permissible and what to they mean?
Thanks!
10-01-2008 3:46 PM
Hi,
Date is Current date..
and reaction is your message type. whether you want to display the message or not.
ex:
data: no_msg like sy-msgty value 'N'.
call function 'HR_BEN_CALC_TERMINATION_DATE'
exporting
ee_benefit_data = ee_benefit_data
cob_evtyp = '01'
bplan = bplan
datum = datum
reaction = no_msg
importing
term_date = term_date
subrc = subrc
tables
error_table = error_table
exceptions
others = 1.
Thanks,
Sree.
10-01-2008 3:51 PM
Thank you.
When I run my code the error table says "No entry for program groupings / / plan A503".
gv_bendat-pernr = '00003755'.
gv_bendat-barea = '01'.
gv_bendat-bengr = space.
gv_bendat-bstat = space.
gv_bendat-subty = 'A001'.
gv_bendat-objps = space.
call function 'HR_BEN_CALC_TERMINATION_DATE'
exporting
ee_benefit_data = gv_bendat
bplan = 'A503'
datum = sy-datum
reaction = 'N'
importing
term_date = gv_termda
tables
error_table = gv_errtbl.
I used data from the 167 record to complete the structure above. Also, the 171 record for this pernr has the BSTAT and BENGR as both "0002".
Is this a config issue, perhaps?