RIMODGEN is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Construct integration model...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 RIMODGEN into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
CFM1 - Create Integration Model
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.
Selection Text: I_PPMINC = Production Process Model
Selection Text: I_PPM_PP = PPM for PP/PI
Selection Text: I_PPM_SM = PPM for Service Management
Selection Text: I_RESINC = Work Center
Selection Text: I_RSVINC = Reservation
Selection Text: I_SLSINC = Sales Order
Selection Text: I_VENINC = Vendor
Selection Text: MA_DISMM = MRP Type
Selection Text: MA_DISPO = MRP Controller
Selection Text: MA_MAABC = ABC Indicator
Selection Text: MA_MATNR = Material
Selection Text: MA_MMSTA = Plant-Specific Material Status
Selection Text: MA_MTART = Material Type
Selection Text: MA_WERKS = Plant
Selection Text: MB_STLAL = Alternative BOM
Selection Text: MB_STLAN = BOM Usage
Selection Text: MR_BERID = MRP area
Selection Text: MR_LGORT = Storage location
Selection Text: MR_MATNR = Material
Selection Text: MR_WERKS = Plant
Selection Text: MS_MATNR = Material
Selection Text: MS_PRMOD = Forecast Indicator
Selection Text: MS_WERKS = Plant
Selection Text: PI_MATNR = Material
Selection Text: PI_WERKS = Plant
Selection Text: PL_MATNR = Material
Selection Text: PL_WERKS = Plant
Selection Text: PM_DAY = Selection Date
Selection Text: PM_DETL = Detailed Planning
Selection Text: PM_MATNR = Material
Selection Text: PM_PLNS = Planning Status
Selection Text: PM_PLNV = Task List Usage
Selection Text: PM_RATE = Rate-Based Planning
Selection Text: PM_SEL = Determine Selection Date
Selection Text: CL_ASICH = Organizational Area
Selection Text: CL_ATNAM = Additional Characteristics
Selection Text: CL_KLART = Class Type
Selection Text: CL_SICHT = Old: Application View
INCLUDE RIMODGLB.
INCLUDE RIMODGI1.
No SAP DATABASE tables are accessed within this REPORT code!
AUTHORITY_CHECK_TCODE call function 'AUTHORITY_CHECK_TCODE' exporting tcode = 'CFM1' exceptions ok = 0 not_ok = 2 others = 3.
ENQUEUE_ECIF_IMOD call function 'ENQUEUE_ECIF_IMOD' exporting mode_cif_imod = 'S' modelname = 'IM-DEFRAG-' logsys = '0000000001' apoapp = 'MENTATION.'
FUNCTION_EXISTS call function 'FUNCTION_EXISTS' exporting funcname = l_funcname_di exceptions function_not_exist = 1 others = 2.
CIF_IMODEL_SAVE call function 'CIF_IMODEL_SAVE' exporting is_cif_imodk = ls_cif_imodk iv_atpcs = l_atpcs iv_active = l_active iv_delete_oldversions = space tables it_matwrk_key = lt_matmas_key it_ppm_key = lt_ppm_key it_res_key = lt_res_key it_plant_key = lt_plant_key it_cus_key = lt_cus_key it_ven_key = lt_ven_key it_stock_key = lt_stock_key it_msl_key = lt_msl_key it_pir_key = lt_pir_key it_po_key = lt_po_key it_plo_key = lt_plo_key it_sls_key = lt_sls_key it_rsv_key = lt_rsv_key it_pcm_key = lt_pcm_key it_ord_key = lt_ord_key it_kosch_key = lt_kosch_key it_gstru_key = lt_gstru_key it_atp_key = lt_atp_key it_char_key = lt_char_key it_key_generic = pt_key_generic exceptions others = 1.
CIF_IMODEL_CHECK_BY_KEYS call function 'CIF_IMODEL_CHECK_BY_KEYS' exporting is_test_model_keys = ls_cif_imodk iv_active = g_true_con iv_strict = space tables ot_messages = lt_messages it_mat_key = lt_matmas_key it_ppm_key = lt_ppm_key it_res_key = lt_res_key it_plt_key = lt_plant_key it_cus_key = lt_cus_key it_ven_key = lt_ven_key it_stock_key = lt_stock_key it_msl_key = lt_msl_key it_pir_key = lt_pir_key it_po_key = lt_po_key it_plo_key = lt_plo_key it_sls_key = lt_sls_key it_rsv_key = lt_rsv_key it_pcm_key = lt_pcm_key it_ord_key = lt_ord_key it_gst_key = lt_gstru_key it_ksc_key = lt_kosch_key it_atp_key = lt_atp_key it_char_key = lt_char_key it_key_generic = gt_key_generic exceptions others = 1.
RS_CREATE_VARIANT call function 'RS_CREATE_VARIANT' exporting curr_report = lv_repname curr_variant = lv_variant_name vari_desc = lv_variant_desc tables vari_contents = lt_params vari_text = lt_texts exceptions illegal_report_or_variant = 1 illegal_variantname = 2 not_authorized = 3 not_executed = 4 report_not_existent = 5 report_not_supplied = 6 variant_exists = 7 variant_locked = 8 others = 9.
RS_VARIANT_INFO call function 'RS_VARIANT_INFO' * EXPORTING * BATCH_OR_ONLINE = 'A' tables prog_range = lt_prog_range var_range = lt_var_range text_range = lt_text_range " not used by function! created_by = lt_created_range changed_by = lt_changed_range creadate = lt_creadate_range changedate = lt_changedate_range variant_info = lt_info exceptions others = 1.
RS_SUPPORT_SELECTIONS call function 'RS_SUPPORT_SELECTIONS' exporting report = lv_repname variant = lv_variant_name exceptions variant_not_existent = 1 variant_obsolete = 2 others = 3.
MATERIAL_KEY_SELECTION call function 'MATERIAL_KEY_SELECTION' exporting read_mara_keys = g_true_con read_marc_keys = g_true_con tables in_matnr_range = ma_matnr in_werks_range = ma_werks in_mtart_range = ma_mtart in_mmsta_range = ma_mmsta in_dispo_range = ma_dispo in_dismm_range = ma_dismm in_abckz_range = ma_maabc * out_matnr_list = lt_matwrk_key out_werks_list = lt_matwrk_key exceptions others = 1.
PPM_KEY_SELECTION call function 'PPM_KEY_SELECTION' exporting in_day = pm_day in_detail_pln_flg = pm_detl in_rate_pln_flg = pm_rate in_selection_date = pm_sel tables in_mat_werks_key = lt_matwrk_key in_mat_range = pm_matnr in_werks_range = pm_werks in_verid_range = pm_verid in_stlal_range = pm_stlal in_stlan_range = pm_stlan in_plnv_range = pm_plnv in_plns_range = pm_plns out_ppm_key = lt_ppm_key exceptions others = 2.
CUSTOMER_KEY_SELECTION call function 'CUSTOMER_KEY_SELECTION' tables in_kunnr_range = cu_kunnr in_ktokd_range = cu_ktokd in_sortl_range = cu_sortl in_kukla_range = cu_kukla in_vkorg_range = cu_vkorg in_bukrs_range = cu_bukrs in_parvw_range = cu_parvw out_kunnr_list = lt_cus_key exceptions others = 1.
VENDOR_KEY_SELECTION call function 'VENDOR_KEY_SELECTION' tables in_lifnr_range = ve_lifnr in_ktokk_range = ve_ktokk in_sortl_range = ve_sortl in_ekorg_range = ve_ekorg in_bukrs_range = ve_bukrs in_ekgrp_range = ve_ekgrp in_parvw_range = ve_parvw out_lifnr_list = lt_ven_key exceptions others = 1.
CIF_IMODEL_CONVERT_FILTEROBJS call function 'CIF_IMODEL_CONVERT_FILTEROBJS' tables ct_matwrk_key = lt_matmas_key ct_ppm_key = lt_ppm_key * CT_RES_KEY = * CT_PLANT_KEY = ct_cus_key = lt_cus_key ct_ven_key = lt_ven_key ct_stock_key = lt_stock_key ct_msl_key = lt_msl_key ct_pir_key = lt_pir_key ct_po_key = lt_po_key ct_plo_key = lt_plo_key ct_sls_key = lt_sls_key ct_rsv_key = lt_rsv_key * CT_PCM_KEY = ct_ord_key = lt_ord_key * CT_GST_KEY = * CT_KSC_KEY = ct_atp_key = lt_atp_key * CT_CHAR_KEY = ct_key_generic = lt_genkey * CHANGING * CV_ATPCS = exceptions error_message = 98 error_imtyp = 1 others = 2.
VB_BATCH_DEFINITION call function 'VB_BATCH_DEFINITION' importing kzdch = lv_batch_level.
DEQUEUE_ECIF_IMOD call function 'DEQUEUE_ECIF_IMOD' exporting mode_cif_imod = 'E' modelname = ls_cif_imodk-modelname logsys = ls_cif_imodk-logsys apoapp = ls_cif_imodk-apoapp.
CIF_IMODEL_ADD_FILTEROBJECTS call function 'CIF_IMODEL_ADD_FILTEROBJECTS' exporting is_cif_imodk = ls_cif_imodk iv_activate = 'X' " lv_activate iv_action = l_action iv_ignore_fqentry = 'X' " lignfqety ignore faulty queue for CIFIMODGEN tables it_key_generic = lt_genkey exceptions objects_no_change = 1 error_model = 2 error_wrong_action = 3 error_message = 98 others = 4.
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 RIMODGEN or its description.