SAP Reports / Programs | Sales and Distribution | Master Data | Conditions(SD-MD-CM) SAP SD

CMDC0003 SAP ABAP INCLUDE - documentation and ABAP source code







CMDC0003 is a standard ABAP INCLUDE 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 CMDC0003 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 CMDC0003. "Basic submit
SUBMIT CMDC0003 AND RETURN. "Return to original report after report execution complete
SUBMIT CMDC0003 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


INCLUDES used within this REPORT CMDC0003

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:

VAKEY_TO_WINDOW_TABLE CALL FUNCTION 'VAKEY_TO_WINDOW_TABLE' EXPORTING table_number = xresult-kotabnr usage = act_kvewe variable_key = xresult-hvakey TABLES description_table = description_table window_table = window_table EXCEPTIONS OTHERS = 2.

VAKEY_TO_WINDOW_TABLE CALL FUNCTION 'VAKEY_TO_WINDOW_TABLE' EXPORTING table_number = xresult-kotabnr usage = act_kvewe variable_key = xresult-vakey TABLES description_table = description_table window_table = window_table EXCEPTIONS OTHERS = 2.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = gv_repid i_callback_pf_status_set = 'HANDLE_EVENT_PF_STATUS' i_callback_user_command = 'HANDLE_EVENT_USER_COMMAND' is_layout = ls_layo it_fieldcat = lt_fcat it_events = lt_events TABLES t_outtab = gt_outtab_block1 EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = gv_repid i_callback_pf_status_set = 'HANDLE_EVENT_PF_STATUS' i_callback_user_command = 'HANDLE_EVENT_USER_COMMAND' is_layout = ls_layo it_fieldcat = lt_fcat it_events = lt_events TABLES t_outtab = gt_outtab_block2 EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = gv_repid i_callback_pf_status_set = 'HANDLE_EVENT_PF_STATUS' i_callback_user_command = 'HANDLE_EVENT_USER_COMMAND' is_layout = ls_layo it_fieldcat = lt_fcat it_events = lt_events TABLES t_outtab = gt_outtab_block3 EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = gv_repid i_callback_pf_status_set = 'HANDLE_EVENT_PF_STATUS' i_callback_user_command = 'HANDLE_EVENT_USER_COMMAND' is_layout = ls_layo it_fieldcat = lt_fcat it_events = lt_events TABLES t_outtab = gt_outtab_block4 EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = gv_repid i_callback_pf_status_set = 'HANDLE_EVENT_PF_STATUS' i_callback_user_command = 'HANDLE_EVENT_USER_COMMAND' is_layout = ls_layo it_fieldcat = lt_fcat it_events = lt_events TABLES t_outtab = gt_outtab_block5 EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING i_callback_program = gv_repid i_callback_pf_status_set = 'HANDLE_EVENT_PF_STATUS' i_callback_user_command = 'HANDLE_EVENT_USER_COMMAND' is_layout = ls_layo it_fieldcat = lt_fcat it_events = lt_events it_except_qinfo = lt_exc TABLES t_outtab = gt_outtab_block6 EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'CMDC0_1_alv' CHANGING ct_fieldcat = ct_fcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'CMDC0_2_alv' CHANGING ct_fieldcat = ct_fcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'CMDC0_3_alv' CHANGING ct_fieldcat = ct_fcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'CMDC0_4_alv' CHANGING ct_fieldcat = ct_fcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'CMDC0_5_alv' CHANGING ct_fieldcat = ct_fcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'CMDC0_6_alv' CHANGING ct_fieldcat = ct_fcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

RV_CONDITION_RESET CALL FUNCTION 'RV_CONDITION_RESET'.

RV_CONDITION_RECORD CALL FUNCTION 'RV_CONDITION_RECORD' EXPORTING condition_number = xresult-knumh item_number = '01' condition_use = act_kvewe.

REUSE_ALV_POPUP_TO_SELECT CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT' EXPORTING i_title = text-608 i_selection = ' ' i_allow_no_selection = 'X' i_screen_start_column = 10 i_screen_start_line = 10 i_screen_end_column = 60 i_screen_end_line = 15 i_tabname = 'WINDOW_TABLE' i_structure_name = 'CMDC0_7_ALV' i_callback_program = gv_repid TABLES t_outtab = window_table EXCEPTIONS program_error = 1 OTHERS = 2.

VAKEY_TO_WINDOW_TABLE CALL FUNCTION 'VAKEY_TO_WINDOW_TABLE' EXPORTING table_number = xresult-kotabnr usage = act_kvewe variable_key = xresult-hvakey TABLES description_table = description_table window_table = window_table EXCEPTIONS OTHERS = 2.

VAKEY_TO_WINDOW_TABLE





CALL FUNCTION 'VAKEY_TO_WINDOW_TABLE' EXPORTING table_number = xresult-kotabnr usage = act_kvewe variable_key = xresult-vakey TABLES description_table = description_table window_table = window_table EXCEPTIONS OTHERS = 2.

RV_GET_CONDITION_TABLES CALL FUNCTION 'RV_GET_CONDITION_TABLES' EXPORTING condition_use = act_kvewe display_always = 'X' like_pf4 = 'X' * don't show deactivated tables (SFW) table_status = ' 123456789' table_generate = ' ' IMPORTING table_t681 = ls_t681 EXCEPTIONS invalid_condition_type = 1 missing_parameter = 2 no_selection_done = 3 no_table_found = 4 table_not_valid = 5 OTHERS = 6.



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