SAP Reports / Programs

MCDOKPRT SAP ABAP Report - Document Print Report







MCDOKPRT 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 MCDOKPRT 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 MCDOKPRT. "Basic submit
SUBMIT MCDOKPRT AND RETURN. "Return to original report after report execution complete
SUBMIT MCDOKPRT 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 Print Report
Text Symbol: 007 = Log field
Text Symbol: 008 = Object links
Text Symbol: 009 = Object
Text Symbol: 010 = Count.
Text Symbol: 011 = Short name
Text Symbol: 012 = Long text
Text Symbol: 001 = Status Log
Text Symbol: 002 = No.
Text Symbol: 003 = Status
Text Symbol: 004 = Set by
Text Symbol: 005 = Date
Text Symbol: 006 = Time
Text Symbol: 013 = Class data
Text Symbol: 020 = This document type uses the Knowledge Provider
Text Symbol: 021 = This document type does not use the Knowledge Provider
Text Symbol: 022 = No status log entries found
Text Symbol: 023 = No object links found
Text Symbol: 024 = No long text is maintained
Text Symbol: 014 = Characteristic description
Text Symbol: 015 = Value
Text Symbol: 016 = No entry
Text Symbol: 017 = Original is stored
Text Symbol: 018 = Original is not stored
Text Symbol: 019 = No originals found


INCLUDES used within this REPORT MCDOKPRT

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:

CVAPI_DOC_GETDETAIL CALL FUNCTION 'CVAPI_DOC_GETDETAIL' EXPORTING pf_dokar = doklist-dokar pf_doknr = doklist-doknr pf_dokvr = doklist-dokvr pf_doktl = doklist-doktl pf_read_drad = 'X' pf_read_drap = 'X' pf_active_files = 'X' pf_read_comp = 'X' IMPORTING psx_draw = wa_draw pfx_description = description TABLES pt_files = it_files pt_comp = it_comp pt_drap = it_drap pt_drad = it_drad pt_drat = it_drat EXCEPTIONS not_found = 1 no_auth = 2 error = 3 OTHERS = 4.

DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = p_tab_name langu = sy-langu TABLES dfies_tab = p_it_xxx_names EXCEPTIONS not_found = 1 internal_error = 2 OTHERS = 3.

CV200_DB_TDWS_SELECT CALL FUNCTION 'CV200_DB_TDWS_SELECT' EXPORTING pf_dokar = p_docar pf_dokst = wa_param_it_drap-dokst IMPORTING pfx_stabk = st_abk EXCEPTIONS not_found = 1 OTHERS = 2.

CV115_OBJLINKS_CONVERT_KEY CALL FUNCTION 'CV115_OBJLINKS_CONVERT_KEY' EXPORTING ps_drad = wa_param_it_drad IMPORTING pfx_key = formated_key EXCEPTIONS error = 1 OTHERS = 2.

READ_TEXT CALL FUNCTION 'READ_TEXT' EXPORTING id = 'LTXT' language = sy-langu name = ltexnam object = 'DRAT' TABLES lines = zeile EXCEPTIONS id = 1 language = 2 name = 3 not_found = 4 object = 5 reference_check = 6 wrong_access_to_archive = 7 OTHERS = 8.

CTMS_OBJECT_HAS_STANDARDCLASS CALL FUNCTION 'CTMS_OBJECT_HAS_STANDARDCLASS' EXPORTING object = objky table = tabl IMPORTING class = standardklasse classtype = klassenart EXCEPTIONS no_classification = 1 table_not_allowed = 2 internal_error = 3 OTHERS = 4.

CLAF_CLASSIFICATION_OF_OBJECTS CALL FUNCTION 'CLAF_CLASSIFICATION_OF_OBJECTS' EXPORTING classtype = klassenart language = sy-langu object = objky inherited_char = 'X' TABLES t_class = intclass t_objectdata = intclobjdat EXCEPTIONS no_classification = 1 no_classtypes = 2 invalid_class_type = 3 OTHERS = 4.

GET_FIELDTAB CALL FUNCTION 'GET_FIELDTAB' EXPORTING langu = sy-langu tabname = 'DRAW' TABLES fieldtab = fies EXCEPTIONS internal_error = 01 no_texts_found = 02 table_has_no_fields = 03 table_not_activ = 04.

CV200_DB_TDWS_SELECT CALL FUNCTION 'CV200_DB_TDWS_SELECT' EXPORTING pf_dokar = param_wa_draw_dokar pf_dokst = param_wa_draw_dokst pf_lang = sy-langu IMPORTING pfx_stabk = st_abk pfx_description = st_description EXCEPTIONS not_found = 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 MCDOKPRT or its description.