SAP C1F2_SUBSTANCES_USED_BY_MAT Function Module for NOTRANSL: EHS: Verwendungsnachweis für Spezifikationen mit Materialzuordnu









C1F2_SUBSTANCES_USED_BY_MAT is a standard c1f2 substances used by mat 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: Verwendungsnachweis für Spezifikationen mit Materialzuordnu 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 used by mat FM, simply by entering the name C1F2_SUBSTANCES_USED_BY_MAT 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_USED_BY_MAT 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_USED_BY_MAT'"NOTRANSL: EHS: Verwendungsnachweis für Spezifikationen mit Materialzuordnu
EXPORTING
* I_SEARCHMODE = ESP1_SRCHMD_INIT "Search Mode for Historical Search
* I_FLG_IGNORE_REF = ESP1_FALSE "= 'X': Ignore Dependencies via Ref.
* I_FLG_TRANS_CLOSURE = ESP1_FALSE "= 'X': Transitive Conclusion of Rel. Specified
* I_FLG_INHERITANCE = ESP1_FALSE "Usage in Inheritance
* I_FLG_REPORT = ESP1_FALSE "Usage Directly to a Report
* I_FLG_REPORT_DIRECT = ESP1_FALSE "Usage Indirectly to a Report
* I_VALDAT = SY-DATUM "Key Date
* I_DATERANGE = "Period for Historical Search
* I_OBJTYPE = "Specification Category
* I_FLG_INCLUDING = ESP1_TRUE "Type of Usage (See Module Documentation)
* I_FLG_INCL_DIRECT = ESP1_FALSE "= TRUE: Search for DIRECT Components Only
* I_FLG_REFERENCE = ESP1_FALSE "Usage as Reference
* I_FLG_TRANSPORT = ESP1_FALSE "Usage in Transport Classification
* I_FLG_NO_AUTH_CHECK = ESP1_FALSE "= TRUE: Do Not Carry Out Authorization Checks

TABLES
I_RECN_TAB = "Specifications to Be Examined
X_USAGE_TAB = "Result of Key Date Search
* X_FRTO_USAGE_TAB = "Result of the Historical Search

EXCEPTIONS
USER_EXIT_ERROR = 1
.




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_USED_BY_MAT

I_SEARCHMODE - Search Mode for Historical Search

Data type: RCGSELSCR-SEARCHMODE
Default: ESP1_SRCHMD_INIT
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_FLG_IGNORE_REF - = 'X': Ignore Dependencies via Ref.

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

I_FLG_TRANS_CLOSURE - = 'X': Transitive Conclusion of Rel. Specified

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

I_FLG_INHERITANCE - Usage in Inheritance

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

I_FLG_REPORT - Usage Directly to a Report

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

I_FLG_REPORT_DIRECT - Usage Indirectly to a Report

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

I_VALDAT - Key Date

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

I_DATERANGE - Period for Historical Search

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

I_OBJTYPE - Specification Category

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

I_FLG_INCLUDING - Type of Usage (See Module Documentation)

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

I_FLG_INCL_DIRECT - = TRUE: Search for DIRECT Components Only

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

I_FLG_REFERENCE - Usage as Reference

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

I_FLG_TRANSPORT - Usage in Transport Classification

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

I_FLG_NO_AUTH_CHECK - = TRUE: Do Not Carry Out Authorization Checks

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

TABLES Parameters details for C1F2_SUBSTANCES_USED_BY_MAT

I_RECN_TAB - Specifications to Be Examined

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

X_USAGE_TAB - Result of Key Date Search

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

X_FRTO_USAGE_TAB - Result of the Historical Search

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

EXCEPTIONS details

USER_EXIT_ERROR -

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

