SAP Reports / Programs

R_EHPRC_COMP_PROP_MIGRATE SAP ABAP Report - Migrate Compositions, Properties and Characteristics from CfP 2.2







R_EHPRC_COMP_PROP_MIGRATE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You use this report to migrate compositions, properties and characteristics from Compliance for Products 2...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter R_EHPRC_COMP_PROP_MIGRATE into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT R_EHPRC_COMP_PROP_MIGRATE. "Basic submit
SUBMIT R_EHPRC_COMP_PROP_MIGRATE AND RETURN. "Return to original report after report execution complete
SUBMIT R_EHPRC_COMP_PROP_MIGRATE VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: S_TEST = Run in test mode
Selection Text: S_SUBID = Specification
Selection Text: S_MATCAT = Material Category
Selection Text: S_DELETE = Delete old data
Selection Text: P_PROP3 = Input Composition
Selection Text: P_PROP2 = Standard Composition
Selection Text: P_PROP1 = Supplier Listing
Selection Text: P_PACKSZ = Package Size
Selection Text: P_COMPCL = Source composition used in CfP
Title: Migrate Compositions, Properties and Characteristics from CfP 2.2
Text Symbol: T06 = Further options
Text Symbol: T05 = Migration of properties and characteristics
Text Symbol: T04 = Migration of Compositions
Text Symbol: T02 = Substance Selection
Text Symbol: I18 = Ensure, that the namespace migration has been done before executing this report
Text Symbol: I17 = Processed steps
Text Symbol: I16 = will be moved to the following compositions:
Text Symbol: I15 = You have not installed CfP 2.2
Text Symbol: I14 = They start with prefix ZPDM*.
Text Symbol: I13 = Migration of properties not possible. You are not using the standard properties.
Text Symbol: I12 = You are using the properties shipped with CfP.
Text Symbol: I11 = Target compositions used in EHSM 3.0 according to your configuration:
Text Symbol: I10 = You have SPRC 2.0 installed
Text Symbol: I09 = Input Composition
Text Symbol: I08 = Standard Composition
Text Symbol: I07 = Supplier Listing
Text Symbol: I06 = The composition
Text Symbol: I05 = All ZPDM* properties will be moved to the standard SAP_PRC* properties.
Text Symbol: I04 = The program will process the following steps:
Text Symbol: I03 = You have configured the following property for compositions:
Text Symbol: I02 = You have SPRC 1.1 installed
Text Symbol: I01 = You have installed CfP
Text Symbol: A04 = Cancel
Text Symbol: A03 = Ok
Text Symbol: A02 = No
Text Symbol: A01 = Yes


INCLUDES used within this REPORT R_EHPRC_COMP_PROP_MIGRATE

No INCLUDES are used within this REPORT code!


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

EHPRC_CP_LB03_DISPLAY CALL FUNCTION 'EHPRC_CP_LB03_DISPLAY' EXPORTING i_loghandle = gv_log_handle i_popup = ' ' i_amodal = ' ' i_no_tree = ' '.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

C1F2_SUBSTANCES_SAVE_TO_DB CALL FUNCTION 'C1F2_SUBSTANCES_SAVE_TO_DB'.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

C1F2_SUBSTANCES_SAVE_TO_DB CALL FUNCTION 'C1F2_SUBSTANCES_SAVE_TO_DB' EXPORTING i_flg_commit = abap_true.

EHPRC_CP_LB03_DISPLAY CALL FUNCTION 'EHPRC_CP_LB03_DISPLAY' EXPORTING i_loghandle = gv_log_handle i_popup = ' ' i_amodal = ' ' i_no_tree = ' '.

C1F2_SUBSTANCES_CREATE CALL FUNCTION 'C1F2_SUBSTANCES_CREATE' EXPORTING i_addinf = ls_addinf i_flg_header = esp1_false i_flg_prop_header = l_flg_vh i_flg_prop = esp1_true i_flg_prop_usage = esp1_true i_flg_no_auth_check = esp1_true IMPORTING e_flg_error = e_flg_error TABLES x_api_sub_tab = lt_api_cre EXCEPTIONS OTHERS = 1.

C148_CREATE_API_ERRORS_DISPLAY CALL FUNCTION 'C148_CREATE_API_ERRORS_DISPLAY' EXPORTING i_flg_no_int_wrng = esp1_true i_flg_no_dialog = esp1_true TABLES i_api_sub_tab = lt_api_cre e_message_tab = lt_message_tmp.

EHPRC_CP_LB04_MATCAT CALL FUNCTION 'EHPRC_CP_LB04_MATCAT' TABLES et_cmat = lt_cmat EXCEPTIONS OTHERS = 1.

