SAP C1F5_SPECIFICATIONS_MODIFY Function Module for EHS: Create or Change Specification Data - New
C1F5_SPECIFICATIONS_MODIFY is a standard c1f5 specifications modify SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for EHS: Create or Change Specification Data - New 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 c1f5 specifications modify FM, simply by entering the name C1F5_SPECIFICATIONS_MODIFY into the relevant SAP transaction such as SE37 or SE38.
Function Group: C1F5
Program Name: SAPLC1F5
Main Program: SAPLC1F5
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function C1F5_SPECIFICATIONS_MODIFY 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 'C1F5_SPECIFICATIONS_MODIFY'"EHS: Create or Change Specification Data - New.
EXPORTING
I_SCENARIO = "Scenarion for reading specifications
* I_FLG_ATWRT_HAS_INT_FORMAT = ESP1_TRUE "
* I_FLG_WRNG_IDNT_ORD_0 = ESP1_FALSE "
* I_FLG_SKIP_CMPFLTRCHCK = ESP1_FALSE "
* I_FLG_SKIP_BRDRCHCK = ESP1_FALSE "
* I_FLG_DB_SEARCH_AT_BIG_BUFFER = ESP1_TRUE "
I_ADDINF = "Additional Information on Object
* I_FLG_CREATE_MODE = "
* I_FLG_INTERVAL_ACCESS = ESP1_FALSE "
* I_FLG_KEY_DATE_SWITCH_ONLY = ESP1_FALSE "
* I_LSADM = "Language support parameters
* I_FLG_CHECK_ONLY = ESP1_FALSE "Data only checked but not written to buffer
* I_FLG_OWNID_SRSID_KEEP = ESP1_FALSE "
* I_FLG_STATUS_CHECK = ESP1_TRUE "
IMPORTING
E_FLG_INTERNAL_ERROR = "Indicator for internal error occurred
E_FLG_ERROR = "Indicator for error reading a record
E_FLG_WARNING = "Indicator for warning reading a record
CHANGING
* X_FURTHER_PARAMS = "
TABLES
X_SPEC_HEAD_TAB = "Specification header data
* X_RELATION_TAB = "Data of Requested Inheritance Relationships
* X_VALUATION_HEAD_TAB = "
* X_VALUATION_INST_TAB = "
* X_COMPOSITION_TAB = "
* X_CHARACT_DATA_TAB = "
* X_TRANSPORT_APPR_TAB = "
* X_PACK_CODE_APPR_TAB = "
* X_RISK_CLASS_TAB = "
* X_TRANSPORT_CLASS_TAB = "
* X_PACKAGING_TAB = "
* X_RESTRICTION_TAB = "
* X_SPEC_PROV_PACK_TAB = "
* X_CARRIAGE_TAB = "
* X_VALUATION_USAGE_TAB = "
* X_SOURCE_TAB = "
* X_ASSESSMENT_TAB = "
* X_USER_DEF_TEXT_TAB = "
* X_USR_DEF_LONGTEXT_TAB = "
* E_ERROR_TAB = "Error Log Table
* X_IDENTIFIER_TAB = "Data of Requested Identifiers
* X_REGULATORY_LIST_TAB = "
* X_IDENTIFIER_USAGE_TAB = "
* X_IDENT_LONGTEXT_TAB = "
* X_REFERENCE_TAB = "
* X_MATERIAL_TAB = "
* X_STATUS_TAB = "
IMPORTING Parameters details for C1F5_SPECIFICATIONS_MODIFY
I_SCENARIO - Scenarion for reading specifications
Data type: ESPAP_NEW_SCENARIO_TYPEOptional: No
Call by Reference: No ( called with pass by value option)
I_FLG_ATWRT_HAS_INT_FORMAT -
Data type: ESP1_BOOLEANDefault: ESP1_TRUE
Optional: No
Call by Reference: No ( called with pass by value option)
I_FLG_WRNG_IDNT_ORD_0 -
Data type: ESP1_BOOLEANDefault: ESP1_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_SKIP_CMPFLTRCHCK -
Data type: ESP1_BOOLEANDefault: ESP1_FALSE
Optional: No
Call by Reference: No ( called with pass by value option)
I_FLG_SKIP_BRDRCHCK -
Data type: ESP1_BOOLEANDefault: ESP1_FALSE
Optional: No
Call by Reference: No ( called with pass by value option)
I_FLG_DB_SEARCH_AT_BIG_BUFFER -
Data type: ESP1_BOOLEANDefault: ESP1_TRUE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ADDINF - Additional Information on Object
Data type: RCGADDINFOptional: No
Call by Reference: No ( called with pass by value option)
I_FLG_CREATE_MODE -
Data type: ESP1_BOOLEANOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_INTERVAL_ACCESS -
Data type: ESP1_BOOLEANDefault: ESP1_FALSE
Optional: No
Call by Reference: No ( called with pass by value option)
I_FLG_KEY_DATE_SWITCH_ONLY -
Data type: ESP1_BOOLEANDefault: ESP1_FALSE
Optional: No
Call by Reference: No ( called with pass by value option)
I_LSADM - Language support parameters
Data type: EHSBS_LSADMOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_CHECK_ONLY - Data only checked but not written to buffer
Data type: ESP1_BOOLEANDefault: ESP1_FALSE
Optional: No
Call by Reference: No ( called with pass by value option)
I_FLG_OWNID_SRSID_KEEP -
Data type: ESP1_BOOLEANDefault: ESP1_FALSE
Optional: No
Call by Reference: No ( called with pass by value option)
I_FLG_STATUS_CHECK -
Data type: ESP1_BOOLEANDefault: ESP1_TRUE
Optional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for C1F5_SPECIFICATIONS_MODIFY
E_FLG_INTERNAL_ERROR - Indicator for internal error occurred
Data type: ESP1_BOOLEANOptional: No
Call by Reference: No ( called with pass by value option)
E_FLG_ERROR - Indicator for error reading a record
Data type: ESP1_BOOLEANOptional: No
Call by Reference: No ( called with pass by value option)
E_FLG_WARNING - Indicator for warning reading a record
Data type: ESP1_BOOLEANOptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for C1F5_SPECIFICATIONS_MODIFY
X_FURTHER_PARAMS -
Data type: ESPRH_FURTHER_PARAMS_TYPEOptional: Yes
Call by Reference: Yes
TABLES Parameters details for C1F5_SPECIFICATIONS_MODIFY
X_SPEC_HEAD_TAB - Specification header data
Data type: ESPRH_APIRH_TAB_TYPEOptional: No
Call by Reference: No ( called with pass by value option)
X_RELATION_TAB - Data of Requested Inheritance Relationships
Data type: ESPRH_APITPLREL_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_VALUATION_HEAD_TAB -
Data type: ESPRH_APIVH_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_VALUATION_INST_TAB -
Data type: ESPRH_APIVA_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_COMPOSITION_TAB -
Data type: ESPRH_APIVP_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_CHARACT_DATA_TAB -
Data type: ESPRH_APIPR_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_TRANSPORT_APPR_TAB -
Data type: ESPRH_API07_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_PACK_CODE_APPR_TAB -
Data type: ESPRH_API0B_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_RISK_CLASS_TAB -
Data type: ESPRH_API0D_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_TRANSPORT_CLASS_TAB -
Data type: ESPRH_API0F_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_PACKAGING_TAB -
Data type: ESPRH_APIPACK_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_RESTRICTION_TAB -
Data type: ESPRH_APIDU_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_SPEC_PROV_PACK_TAB -
Data type: ESPRH_APISP_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_CARRIAGE_TAB -
Data type: ESPRH_APICARR_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_VALUATION_USAGE_TAB -
Data type: ESPRH_APIDU_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_SOURCE_TAB -
Data type: ESPRH_APIDS_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_ASSESSMENT_TAB -
Data type: ESPRH_APIDR_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_USER_DEF_TEXT_TAB -
Data type: ESPRH_APIDF_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_USR_DEF_LONGTEXT_TAB -
Data type: ESPRH_APIFL_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
E_ERROR_TAB - Error Log Table
Data type: ESPAP_EXTERROR_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_IDENTIFIER_TAB - Data of Requested Identifiers
Data type: ESPRH_APIRI_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_REGULATORY_LIST_TAB -
Data type: ESPRH_APIRL_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_IDENTIFIER_USAGE_TAB -
Data type: ESPRH_APIDU_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_IDENT_LONGTEXT_TAB -
Data type: ESPRH_APIIL_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_REFERENCE_TAB -
Data type: ESPRH_APIRR_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_MATERIAL_TAB -
Data type: ESPRH_APIMJ_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
X_STATUS_TAB -
Data type: EHSAS_APIAS_TAB_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for C1F5_SPECIFICATIONS_MODIFY 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_scenario | TYPE ESPAP_NEW_SCENARIO_TYPE, " | |||
lt_x_spec_head_tab | TYPE STANDARD TABLE OF ESPRH_APIRH_TAB_TYPE, " | |||
lv_x_further_params | TYPE ESPRH_FURTHER_PARAMS_TYPE, " | |||
lv_e_flg_internal_error | TYPE ESP1_BOOLEAN, " | |||
lt_x_relation_tab | TYPE STANDARD TABLE OF ESPRH_APITPLREL_TAB_TYPE, " | |||
lv_i_flg_atwrt_has_int_format | TYPE ESP1_BOOLEAN, " ESP1_TRUE | |||
lt_x_valuation_head_tab | TYPE STANDARD TABLE OF ESPRH_APIVH_TAB_TYPE, " | |||
lv_i_flg_wrng_idnt_ord_0 | TYPE ESP1_BOOLEAN, " ESP1_FALSE | |||
lt_x_valuation_inst_tab | TYPE STANDARD TABLE OF ESPRH_APIVA_TAB_TYPE, " | |||
lv_i_flg_skip_cmpfltrchck | TYPE ESP1_BOOLEAN, " ESP1_FALSE | |||
lt_x_composition_tab | TYPE STANDARD TABLE OF ESPRH_APIVP_TAB_TYPE, " | |||
lv_i_flg_skip_brdrchck | TYPE ESP1_BOOLEAN, " ESP1_FALSE | |||
lt_x_charact_data_tab | TYPE STANDARD TABLE OF ESPRH_APIPR_TAB_TYPE, " | |||
lv_i_flg_db_search_at_big_buffer | TYPE ESP1_BOOLEAN, " ESP1_TRUE | |||
lt_x_transport_appr_tab | TYPE STANDARD TABLE OF ESPRH_API07_TAB_TYPE, " | |||
lt_x_pack_code_appr_tab | TYPE STANDARD TABLE OF ESPRH_API0B_TAB_TYPE, " | |||
lt_x_risk_class_tab | TYPE STANDARD TABLE OF ESPRH_API0D_TAB_TYPE, " | |||
lt_x_transport_class_tab | TYPE STANDARD TABLE OF ESPRH_API0F_TAB_TYPE, " | |||
lt_x_packaging_tab | TYPE STANDARD TABLE OF ESPRH_APIPACK_TAB_TYPE, " | |||
lv_i_addinf | TYPE RCGADDINF, " | |||
lv_e_flg_error | TYPE ESP1_BOOLEAN, " | |||
lt_x_restriction_tab | TYPE STANDARD TABLE OF ESPRH_APIDU_TAB_TYPE, " | |||
lt_x_spec_prov_pack_tab | TYPE STANDARD TABLE OF ESPRH_APISP_TAB_TYPE, " | |||
lt_x_carriage_tab | TYPE STANDARD TABLE OF ESPRH_APICARR_TAB_TYPE, " | |||
lt_x_valuation_usage_tab | TYPE STANDARD TABLE OF ESPRH_APIDU_TAB_TYPE, " | |||
lt_x_source_tab | TYPE STANDARD TABLE OF ESPRH_APIDS_TAB_TYPE, " | |||
lt_x_assessment_tab | TYPE STANDARD TABLE OF ESPRH_APIDR_TAB_TYPE, " | |||
lt_x_user_def_text_tab | TYPE STANDARD TABLE OF ESPRH_APIDF_TAB_TYPE, " | |||
lt_x_usr_def_longtext_tab | TYPE STANDARD TABLE OF ESPRH_APIFL_TAB_TYPE, " | |||
lt_e_error_tab | TYPE STANDARD TABLE OF ESPAP_EXTERROR_TAB_TYPE, " | |||
lv_e_flg_warning | TYPE ESP1_BOOLEAN, " | |||
lt_x_identifier_tab | TYPE STANDARD TABLE OF ESPRH_APIRI_TAB_TYPE, " | |||
lv_i_flg_create_mode | TYPE ESP1_BOOLEAN, " | |||
lv_i_flg_interval_access | TYPE ESP1_BOOLEAN, " ESP1_FALSE | |||
lt_x_regulatory_list_tab | TYPE STANDARD TABLE OF ESPRH_APIRL_TAB_TYPE, " | |||
lt_x_identifier_usage_tab | TYPE STANDARD TABLE OF ESPRH_APIDU_TAB_TYPE, " | |||
lv_i_flg_key_date_switch_only | TYPE ESP1_BOOLEAN, " ESP1_FALSE | |||
lv_i_lsadm | TYPE EHSBS_LSADM, " | |||
lt_x_ident_longtext_tab | TYPE STANDARD TABLE OF ESPRH_APIIL_TAB_TYPE, " | |||
lt_x_reference_tab | TYPE STANDARD TABLE OF ESPRH_APIRR_TAB_TYPE, " | |||
lv_i_flg_check_only | TYPE ESP1_BOOLEAN, " ESP1_FALSE | |||
lt_x_material_tab | TYPE STANDARD TABLE OF ESPRH_APIMJ_TAB_TYPE, " | |||
lv_i_flg_ownid_srsid_keep | TYPE ESP1_BOOLEAN, " ESP1_FALSE | |||
lt_x_status_tab | TYPE STANDARD TABLE OF EHSAS_APIAS_TAB_TYPE, " | |||
lv_i_flg_status_check | TYPE ESP1_BOOLEAN. " ESP1_TRUE |
  CALL FUNCTION 'C1F5_SPECIFICATIONS_MODIFY' "EHS: Create or Change Specification Data - New |
