SAP Reports / Programs

MCDOKRET SAP ABAP Report - Document list according to selection







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


Text pool values


Title: Document list according to selection
Text Symbol: 001 = Document number
Text Symbol: 002 = Type
Text Symbol: 003 = Part
Text Symbol: 004 = Ver
Text Symbol: 005 = Description
Text Symbol: 006 = Status
Text Symbol: 007 = Stat.since
Text Symbol: 008 = RevLv
Text Symbol: 009 = Selected documents:


INCLUDES used within this REPORT MCDOKRET

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:

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = 'MCDOKRET' i_internal_tabname = 'FOUNDDRAW' * I_STRUCTURE_NAME = * I_CLIENT_NEVER_DISPLAY = 'X' i_inclname = 'MCDOKRET' CHANGING ct_fieldcat = fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

RFC_GET_CAD_FCODE CALL FUNCTION 'RFC_GET_CAD_FCODE' IMPORTING fcode = cad_fcode cad_rfc_flag = cad_called. " 'X' bei RFC CAD Schnittst.

DOKUMENTE_ZU_OBJEKT CALL FUNCTION 'DOKUMENTE_ZU_OBJEKT' EXPORTING key = key objekt = objekt TABLES doktab = founddrad EXCEPTIONS kein_dokument = 4.

SEARCHTERM_INPUT CALL FUNCTION 'SEARCHTERM_INPUT' EXPORTING dynpro_input = ' ' language = sprache IMPORTING language = sprache TABLES searchtab = suchtabelle searchtab_orig = suchtabelle_or EXCEPTIONS logic_invalid = 4 word_and_logic_invalid = 8 word_invalid = 12 cancelled = 16.

TEXT_SEQUENTIAL_SEARCH CALL FUNCTION 'TEXT_SEQUENTIAL_SEARCH' EXPORTING old_count = count language = sprache IMPORTING new_count = count RESULT = found TABLES searchtab = suchtabelle text = zeile EXCEPTIONS intern_error = 4 searchtab_empty = 8 searchtab_too_long = 12 searchtab_unchecked = 16.

REUSE_ALV_LIST_DISPLAY CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY' EXPORTING * I_INTERFACE_CHECK = ' ' i_callback_program = 'MCDOKRET' i_callback_pf_status_set = 'SET_PF_STATUS' i_callback_user_command = 'USER_COMMAND' * i_structure_name = 'DRAW' * IS_LAYOUT = it_fieldcat = fieldcat it_excluding = pf_tab * IT_SPECIAL_GROUPS = * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = * I_DEFAULT = 'X' i_save = 'A' * IS_VARIANT = ' ' it_events = eventtab * IT_EVENT_EXIT = * IS_PRINT = * IS_REPREP_ID = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 IMPORTING * E_EXIT_CAUSED_BY_CALLER = es_exit_caused_by_user = exit_command
TABLES t_outtab = founddraw EXCEPTIONS program_error = 1 OTHERS = 2.

READ_TEXT CALL FUNCTION 'READ_TEXT' EXPORTING: language = sprache object = 'DRAT' id = 'LTXT' name = textname IMPORTING: header = header TABLES: lines = zeile EXCEPTIONS: not_found = 04.

DOCUMENT_SHOW_DIRECT CALL FUNCTION 'DOCUMENT_SHOW_DIRECT' EXPORTING doknr = founddraw-doknr dokar = founddraw-dokar dokvr = founddraw-dokvr dokteil = founddraw-doktl datei_name = filename print = 'X' IMPORTING datei_name_e = filename EXCEPTIONS not_found = 4 no_auth = 6 no_original = 8.

CC_RT_DMS_OBJECT_RETRIEVAL CALL FUNCTION 'CC_RT_DMS_OBJECT_RETRIEVAL' EXPORTING document_number = founddraw-doknr document_part = founddraw-doktl document_type = founddraw-dokar document_version = founddraw-dokvr.

RFC_SET_EXPORT_PARAMETERS CALL FUNCTION 'RFC_SET_EXPORT_PARAMETERS' TABLES: MEMORY_VALUES = CAD_PARAMETERS.

DOCUMENT_SHOW_DIRECT CALL FUNCTION 'DOCUMENT_SHOW_DIRECT' EXPORTING doknr = founddraw-doknr dokar = founddraw-dokar dokvr = founddraw-dokvr dokteil = founddraw-doktl cad_insert = 'X' EXCEPTIONS not_found = 4 no_auth = 6 no_original = 8.

RFC_GET_IMPORT_PARAMETERS CALL FUNCTION 'RFC_GET_IMPORT_PARAMETERS' TABLES: memory_values = cad_parameters.

RFC_SET_EXPORT_PARAMETERS CALL FUNCTION 'RFC_SET_EXPORT_PARAMETERS' TABLES: memory_values = cad_parameters.

RFC_GET_CAD_FCODE CALL FUNCTION 'RFC_GET_CAD_FCODE' IMPORTING fcode = cad_fcode cad_rfc_flag = cad_called. " 'X' bei RFC CAD Schnittst.

RFC_GET_CAD_FCODE CALL FUNCTION 'RFC_GET_CAD_FCODE' IMPORTING fcode = cad_fcode cad_rfc_flag = cad_called. " 'X' bei RFC CAD Schnittst.

RFC_GET_CAD_FCODE CALL FUNCTION 'RFC_GET_CAD_FCODE' IMPORTING fcode = cad_fcode cad_rfc_flag = cad_called. " 'X' bei RFC CAD Schnittst.

RFC_GET_CAD_FCODE CALL FUNCTION 'RFC_GET_CAD_FCODE' IMPORTING fcode = cad_fcode cad_rfc_flag = cad_called. " 'X' bei RFC CAD Schnittst.

RFC_GET_CAD_FCODE CALL FUNCTION 'RFC_GET_CAD_FCODE' IMPORTING fcode = cad_fcode cad_rfc_flag = cad_called. " 'X' bei RFC CAD Schnittst.

DOCUMENT_SHOW_DIRECT





CALL FUNCTION 'DOCUMENT_SHOW_DIRECT' EXPORTING doknr = founddraw-doknr dokar = founddraw-dokar dokvr = founddraw-dokvr dokteil = founddraw-doktl datei_name = filename IMPORTING datei_name_e = filename EXCEPTIONS not_found = 4 no_auth = 6 no_original = 8.



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