SAP Reports / Programs | Cross-Application Components | General Application Functions | Business Application Support(CA-GTF-BS) SAP CA

CNV_00001_GEN_RECOVERY SAP ABAP Report - Creation of programs for restoring tables







CNV_00001_GEN_RECOVERY is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

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


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

CNV_REC_GENER - Generate prog. for reloading data


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 CNV_00001_GEN_RECOVERY. "Basic submit
SUBMIT CNV_00001_GEN_RECOVERY AND RETURN. "Return to original report after report execution complete
SUBMIT CNV_00001_GEN_RECOVERY 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: GP_PROT = Display log
Selection Text: GP_SLETT = Distinguish. letter prog name
Selection Text: GP_SUFIX = Last letter of orig. program
Selection Text: GP_TASK = Task ID
Selection Text: GP_UNCND = Create even with syntax error
Selection Text: GS_TABS = D Table name
Selection Text: GP_CHECK = Check if reload is possible
Selection Text: GP_CLUST = Specify cluster
Selection Text: GP_COMP = Generate programs now
Selection Text: GP_DEL = Delete old programs
Selection Text: GP_PACK = D Pack.no.
Selection Text: GP_PHASE = D Conversion phase
Title: Creation of programs for restoring tables
Text Symbol: 006 = Test run - no change to DB
Text Symbol: 005 = Conversion prog. for Table &1
Text Symbol: 004 = Expert mode
Text Symbol: 003 = Program handling
Text Symbol: 002 = Attributes of the programs for generation
Text Symbol: 001 = Choice of programs for generation
Text Symbol: 020 = Old programs are deleted.
Text Symbol: 013 = Additional options
Text Symbol: 012 = anyway?
Text Symbol: 011 = Continue generation
Text Symbol: 010 = Continue generation?


INCLUDES used within this REPORT CNV_00001_GEN_RECOVERY

INCLUDE: LBTCHDEF,
TSKHINCL.


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:

CNV_INT_PACKAGE_GET CALL FUNCTION 'CNV_INT_PACKAGE_GET' IMPORTING packid = gd_packid phase = gd_phase.

CNV_00001_CHECK_EXECUTION CALL FUNCTION 'CNV_00001_CHECK_EXECUTION' EXPORTING delivery_role = 'X' authority_check = 'X' EXCEPTIONS not_active_package = 1 no_delivery_role = 2 no_expert_role = 3 slo_dev_system = 4 slo_cons_system = 5 executed_once = 6 no_single_exec_param = 7 existing_parameter = 8 no_authority = 9 OTHERS = 10.

DDUT_DOMVALUE_TEXT_GET CALL FUNCTION 'DDUT_DOMVALUE_TEXT_GET' EXPORTING name = 'CNV_PHASE' value = gd_dd07v-domvalue_l langu = syst-langu texts_only = t_yes IMPORTING dd07v_wa = gd_dd07v EXCEPTIONS not_found = 1 illegal_input = 2 OTHERS = 3.

DDUT_DOMVALUE_TEXT_GET CALL FUNCTION 'DDUT_DOMVALUE_TEXT_GET' EXPORTING name = 'CNV_PHASE' value = gd_dd07v-domvalue_l langu = 'E' texts_only = t_yes IMPORTING dd07v_wa = gd_dd07v EXCEPTIONS not_found = 1 illegal_input = 2 OTHERS = 3.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING defaultoption = 'N' textline1 = text-011 textline2 = text-012 titel = text-010 IMPORTING answer = ld_slett_decision EXCEPTIONS OTHERS = 1.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING defaultoption = 'N' textline1 = text-011 textline2 = text-012 titel = text-020 IMPORTING answer = ld_slett_decision EXCEPTIONS OTHERS = 1.

DDUT_DOMVALUE_TEXT_GET CALL FUNCTION 'DDUT_DOMVALUE_TEXT_GET' EXPORTING name = 'CNV_PHASE' value = gd_dd07v-domvalue_l texts_only = t_yes IMPORTING dd07v_wa = gd_dd07v EXCEPTIONS not_found = 1 illegal_input = 2 OTHERS = 3.

