Fonction SAP CBIH_FA30_FAL_UPDATE - EHS: Update 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: Update external note for person affected
I_FLG_AFF_INTLTXT ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Update internal note for person 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: Update injury/illness log header
I_FLG_INJURIES ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Update injuries of persons affected
I_FLG_INVPERS ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Update persons involved
I_FLG_INVPERS_LTXT ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Update long texts for persons involved
I_FLG_MEDACT ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Update medical activities
I_FLG_MEDA_DESCF_LTXT ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Update long text follow-up medical treatment
I_FLG_MEDA_DESC_LTXT ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Update long text medical aid given
I_FLG_PHRASECHECK_OFF ESP1_BOOLEAN 0 ESP1_FALSE X
I_FLG_VALUATION ESP1_BOOLEAN 0 ESP1_FALSE X Indicator: Update classification system properties

Paramètre Reférence Type Long. Description
E_FLG_ERROR ESP1_BOOLEAN 0 Indicator: Error when updating a record
E_FLG_LOCKFAIL ESP1_BOOLEAN 0 Lock on at least one record failed indicator
E_FLG_WARNING ESP1_BOOLEAN 0 Error: warning when updating a record

Paramètre Reférence Long. Facultatif Description
X_API_AFF_EXTLTXT_TAB CIHAL_IPEVALTAPI_TAB_TYPE 0 X Long text table external note
X_API_AFF_INTLTXT_TAB CIHAL_IPEVALTAPI_TAB_TYPE 0 X Long text table internal note
X_API_HEADER_TAB CIHAL_FALHAPI_TAB_TYPE 0 Injury/illness log header data
X_API_INJURIES_TAB CIHAL_IPEVINJAPI_TAB_TYPE 0 X Injuries to persons affected
X_API_INVPERSONS_TAB CIHAL_IPAPI_TAB_TYPE 0 X Persons involved
X_API_INVPERS_LTXT_TAB CIHAL_IPLTAPI_TAB_TYPE 0 X Long text table persons involved
X_API_MEDACT_TAB CIHAL_FALMAAPI_TAB_TYPE 0 X Medical activities
X_API_MEDA_DESCF_LTXT_TAB CIHAL_FALMALTAPI_TAB_TYPE 0 X Long text table follow-up medical treatment
X_API_MEDA_DESC_LTXT_TAB CIHAL_FALMALTAPI_TAB_TYPE 0 X Long text table medical aid given
X_API_VAL_INST_TAB CIH01_IHVALAPI_TAB_TYPE 0 X Classification system instances
X_API_VAL_PROP_TAB CIH01_IHPRAPI_TAB_TYPE 0 X Classification system properties

Exception Description
CONVMODE_SET_FAILED Language support error
INTERNAL_ERROR Internal error or Customizing error
NO_OBJECT_SPECIFIED No objects were specified in the header table
PARAMETER_ERROR Indicator set but relevant table missing

Functionality
This function module is part of the Application Programming Interface(API) of the EH&Scomponent injury/illnesslog. It is used to update injury/illness log data.

Which data is updated?
Only data for which the valid keys in the interface tables arespecified is updated. Here, keys are the fields of the structureRCGUKEY and the corresponding foreign keys (RECNROOT,RECMST...). The foreign keys required are determined in each case bythe corresponding category of the data record to be updated.Irrespective of the data to be updated, the header record for thecorresponding injury/illness log (X_API_HEADER_TAB) must alwaysbe additionally specified.

How is the data record to be updated determined?
Which injury/illness log data is updated is specified by theI_FLG_xxx indicators. In accordance with the indicators theinput tables must additionally be transferred to the correspondinginjury/illness log header as follows:
| Corresponding
Indicators | table parameter
-------------------------------|----------------------------
I_FLG_HEADER | X_API_HEADER_TAB
I_FLG_MEDACT | X_API_MEDACT_TAB
I_FLG_MEDA_DESC_LTXT | X_API_MEDA_DESC_LTXT_TAB
I_FLG_MEDA_DESCF_LTXT | X_API_MEDA_DESCF_LTXT_TAB
I_FLG_INVPERS | X_API_INVPERSONS_TAB
I_FLG_INVPERS_LTXT | X_API_INVPERS_LTXT_TAB
I_FLG_AFF_INTLTXT | X_API_AFF_INTLTXT_TAB
I_FLG_AFF_EXTLTXT | X_API_AFF_EXTLTXT_TAB
I_FLG_INJURIES | X_API_INJURIES_TAB
I_FLG_VALUATION | X_API_VAL_INST_TAB
| X_API_VAL_PROP_TAB
The calling program determines the subobjects to be updated by settingthe corresponding indicators to "TRUE" ("TRUE" and "FALSE" are definedas constants in the Include CBUI09). Then the calling programdetermines the corresponding table parameters with the subobjects to beupdated. The data and in particular the keys must be specified fully.

Output
Boolean parameters indicate that errors occurred when the subobjectswere being processed. The following errors can occur:
Lock error: E_FLG_LOCKFAIL = TRUE
Processing error: E_FLG_ERROR = TRUE
Processing warning: E_FLG_WARNING = TRUE

Possible exceptions
NO_OBJECT_SPECIFIED - No objects were specified for updating
PARAMETER_ERROR - Table for specified object missing
INTERNAL_ERROR - Internal processing error
CONVMODE_SET_FAILED - Character conversion error

Further information

  • Type group ESPAP

  • Type group CIHAL

  • Type group CIH01