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

CNV_10996_SCH_AR47 SAP ABAP INCLUDE - Schema for generating programs for archive conversion from 4.7







CNV_10996_SCH_AR47 is a standard ABAP INCLUDE available within your SAP system (depending on your version and release level). It is used for Be very very careful changing a scheme !!!!!!!!!!!!!!!! NO,,pretty printer,,,,NEVER never NEVER statements must stay in big letters!! the count of lines is limited...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 CNV_10996_SCH_AR47 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 CNV_10996_SCH_AR47. "Basic submit
SUBMIT CNV_10996_SCH_AR47 AND RETURN. "Return to original report after report execution complete
SUBMIT CNV_10996_SCH_AR47 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Schema for generating programs for archive conversion from 4.7


INCLUDES used within this REPORT CNV_10996_SCH_AR47

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:

CNV_INT_STATE_INITIALIZE call function 'CNV_INT_STATE_INITIALIZE' exporting runmode = gd_runmode tabname = gp_tab importing clufields = gd_cnvcluster.

CNV_INT_PROTOCOL_INITIALIZE * call function 'CNV_INT_PROTOCOL_INITIALIZE' * exporting * packid = gc_packid.

CNV_INT_STATE_UPDATE call function 'CNV_INT_STATE_UPDATE' exporting rectotal = gd_obj_total exceptions others = 1.

ARCHIVE_OPEN_FOR_CONVERSION call function 'ARCHIVE_OPEN_FOR_CONVERSION' exporting object = gd_10996_object importing archive_read_handle = gd_read_handle archive_write_handle = gd_write_handle tables archive_runs = gt_arkey_range exceptions file_already_open = 1 file_io_error = 2 internal_error = 3 no_files_available = 4 object_not_found = 5 open_error = 6 not_authorized = 7 others = 8.

ARCHIVE_GET_INFORMATION call function 'ARCHIVE_GET_INFORMATION' exporting archive_handle = gd_read_handle importing archive_creation_date = gd_creation_date archive_creation_release = gd_creation_release archive_creation_system = gd_creation_system archive_document = gd_document_old archive_name = gd_archive_name object = gd_10996_object exceptions internal_error = 1 wrong_access_to_archive = 2 others = 3.

ARCHIVE_GET_INFORMATION call function 'ARCHIVE_GET_INFORMATION' exporting archive_handle = gd_write_handle importing archive_document = gd_document_new exceptions internal_error = 1 wrong_access_to_archive = 2 others = 3.

ARCHIVE_GET_NEXT_OBJECT call function 'ARCHIVE_GET_NEXT_OBJECT' exporting archive_handle = gd_read_handle importing object_id = gd_object_id exceptions end_of_file = 1 file_io_error = 2 internal_error = 3 open_error = 4 wrong_access_to_archive = 5 others = 6.

ARCHIVE_NEW_OBJECT call function 'ARCHIVE_NEW_OBJECT' exporting archive_handle = gd_write_handle object_id = gd_object_id exceptions internal_error = 1 wrong_access_to_archive = 2 others = 3.

ARCHIVE_GET_NEXT_RECORD call function 'ARCHIVE_GET_NEXT_RECORD' exporting archive_handle = gd_read_handle get_real_structure_name = '' automatic_conversion = 'X' importing record_flags = gd_record_flags record_structure = gd_record_structure record_ref = gd_record_ref exceptions end_of_object = 1 internal_error = 2 wrong_access_to_archive = 3 others = 4.

CNV_INT_PROTOCOL_WRITE_DB call function 'CNV_INT_PROTOCOL_WRITE_DB'.

CNV_INT_STATE_FINISH call function 'CNV_INT_STATE_FINISH'.

ARCHIVE_SAVE_OBJECT call function 'ARCHIVE_SAVE_OBJECT' exporting archive_handle = gd_write_handle exceptions file_io_error = 1 internal_error = 2 open_error = 3 termination_requested = 4 wrong_access_to_archive = 5 others = 6.

CNV_INT_STATE_UPDATE call function 'CNV_INT_STATE_UPDATE' exporting state = 'U' recread = gd_obj_read recupd = gd_obj_changed.

CNV_INT_PROTOCOL_WRITE_DB call function 'CNV_INT_PROTOCOL_WRITE_DB'.

ARCHIVE_CLOSE_FILE call function 'ARCHIVE_CLOSE_FILE' exporting archive_handle = gd_read_handle exceptions internal_error = 1 wrong_access_to_archive = 2 others = 3.

CNV_INT_STATE_GET call function 'CNV_INT_STATE_GET' importing runstate = gd_state.

