SAP EHSB_LBDOC_DATA_GET Function Module for
EHSB_LBDOC_DATA_GET is a standard ehsb lbdoc data get 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 data get FM, simply by entering the name EHSB_LBDOC_DATA_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: EHSB_LBDOC
Program Name: SAPLEHSB_LBDOC
Main Program: SAPLEHSB_LBDOC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EHSB_LBDOC_DATA_GET 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_DATA_GET'".
EXPORTING
I_DFIOT = "EHS: Structure for Document and User-Defined Text Link
I_ADDINF = "EHS: Additional Information for Function Module Calls
* I_REFOBJ = "Reference Object
IMPORTING
E_FLG_NOT_AUTHORIZED = "No Authorization
CHANGING
* X_DIALCTR = "EHS: Dialog Control Structure
TABLES
E_IOTAB = "EHS: Structure for Document and User-Defined Text Link
* E_API_FREETEXT_TAB = "
* E_API_FREETEXT_LTXT_TAB = "EHS: Structure for Document and User-Defined Text Link
IMPORTING Parameters details for EHSB_LBDOC_DATA_GET
I_DFIOT - EHS: Structure for Document and User-Defined Text Link
Data type: EHSBS_DFIOTOptional: No
Call by Reference: Yes
I_ADDINF - EHS: Additional Information for Function Module Calls
Data type: RCGADDINFOptional: No
Call by Reference: Yes
I_REFOBJ - Reference Object
Data type: CCIHE_IHREFOBJOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for EHSB_LBDOC_DATA_GET
E_FLG_NOT_AUTHORIZED - No Authorization
Data type: ESP1_BOOLEANOptional: No
Call by Reference: Yes
CHANGING Parameters details for EHSB_LBDOC_DATA_GET
X_DIALCTR - EHS: Dialog Control Structure
Data type: RCGDIALCTROptional: Yes
Call by Reference: Yes
TABLES Parameters details for EHSB_LBDOC_DATA_GET
E_IOTAB - EHS: Structure for Document and User-Defined Text Link
Data type: EHSBS_DFIOTOptional: No
Call by Reference: Yes
E_API_FREETEXT_TAB -
Data type: CIH01_DFTAPI_TAB_TYPEOptional: Yes
Call by Reference: Yes
E_API_FREETEXT_LTXT_TAB - EHS: Structure for Document and User-Defined Text Link
Data type: CIH01_DFTLTAPI_TAB_TYPEOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for EHSB_LBDOC_DATA_GET 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_e_iotab | TYPE STANDARD TABLE OF EHSBS_DFIOT, " | |||
| lv_i_dfiot | TYPE EHSBS_DFIOT, " | |||
| lv_x_dialctr | TYPE RCGDIALCTR, " | |||
| lv_e_flg_not_authorized | TYPE ESP1_BOOLEAN, " | |||
| lv_i_addinf | TYPE RCGADDINF, " | |||
| lt_e_api_freetext_tab | TYPE STANDARD TABLE OF CIH01_DFTAPI_TAB_TYPE, " | |||
| lv_i_refobj | TYPE CCIHE_IHREFOBJ, " | |||
| lt_e_api_freetext_ltxt_tab | TYPE STANDARD TABLE OF CIH01_DFTLTAPI_TAB_TYPE. " |
|   CALL FUNCTION 'EHSB_LBDOC_DATA_GET' " |
| EXPORTING | ||
| I_DFIOT | = lv_i_dfiot | |
| I_ADDINF | = lv_i_addinf | |
| I_REFOBJ | = lv_i_refobj | |
| IMPORTING | ||
| E_FLG_NOT_AUTHORIZED | = lv_e_flg_not_authorized | |
| CHANGING | ||
| X_DIALCTR | = lv_x_dialctr | |
| TABLES | ||
| E_IOTAB | = lt_e_iotab | |
| E_API_FREETEXT_TAB | = lt_e_api_freetext_tab | |
| E_API_FREETEXT_LTXT_TAB | = lt_e_api_freetext_ltxt_tab | |
| . " EHSB_LBDOC_DATA_GET | ||
ABAP code using 7.40 inline data declarations to call FM EHSB_LBDOC_DATA_GET
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.Search for further information about these or an SAP related objects