Fonction SAP CBIH_FA30_FAL_CREATE - EHS: Create Injury/Illness Log Data

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_ADDINF RCGADDINF u 27 Additional information on object
I_FLG_AFF_EXTLTXT ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create data for persons affected
I_FLG_AFF_INTLTXT ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create data for persons affected
I_FLG_CHECK_CLVALUE ESP1_BOOLEAN 0 ESP1_TRUE X
I_FLG_CHECK_ONLY ESP1_BOOLEAN 0 ESP1_FALSE X Check data only indicator
I_FLG_FILL_EXTERROR ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Fill extended error information table
I_FLG_HEADER ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create injury/illness log headers
I_FLG_INJURIES ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create injuries of persons affected
I_FLG_INVPERS ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create persons involved
I_FLG_INVPERS_LTXT ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create persons involved
I_FLG_MEDACT ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create medical measures
I_FLG_MEDA_DESCF_LTXT ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create medical measures
I_FLG_MEDA_DESC_LTXT ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create medical measures
I_FLG_VALUATION ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Create classification system data

Paramètre Reférence Type Long. Description
E_FLG_ERROR ESP1_BOOLEAN 0 Error creating a record indicator
E_FLG_LOCKFAIL ESP1_BOOLEAN 0 Lock on at least one record failed indicator
E_FLG_WARNING ESP1_BOOLEAN 0 Warning creating a record indicator

Paramètre Reférence Long. Facultatif Description
X_API_FAL_TAB CIHAL_FAL_API_TAB_TYPE 0 Substance Data

Exception Description
CONVMODE_SET_FAILED Language support error
INTERNAL_ERROR Internal program error
NO_OBJECT_SPECIFIED No object to be created specified
PARAMETER_ERROR Indicator set but relevant data missing

Functionality
This function module is part of the Application Programming Interface(API) of the EH&Scomponent Industrial Hygiene and Safety. It is used to createinjury/illness logentries.
Dependencies between new injury/illness log entries to be createdcannot yet be represented via foreign keys. The new data does not yethave keys and therefore it cannot be referenced even by foreign keys,so the injury/illness log entries are passed to the function in acomplex structure. In this structure, the dependencies exist implicitlyand must not therefore be expressed explicitly using (foreign) keys.
You will find a description of the complex structure used(CIHAL_FAL_API_TAB_TYPE) in the type group CIHAL.

Which injury/illness log entries are created?
To create a new injury/illness log entry, the required entry fields ofthe header data (HEAD) must be filled in the X_API_FAL_TABparameter.

Which data is created for an injury/illness log entry?
Which injury/illness log data is to be created is specified by thedifferent I_FLG_XXX indicators, where an indicator correspondsto one or more tables or structures within the complex structure ofX_API_FAL_TAB as follows:
| Corresponding
Indicator | table parameter
--------------------------------------|-------------------------
I_FLG_HEADER | HEAD
| | |
| |--I_FLG_AFF_INTLTXT | INT_LTEXT
| |--I_FLG_AFF_EXTLTXT | EXT_LTEXT
| |
|--I_FLG_MEDACT | MEDACT_TAB-HEAD
| | |
| |--I_FLG_MEDA_DESC_LTXT | MEDACT_TAB-DESC_LTXT
| |--I_FLG_MEDA_DESCF_LTXT | MEDACT_TAB-DESCF_LTXT
| |
|--I_FLG_INJURIES | INJURIES_TAB
|--I_FLG_INVPERS | INVPERSONS_TAB-HEAD
| | |
| |--I_FLG_INVPERS_LTXT | INVPERSONS_TAB-LONGTEXT
| |
|--I_FLG_VALUATION | FAL_VAL_TAB
If an indicator is set to "TRUE," the respective data is created in thedatabase if the respective data record does not yet have an internalkey (RECN).
INCLUDE EHS_NLS_API OBJECT DOKU ID TX

Further information

  • Type group ESPAP

  • Type group CIHAL

362196Setting up number ranges in Industrial Hygiene and Safety