DDUT_DOMVALUE_TEXT_GET call function 'DDUT_DOMVALUE_TEXT_GET' exporting name = 'CNV_STATE' value = gd_dd07v-domvalue_l texts_only = t_yes importing dd07v_wa = gd_dd07v.

CNV_INT_PROTOCOL_WRITE_DB call function 'CNV_INT_PROTOCOL_WRITE_DB'.

CNV_INT_STATE_FINISH





call function 'CNV_INT_STATE_FINISH'.

APPL_LOG_DISPLAY_INTERN call function 'APPL_LOG_DISPLAY_INTERN' exporting object = 'CAGTFBS' subobject = 'CONVERSION' column_selection = ' 1111 111 ' "EC * external_number_display_length = 48.

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_STATE_UPDATE call function 'CNV_INT_STATE_UPDATE' exporting state = 'W'.

CNV_INT_STATE_UPDATE call function 'CNV_INT_STATE_UPDATE' exporting state = 'E'.

CNV_INT_STATE_LOGSTATE_SET call function 'CNV_INT_STATE_LOGSTATE_SET' exporting state = 'E'.

CNV_INT_PROTOCOL_WRITE_DB call function 'CNV_INT_PROTOCOL_WRITE_DB'.

>_arcclass-arch_class&_ARCHIVE_GET_TABLE call function '>_arcclass-arch_class&_ARCHIVE_GET_TABLE' exporting archive_handle = gd_read_handle record_structure =\ \ '>_arcclass-structure&' tables t_data =\ \ gt_>_arcclass-structure&_>_arcclass-class_num& exceptions invalid_structure = 1 others = 2.

ARCHIVE_PUT_RECORD call function 'ARCHIVE_PUT_RECORD' exporting archive_handle = gd_write_handle record = gd_>_arctables-structure& record_flags = gd_record_flags record_structure = gd_record_structure exceptions internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 others = 4.

>_arcclass-arch_class&_ARCHIVE_PUT_TABLE call function '>_arcclass-arch_class&_ARCHIVE_PUT_TABLE' exporting archive_handle = gd_write_handle record_structure = \ \ '>_arcclass-structure&' tables table = \ \ gt_>_arcclass-structure&_>_arcclass-class_num& exceptions others = 1.

ARCHIVE_GET_INIT_DATA call function 'ARCHIVE_GET_INIT_DATA' exporting archive_handle = gd_read_handle record_structure = '>_ARCTABLES-STRUCTURE&' tables init_data = gt_init_>_arctables-structure& exceptions wrong_access_to_archive = 1 others = 2.

ARCHIVE_PUT_INIT_DATA call function 'ARCHIVE_PUT_INIT_DATA' exporting archive_handle = gd_write_handle record_structure = '>_ARCTABLES-STRUCTURE&' tables init_data = gt_init_>_arctables-structure& exceptions wrong_access_to_archive = 1 others = 2.

CNV_INT_PROTOCOL_WRITE_DB call function 'CNV_INT_PROTOCOL_WRITE_DB'.

CNV_INT_STATE_FINISH call function 'CNV_INT_STATE_FINISH'.

