SAP EHSB_BUF_PROT_OBJ_FIND_BY_CHG Function Module for NOTRANSL: EHS: Suchen nach Phrasen über einen Änderungszeitraum









EHSB_BUF_PROT_OBJ_FIND_BY_CHG is a standard ehsb buf prot obj find by chg SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: EHS: Suchen nach Phrasen über einen Änderungszeitraum 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 ehsb buf prot obj find by chg FM, simply by entering the name EHSB_BUF_PROT_OBJ_FIND_BY_CHG into the relevant SAP transaction such as SE37 or SE38.

Function Group: EHSB_BUF_PROT
Program Name: SAPLEHSB_BUF_PROT
Main Program: SAPLEHSB_BUF_PROT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function EHSB_BUF_PROT_OBJ_FIND_BY_CHG 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_BUF_PROT_OBJ_FIND_BY_CHG'"NOTRANSL: EHS: Suchen nach Phrasen über einen Änderungszeitraum
EXPORTING
I_UPDDAT_FROM = "
* I_FLG_IHS = ESP1_FALSE "
* I_FLG_NN = ESP1_FALSE "
* I_FLG_WKA = ESP1_FALSE "
* I_FLG_EXR = ESP1_FALSE "
* I_FLG_WAST = ESP1_FALSE "
* I_FLG_DGP = ESP1_FALSE "
* I_UPDDAT_TO = SY-DATUM "
* I_VALDAT = SY-DATUM "Validity Date
* I_FLG_SUB = ESP1_FALSE "
* I_FLG_PHR = ESP1_FALSE "
* I_FLG_BERW = ESP1_FALSE "
* I_FLG_CUST = ESP1_FALSE "
* I_FLG_IMEX = ESP1_FALSE "
* I_FLG_INFO = ESP1_FALSE "

IMPORTING
E_RECORDS_FOUND = "

TABLES
* I_RESTRICTIONTAB = "
E_KEYTAB = "
* E_KEYEXT_TAB = "
.



IMPORTING Parameters details for EHSB_BUF_PROT_OBJ_FIND_BY_CHG

I_UPDDAT_FROM -

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

I_FLG_IHS -

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

I_FLG_NN -

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

I_FLG_WKA -

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

I_FLG_EXR -

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

I_FLG_WAST -

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

I_FLG_DGP -

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

I_UPDDAT_TO -

Data type: ESTPP-UPDDAT
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_VALDAT - Validity Date

Data type: ESTPP-VALFR
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_SUB -

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

I_FLG_PHR -

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

I_FLG_BERW -

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

I_FLG_CUST -

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

I_FLG_IMEX -

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

I_FLG_INFO -

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

EXPORTING Parameters details for EHSB_BUF_PROT_OBJ_FIND_BY_CHG

E_RECORDS_FOUND -

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

TABLES Parameters details for EHSB_BUF_PROT_OBJ_FIND_BY_CHG

I_RESTRICTIONTAB -

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

E_KEYTAB -

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

E_KEYEXT_TAB -

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

Copy and paste ABAP code example for EHSB_BUF_PROT_OBJ_FIND_BY_CHG 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_upddat_from  TYPE ESTPP-UPDDAT, "   
lv_e_records_found  TYPE SY-TABIX, "   
lt_i_restrictiontab  TYPE STANDARD TABLE OF RCGSTDRECN, "   
lv_i_flg_ihs  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lv_i_flg_nn  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lv_i_flg_wka  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lv_i_flg_exr  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lv_i_flg_wast  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lv_i_flg_dgp  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lt_e_keytab  TYPE STANDARD TABLE OF RCGSTDRECN, "   
lv_i_upddat_to  TYPE ESTPP-UPDDAT, "   SY-DATUM
lv_i_valdat  TYPE ESTPP-VALFR, "   SY-DATUM
lt_e_keyext_tab  TYPE STANDARD TABLE OF EHSBC_BUF_PROT, "   
lv_i_flg_sub  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lv_i_flg_phr  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lv_i_flg_berw  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lv_i_flg_cust  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lv_i_flg_imex  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lv_i_flg_info  TYPE ESP1_BOOLEAN. "   ESP1_FALSE

  CALL FUNCTION 'EHSB_BUF_PROT_OBJ_FIND_BY_CHG'  "NOTRANSL: EHS: Suchen nach Phrasen über einen Änderungszeitraum
    EXPORTING
         I_UPDDAT_FROM = lv_i_upddat_from
         I_FLG_IHS = lv_i_flg_ihs
         I_FLG_NN = lv_i_flg_nn
         I_FLG_WKA = lv_i_flg_wka
         I_FLG_EXR = lv_i_flg_exr
         I_FLG_WAST = lv_i_flg_wast
         I_FLG_DGP = lv_i_flg_dgp
         I_UPDDAT_TO = lv_i_upddat_to
         I_VALDAT = lv_i_valdat
         I_FLG_SUB = lv_i_flg_sub
         I_FLG_PHR = lv_i_flg_phr
         I_FLG_BERW = lv_i_flg_berw
         I_FLG_CUST = lv_i_flg_cust
         I_FLG_IMEX = lv_i_flg_imex
         I_FLG_INFO = lv_i_flg_info
    IMPORTING
         E_RECORDS_FOUND = lv_e_records_found
    TABLES
         I_RESTRICTIONTAB = lt_i_restrictiontab
         E_KEYTAB = lt_e_keytab
         E_KEYEXT_TAB = lt_e_keyext_tab
. " EHSB_BUF_PROT_OBJ_FIND_BY_CHG




ABAP code using 7.40 inline data declarations to call FM EHSB_BUF_PROT_OBJ_FIND_BY_CHG

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 UPDDAT FROM ESTPP INTO @DATA(ld_i_upddat_from).
 
"SELECT single TABIX FROM SY INTO @DATA(ld_e_records_found).
 
 
DATA(ld_i_flg_ihs) = ESP1_FALSE.
 
DATA(ld_i_flg_nn) = ESP1_FALSE.
 
DATA(ld_i_flg_wka) = ESP1_FALSE.
 
DATA(ld_i_flg_exr) = ESP1_FALSE.
 
DATA(ld_i_flg_wast) = ESP1_FALSE.
 
DATA(ld_i_flg_dgp) = ESP1_FALSE.
 
 
"SELECT single UPDDAT FROM ESTPP INTO @DATA(ld_i_upddat_to).
DATA(ld_i_upddat_to) = SY-DATUM.
 
"SELECT single VALFR FROM ESTPP INTO @DATA(ld_i_valdat).
DATA(ld_i_valdat) = SY-DATUM.
 
 
DATA(ld_i_flg_sub) = ESP1_FALSE.
 
DATA(ld_i_flg_phr) = ESP1_FALSE.
 
DATA(ld_i_flg_berw) = ESP1_FALSE.
 
DATA(ld_i_flg_cust) = ESP1_FALSE.
 
DATA(ld_i_flg_imex) = ESP1_FALSE.
 
DATA(ld_i_flg_info) = ESP1_FALSE.
 


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!