Copy and paste ABAP code example for C1F2_SUBSTANCES_USED_BY_MAT 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_i_recn_tab  TYPE STANDARD TABLE OF RCGSTDRECN, "   
lv_i_searchmode  TYPE RCGSELSCR-SEARCHMODE, "   ESP1_SRCHMD_INIT
lv_user_exit_error  TYPE RCGSELSCR, "   
lv_i_flg_ignore_ref  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lv_i_flg_trans_closure  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lv_i_flg_inheritance  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lv_i_flg_report  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lv_i_flg_report_direct  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lv_i_valdat  TYPE SY-DATUM, "   SY-DATUM
lt_x_usage_tab  TYPE STANDARD TABLE OF ESPRH_USAGE_TAB_TYPE, "   
lv_i_daterange  TYPE RCGDATERANGE, "   
lt_x_frto_usage_tab  TYPE STANDARD TABLE OF ESPRH_FRTO_USAGE_TAB_TYPE, "   
lv_i_objtype  TYPE TCGUEFU-OBJTYPE, "   
lv_i_flg_including  TYPE ESP1_BOOLEAN, "   ESP1_TRUE
lv_i_flg_incl_direct  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lv_i_flg_reference  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lv_i_flg_transport  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lv_i_flg_no_auth_check  TYPE ESP1_BOOLEAN. "   ESP1_FALSE

  CALL FUNCTION 'C1F2_SUBSTANCES_USED_BY_MAT'  "NOTRANSL: EHS: Verwendungsnachweis für Spezifikationen mit Materialzuordnu
    EXPORTING
         I_SEARCHMODE = lv_i_searchmode
         I_FLG_IGNORE_REF = lv_i_flg_ignore_ref
         I_FLG_TRANS_CLOSURE = lv_i_flg_trans_closure
         I_FLG_INHERITANCE = lv_i_flg_inheritance
         I_FLG_REPORT = lv_i_flg_report
         I_FLG_REPORT_DIRECT = lv_i_flg_report_direct
         I_VALDAT = lv_i_valdat
         I_DATERANGE = lv_i_daterange
         I_OBJTYPE = lv_i_objtype
         I_FLG_INCLUDING = lv_i_flg_including
         I_FLG_INCL_DIRECT = lv_i_flg_incl_direct
         I_FLG_REFERENCE = lv_i_flg_reference
         I_FLG_TRANSPORT = lv_i_flg_transport
         I_FLG_NO_AUTH_CHECK = lv_i_flg_no_auth_check
    TABLES
         I_RECN_TAB = lt_i_recn_tab
         X_USAGE_TAB = lt_x_usage_tab
         X_FRTO_USAGE_TAB = lt_x_frto_usage_tab
    EXCEPTIONS
        USER_EXIT_ERROR = 1
. " C1F2_SUBSTANCES_USED_BY_MAT




ABAP code using 7.40 inline data declarations to call FM C1F2_SUBSTANCES_USED_BY_MAT

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 SEARCHMODE FROM RCGSELSCR INTO @DATA(ld_i_searchmode).
DATA(ld_i_searchmode) = ESP1_SRCHMD_INIT.
 
 
DATA(ld_i_flg_ignore_ref) = ESP1_FALSE.
 
DATA(ld_i_flg_trans_closure) = ESP1_FALSE.
 
DATA(ld_i_flg_inheritance) = ESP1_FALSE.
 
DATA(ld_i_flg_report) = ESP1_FALSE.
 
DATA(ld_i_flg_report_direct) = ESP1_FALSE.
 
"SELECT single DATUM FROM SY INTO @DATA(ld_i_valdat).
DATA(ld_i_valdat) = SY-DATUM.
 
 
 
 
"SELECT single OBJTYPE FROM TCGUEFU INTO @DATA(ld_i_objtype).
 
DATA(ld_i_flg_including) = ESP1_TRUE.
 
DATA(ld_i_flg_incl_direct) = ESP1_FALSE.
 
DATA(ld_i_flg_reference) = ESP1_FALSE.
 
DATA(ld_i_flg_transport) = ESP1_FALSE.
 
DATA(ld_i_flg_no_auth_check) = 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!