>_ARCFIELDS-convfunc& call function '>_ARCFIELDS-convfunc&' \${c$gt_arcfields-convtype = 'O'$\ call method >_arcfields-convfunc& \${c$gt_arcfields-convtype = 'V'$ move \ \$}}}}}\ \{t$gt_cnvfipars where tabname = gt_arctables-tabname$$\ \${c$gt_cnvfipars-fieldname = gt_arcfields-fieldname$\ \{c$gt_cnvfipars-paramnum = '01'$\ \{c$gt_arcfields-convtype = 'F'$ using \ \${c$gt_arcfields-convtype = 'U'$ exporting \ \${c$gt_arcfields-convtype = 'O'$ exporting \ \${c$gt_arcfields-convtype = 'V'$\ \$ }}}}\ \$ }\ \{c$gt_arcfields-convtype = 'U'$\ \{t$gt_fupars where funcname = gt_arcfields-convfunc$$$\ \{c$gt_fupars-paramtype = 'I'$\ \{c$gt_fupars-pposition = gt_cnvfipars-paramnum$\ \>_fupars-parameter& = \ \$}\ \$}\ \$$}\ \$}\ \{c$gt_cnvfipars-paramtype = 'F'$ '>_CNVFIPARS-PARAMVAL&'\ \${c$gt_cnvfipars-paramtype = 'T'$ gd_orig_>_arctables-structure&\ \{C$GT_CNVFIPARS-PARAMVAR = SPACE$\ \->_CNVFIPARS-PARAMVAL&$\ \->_CNVFIPARS-DDICPARAMVAL&\ \+>_CNVFIPARS-PARAMVAR&-OFFSET\ \(>_CNVFIPARS-PARAMVAR&-LENGTH)\ \}\ \$>_cnvfipars-paramval&\ \}} \$}\ \$$}\ \{c$gt_arcfields-convtype = 'F'$\ changing gd_>_arctables-structure&->_arcfields-ddicfield&\ \{C$GT_ARCFIELDS-NONTRFIELD = T_YES$\ \+gd_itr-offset(gd_itr-length)$} gd_chngd_>_arctables-structure&.

>_ARCFIELDS-convfunc& call function '>_ARCFIELDS-convfunc&' \${c$gt_arcfields-convtype = 'O'$\ call method >_arcfields-convfunc& \${c$gt_arcfields-convtype = 'V'$ move \ \$}}}}}\ \{t$gt_cnvfipars where tabname = gt_arcclass-structure$$\ \${c$gt_cnvfipars-fieldname = gt_arcfields-fieldname$\ \{c$gt_cnvfipars-paramnum = '01'$\ \{c$gt_arcfields-convtype = 'F'$ using \ \${c$gt_arcfields-convtype = 'U'$ exporting \ \${c$gt_arcfields-convtype = 'O'$ exporting \ \${c$gt_arcfields-convtype = 'V'$\ \$ }}}}\ \$ }\ \{c$gt_arcfields-convtype = 'U'$\ \{t$gt_fupars where funcname = gt_arcfields-convfunc$$$\ \{c$gt_fupars-paramtype = 'I'$\ \{c$gt_fupars-pposition = gt_cnvfipars-paramnum$\ \>_fupars-parameter& = \ \$}\ \$}\ \$$}\ \$}\ \{c$gt_cnvfipars-paramtype = 'F'$ '>_CNVFIPARS-PARAMVAL&'\ \${c$gt_cnvfipars-paramtype = 'T'$ gd_orig_>_arcclass-structure&_>_arcclass-class_num&\ \{C$GT_CNVFIPARS-PARAMVAR = SPACE$\ \->_CNVFIPARS-PARAMVAL&$\ \->_CNVFIPARS-DDICPARAMVAL&\ \+>_CNVFIPARS-PARAMVAR&-OFFSET\ \(>_CNVFIPARS-PARAMVAR&-LENGTH)\ \}\ \$>_cnvfipars-paramval&\ \}} \$}\ \$$}\ \{c$gt_arcfields-convtype = 'F'$\ changing gd_>_arcclass-structure&_>_arcclass-class_num&\ \->_arcfields-ddicfield&\ \{C$GT_ARCFIELDS-NONTRFIELD = T_YES$\ \+gd_itr-offset(gd_itr-length)$} gd_chngd_>_arcclass-structure&\ \_>_arcclass-class_num&.

>_cnvsteps-convfunc& \"call function '>_cnvsteps-convfunc&'\ \${c$gt_cnvsteps-convtype = 'O'$\ \"call method >_cnvsteps-convfunc&\ \$}}}}\ \{t$gt_cnvstpars where tabname = gt_cnvsteps-tabname$$$\ \{c$gt_cnvstpars-timestep = gt_cnvsteps-timestep$\ \{c$gt_cnvstpars-stepnum = gt_cnvsteps-stepnum$ \{c$gt_cnvstpars-paramnum = '01'$\ \{c$gt_cnvsteps-convtype = 'F'$" using \ \${c$gt_cnvsteps-convtype = 'U'$" exporting \ \${c$gt_cnvsteps-convtype = 'O'$" exporting \ \$ }}}\ \$ }\ \{c$gt_cnvsteps-convtype = 'U'$\ \{t$gt_fupars where funcname = gt_cnvsteps-convfunc$$$\ \{c$gt_fupars-paramtype = 'I'$\ \{c$gt_fupars-pposition = gt_cnvstpars-paramnum$\ \">_fupars-parameter& = \ \$}\ \$}\ \$$}\ \$}\ \{c$gt_cnvstpars-paramtype = 'F'$\ \"'>_CNVSTPARS-PARAMVAL&'$\ \{c$gt_cnvstpars-paramtype = 'T'$\ \"gd_orig_>_arctables-structure&->_cnvstpars-paramval&\ \$">_cnvstpars-paramval&\ \}}\ \$}\ \$}\ \$$}.

