SAP EHSB_LBDOC_FREETEXT_READ Function Module for
EHSB_LBDOC_FREETEXT_READ is a standard ehsb lbdoc freetext read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 ehsb lbdoc freetext read FM, simply by entering the name EHSB_LBDOC_FREETEXT_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: EHSB_LBDOC
Program Name: SAPLEHSB_LBDOC
Main Program: SAPLEHSB_LBDOC
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EHSB_LBDOC_FREETEXT_READ 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 'EHSB_LBDOC_FREETEXT_READ'".
EXPORTING
I_NAMEMST = "Name of master table
I_ADDINF = "Additional Information
* I_FLG_CHECK_ONLY = ESP1_FALSE "
* I_FLG_FREETEXT = ESP1_TRUE "
* I_FLG_FREETEXT_LTXT = ESP1_TRUE "
* I_FLG_FILL_EXTERROR = ESP1_TRUE "
* I_REFOBJ = "Reference Object
IMPORTING
E_FLG_LOCKFAIL = "Indicator: Lock on at least one record failed
E_FLG_ERROR = "Indicator: Error creating a record
E_FLG_WARNING = "Indicator: Warning creating a record
CHANGING
* X_FLG_SAVE_PEND = "
TABLES
I_KEYTAB = "EHS: Minimum Key for FM Call Interface
X_API_FREETEXT_TAB = "User-Defined Texts
E_API_FREETEXT_LTXT_TAB = "Long Text
E_EXTERROR_TAB = "Error Message Table
EXCEPTIONS
INTERNAL_ERROR = 1
IMPORTING Parameters details for EHSB_LBDOC_FREETEXT_READ
I_NAMEMST - Name of master table
Data type: ESTDF-NAMEMSTOptional: No
Call by Reference: No ( called with pass by value option)
I_ADDINF - Additional Information
Data type: RCGADDINFOptional: No
Call by Reference: No ( called with pass by value option)
I_FLG_CHECK_ONLY -
Data type: ESP1_BOOLEANDefault: ESP1_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_FREETEXT -
Data type: ESP1_BOOLEANDefault: ESP1_TRUE
Optional: No
Call by Reference: No ( called with pass by value option)
I_FLG_FREETEXT_LTXT -
Data type: ESP1_BOOLEANDefault: ESP1_TRUE
Optional: No
Call by Reference: No ( called with pass by value option)
I_FLG_FILL_EXTERROR -
Data type: ESP1_BOOLEANDefault: ESP1_TRUE
Optional: No
Call by Reference: No ( called with pass by value option)
I_REFOBJ - Reference Object
Data type: CCIHE_IHREFOBJOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for EHSB_LBDOC_FREETEXT_READ
E_FLG_LOCKFAIL - Indicator: Lock on at least one record failed
Data type: ESP1_BOOLEANOptional: No
Call by Reference: No ( called with pass by value option)
E_FLG_ERROR - Indicator: Error creating a record
Data type: ESP1_BOOLEANOptional: No
Call by Reference: No ( called with pass by value option)
E_FLG_WARNING - Indicator: Warning creating a record
Data type: ESP1_BOOLEANOptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for EHSB_LBDOC_FREETEXT_READ
X_FLG_SAVE_PEND -
Data type: ESP1_BOOLEANOptional: Yes
Call by Reference: Yes
TABLES Parameters details for EHSB_LBDOC_FREETEXT_READ
I_KEYTAB - EHS: Minimum Key for FM Call Interface
Data type: RCGSTDRECNOptional: No
Call by Reference: Yes
X_API_FREETEXT_TAB - User-Defined Texts
Data type: CIH01_DFTAPI_TAB_TYPEOptional: No
Call by Reference: Yes
E_API_FREETEXT_LTXT_TAB - Long Text
Data type: CIH01_DFTLTAPI_TAB_TYPEOptional: No
Call by Reference: Yes
E_EXTERROR_TAB - Error Message Table
Data type: ESPAP_EXTERROR_TAB_TYPEOptional: No
Call by Reference: Yes
EXCEPTIONS details
INTERNAL_ERROR - System Error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EHSB_LBDOC_FREETEXT_READ 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: | ||||
| lt_i_keytab | TYPE STANDARD TABLE OF RCGSTDRECN, " | |||
| lv_i_namemst | TYPE ESTDF-NAMEMST, " | |||
| lv_e_flg_lockfail | TYPE ESP1_BOOLEAN, " | |||
| lv_internal_error | TYPE ESP1_BOOLEAN, " | |||
| lv_x_flg_save_pend | TYPE ESP1_BOOLEAN, " | |||
| lv_i_addinf | TYPE RCGADDINF, " | |||
| lv_e_flg_error | TYPE ESP1_BOOLEAN, " | |||
| lt_x_api_freetext_tab | TYPE STANDARD TABLE OF CIH01_DFTAPI_TAB_TYPE, " | |||
| lv_e_flg_warning | TYPE ESP1_BOOLEAN, " | |||
| lv_i_flg_check_only | TYPE ESP1_BOOLEAN, " ESP1_FALSE | |||
| lt_e_api_freetext_ltxt_tab | TYPE STANDARD TABLE OF CIH01_DFTLTAPI_TAB_TYPE, " | |||
| lt_e_exterror_tab | TYPE STANDARD TABLE OF ESPAP_EXTERROR_TAB_TYPE, " | |||
| lv_i_flg_freetext | TYPE ESP1_BOOLEAN, " ESP1_TRUE | |||
| lv_i_flg_freetext_ltxt | TYPE ESP1_BOOLEAN, " ESP1_TRUE | |||
| lv_i_flg_fill_exterror | TYPE ESP1_BOOLEAN, " ESP1_TRUE | |||
| lv_i_refobj | TYPE CCIHE_IHREFOBJ. " |
|   CALL FUNCTION 'EHSB_LBDOC_FREETEXT_READ' " |
| EXPORTING | ||
| I_NAMEMST | = lv_i_namemst | |
| I_ADDINF | = lv_i_addinf | |
| I_FLG_CHECK_ONLY | = lv_i_flg_check_only | |
| I_FLG_FREETEXT | = lv_i_flg_freetext | |
| I_FLG_FREETEXT_LTXT | = lv_i_flg_freetext_ltxt | |
| I_FLG_FILL_EXTERROR | = lv_i_flg_fill_exterror | |
| I_REFOBJ | = lv_i_refobj | |
| IMPORTING | ||
| E_FLG_LOCKFAIL | = lv_e_flg_lockfail | |
| E_FLG_ERROR | = lv_e_flg_error | |
| E_FLG_WARNING | = lv_e_flg_warning | |
| CHANGING | ||
| X_FLG_SAVE_PEND | = lv_x_flg_save_pend | |
| TABLES | ||
| I_KEYTAB | = lt_i_keytab | |
| X_API_FREETEXT_TAB | = lt_x_api_freetext_tab | |
| E_API_FREETEXT_LTXT_TAB | = lt_e_api_freetext_ltxt_tab | |
| E_EXTERROR_TAB | = lt_e_exterror_tab | |
| EXCEPTIONS | ||
| INTERNAL_ERROR = 1 | ||
| . " EHSB_LBDOC_FREETEXT_READ | ||
ABAP code using 7.40 inline data declarations to call FM EHSB_LBDOC_FREETEXT_READ
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.| "SELECT single NAMEMST FROM ESTDF INTO @DATA(ld_i_namemst). | ||||
| DATA(ld_i_flg_check_only) | = ESP1_FALSE. | |||
| DATA(ld_i_flg_freetext) | = ESP1_TRUE. | |||
| DATA(ld_i_flg_freetext_ltxt) | = ESP1_TRUE. | |||
| DATA(ld_i_flg_fill_exterror) | = ESP1_TRUE. | |||
Search for further information about these or an SAP related objects