EHPRC_CP_SP02_SPEC_READ_W_REF CALL FUNCTION 'EHPRC_CP_SP02_SPEC_READ_W_REF' EXPORTING i_scenario = espap_base_scenario-all_update i_addinf = ls_addinf i_flg_header = esp1_true i_flg_properties = esp1_true i_flg_prop_comp = esp1_true i_flg_prop_data = esp1_true i_flg_prop_usage = esp1_true i_flg_no_auth_check = esp1_true i_flg_active_usage_check = esp1_true i_flg_prop_ftext = esp1_true i_flg_prop_ftext_longtext = esp1_true IMPORTING e_flg_lockfail = l_flg_lockfail e_flg_error = l_flg_error et_msg = lt_msg_tmp TABLES x_api_header_tab = et_api_rh_spec x_api_prop_header_tab = et_api_vh_spec x_api_prop_tab = et_api_va_spec e_api_prop_data_tab = et_api_pr_spec e_api_prop_component_tab = et_api_vp_spec x_api_prop_usage_tab = et_api_du_spec x_api_prop_ftext_tab = et_api_df_spec e_api_prop_ftext_longtext_tab = et_api_fl_spec.

EHPRC_CP_SP02_SPEC_READ_W_REF CALL FUNCTION 'EHPRC_CP_SP02_SPEC_READ_W_REF' EXPORTING i_scenario = espap_scenario_bit-info_only i_addinf = ls_addinf i_flg_header = esp1_true i_flg_ident = esp1_true i_flg_no_auth_check = esp1_true IMPORTING e_flg_lockfail = l_flg_lockfail e_flg_error = l_flg_error et_msg = lt_msg_tmp TABLES x_api_header_tab = et_api_rh_comp x_api_ident_tab = et_api_ri_comp.

EHPRC_CP_LB04_MATCAT_BY_SPTYPE CALL FUNCTION 'EHPRC_CP_LB04_MATCAT_BY_SPTYPE' EXPORTING i_spec_type = i_subcat IMPORTING es_mat_type_conf = es_matcat e_flg_is_external = e_flg_ext EXCEPTIONS OTHERS = 3.

C148_TRANSLATE_RECN_TO_SUBID CALL FUNCTION 'C148_TRANSLATE_RECN_TO_SUBID' EXPORTING i_recn = IMPORTING e_subid = l_subid EXCEPTIONS OTHERS = 0.

C14F_LOV_SUBID CALL FUNCTION 'C14F_LOV_SUBID' EXPORTING i_subid = i_subid i_aennr = space i_valdat = sy-datum i_flg_show_checkboxes = esp1_true TABLES e_subid_tab = lt_subid EXCEPTIONS OTHERS = 0.

OCS_GET_COMPONENT_STATE CALL FUNCTION 'OCS_GET_COMPONENT_STATE' EXPORTING iv_component = 'TDAGBCA' IMPORTING ev_comp_rel = lv_rel ev_comp_active = lv_flg_src_active EXCEPTIONS unknown_component = 1 OTHERS = 2.

/TDAG/CP_RFC1_CFP_VERSION_GET CALL FUNCTION '/TDAG/CP_RFC1_CFP_VERSION_GET' IMPORTING e_version = lv_cfp_vers.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-i17 text_question = lv_string text_button_1 = text-a03 text_button_2 = text-a04 display_cancel_button = abap_false IMPORTING answer = lv_answer EXCEPTIONS text_not_found = 1 OTHERS = 2.

C1F2_SUBSTANCES_UPDATE CALL FUNCTION 'C1F2_SUBSTANCES_UPDATE' EXPORTING i_addinf = ls_addinf i_flg_prop_data = esp1_true i_flg_no_auth_check = esp1_true IMPORTING e_flg_error = e_flg_error TABLES x_api_header_tab = lt_api_upd_rh x_api_prop_header_tab = lt_api_upd_vh x_api_prop_tab = lt_api_upd_va x_api_prop_data_tab = lt_api_upd_pr x_api_prop_usage_tab = lt_api_upd_du EXCEPTIONS OTHERS = 1.

C1F2_SUBSTANCES_DELETE





CALL FUNCTION 'C1F2_SUBSTANCES_DELETE' EXPORTING i_addinf = ls_addinf i_flg_prop_ftext = esp1_true i_flg_prop_ftext_longtext = lv_flg_ltext IMPORTING e_flg_error = e_flg_error TABLES x_api_header_tab = lt_api_upd_rh x_api_prop_header_tab = lt_api_upd_vh x_api_prop_tab = lt_api_upd_va x_api_prop_ftext_tab = lt_api_del_df x_api_prop_ftext_longtext_tab = lt_api_del_fl EXCEPTIONS OTHERS = 1.

C1F2_SUBSTANCES_CREATE CALL FUNCTION 'C1F2_SUBSTANCES_CREATE' EXPORTING i_addinf = ls_addinf i_flg_prop_data = lv_flg_cr_pr i_flg_prop_ftext = lv_flg_cr_ft i_flg_prop_ftext_longtext = lv_flg_ltext IMPORTING e_flg_error = e_flg_error TABLES x_api_sub_tab = lt_api_cre EXCEPTIONS OTHERS = 1.

C1F2_SUBSTANCES_CREATE CALL FUNCTION 'C1F2_SUBSTANCES_CREATE' EXPORTING i_addinf = ls_addinf i_flg_header = esp1_false i_flg_prop_header = l_flg_vh i_flg_prop = esp1_true i_flg_prop_data = esp1_true i_flg_prop_usage = esp1_true i_flg_no_auth_check = esp1_true IMPORTING e_flg_error = e_flg_error TABLES x_api_sub_tab = lt_api_cre EXCEPTIONS OTHERS = 1.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name R_EHPRC_COMP_PROP_MIGRATE or its description.