DMC_MT_PREC_ACP_CALCULATION is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report creates and calculates access plans for mass transfer conversion objects...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 DMC_MT_PREC_ACP_CALCULATION into the relevant SAP transactions such as SE38 or SE80
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: S_TABLE = Table name(s) (optional)
Selection Text: S_RTYPE = D Reading Type
Selection Text: P_SUFFIX = D Mass Transfer ID
Selection Text: P_SEQNUM = process by sequence number
Selection Text: P_ID = prec / coll. AP / AP ID
Selection Text: P_FCALC = no recalculation of calc. ac.p
Selection Text: P_DESCR = D Description
Selection Text: P_DDICCK = DDIC check
Title: MWB: Calculate all precalculations and access plans of a mass transfer
Text Symbol: TFC = Do not recalculate precalculations and access plans that have been calculated
Text Symbol: T01 = Specification of accessplan / precalculation
Text Symbol: T00 = Selection
Text Symbol: SQN = process objects in the order of their sequence number
Text Symbol: FUN = Access plan calculation
Text Symbol: DDI = Execute DDIC check
Text Symbol: 009 = Function not possible for non-numeric key fields
Text Symbol: 008 = Couldn't get DDIC info for table
Text Symbol: 005 = Job scheduling for report DMC_CALC_ROWID_DELIMITATION failed
Text Symbol: 004 = Job scheduling failed for report
Text Symbol: 003 = successfully generated
Text Symbol: 002 = Report
Text Symbol: 001 = Generation error in line
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
GET_JOB_RUNTIME_INFO CALL FUNCTION 'GET_JOB_RUNTIME_INFO' IMPORTING jobcount = l_jobcount jobname = l_jobname EXCEPTIONS * NO_RUNTIME_INFO = 1 OTHERS = 0.
ENQUEUE_E_DMC_JOB CALL FUNCTION 'ENQUEUE_E_DMC_JOB' EXPORTING mode_dmc_job_lock_struct = 'E' jobname = l_jobname jobcount = l_jobcount _scope = '2' _wait = 'X' _collect = ' ' EXCEPTIONS * foreign_lock = 1 * system_failure = 2 OTHERS = 0.
CNV_MBT_RFC_PCL CALL FUNCTION 'CNV_MBT_RFC_PCL' "GW000049 EXPORTING packid = p_packid IMPORTING destination_id = l_pcl_rfcdest EXCEPTIONS no_destinations_for_packid = 1 no_pcl_destination_for_packid = 2 OTHERS = 3.
CNV_MBT_DEX_GET_EXTRACT_MODE CALL FUNCTION 'CNV_MBT_DEX_GET_EXTRACT_MODE' EXPORTING im_packid = p_packid IMPORTING ex_export = g_export_mode EXCEPTIONS OTHERS = 0.
DB_COMMIT CALL FUNCTION 'DB_COMMIT'.
DEQUEUE_E_DMC_DDIC CALL FUNCTION 'DEQUEUE_E_DMC_DDIC' EXPORTING mode_dmc_ddic_enq = 'S' ddname = g_enq_key.
DB_COMMIT CALL FUNCTION 'DB_COMMIT'.
ENQUEUE_E_DMC_LOG_MERGE CALL FUNCTION 'ENQUEUE_E_DMC_LOG_MERGE' "GW000141 EXPORTING mode_dmc_mt_tables = 'E' id = p_suffix tabname = wa_mt_tables-tabname _scope = '2' _wait = ' ' _collect = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.
DEQUEUE_E_DMC_LOG_MERGE CALL FUNCTION 'DEQUEUE_E_DMC_LOG_MERGE' EXPORTING id = p_suffix tabname = wa_mt_tables-tabname.
DB_COMMIT CALL FUNCTION 'DB_COMMIT'.
CNV_MBT_L_SUBSTATE_WRITE CALL FUNCTION 'CNV_MBT_L_SUBSTATE_WRITE' EXPORTING packid = p_packid TABLES im_cnvmbtsubstate = gt_substate EXCEPTIONS OTHERS = 0.
CNV_MBT_STATE_REFRESH CALL FUNCTION 'CNV_MBT_STATE_REFRESH' DESTINATION l_pcl_rfcdest STARTING NEW TASK l_jobcount EXPORTING packid = p_packid EXCEPTIONS OTHERS = 0.
GUID_CREATE CALL FUNCTION 'GUID_CREATE' IMPORTING ev_guid_22 = l_guid.
DB_COMMIT CALL FUNCTION 'DB_COMMIT'.
CNV_MBT_SEL_STRING_GET CALL FUNCTION 'CNV_MBT_SEL_STRING_GET' DESTINATION im_pcl_rfcdest EXPORTING packid = im_packid convobj = l_pcl_cobjname init_convobj = gc_true TABLES t_selstring = lt_selstring EXCEPTIONS invalid_call = 1 convobj_does_not_exist = 2 no_select_string_for_cobj = 3 select_string_generation_error = 4 sel_grp_as_member = 5 communication_failure = 10 MESSAGE l_text system_failure = 11 MESSAGE l_text OTHERS = 20.
GUID_CREATE CALL FUNCTION 'GUID_CREATE' IMPORTING ev_guid_22 = l_guid.
DB_COMMIT CALL FUNCTION 'DB_COMMIT'.
CNV_MBT_ADM_MAX_JOBS_GET CALL FUNCTION 'CNV_MBT_ADM_MAX_JOBS_GET' EXPORTING packid = p_packid exec_target = 'S' IMPORTING ex_jobs_free = g_jobs_free EXCEPTIONS get_pcl_destination_error = 1 get_jobs_control_error = 2 rfc_failure = 3 OTHERS = 4.
CALL FUNCTION 'DB_COMMIT'.
IUUC_GET_DBSYS CALL FUNCTION 'IUUC_GET_DBSYS' DESTINATION ref_convobj->scontainer->rfcdest IMPORTING e_dbsys = a_dbsys EXCEPTIONS communication_failure = 1 system_failure = 2.
DMC_CALC_ROWID_DELIM_SCHEDULE CALL FUNCTION 'DMC_CALC_ROWID_DELIM_SCHEDULE' DESTINATION ref_convobj->scontainer->rfcdest EXPORTING i_mt_id = p_suffix i_sched_immediate = gc_true i_recs_per_delim = l_recs_per_del i_client_specific = gs_iuuc_header-client_specific i_dbcon = l_dbcon_name i_tabname = l_tabname EXCEPTIONS communication_failure = 1 MESSAGE l_text system_failure = 2 MESSAGE l_text OTHERS = 3.
DMC_ACPL_GET_DELIMIT_SELSTRING CALL FUNCTION 'DMC_ACPL_GET_DELIMIT_SELSTRING' DESTINATION ref_convobj->scontainer->rfcdest EXPORTING i_cobj = l_tabname i_clusterkey = l_clusterkey i_rowid_select = l_rowid_select TABLES et_selstring = lt_boundaries EXCEPTIONS communication_failure = 1 MESSAGE l_text system_failure = 2 MESSAGE l_text not_yet_finished = 3.
DEQUEUE_E_DMC_DDIC CALL FUNCTION 'DEQUEUE_E_DMC_DDIC' EXPORTING mode_dmc_ddic_enq = 'S' ddname = g_enq_key.
DB_COMMIT CALL FUNCTION 'DB_COMMIT'.
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 DMC_MT_PREC_ACP_CALCULATION or its description.
DMC_MT_PREC_ACP_CALCULATION - MWB: Calculate all precalculations and access plans of a mass transfer DMC_MT_PREC_ACP_CALCULATION - MWB: Calculate all precalculations and access plans of a mass transfer DMC_MT_GENERATION - MWB: Tool for generating the runtime objects for a mass transfer DMC_MT_GENERATION - MWB: Tool for generating the runtime objects for a mass transfer DMC_MT_FLAG_RESET - MWB: Reset indicator of table DMC_MT_TABLES DMC_MT_FLAG_RESET - MWB: Reset indicator of table DMC_MT_TABLES