Fonction SAP CBIH_LB14_PRID_CHECK - EHS: User Exit to Check Accident Notification Numbers

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_FLG_WANT_KEY_FORMAT ESP1_BOOLEAN 0 ESP1_FALSE X TRUE: Formatting is executed
I_IAL_RECN CCIHT_IAL-RECN N 20 X Internal key (RECN) for the incident/accident log entry
I_IAPREPID_TO_CHK CCIHT_IPEVA-IALPREPID C 20 Accident notification key to be checked

Paramètre Reférence Type Long. Description
E_ERROR_MESSAGE 0 Error message
E_FLG_SYNTAX_OK ESP1_BOOLEAN 0 TRUE: Accident notification key (syntax) correct
E_IAPREPID_CHKD_AND_FORMD CCIHT_IPEVA-IALPREPID C 20 Check (and possibly modified) accident notification key

Functionality
This function module is used as a template for check and formattingfunctions that you can define for the number of the accident report. Thefunction module is also available as a reference function module fordefining the interface of the user exit category IPR_SCATCH.

Preconditions
It is a prerequisite that the user exit name IAPRID exists underManage User Exits in Customizing for Basic Data and Toolsand a function module is assigned to it.
The number range object CBIHN_PRID with its internal number rangeinterval 0I or its external number range interval 0E is used to assignnumbers.
Note that when using a formatting routine, it must be compatible withthe definition of the number range intervals named.
If you write your own check function, its interface must match theinterface of the reference function module.
When creating the event data for theperson affected, you canuse the environment parameter IAL_FLG_DRAW_IPREPID to controlwhether the accident report number is to be filled by internal numberassignment (value "TRUE") or can remain blank so it can be filled at alater stage (value "FALSE").