SAP CBIH_FA30_FAL_UPDATE Function Module for EHS: Update Injury/Illness Log Data
CBIH_FA30_FAL_UPDATE is a standard cbih fa30 fal update SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for EHS: Update Injury/Illness Log Data processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for cbih fa30 fal update FM, simply by entering the name CBIH_FA30_FAL_UPDATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: CBIH_FA30
Program Name: SAPLCBIH_FA30
Main Program: SAPLCBIH_FA30
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CBIH_FA30_FAL_UPDATE pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'CBIH_FA30_FAL_UPDATE'"EHS: Update Injury/Illness Log Data.
EXPORTING
I_ADDINF = "Additional information on object
* I_FLG_INVPERS_LTXT = ESP1_FALSE "Indicator: Update long texts for persons involved
* I_FLG_AFF_INTLTXT = ESP1_FALSE "Indicator: Update internal note for person affected
* I_FLG_AFF_EXTLTXT = ESP1_FALSE "Indicator: Update external note for person affected
* I_FLG_INJURIES = ESP1_FALSE "Indicator: Update injuries of persons affected
* I_FLG_VALUATION = ESP1_FALSE "Indicator: Update classification system properties
* I_FLG_CHECK_CLVALUE = ESP1_TRUE "
* I_FLG_CHECK_ONLY = ESP1_FALSE "Check data only indicator
* I_FLG_PHRASECHECK_OFF = ESP1_FALSE "
* I_FLG_FILL_EXTERROR = ESP1_FALSE "Indicator: Fill extended error information table
* I_FLG_HEADER = ESP1_FALSE "Indicator: Update injury/illness log header
* I_FLG_MEDACT = ESP1_FALSE "Indicator: Update medical activities
* I_FLG_MEDA_DESC_LTXT = ESP1_FALSE "Indicator: Update long text medical aid given
* I_FLG_MEDA_DESCF_LTXT = ESP1_FALSE "Indicator: Update long text follow-up medical treatment
* I_FLG_INVPERS = ESP1_FALSE "Indicator: Update persons involved
IMPORTING
E_FLG_LOCKFAIL = "Lock on at least one record failed indicator
E_FLG_ERROR = "Indicator: Error when updating a record
E_FLG_WARNING = "Error: warning when updating a record
TABLES
X_API_HEADER_TAB = "Injury/illness log header data
* X_API_VAL_INST_TAB = "Classification system instances
* X_API_VAL_PROP_TAB = "Classification system properties
* X_API_MEDACT_TAB = "Medical activities
* X_API_MEDA_DESC_LTXT_TAB = "Long text table medical aid given
* X_API_MEDA_DESCF_LTXT_TAB = "Long text table follow-up medical treatment
* X_API_INVPERSONS_TAB = "Persons involved
* X_API_INVPERS_LTXT_TAB = "Long text table persons involved
* X_API_AFF_INTLTXT_TAB = "Long text table internal note
* X_API_AFF_EXTLTXT_TAB = "Long text table external note
* X_API_INJURIES_TAB = "Injuries to persons affected
EXCEPTIONS
NO_OBJECT_SPECIFIED = 1 PARAMETER_ERROR = 2 INTERNAL_ERROR = 3 CONVMODE_SET_FAILED = 4
IMPORTING Parameters details for CBIH_FA30_FAL_UPDATE
I_ADDINF - Additional information on object
Data type: RCGADDINFOptional: No
Call by Reference: No ( called with pass by value option)
I_FLG_INVPERS_LTXT - Indicator: Update long texts for persons involved
Data type: ESP1_BOOLEANDefault: ESP1_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_AFF_INTLTXT - Indicator: Update internal note for person affected
Data type: ESP1_BOOLEANDefault: ESP1_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_AFF_EXTLTXT - Indicator: Update external note for person affected
Data type: ESP1_BOOLEANDefault: ESP1_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_INJURIES - Indicator: Update injuries of persons affected
Data type: ESP1_BOOLEANDefault: ESP1_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_VALUATION - Indicator: Update classification system properties
Data type: ESP1_BOOLEANDefault: ESP1_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_CHECK_CLVALUE -
Data type: ESP1_BOOLEANDefault: ESP1_TRUE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_CHECK_ONLY - Check data only indicator
Data type: ESP1_BOOLEANDefault: ESP1_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_PHRASECHECK_OFF -
Data type: ESP1_BOOLEANDefault: ESP1_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_FILL_EXTERROR - Indicator: Fill extended error information table
Data type: ESP1_BOOLEANDefault: ESP1_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_HEADER - Indicator: Update injury/illness log header
Data type: ESP1_BOOLEANDefault: ESP1_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_MEDACT - Indicator: Update medical activities
Data type: ESP1_BOOLEANDefault: ESP1_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_MEDA_DESC_LTXT - Indicator: Update long text medical aid given
Data type: ESP1_BOOLEANDefault: ESP1_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_MEDA_DESCF_LTXT - Indicator: Update long text follow-up medical treatment
Data type: ESP1_BOOLEANDefault: ESP1_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_INVPERS - Indicator: Update persons involved
Data type: ESP1_BOOLEANDefault: ESP1_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CBIH_FA30_FAL_UPDATE
E_FLG_LOCKFAIL - Lock on at least one record failed indicator
Data type: ESP1_BOOLEANOptional: No
Call by Reference: No ( called with pass by value option)
E_FLG_ERROR - Indicator: Error when updating a record
Data type: ESP1_BOOLEANOptional: No
Call by Reference: No ( called with pass by value option)
E_FLG_WARNING - Error: warning when updating a record
Data type: ESP1_BOOLEANOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CBIH_FA30_FAL_UPDATE
X_API_HEADER_TAB - Injury/illness log header data
Data type: CIHAL_FALHAPI_TAB_TYPEOptional: No
Call by Reference: No ( called with pass by value option)
X_API_VAL_INST_TAB - Classification system instances
Data type: CIH01_IHVALAPI_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_API_VAL_PROP_TAB - Classification system properties
Data type: CIH01_IHPRAPI_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_API_MEDACT_TAB - Medical activities
Data type: CIHAL_FALMAAPI_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_API_MEDA_DESC_LTXT_TAB - Long text table medical aid given
Data type: CIHAL_FALMALTAPI_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_API_MEDA_DESCF_LTXT_TAB - Long text table follow-up medical treatment
Data type: CIHAL_FALMALTAPI_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_API_INVPERSONS_TAB - Persons involved
Data type: CIHAL_IPAPI_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_API_INVPERS_LTXT_TAB - Long text table persons involved
Data type: CIHAL_IPLTAPI_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_API_AFF_INTLTXT_TAB - Long text table internal note
Data type: CIHAL_IPEVALTAPI_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_API_AFF_EXTLTXT_TAB - Long text table external note
Data type: CIHAL_IPEVALTAPI_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_API_INJURIES_TAB - Injuries to persons affected
Data type: CIHAL_IPEVINJAPI_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_OBJECT_SPECIFIED - No objects were specified in the header table
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PARAMETER_ERROR - Indicator set but relevant table missing
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INTERNAL_ERROR - Internal error or Customizing error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CONVMODE_SET_FAILED - Language support error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CBIH_FA30_FAL_UPDATE Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_i_addinf | TYPE RCGADDINF, " | |||
| lv_e_flg_lockfail | TYPE ESP1_BOOLEAN, " | |||
| lt_x_api_header_tab | TYPE STANDARD TABLE OF CIHAL_FALHAPI_TAB_TYPE, " | |||
| lv_no_object_specified | TYPE CIHAL_FALHAPI_TAB_TYPE, " | |||
| lv_i_flg_invpers_ltxt | TYPE ESP1_BOOLEAN, " ESP1_FALSE | |||
| lt_x_api_val_inst_tab | TYPE STANDARD TABLE OF CIH01_IHVALAPI_TAB_TYPE, " | |||
| lv_i_flg_aff_intltxt | TYPE ESP1_BOOLEAN, " ESP1_FALSE | |||
| lt_x_api_val_prop_tab | TYPE STANDARD TABLE OF CIH01_IHPRAPI_TAB_TYPE, " | |||
| lv_i_flg_aff_extltxt | TYPE ESP1_BOOLEAN, " ESP1_FALSE | |||
| lv_i_flg_injuries | TYPE ESP1_BOOLEAN, " ESP1_FALSE | |||
| lv_i_flg_valuation | TYPE ESP1_BOOLEAN, " ESP1_FALSE | |||
| lv_i_flg_check_clvalue | TYPE ESP1_BOOLEAN, " ESP1_TRUE | |||
| lv_e_flg_error | TYPE ESP1_BOOLEAN, " | |||
| lv_parameter_error | TYPE ESP1_BOOLEAN, " | |||
| lv_i_flg_check_only | TYPE ESP1_BOOLEAN, " ESP1_FALSE | |||
| lt_x_api_medact_tab | TYPE STANDARD TABLE OF CIHAL_FALMAAPI_TAB_TYPE, " | |||
| lv_e_flg_warning | TYPE ESP1_BOOLEAN, " | |||
| lv_internal_error | TYPE ESP1_BOOLEAN, " | |||
| lv_i_flg_phrasecheck_off | TYPE ESP1_BOOLEAN, " ESP1_FALSE | |||
| lt_x_api_meda_desc_ltxt_tab | TYPE STANDARD TABLE OF CIHAL_FALMALTAPI_TAB_TYPE, " | |||
| lv_convmode_set_failed | TYPE CIHAL_FALMALTAPI_TAB_TYPE, " | |||
| lv_i_flg_fill_exterror | TYPE ESP1_BOOLEAN, " ESP1_FALSE | |||
| lt_x_api_meda_descf_ltxt_tab | TYPE STANDARD TABLE OF CIHAL_FALMALTAPI_TAB_TYPE, " | |||
| lv_i_flg_header | TYPE ESP1_BOOLEAN, " ESP1_FALSE | |||
| lt_x_api_invpersons_tab | TYPE STANDARD TABLE OF CIHAL_IPAPI_TAB_TYPE, " | |||
| lv_i_flg_medact | TYPE ESP1_BOOLEAN, " ESP1_FALSE | |||
| lt_x_api_invpers_ltxt_tab | TYPE STANDARD TABLE OF CIHAL_IPLTAPI_TAB_TYPE, " | |||
| lv_i_flg_meda_desc_ltxt | TYPE ESP1_BOOLEAN, " ESP1_FALSE | |||
| lt_x_api_aff_intltxt_tab | TYPE STANDARD TABLE OF CIHAL_IPEVALTAPI_TAB_TYPE, " | |||
| lv_i_flg_meda_descf_ltxt | TYPE ESP1_BOOLEAN, " ESP1_FALSE | |||
| lt_x_api_aff_extltxt_tab | TYPE STANDARD TABLE OF CIHAL_IPEVALTAPI_TAB_TYPE, " | |||
| lv_i_flg_invpers | TYPE ESP1_BOOLEAN, " ESP1_FALSE | |||
| lt_x_api_injuries_tab | TYPE STANDARD TABLE OF CIHAL_IPEVINJAPI_TAB_TYPE. " |
|   CALL FUNCTION 'CBIH_FA30_FAL_UPDATE' "EHS: Update Injury/Illness Log Data |
| EXPORTING | ||
| I_ADDINF | = lv_i_addinf | |
| I_FLG_INVPERS_LTXT | = lv_i_flg_invpers_ltxt | |
| I_FLG_AFF_INTLTXT | = lv_i_flg_aff_intltxt | |
| I_FLG_AFF_EXTLTXT | = lv_i_flg_aff_extltxt | |
| I_FLG_INJURIES | = lv_i_flg_injuries | |
| I_FLG_VALUATION | = lv_i_flg_valuation | |
| I_FLG_CHECK_CLVALUE | = lv_i_flg_check_clvalue | |
| I_FLG_CHECK_ONLY | = lv_i_flg_check_only | |
| I_FLG_PHRASECHECK_OFF | = lv_i_flg_phrasecheck_off | |
| I_FLG_FILL_EXTERROR | = lv_i_flg_fill_exterror | |
| I_FLG_HEADER | = lv_i_flg_header | |
| I_FLG_MEDACT | = lv_i_flg_medact | |
| I_FLG_MEDA_DESC_LTXT | = lv_i_flg_meda_desc_ltxt | |
| I_FLG_MEDA_DESCF_LTXT | = lv_i_flg_meda_descf_ltxt | |
| I_FLG_INVPERS | = lv_i_flg_invpers | |
| IMPORTING | ||
| E_FLG_LOCKFAIL | = lv_e_flg_lockfail | |
| E_FLG_ERROR | = lv_e_flg_error | |
| E_FLG_WARNING | = lv_e_flg_warning | |
| TABLES | ||
| X_API_HEADER_TAB | = lt_x_api_header_tab | |
| X_API_VAL_INST_TAB | = lt_x_api_val_inst_tab | |
| X_API_VAL_PROP_TAB | = lt_x_api_val_prop_tab | |
| X_API_MEDACT_TAB | = lt_x_api_medact_tab | |
| X_API_MEDA_DESC_LTXT_TAB | = lt_x_api_meda_desc_ltxt_tab | |
| X_API_MEDA_DESCF_LTXT_TAB | = lt_x_api_meda_descf_ltxt_tab | |
| X_API_INVPERSONS_TAB | = lt_x_api_invpersons_tab | |
| X_API_INVPERS_LTXT_TAB | = lt_x_api_invpers_ltxt_tab | |
| X_API_AFF_INTLTXT_TAB | = lt_x_api_aff_intltxt_tab | |
| X_API_AFF_EXTLTXT_TAB | = lt_x_api_aff_extltxt_tab | |
| X_API_INJURIES_TAB | = lt_x_api_injuries_tab | |
| EXCEPTIONS | ||
| NO_OBJECT_SPECIFIED = 1 | ||
| PARAMETER_ERROR = 2 | ||
| INTERNAL_ERROR = 3 | ||
| CONVMODE_SET_FAILED = 4 | ||
| . " CBIH_FA30_FAL_UPDATE | ||
ABAP code using 7.40 inline data declarations to call FM CBIH_FA30_FAL_UPDATE
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| DATA(ld_i_flg_invpers_ltxt) | = ESP1_FALSE. | |||
| DATA(ld_i_flg_aff_intltxt) | = ESP1_FALSE. | |||
| DATA(ld_i_flg_aff_extltxt) | = ESP1_FALSE. | |||
| DATA(ld_i_flg_injuries) | = ESP1_FALSE. | |||
| DATA(ld_i_flg_valuation) | = ESP1_FALSE. | |||
| DATA(ld_i_flg_check_clvalue) | = ESP1_TRUE. | |||
| DATA(ld_i_flg_check_only) | = ESP1_FALSE. | |||
| DATA(ld_i_flg_phrasecheck_off) | = ESP1_FALSE. | |||
| DATA(ld_i_flg_fill_exterror) | = ESP1_FALSE. | |||
| DATA(ld_i_flg_header) | = ESP1_FALSE. | |||
| DATA(ld_i_flg_medact) | = ESP1_FALSE. | |||
| DATA(ld_i_flg_meda_desc_ltxt) | = ESP1_FALSE. | |||
| DATA(ld_i_flg_meda_descf_ltxt) | = ESP1_FALSE. | |||
| DATA(ld_i_flg_invpers) | = ESP1_FALSE. | |||
Search for further information about these or an SAP related objects