>_cnvsteps-convfunc& \"call function '>_cnvsteps-convfunc&'\ \${c$gt_cnvsteps-convtype = 'O'$\ \"call method >_cnvsteps-convfunc&\ \$}}}}\ \{t$gt_cnvstpars where tabname = gt_cnvsteps-tabname$$$\ \{c$gt_cnvstpars-timestep = gt_cnvsteps-timestep$\ \{c$gt_cnvstpars-stepnum = gt_cnvsteps-stepnum$ \{c$gt_cnvstpars-paramnum = '01'$\ \{c$gt_cnvsteps-convtype = 'F'$" using \ \${c$gt_cnvsteps-convtype = 'U'$" exporting \ \${c$gt_cnvsteps-convtype = 'O'$" exporting \ \$ }}}\ \$ }\ \{c$gt_cnvsteps-convtype = 'U'$\ \{t$gt_fupars where funcname = gt_cnvsteps-convfunc$$$\ \{c$gt_fupars-paramtype = 'I'$\ \{c$gt_fupars-pposition = gt_cnvstpars-paramnum$\ \">_fupars-parameter& = \ \$}\ \$}\ \$$}\ \$}\ \{c$gt_cnvstpars-paramtype = 'F'$\ \"'>_CNVSTPARS-PARAMVAL&'$\ \{c$gt_cnvstpars-paramtype = 'T'$\ \"gd_orig_>_arcclass-structure&_\ \>_arcclass-class_num&-\ \>_cnvstpars-paramval&\ \$">_cnvstpars-paramval&\ \}}\ \$}\ \$}\ \$$}.

ARCHIVE_OPEN_FOR_READ call function 'ARCHIVE_OPEN_FOR_READ' exporting archive_document = '>_INFO-DOCUMENT&' object = gd_10996_object importing archive_handle = gd_init_handle.

ARCT001_GET_INIT_DATA call function 'ARCT001_GET_INIT_DATA' exporting handle = gd_init_handle tables e001 = gt_e001.




DDIF_FIELDINFO_GET call function 'DDIF_FIELDINFO_GET' exporting tabname = 'E001' tables dfies_tab = gt_dfies_tab exceptions not_found = 1 internal_error = 2 others = 3.

CNV_FIND_BEST_FORM call function 'CNV_FIND_BEST_FORM' exporting packid = gc_packid conv_domname = gt_dfies_tab-domname importing best_form = gd_best_form tables o_params = gt_params exceptions others = 1.

CNV_INT_PROTOCOL_WRITE_DB call function 'CNV_INT_PROTOCOL_WRITE_DB'.

CNV_INT_STATE_FINISH call function 'CNV_INT_STATE_FINISH'.

ARCT001_PUT_INIT_DATA call function 'ARCT001_PUT_INIT_DATA' exporting handle = gd_init_handle tables e001 = gt_e001.

ARCHIVE_CLOSE_FILE call function 'ARCHIVE_CLOSE_FILE' exporting archive_handle = gd_init_handle.

PS_TEXT_SET_MULTI_MODE call function 'PS_TEXT_SET_MULTI_MODE' exceptions wrong_access_to_archive = 1 others = 2.

CNV_10996_ARCHIVE_GET_TABLE call function 'CNV_10996_ARCHIVE_GET_TABLE' exporting archive_handle = gd_read_handle record_structure = '>_info-struc_head&' arch_class = '>_info-arch_head&' tables t_data = gt_>_info-struc_head&_head fubas_missing = gt_fubas_missing exceptions others = 1.

CNV_INT_PROTOCOL_WRITE_DB call function 'CNV_INT_PROTOCOL_WRITE_DB'.

CNV_10020_DETERMINATION call function 'CNV_10020_DETERMINATION' exporting i_packid = '>_dtfld-packid&' i_dtobj_s = '>_dtfld-dtobj_s&' \{c$gt_dtfld-dt_type_s = 'FV'$\ i_dtval_s = \ \>_dtfld-dt_obj_s& \$ i_dtval_s = \ \gd_>_info-struc_head&_head->_dtfld-dt_obj_s& } i_pathid = '>_dtfld-pathid&' i_pathtype = '>_dtfld-pathtype&' i_dtobj_t = '>_dtfld-dtobj_t&' i_packid_src = '>_dtfld-packid_src&' i_last_alternative = ld_message i_output_messages = ld_message importing e_notrel = gd_notrel_>_dtfld-packid_src& e_rc = gd_rc tables et_dt_result = \ \gt_dt_result_>_dtfld-packid_src&.



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_10996_SCH_AR47 or its description.