Show TOC

BAd: Set Up Customer-Specific Attendance Cancellation Reason

This Business Add-In (BAdI) lets you determine a cancellation reason dynamically when an attendance booking is canceled in Training and Event Management. The BAdI is called in the Employee Self-Service PV8I 'My Bookings' and in the Workflow standard task PE_DELDATA_1 (TS01200295 Read Cancellation Data). The standard task is used in the Workflow template PE_APPROVE02 (WS01200147 Attendance Cancellation Employee).

Example

Cancellation procedure in the service 'My Bookings' (PV8I, Parameter I_SCENARIO = 'E'). Currently, the only value supported in the parameter I_Scenario is the value 'E' (Employee Self-Service):

A check is carried out in the function module RH_GET_CANCELLATION_DATA as to whether the Business Add-In HRTEM00NET_WEBST exists. If it exists, it is called.

If no exception is triggered, the cancellation fee is calculated using the structure returned ES_REASON.

If an exception is triggered, the cancellation fee is calculated using the standard procedure:
The system reads the value of the switch SEMIN WEBST in table T77S0. This contains the standard cancellation reason for attendance bookings in Employee Self-Service. Table T77CAR is read to determine the percentage for the cancellation fee. If this parameter is empty, the system reads the value of the switch SEMIN CCDEL. This switch contains the general cancellation reason. This is then used to calculate what cancellation fee is to be levied.