CNV_00001_PARAMS_READ CALL FUNCTION 'CNV_00001_PARAMS_READ' EXPORTING paramname = gc_org_new packid = gd_packid IMPORTING valuefrom = gd_orgpack_new EXCEPTIONS no_active_package = 1 parameter_does_not_exist = 2 package_does_not_exists = 3 OTHERS = 4.

CNV_INT_SCHEME_INSTANTIATE CALL FUNCTION 'CNV_INT_SCHEME_INSTANTIATE' EXPORTING calling_program = syst-cprog scheme_program = 'CNV_00001_SCH_RCBC' scheme_name = 'MAIN' TABLES result_tab = gt_abapsource EXCEPTIONS schemeprog_not_found = 1 scheme_not_found = 2 scheme_syntax_error = 3 generate_error = 4 forced_linesplit = 5 table_not_exists = 6 OTHERS = 7.

CNV_INT_SCHEME_INSTANTIATE CALL FUNCTION 'CNV_INT_SCHEME_INSTANTIATE' EXPORTING calling_program = syst-cprog scheme_program = 'CNV_00001_SCH_REC' scheme_name = 'MAIN' TABLES result_tab = gt_abapsource EXCEPTIONS schemeprog_not_found = 1 scheme_not_found = 2 scheme_syntax_error = 3 generate_error = 4 forced_linesplit = 5 table_not_exists = 6 OTHERS = 7.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING percentage = gd_progress text = syst-title.

CNV_INT_STATE_GET CALL FUNCTION 'CNV_INT_STATE_GET' IMPORTING runstate = gd_state.

CNV_INT_PROTOCOL_MESSAGE CALL FUNCTION 'CNV_INT_PROTOCOL_MESSAGE' EXPORTING msgty = lp_msgty msgid = lp_msgid msgno = lp_msgno msgv1 = lp_msgv1 msgv2 = lp_msgv2 msgv3 = lp_msgv3 msgv4 = lp_msgv4 level = lp_level probclass = lp_class.

CNV_INT_PROTOCOL_WRITE_DB CALL FUNCTION 'CNV_INT_PROTOCOL_WRITE_DB'.

CNV_INT_STATE_GET CALL FUNCTION 'CNV_INT_STATE_GET' IMPORTING runstate = gd_state.

DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = lp_tabname IMPORTING x030l_wa = lp_x030l TABLES dfies_tab = lp_dfies "#EC * EXCEPTIONS not_found = 1 internal_error = 2 OTHERS = 3.

EDITOR_SYNTAX_CHECK CALL FUNCTION 'EDITOR_SYNTAX_CHECK' EXPORTING i_program = lp_progname i_trdir = ld_trdir IMPORTING o_error_subrc = ld_syntax_error TABLES i_source = lp_abapsource.

PROFILE_LANGUAGE_GET_INFO CALL FUNCTION 'PROFILE_LANGUAGE_GET_INFO' TABLES instlang = lt_t002t "#EC * EXCEPTIONS instlang_entries_not_found = 1 syslang_entry_not_found = 2 OTHERS = 3.

RS_DELETE_PROGRAM





CALL FUNCTION 'RS_DELETE_PROGRAM' EXPORTING program = lp_progname suppress_popup = 'X' suppress_checks = 'X'.

TR_TADIR_INTERFACE CALL FUNCTION 'TR_TADIR_INTERFACE' EXPORTING wi_test_modus = space wi_tadir_pgmid = 'R3TR' wi_tadir_object = lp_type wi_tadir_obj_name = lp_objname wi_tadir_devclass = gc_devclass wi_set_genflag = 'T' EXCEPTIONS OTHERS = 1.

RPY_MESSAGE_COMPOSE CALL FUNCTION 'RPY_MESSAGE_COMPOSE' EXPORTING message_id = ld_message_id message_number = ld_message_number message_var1 = ld_message_var1 message_var2 = ld_message_var2 message_var3 = space message_var4 = space IMPORTING message_text = ld_message_text EXCEPTIONS message_not_found = 1.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = syst-cprog i_callback_user_command = 'INT_LIST_CALLBACK' is_layout = ld_layout it_fieldcat = lt_fieldcat TABLES t_outtab = lp_summary.

