cancel
Showing results for 
Search instead for 
Did you mean: 

HR_BEN_CALC_TERMINATION returns with error

Former Member
0 Kudos

I'm running HR_BEN_CALC_TERMINATION in a small test program like this:


  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.

The data at top comes from an actual record in 167, by the way.

The message I get when this runs is "No entry for program groupings / / plan A503". The BENGR and BSTAT are both empty on the 167 record but in 171 the values are 0002 for both of these and 01 for the BAREA.

Is this a configuration issue, perhaps?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Have you maintained the BENGR and BSTAT features appropriately using t-code PE03?

Former Member
0 Kudos

Hello.

I think what happened was this: my program created a new participant via PA40 (BDC) and then created the 171 record and populated the BAREA, BENGR and BSTAT fields. Later on, the program setup a 167 record (health plan) but I did not pull the BENGR and BSTAT fields from 171 so they were blank. So, when I think this may have caused the result I got.

Sound plausible?

sikindar_a
Active Contributor
0 Kudos

check the features properly in PE03 and check the employee grping properly