Fonction SAP BAPI_BEN_BENADJREAS_CALC_ENDDA - Determination of the (new) end date of an existing adjustment reason

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ADJUSTDATE BAPIBENPAR-ADJUST_DATE D 8 Date of adjustment reason processing
EMPLOYEENUMBER BAPIBENEVT-PERSON_NO N 8 Employee's personnel number
LOCKINDICATOR BAPIBENEVT-LOCKINDIC C 1 Lock indicator
OBJECTID BAPIPAKEY-OBJECTID C 2 Object identification
RECORDNUMBER BAPIBENEVT-SEQNR N 3 Record number
SUBTYPE BAPIBENEVT-EVENT C 4 Subtype
VALIDITYBEGIN BAPIBENEVT-FROM_DATE D 8 Valid from date
VALIDITYEND BAPIBENEVT-TO_DATE D 8 Valid To Date

Paramètre Reférence Type Long. Description
CALCULATEDENDDATE BAPIBENPAR-CALC_ENDDATE D 8 New adjustment reason end date
RETURN BAPIRET1 u 470 Return

Functionality
This function module is used as the basis for the BAPI methodEmployeeBenAdjReason.CalculateEndDate .
This method calculates a new end date for benefits adjustmentprocessing.
You can set up benefits adjustment reasons to allow changes by employeesover a certain period of time following the occurrence of the reason.
In addition, you can also specify the time remaining for employees tochange their benefits selections after the first change due to thereason in question.
If you specify the time remaining after first selection, you can usethis method to calculate a new end date for the adjustment processingperiod. Note that the new end date cannot be after the end date of theadjustment reason BEFORE the first selection.

Notes
Messages are returned in the RETURN parameter. You will find the returncodes and their definitions in the documentation for this parameter.

Description
New end date of the Adjustment Reason infotype record.
The end date is recalculated if you specify a shortened adjustmentperiod following the first change in enrollment by an employee.

Value range

Example
An employee's wife has a baby. As a result, the employee wants tochange some of his benefit plans to include the child as a dependent.After the birth of the child, the employee has, for example, two monthsin which to make the necessary changes. However, once the employee hasperformed his adjustments, he only has one month left to make anyadditional changes to his benefit plans.
The system recalculates the end date of the Adjustment Reason (0378)infotype record accordingly.

Description
Message type

Value range
You can find information about the message type in the correspondingdata element documentation: message type.

Default

Description
The date on which the employee adjusts his/her benefit plans based onhis/her Adjustment Reason (0378) infotype record.

Value range

Description
This parameter implements the business object key field of the samename.
For details about this parameter see the documentation for thekey field.

Value range

Default

Description
This parameter implements the business object key field of the samename.
For details about this parameter see the documentation for thekey field.

Value range

Default

Description
This parameter implements the business object key field of the samename.
For details about this parameter see the documentation for thekey field.

Value range

Default

Description
This parameter implements the business object key field of the samename.
For details about this parameter see the documentation for thekey field.

Value range

Default

Description
The benefits adjustment reasons are a subtype of the Adjustment ReasonsInfotype 0378.
For details about this parameter see the documentation for thekey field.

Value range

Default

Description
This parameter implements the business object key field of the samename.

Value range

Default

Description
This parameter implements the business object key field of the samename.

Value range