RS_DD_FIEL_SHOW CALL FUNCTION 'RS_DD_FIEL_SHOW' EXPORTING objname = ld_objname.

EDITOR_PROGRAM CALL FUNCTION 'EDITOR_PROGRAM' EXPORTING display = t_yes program = ld_objname.

RS_DD_VIEW_EDIT CALL FUNCTION 'RS_DD_VIEW_EDIT' EXPORTING objname = ld_objname edit_mode = 'S'.

APPL_LOG_DISPLAY_INTERN CALL FUNCTION 'APPL_LOG_DISPLAY_INTERN' EXPORTING object = 'CAGTFBS' subobject = 'CONVERSION' column_selection = ' 221111 111 ' "#EC * external_number_display_length = 48.

DDUT_DOMVALUES_GET CALL FUNCTION 'DDUT_DOMVALUES_GET' EXPORTING name = 'CNV_STEP' langu = space TABLES dd07v_tab = lt_dd07v. "#EC *

DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = lp_tabname IMPORTING x030l_wa = x_tabhead TABLES dfies_tab = xt_tabinfo EXCEPTIONS not_found = 1 internal_error = 2 OTHERS = 3.

JOB_OPEN CALL FUNCTION 'JOB_OPEN' EXPORTING jobname = lp_jobname IMPORTING jobcount = lp_jobcount EXCEPTIONS cant_create_job = 1 invalid_job_data = 2 jobname_missing = 3 OTHERS = 4.

BP_JOB_COPY CALL FUNCTION 'BP_JOB_COPY' EXPORTING dialog = btc_no source_jobcount = lp_jobcount source_jobname = lp_job_old target_jobname = lp_jobname IMPORTING new_jobhead = ld_jobhead EXCEPTIONS cant_create_new_job = 1 cant_enq_job = 2 cant_read_sourcedata = 3 invalid_opcode = 4 jobname_missing = 5 job_copy_canceled = 6 no_copy_privilege_given = 7 no_plan_privilege_given = 8 OTHERS = 9.

JOB_CLOSE CALL FUNCTION 'JOB_CLOSE' EXPORTING jobcount = lp_jobcount jobname = lp_jobname ** LASTSTRTDT = NO_DATE ** LASTSTRTTM = NO_TIME predjob_checkstat = lp_statdep pred_jobcount = ls_jobcount_previous pred_jobname = ls_jobname_previous ** SDLSTRTDT = NO_DATE ** SDLSTRTTM = NO_TIME ** STRTIMMED = ' ' targetsystem = lp_server ** IMPORTING ** JOB_WAS_RELEASED = EXCEPTIONS cant_start_immediate = 1 invalid_startdate = 2 jobname_missing = 3 job_close_failed = 4 job_nosteps = 5 job_notex = 6 lock_failed = 7 OTHERS = 8.

BP_JOB_SELECT CALL FUNCTION 'BP_JOB_SELECT' EXPORTING jobselect_dialog = btc_no jobsel_param_in = ld_jobsel IMPORTING jobsel_param_out = ld_jobsel TABLES jobselect_joblist = lt_joblist "#EC * EXCEPTIONS invalid_dialog_type = 1 jobname_missing = 2 no_jobs_found = 3 selection_canceled = 4 username_missing = 5 OTHERS = 6.

BP_JOBLIST_PROCESSOR CALL FUNCTION 'BP_JOBLIST_PROCESSOR' EXPORTING joblist_opcode = btc_joblist_show joblist_refr_param = ld_jobsel TABLES joblist = lt_joblist "#EC * EXCEPTIONS invalid_opcode = 1 joblist_is_empty = 2 joblist_processor_canceled = 3 OTHERS = 4.

CNV_00001_PARAMS_READ CALL FUNCTION 'CNV_00001_PARAMS_READ' EXPORTING paramname = 'CNV_00001_FMOD_PARAM_TYPES' packid = gp_pack IMPORTING valuefrom = p_enabled 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 CNV_00001_GEN_RECOVERY or its description.