EXPORTING | ||
I_SCENARIO | = lv_i_scenario | |
I_FLG_ATWRT_HAS_INT_FORMAT | = lv_i_flg_atwrt_has_int_format | |
I_FLG_WRNG_IDNT_ORD_0 | = lv_i_flg_wrng_idnt_ord_0 | |
I_FLG_SKIP_CMPFLTRCHCK | = lv_i_flg_skip_cmpfltrchck | |
I_FLG_SKIP_BRDRCHCK | = lv_i_flg_skip_brdrchck | |
I_FLG_DB_SEARCH_AT_BIG_BUFFER | = lv_i_flg_db_search_at_big_buffer | |
I_ADDINF | = lv_i_addinf | |
I_FLG_CREATE_MODE | = lv_i_flg_create_mode | |
I_FLG_INTERVAL_ACCESS | = lv_i_flg_interval_access | |
I_FLG_KEY_DATE_SWITCH_ONLY | = lv_i_flg_key_date_switch_only | |
I_LSADM | = lv_i_lsadm | |
I_FLG_CHECK_ONLY | = lv_i_flg_check_only | |
I_FLG_OWNID_SRSID_KEEP | = lv_i_flg_ownid_srsid_keep | |
I_FLG_STATUS_CHECK | = lv_i_flg_status_check | |
IMPORTING | ||
E_FLG_INTERNAL_ERROR | = lv_e_flg_internal_error | |
E_FLG_ERROR | = lv_e_flg_error | |
E_FLG_WARNING | = lv_e_flg_warning | |
CHANGING | ||
X_FURTHER_PARAMS | = lv_x_further_params | |
TABLES | ||
X_SPEC_HEAD_TAB | = lt_x_spec_head_tab | |
X_RELATION_TAB | = lt_x_relation_tab | |
X_VALUATION_HEAD_TAB | = lt_x_valuation_head_tab | |
X_VALUATION_INST_TAB | = lt_x_valuation_inst_tab | |
X_COMPOSITION_TAB | = lt_x_composition_tab | |
X_CHARACT_DATA_TAB | = lt_x_charact_data_tab | |
X_TRANSPORT_APPR_TAB | = lt_x_transport_appr_tab | |
X_PACK_CODE_APPR_TAB | = lt_x_pack_code_appr_tab | |
X_RISK_CLASS_TAB | = lt_x_risk_class_tab | |
X_TRANSPORT_CLASS_TAB | = lt_x_transport_class_tab | |
X_PACKAGING_TAB | = lt_x_packaging_tab | |
X_RESTRICTION_TAB | = lt_x_restriction_tab | |
X_SPEC_PROV_PACK_TAB | = lt_x_spec_prov_pack_tab | |
X_CARRIAGE_TAB | = lt_x_carriage_tab | |
X_VALUATION_USAGE_TAB | = lt_x_valuation_usage_tab | |
X_SOURCE_TAB | = lt_x_source_tab | |
X_ASSESSMENT_TAB | = lt_x_assessment_tab | |
X_USER_DEF_TEXT_TAB | = lt_x_user_def_text_tab | |
X_USR_DEF_LONGTEXT_TAB | = lt_x_usr_def_longtext_tab | |
E_ERROR_TAB | = lt_e_error_tab | |
X_IDENTIFIER_TAB | = lt_x_identifier_tab | |
X_REGULATORY_LIST_TAB | = lt_x_regulatory_list_tab | |
X_IDENTIFIER_USAGE_TAB | = lt_x_identifier_usage_tab | |
X_IDENT_LONGTEXT_TAB | = lt_x_ident_longtext_tab | |
X_REFERENCE_TAB | = lt_x_reference_tab | |
X_MATERIAL_TAB | = lt_x_material_tab | |
X_STATUS_TAB | = lt_x_status_tab | |
. " C1F5_SPECIFICATIONS_MODIFY |
ABAP code using 7.40 inline data declarations to call FM C1F5_SPECIFICATIONS_MODIFY
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_atwrt_has_int_format) | = ESP1_TRUE. | |||
DATA(ld_i_flg_wrng_idnt_ord_0) | = ESP1_FALSE. | |||
DATA(ld_i_flg_skip_cmpfltrchck) | = ESP1_FALSE. | |||
DATA(ld_i_flg_skip_brdrchck) | = ESP1_FALSE. | |||
DATA(ld_i_flg_db_search_at_big_buffer) | = ESP1_TRUE. | |||
DATA(ld_i_flg_interval_access) | = ESP1_FALSE. | |||
DATA(ld_i_flg_key_date_switch_only) | = ESP1_FALSE. | |||
DATA(ld_i_flg_check_only) | = ESP1_FALSE. | |||
DATA(ld_i_flg_ownid_srsid_keep) | = ESP1_FALSE. | |||
DATA(ld_i_flg_status_check) | = ESP1_TRUE. | |||
Search for further information about these or an SAP related objects