This function module is used as the basis for the BAPI method EmpBenefitInsurePlan.GetPossBeneficiaries.
This method returns a list of the beneficiaries an employee may include in insurance plan enrollments on a specified date.
The method uses the following algorithm:
it ensures that EmployeeBenefits.GetOffer has returned an offer thatincludes at least one insurance plan which permits at least one beneficiary.it then fetches the persons' and organizations' names stored for theemployee in HR master data, and lists them as possible beneficiaries.
Messages are returned in the RETURN parameter. You will find the returncodes and their definitions in the documentation for this parameter.