DMC_COUNT_TABLE_ENTRIES is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Program for counting table entries The report counts the entries in a user-defined group of database tables...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_COUNT_TABLE_ENTRIES 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: P_TAR = RFC Destination for Receiver
Selection Text: P_SRC = RFC Destination for Sender
Title: MWB: Administration Table Count Function
Text Symbol: T03 = Type of Execution
Text Symbol: T02 = Relevant Tables
Text Symbol: T01 = Relevant Systems
Text Symbol: PB1 = Display of Count Results
Text Symbol: P10 = Error during RFC call
Text Symbol: P02 = Continue analysis anyway ?
Text Symbol: P01 = RFC destinations are identical
Text Symbol: O13 = Start Time Count Run
Text Symbol: O12 = Start Date Count Run
Text Symbol: O11 = Mass Processing
Text Symbol: O06 = Name of Target Table
Text Symbol: O05 = at
Text Symbol: O04 = counted on
Text Symbol: O03 = Records in receiver
Text Symbol: O02 = Records in sender
Text Symbol: O01 = Table Name
Text Symbol: F01 = Selection of Mass Transfer
Text Symbol: 208 = in background with no. of jobs
Text Symbol: 207 = In dialog
Text Symbol: 206 = @0S@ If empty, file name is prompted after report start
Text Symbol: 205 = Tables from Local File
Text Symbol: 204 = Tables from Mass Data Processing
Text Symbol: 203 = ... but only following tables
Text Symbol: 201 = @0S@ Generic entries are not possible
Text Symbol: 200 = Single Tables
Text Symbol: 100 = Select file with relevant tables
Text Symbol: 013 = For background processing, specify PC file name
Text Symbol: 012 = No. of jobs = 0 is not allowed
Text Symbol: 011 = Jobs DMC_COUNT_TABLES were started
Text Symbol: 010 = RFC terminated - reason:
Text Symbol: 009 = Error while reading from front end
Text Symbol: 008 = File selection terminated
Text Symbol: 007 = Error reading PC file
Text Symbol: 006 = Generic table selection is not supported
Text Symbol: 005 = No table was selected
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = 'DMC_MT_HEADER' lfieldname = 'ID' IMPORTING dfies_wa = field_wa.
DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = 'DMC_MT_HEADER' lfieldname = 'DESCR' IMPORTING dfies_wa = field_wa.
F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING retfield = 'ID' dynpprog = dyname dynpnr = dynum dynprofield = 'P_MT_ID' window_title = text-f01 value_org = 'S' TABLES value_tab = value_tab field_tab = field_tab.
POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-p01 text_question = text-p02 IMPORTING answer = g_answer.
CNV_MWB_TABCOUNT
DMC_COUNT_TABLE_ENTRIES * CALL FUNCTION 'CNV_MWB_TABCOUNT' "TS000014 CALL FUNCTION 'DMC_COUNT_TABLE_ENTRIES' "TS000014 DESTINATION p_dest EXPORTING * tabname = p_tab "TS000014 im_tabname = p_tab "TS000014 im_exact_count = 'X' "TS000014 IMPORTING * number = p_cnt "TS000014 ex_count = p_cnt "TS000014 EXCEPTIONS communication_failure = 9 MESSAGE msg_text system_failure = 9 MESSAGE msg_text OTHERS = 1.
JOB_OPEN CALL FUNCTION 'JOB_OPEN' EXPORTING jobname = 'DMC_COUNT_TABLES' 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 = 'DMC_COUNT_TABLES' 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.
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 = 1 MESSAGE msg_text system_failure = 2 MESSAGE msg_text.
RFC_LOGON_INFO CALL FUNCTION 'RFC_LOGON_INFO' DESTINATION p_dest IMPORTING rfc_login_complete = l_rfc_login EXCEPTIONS communication_failure = 1 MESSAGE msg_text system_failure = 2 MESSAGE msg_text.
CNV_MWB_TABCOUNT
DMC_COUNT_TABLE_ENTRIES * CALL FUNCTION 'CNV_MWB_TABCOUNT' "TS000014 CALL FUNCTION 'DMC_COUNT_TABLE_ENTRIES' "TS000014 DESTINATION p_dest EXPORTING * tabname = 'T000' "TS000014 im_tabname = 'T000' "TS000014 EXCEPTIONS communication_failure = 9 MESSAGE msg_text system_failure = 9 MESSAGE msg_text OTHERS = 1.
POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = text-p10 diagnose_object = 'DMC_RFC_TEST_FAILED' text_question = text-p02 default_button = 2 display_cancel_button = space IMPORTING answer = g_answer TABLES parameter = lt_par.
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_COUNT_TABLE_ENTRIES or its description.
DMC_COUNT_TABLE_ENTRIES - MWB: Administration Table Count Function DMC_COUNT_TABLE_ENTRIES - MWB: Administration Table Count Function DMC_COUNT_TABLES_REMOTE_BTC - MWB: Table Counter - Framework Program for Batch Parallel Processing DMC_COUNT_TABLES_REMOTE_BTC - MWB: Table Counter - Framework Program for Batch Parallel Processing DMC_CONTENT_UPGRADE - Include DMC_CONTENT_UPGRADE DMC_CONTENT_UPGRADE - Include DMC_CONTENT_UPGRADE