SAP EHSB_LBDOC_FREETEXT_CHECK_AUTH Function Module for









EHSB_LBDOC_FREETEXT_CHECK_AUTH is a standard ehsb lbdoc freetext check auth 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 check auth FM, simply by entering the name EHSB_LBDOC_FREETEXT_CHECK_AUTH 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_FREETEXT_CHECK_AUTH 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_CHECK_AUTH'"
EXPORTING
I_ADDINF = "EHS: Additional Information for Function Module Calls
* I_ACTYPE = "Activity
* I_ACTVT = "
* I_CHK_FTXT_AUTH = "Environment parameters
* I_REFOBJ = "Reference Object
I_ERRORMODE = "
I_ERRORNUMBER = "
I_ERRORCLASS = "

IMPORTING
E_FLG_INTERNAL_ERROR = "

CHANGING
* X_FLG_ERROR = "

TABLES
X_API_FREETEXT_TAB = "
X_EXTERROR_TAB = "
.



IMPORTING Parameters details for EHSB_LBDOC_FREETEXT_CHECK_AUTH

I_ADDINF - EHS: Additional Information for Function Module Calls

Data type: RCGADDINF
Optional: No
Call by Reference: No ( called with pass by value option)

I_ACTYPE - Activity

Data type: RCGDIALCTR-ACTYPE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ACTVT -

Data type: ESP1_ACTVT_TYPE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CHK_FTXT_AUTH - Environment parameters

Data type: TCGENV-PARAM
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_REFOBJ - Reference Object

Data type: CCIHE_IHREFOBJ
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ERRORMODE -

Data type: ESPAP_ERRORMODE_TYPE
Optional: No
Call by Reference: No ( called with pass by value option)

I_ERRORNUMBER -

Data type: ESPAP_ERRORINFO_TYPE-NUMBER
Optional: No
Call by Reference: No ( called with pass by value option)

I_ERRORCLASS -

Data type: ESPAP_ERRORINFO_TYPE-CLASS
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for EHSB_LBDOC_FREETEXT_CHECK_AUTH

E_FLG_INTERNAL_ERROR -

Data type: ESP1_BOOLEAN
Optional: No
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for EHSB_LBDOC_FREETEXT_CHECK_AUTH

X_FLG_ERROR -

Data type: ESP1_BOOLEAN
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for EHSB_LBDOC_FREETEXT_CHECK_AUTH

X_API_FREETEXT_TAB -

Data type: CIH01_DFTAPI_TAB_TYPE
Optional: No
Call by Reference: Yes

X_EXTERROR_TAB -

Data type: ESPAP_EXTERROR_TAB_TYPE
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for EHSB_LBDOC_FREETEXT_CHECK_AUTH 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_x_flg_error  TYPE ESP1_BOOLEAN, "   
lt_x_api_freetext_tab  TYPE STANDARD TABLE OF CIH01_DFTAPI_TAB_TYPE, "   
lv_e_flg_internal_error  TYPE ESP1_BOOLEAN, "   
lv_i_actype  TYPE RCGDIALCTR-ACTYPE, "   
lt_x_exterror_tab  TYPE STANDARD TABLE OF ESPAP_EXTERROR_TAB_TYPE, "   
lv_i_actvt  TYPE ESP1_ACTVT_TYPE, "   
lv_i_chk_ftxt_auth  TYPE TCGENV-PARAM, "   
lv_i_refobj  TYPE CCIHE_IHREFOBJ, "   
lv_i_errormode  TYPE ESPAP_ERRORMODE_TYPE, "   
lv_i_errornumber  TYPE ESPAP_ERRORINFO_TYPE-NUMBER, "   
lv_i_errorclass  TYPE ESPAP_ERRORINFO_TYPE-CLASS. "   

  CALL FUNCTION 'EHSB_LBDOC_FREETEXT_CHECK_AUTH'  "
    EXPORTING
         I_ADDINF = lv_i_addinf
         I_ACTYPE = lv_i_actype
         I_ACTVT = lv_i_actvt
         I_CHK_FTXT_AUTH = lv_i_chk_ftxt_auth
         I_REFOBJ = lv_i_refobj
         I_ERRORMODE = lv_i_errormode
         I_ERRORNUMBER = lv_i_errornumber
         I_ERRORCLASS = lv_i_errorclass
    IMPORTING
         E_FLG_INTERNAL_ERROR = lv_e_flg_internal_error
    CHANGING
         X_FLG_ERROR = lv_x_flg_error
    TABLES
         X_API_FREETEXT_TAB = lt_x_api_freetext_tab
         X_EXTERROR_TAB = lt_x_exterror_tab
. " EHSB_LBDOC_FREETEXT_CHECK_AUTH




ABAP code using 7.40 inline data declarations to call FM EHSB_LBDOC_FREETEXT_CHECK_AUTH

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 ACTYPE FROM RCGDIALCTR INTO @DATA(ld_i_actype).
 
 
 
"SELECT single PARAM FROM TCGENV INTO @DATA(ld_i_chk_ftxt_auth).
 
 
 
"SELECT single NUMBER FROM ESPAP_ERRORINFO_TYPE INTO @DATA(ld_i_errornumber).
 
"SELECT single CLASS FROM ESPAP_ERRORINFO_TYPE INTO @DATA(ld_i_errorclass).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!