SAP Reports / Programs

/TDAG/CPX_TEST_SUB_IMPORT SAP ABAP Report - Import Spec.







/TDAG/CPX_TEST_SUB_IMPORT is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Purpose of the report is to import easily specification data...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 /TDAG/CPX_TEST_SUB_IMPORT 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 /TDAG/CPX_TEST_SUB_IMPORT. "Basic submit
SUBMIT /TDAG/CPX_TEST_SUB_IMPORT AND RETURN. "Return to original report after report execution complete
SUBMIT /TDAG/CPX_TEST_SUB_IMPORT 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: P_SUBR = Set prefix for Spec.
Selection Text: P_SUBCAT = D Specification type
Selection Text: P_OPT = Show options
Selection Text: P_MENID = D Property tree
Selection Text: P_I_NOE = Filter nonexistent Identifer
Selection Text: P_IGNP = Ignore pure / list substances
Selection Text: P_IEUSE = D Usages
Selection Text: P_IESEAR = D Search spec. type
Selection Text: P_IEMAT = D Material assignments
Selection Text: P_IEIKEY = D Spec key int. no.rng
Selection Text: P_IEDEL = D Spec. deletion type
Selection Text: P_IDCAT = D Identification type
Selection Text: P_ID = ID listing for searching
Selection Text: P_FILTO = Filter/Correction only
Selection Text: P_ESTCAT = Filter Val. asst type
Selection Text: P_DIAL = Call Dialog
Selection Text: P_DEL_O = Delete data owner
Selection Text: P_DELREF = Delete Ref Spec.
Selection Text: P_DEL = Delete file from Appl.Server
Selection Text: P_CSUB = Correction of Spec.cat.
Selection Text: P_CNORM = Character Standard for File
Selection Text: P_CAUTH = Correction of AuthorizationGr
Selection Text: P_AUTHGR = D Authorization group
Title: Import Spec.
Text Symbol: T14 = Tester ID
Text Symbol: T13 = Show options
Text Symbol: T12 = Import with Dialog (X) or complete import
Text Symbol: T11 = Spec. deletion type
Text Symbol: T10 = Filter (Properties, Identifier)
Text Symbol: T09 = Search spec. type
Text Symbol: T08 = Ignore pure / list substances
Text Symbol: T07 = Set prefix for Spec.
Text Symbol: T06 = Authorization group
Text Symbol: T05 = Change it, if necessary
Text Symbol: T04 = Specification type
Text Symbol: T03 = The file will not be imported. The filtered and corrected file will be saved.
Text Symbol: T02 = Correction of imported data
Text Symbol: T01 = Search and Update mode of Specifications





Text Symbol: C01 = Specification category


INCLUDES used within this REPORT /TDAG/CPX_TEST_SUB_IMPORT

INCLUDE CBUI09.


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:

/TDAG/CP_XX01_IM_FILE_CHG CALL FUNCTION '/TDAG/CP_XX01_IM_FILE_CHG' EXPORTING i_del_o = p_del_o i_subr = p_subr i_tc_count = l_tcount i_ignp = p_ignp i_csub = p_csub i_subcat = p_subcat i_cauth = p_cauth i_authgr = p_authgr i_i_noe = p_i_noe i_del_ref = p_delref TABLES ir_estcat = p_estcat[] ir_idcat = p_idcat[] CHANGING xt_data = lt_data[].

/TDAG/CP_XX01_IM_START CALL FUNCTION '/TDAG/CP_XX01_IM_START' EXPORTING i_file = l_file i_id = p_id i_iedel = p_iedel i_iesear = p_iesear i_ieikey = p_ieikey i_iemat = p_iemat i_ieuse = p_ieuse i_menid = p_menid i_ieopcat = 'AND' i_subcat = p_subcat i_authgrp = p_authgr i_flg_show = p_dial it_impdata = lt_data i_charnorm = p_cnorm IMPORTING e_flg_error = l_flg_error e_jobname = l_jobname e_job_text = l_text et_msg = lt_msg.

/TDAG/CP_LB03N_MSG_2_MSG CALL FUNCTION '/TDAG/CP_LB03N_MSG_2_MSG' EXPORTING it_msg = lt_msg CHANGING xt_msg = lt_msg_displ EXCEPTIONS parameter_error = 1 conversion_error = 2 OTHERS = 3.

/TDAG/CP_LB03_DISPLAY_ADHOC CALL FUNCTION '/TDAG/CP_LB03_DISPLAY_ADHOC' TABLES it_error_msg = lt_msg_displ EXCEPTIONS log_not_found = 1 save_not_allowed = 2 numbering_error = 3 OTHERS = 4.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = l_text.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING text = l_text.

SUBST_LIST_JOBLOG CALL FUNCTION 'SUBST_LIST_JOBLOG' EXPORTING jobname = l_jobname jobcount = l_jobcount TABLES joblog_tab = lt_joblog designed_joblog_tab = lt_design EXCEPTIONS problem_detected = 1 OTHERS = 2.

FLUSH CALL FUNCTION 'FLUSH' EXCEPTIONS cntl_system_error = 1 cntl_error = 2 OTHERS = 3.

/TDAG/CP_LB13_TMP_DIR_GET CALL FUNCTION '/TDAG/CP_LB13_TMP_DIR_GET' EXPORTING iv_flg_prefer_imds_dir = esp1_true IMPORTING ev_directory_tmp = l_file.

C147_STRING_NORMALIZE_GENERIC CALL FUNCTION 'C147_STRING_NORMALIZE_GENERIC' EXPORTING i_string = e_file i_flg_keep_sapjokers = space i_flg_keep_sqljokers = space IMPORTING e_string_norm = e_file.

C13Z_TEXT_WRITE CALL FUNCTION 'C13Z_TEXT_WRITE' EXPORTING i_file = l_file_appl i_file_overwrite = true TABLES i_textdata_tab = it_data EXCEPTIONS no_permission = 1 open_failed = 2 ap_file_exists = 3 OTHERS = 4.

QC04_DOMAIN_TEXT_GET CALL FUNCTION 'QC04_DOMAIN_TEXT_GET' EXPORTING i_domain_name = 'ESDIESEAR' i_domvalue_l = l_dval IMPORTING e_ddtext = l_dtext EXCEPTIONS no_data_found = 1 OTHERS = 2.

QC04_DOMAIN_TEXT_GET CALL FUNCTION 'QC04_DOMAIN_TEXT_GET' EXPORTING i_domain_name = 'ESDIEDEL' i_domvalue_l = l_dval IMPORTING e_ddtext = l_dtext EXCEPTIONS no_data_found = 1 OTHERS = 2.

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING value_org = 'C' "#EC NOTEXT retfield = 'CHARNROM' "#EC NOTEXT TABLES value_tab = ltv field_tab = lt_fields return_tab = lt_return EXCEPTIONS OTHERS = 0.



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 /TDAG/CPX_TEST_SUB_IMPORT or its description.