SAP C1F2_SUBSTANCES_FIND_BY_CHANGE Function Module for NOTRANSL: EHS: Suchen nach Spez.en über einen Änderungszeitraum









C1F2_SUBSTANCES_FIND_BY_CHANGE is a standard c1f2 substances find by change 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 Spez.en ü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 c1f2 substances find by change FM, simply by entering the name C1F2_SUBSTANCES_FIND_BY_CHANGE into the relevant SAP transaction such as SE37 or SE38.

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



Function C1F2_SUBSTANCES_FIND_BY_CHANGE 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 'C1F2_SUBSTANCES_FIND_BY_CHANGE'"NOTRANSL: EHS: Suchen nach Spez.en über einen Änderungszeitraum
EXPORTING
I_UPDDAT_FROM = "
* I_UPDDAT_TO = SY-DATUM "
* I_VALDAT = SY-DATUM "
* I_FLG_WITH_DELETION = ESP1_FALSE "
* I_FLG_USE_KEYDATE = ESP1_TRUE "
* I_SUBCAT = "Specification Type

IMPORTING
E_RECORDS_FOUND = "

TABLES
E_RECN_TAB = "
* I_RESTRICTION_TAB = "
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLC1F2_001 EHS: Saving Additional Data in the Database

IMPORTING Parameters details for C1F2_SUBSTANCES_FIND_BY_CHANGE

I_UPDDAT_FROM -

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

I_UPDDAT_TO -

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

I_VALDAT -

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

I_FLG_WITH_DELETION -

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

I_FLG_USE_KEYDATE -

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

I_SUBCAT - Specification Type

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

EXPORTING Parameters details for C1F2_SUBSTANCES_FIND_BY_CHANGE

E_RECORDS_FOUND -

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

TABLES Parameters details for C1F2_SUBSTANCES_FIND_BY_CHANGE

E_RECN_TAB -

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

I_RESTRICTION_TAB -

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

Copy and paste ABAP code example for C1F2_SUBSTANCES_FIND_BY_CHANGE 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_recn_tab  TYPE STANDARD TABLE OF RCGSTDRECN, "   
lv_i_upddat_from  TYPE ESTRH-UPDDATS, "   
lv_e_records_found  TYPE SY-TABIX, "   
lv_i_upddat_to  TYPE ESTRH-UPDDATS, "   SY-DATUM
lt_i_restriction_tab  TYPE STANDARD TABLE OF RCGSTDRECN, "   
lv_i_valdat  TYPE ESTRH-VALFR, "   SY-DATUM
lv_i_flg_with_deletion  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lv_i_flg_use_keydate  TYPE ESP1_BOOLEAN, "   ESP1_TRUE
lv_i_subcat  TYPE ESTRH-SUBCAT. "   

  CALL FUNCTION 'C1F2_SUBSTANCES_FIND_BY_CHANGE'  "NOTRANSL: EHS: Suchen nach Spez.en über einen Änderungszeitraum
    EXPORTING
         I_UPDDAT_FROM = lv_i_upddat_from
         I_UPDDAT_TO = lv_i_upddat_to
         I_VALDAT = lv_i_valdat
         I_FLG_WITH_DELETION = lv_i_flg_with_deletion
         I_FLG_USE_KEYDATE = lv_i_flg_use_keydate
         I_SUBCAT = lv_i_subcat
    IMPORTING
         E_RECORDS_FOUND = lv_e_records_found
    TABLES
         E_RECN_TAB = lt_e_recn_tab
         I_RESTRICTION_TAB = lt_i_restriction_tab
. " C1F2_SUBSTANCES_FIND_BY_CHANGE




ABAP code using 7.40 inline data declarations to call FM C1F2_SUBSTANCES_FIND_BY_CHANGE

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 UPDDATS FROM ESTRH INTO @DATA(ld_i_upddat_from).
 
"SELECT single TABIX FROM SY INTO @DATA(ld_e_records_found).
 
"SELECT single UPDDATS FROM ESTRH INTO @DATA(ld_i_upddat_to).
DATA(ld_i_upddat_to) = SY-DATUM.
 
 
"SELECT single VALFR FROM ESTRH INTO @DATA(ld_i_valdat).
DATA(ld_i_valdat) = SY-DATUM.
 
DATA(ld_i_flg_with_deletion) = ESP1_FALSE.
 
DATA(ld_i_flg_use_keydate) = ESP1_TRUE.
 
"SELECT single SUBCAT FROM ESTRH INTO @DATA(ld_i_subcat).
 


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!