SAP Reports / Programs | Logistics - General | Logistics Basic Data | Business Partners(LO-MD-BP) SAP LO

RMDMIDCU SAP ABAP Report - MDM Initial Download from R/3: Customer







RMDMIDCU is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter RMDMIDCU into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

MDMC - Send Customers (MDM)


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 RMDMIDCU. "Basic submit
SUBMIT RMDMIDCU AND RETURN. "Return to original report after report execution complete
SUBMIT RMDMIDCU 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: KUNNR = D Customer
Selection Text: P_BLSIZE = Blocksize
Selection Text: P_MESTYP = D Message type
Title: MDM Initial Download from R/3: Customer
Text Symbol: BLK = next block
Text Symbol: KUN = Count of sent customers:


INCLUDES used within this REPORT RMDMIDCU

INCLUDE IRMDMIDC.


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:

CUSTOMER_INIT_SELECT_ID CALL FUNCTION 'CUSTOMER_INIT_SELECT_ID' EXPORTING blocksize = p_blsize select_tablename = lv_main_seltable TABLES in_select_fields = lt_seltable EXCEPTIONS wrong_input_data = 1 table_not_supported = 2 OTHERS = 3.

CUSTOMER_SELECT_NEXT_ID CALL FUNCTION 'CUSTOMER_SELECT_NEXT_ID' IMPORTING lastblock = lv_last_id_block complete_record_number = lv_complete_record complete_block_number = lv_complete_block TABLES out_id_tab = lt_kunnr EXCEPTIONS function_missing = 1 OTHERS = 2.

CUSTOMER_INIT_SELECT_DATA CALL FUNCTION 'CUSTOMER_INIT_SELECT_DATA' EXPORTING blocksize_data = p_blsize * blocksize_id = 0 select_tablename = lv_main_seltable TABLES in_select_fields_data = lt_seltable in_table_list = lt_extract_cust_tables in_id_list = lt_kunnr EXCEPTIONS function_call_failed = 1 table_not_supported = 2 OTHERS = 3.

CUSTOMER_SELECT_NEXT_DATA CALL FUNCTION 'CUSTOMER_SELECT_NEXT_DATA' IMPORTING lastblock = lv_last_data_block complete_record_number = lv_complete_record complete_block_number = lv_complete_block TABLES out_kna1_tab = lt_kna1 out_knb1_tab = lt_knb1 out_knvv_tab = lt_knvv out_knvp_tab = lt_knvp out_knbk_tab = lt_knbk out_knb5_tab = lt_knb5 out_knvi_tab = lt_knvi out_knvk_tab = lt_knvk out_knas_tab = lt_knas out_knva_tab = lt_knva out_vckuns_tab = lt_vckuns EXCEPTIONS function_missing = 1 function_call_failed = 2 OTHERS = 3.

MDM_GET_SEGMENTS_OF_CUSTOMER CALL FUNCTION 'MDM_GET_SEGMENTS_OF_CUSTOMER' EXPORTING ip_message_type = p_mestyp is_kna1 = ls_kna1 * IMPORTING * EP_CIMTYPE_CUSTOMER = TABLES et_idoc_data = t_idoc_data it_knvv = kunnr_lt_knvv it_knvp = kunnr_lt_knvp * IT_KNVD = it_knvi = kunnr_lt_knvi * IT_KNVL = it_knb1 = kunnr_lt_knb1 it_knb5 = kunnr_lt_knb5 it_knbk = kunnr_lt_knbk it_knva = kunnr_lt_knva it_knvk = kunnr_lt_knvk * IT_KNEX = it_knas = kunnr_lt_knas it_vckuns = kunnr_lt_vckuns * IT_KNKA = * IT_KNKK = EXCEPTIONS OTHERS = 1.

MASTER_IDOC_DISTRIBUTE CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE' EXPORTING master_idoc_control = idoc_control TABLES communication_idoc_control = idoc_com_ctl master_idoc_data = t_all_idata EXCEPTIONS error_in_idoc_control = 1 error_writing_idoc_status = 2 error_in_idoc_data = 3 sending_logical_system_unknown = 4 OTHERS = 5.

MDM_PIC_OBJECT_DATA_SENT_WRAP CALL FUNCTION 'MDM_PIC_OBJECT_DATA_SENT_WRAP' EXPORTING im_extobj = 'CUSTOMER_EXTRACT' im_instantly = 'X' TABLES t_edidc = idoc_com_ctl EXCEPTIONS internal_error = 1 OTHERS = 2.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DEQUEUE_ALL CALL FUNCTION 'DEQUEUE_ALL'.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = gv_repid it_fieldcat = gt_fieldcat it_events = lt_events i_save = gc_save is_layout = gs_layout i_callback_top_of_page = gc_top_of_page TABLES t_outtab = gt_output_alv EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = gv_repid i_structure_name = gc_struct CHANGING ct_fieldcat = xt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_COMMENTARY_WRITE CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = gt_header.

REUSE_ALV_EVENTS_GET CALL FUNCTION 'REUSE_ALV_EVENTS_GET' EXPORTING i_list_type = 0 IMPORTING et_events = xt_events EXCEPTIONS list_type_wrong = 1 OTHERS = 2.



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