SAP EHSB_LBDOC_FREETEXT_UPDATE Function Module for









EHSB_LBDOC_FREETEXT_UPDATE is a standard ehsb lbdoc freetext update 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 update FM, simply by entering the name EHSB_LBDOC_FREETEXT_UPDATE 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_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 'EHSB_LBDOC_FREETEXT_UPDATE'"
EXPORTING
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
X_API_FREETEXT_TAB = "User-Defined Texts
* X_API_FREETEXT_LTXT_TAB = "Long Text
* X_EXTERROR_TAB = "Error Message Table

EXCEPTIONS
INTERNAL_ERROR = 1
.



IMPORTING Parameters details for EHSB_LBDOC_FREETEXT_UPDATE

I_ADDINF - Additional Information

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

I_FLG_CHECK_ONLY -

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

I_FLG_FREETEXT -

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

I_FLG_FREETEXT_LTXT -

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

I_FLG_FILL_EXTERROR -

Data type: ESP1_BOOLEAN
Default: ESP1_TRUE
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)

EXPORTING Parameters details for EHSB_LBDOC_FREETEXT_UPDATE

E_FLG_LOCKFAIL - Indicator: Lock on at least one record failed

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

E_FLG_ERROR - Indicator: Error creating a record

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

E_FLG_WARNING - Indicator: Warning creating a record

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

CHANGING Parameters details for EHSB_LBDOC_FREETEXT_UPDATE

X_FLG_SAVE_PEND -

Data type: ESP1_BOOLEAN
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for EHSB_LBDOC_FREETEXT_UPDATE

X_API_FREETEXT_TAB - User-Defined Texts

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

X_API_FREETEXT_LTXT_TAB - Long Text

Data type: CIH01_DFTLTAPI_TAB_TYPE
Optional: Yes
Call by Reference: Yes

X_EXTERROR_TAB - Error Message Table

Data type: ESPAP_EXTERROR_TAB_TYPE
Optional: Yes
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_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, "   
lv_internal_error  TYPE ESP1_BOOLEAN, "   
lv_x_flg_save_pend  TYPE ESP1_BOOLEAN, "   
lt_x_api_freetext_tab  TYPE STANDARD TABLE OF CIH01_DFTAPI_TAB_TYPE, "   
lv_e_flg_error  TYPE ESP1_BOOLEAN, "   
lv_i_flg_check_only  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lt_x_api_freetext_ltxt_tab  TYPE STANDARD TABLE OF CIH01_DFTLTAPI_TAB_TYPE, "   
lv_e_flg_warning  TYPE ESP1_BOOLEAN, "   
lv_i_flg_freetext  TYPE ESP1_BOOLEAN, "   ESP1_TRUE
lt_x_exterror_tab  TYPE STANDARD TABLE OF ESPAP_EXTERROR_TAB_TYPE, "   
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_UPDATE'  "
    EXPORTING
         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
         X_API_FREETEXT_TAB = lt_x_api_freetext_tab
         X_API_FREETEXT_LTXT_TAB = lt_x_api_freetext_ltxt_tab
         X_EXTERROR_TAB = lt_x_exterror_tab
    EXCEPTIONS
        INTERNAL_ERROR = 1
. " EHSB_LBDOC_FREETEXT_UPDATE




ABAP code using 7.40 inline data declarations to call FM EHSB_LBDOC_FREETEXT_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_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



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!