SAP Reports / Programs | Cross-Application Components | European Monetary Union: Euro(CA-EUR) SAP CA

DMC_MT_COUNT_TABLES SAP ABAP Report - MWB: Table Count for a Mass Transfer







DMC_MT_COUNT_TABLES is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Counting the tables in a mass transfer The table counter counts all tables in a mass transfer and stores the result for the given mass transfer together with the related access plan or precalculation ID...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_COUNT_TABLES 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 DMC_MT_COUNT_TABLES. "Basic submit
SUBMIT DMC_MT_COUNT_TABLES AND RETURN. "Return to original report after report execution complete
SUBMIT DMC_MT_COUNT_TABLES 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: RB_BM = ... Before Migration
Selection Text: RB_AM = ... After Migration
Selection Text: P_SNDJOB = Number of Jobs in Sender
Selection Text: P_SND = RFC Destination for Sender
Selection Text: P_RUN_ID = Precalculation/Access Plan ID
Selection Text: P_RCVJOB = Number of Jobs in Receiver
Selection Text: P_RCV = RFC Destination for Receiver
Selection Text: P_MT_ID = D Mass Transfer ID
Selection Text: P_MRGRUN = Precalculation/Access Plan ID
Selection Text: P_MRGMT = D Mass Transfer ID
Title: MWB: Table Count for a Mass Transfer
Text Symbol: T05 = Settings
Text Symbol: T04 = Merge Scenario
Text Symbol: T03 = Relevant Systems
Text Symbol: T02 = Time of Counting
Text Symbol: T01 = Relevant Tables
Text Symbol: STD = Use standard scenario
Text Symbol: QT1 = Start in Dialog Mode
Text Symbol: Q01 = Counting the tables can take a long time. Do you still want to start the count in dialog mode?
Text Symbol: PU2 = The specified RFC destinations differ from the settings of the mass transfer! Continue ?
Text Symbol: PU1 = Different RFC Settings
Text Symbol: PRE = @0S@ Maintain previous mass transfer and run ID
Text Symbol: P02 = count only the following tables:
Text Symbol: P01 = Exclude following tables:
Text Symbol: NAI = Ignore Tables with Application Insert
Text Symbol: MRG = Use merge scenario
Text Symbol: MCR = Take additional tables in counting persistence into account
Text Symbol: M03 = No. of jobs = 0 is not allowed
Text Symbol: M02 = Maintain RFC destination for receiver
Text Symbol: M01 = Maintain RFC destination for sender
Text Symbol: HIE = Determine tables from conversion objects (incl. hierarchical objects)
Text Symbol: FU2 = @3W@ Display results
Text Symbol: ALL = Count all tables again


INCLUDES used within this REPORT DMC_MT_COUNT_TABLES

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:

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-qt1 text_question = text-q01 display_cancel_button = space IMPORTING answer = l_answer EXCEPTIONS OTHERS = 0.

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-pu1 text_question = text-pu2 display_cancel_button = space IMPORTING answer = l_answer EXCEPTIONS OTHERS = 0.

RFC_SYSTEM_INFO CALL FUNCTION 'RFC_SYSTEM_INFO' DESTINATION p_dest IMPORTING rfcsi_export = l_rfcsi rfc_login_complete = l_rfc_login EXCEPTIONS communication_failure = 12 MESSAGE msg_text system_failure = 16 MESSAGE msg_text.

RFC_LOGON_INFO CALL FUNCTION 'RFC_LOGON_INFO' DESTINATION p_dest IMPORTING rfc_login_complete = l_rfc_login EXCEPTIONS communication_failure = 12 MESSAGE msg_text system_failure = 16 MESSAGE msg_text.

DMC_COUNT_TABLE_ENTRIES CALL FUNCTION 'DMC_COUNT_TABLE_ENTRIES' "TS000014 DESTINATION p_dest EXPORTING im_tabname = 'T000' "TS000014 EXCEPTIONS communication_failure = 12 MESSAGE msg_text system_failure = 16 MESSAGE msg_text OTHERS = 1.

ENQUEUE_E_DMC_MT_TABLES CALL FUNCTION 'ENQUEUE_E_DMC_MT_TABLES' EXPORTING mode_dmc_mt_tables = 'E' id = 'JOB' x_id = ' ' _scope = '2' _wait = 'X' _collect = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

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

JOB_CLOSE CALL FUNCTION 'JOB_CLOSE' EXPORTING jobcount = l_jobcount jobname = l_jobname strtimmed = 'X' EXCEPTIONS cant_start_immediate = 1 invalid_startdate = 2 jobname_missing = 3 job_close_failed = 4 job_nosteps = 5 job_notex = 6 lock_failed = 7 invalid_target = 8 OTHERS = 9.

DEQUEUE_E_DMC_MT_TABLES CALL FUNCTION 'DEQUEUE_E_DMC_MT_TABLES' EXPORTING mode_dmc_mt_tables = 'E' id = 'JOB' x_id = ' ' _scope = '3' _synchron = ' ' _collect = ' '.

ENQUEUE_E_DMC_MT_TABLES CALL FUNCTION 'ENQUEUE_E_DMC_MT_TABLES' EXPORTING mode_dmc_mt_tables = 'E' id = 'JOB' x_id = ' ' _scope = '2' _wait = 'X' _collect = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

ENQUEUE_E_DMC_JOB CALL FUNCTION 'ENQUEUE_E_DMC_JOB' EXPORTING mode_dmc_job_lock_struct = 'E' jobname = im_job-jobname jobcount = im_job-jobcount _scope = '2' _wait = 'X' _collect = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 0.

DEQUEUE_E_DMC_JOB CALL FUNCTION 'DEQUEUE_E_DMC_JOB' EXPORTING mode_dmc_job_lock_struct = 'E' jobname = im_job-jobname jobcount = im_job-jobcount _scope = '3' _synchron = ' ' _collect = ' '.

DEQUEUE_E_DMC_MT_TABLES CALL FUNCTION 'DEQUEUE_E_DMC_MT_TABLES' EXPORTING mode_dmc_mt_tables = 'E' id = 'JOB' x_id = ' ' _scope = '3' _synchron = ' ' _collect = ' '.



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