SAP Reports / Programs

DMS_KPRO_READ SAP ABAP Report - Determine original file from KPro for a document







DMS_KPRO_READ 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 DMS_KPRO_READ 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 DMS_KPRO_READ. "Basic submit
SUBMIT DMS_KPRO_READ AND RETURN. "Return to original report after report execution complete
SUBMIT DMS_KPRO_READ 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: P_ACT_A = Attribute active versions
Selection Text: P_ACT_V = Acitve versions only
Selection Text: P_DOKAR = D Document type
Selection Text: P_DOKNR = D Document
Selection Text: P_DOKTL = D Document Part
Selection Text: P_DOKVR = D Document version
Title: Determine original file from KPro for a document
Text Symbol: 001 = Document


INCLUDES used within this REPORT DMS_KPRO_READ

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:

CV120_KPRO_MASTER_DATA_GET CALL FUNCTION 'CV120_KPRO_MASTER_DATA_GET' EXPORTING: pf_active_only = p_act_v pf_active_attr_only = p_act_a pf_dokar = p_dokar pf_doknr = p_doknr pf_dokvr = p_dokvr pf_doktl = p_doktl TABLES: ptx_data = lt_files EXCEPTIONS: not_found = 1 error = 2 OTHERS = 3.

CV120_KPRO_CONTENT_CHECK CALL FUNCTION 'CV120_KPRO_CONTENT_CHECK' EXPORTING: ps_phio_id = ls_phio_id IMPORTING: pfx_content = lf_content.

SDOK_LOIO_PROPERTIES_GET CALL FUNCTION 'SDOK_LOIO_PROPERTIES_GET' EXPORTING: object_id = ls_loio TABLES: properties = lt_attrib EXCEPTIONS: not_existing = 1 not_authorized = 2 exception_in_exit = 3 OTHERS = 4.

SDOK_PHIOS_FILE_PROPERTIES_GET CALL FUNCTION 'SDOK_PHIOS_FILE_PROPERTIES_GET' TABLES: object_fileproperties = lt_prop components = lt_comp bad_objects = lt_bad_obj.

SDOK_PHIO_PROPERTIES_GET CALL FUNCTION 'SDOK_PHIO_PROPERTIES_GET' EXPORTING: object_id = ls_phio TABLES: properties = lt_attrib EXCEPTIONS: not_existing = 1 not_authorized = 2 OTHERS = 3.

SDOK_PHIOS_FILE_PROPERTIES_GET CALL FUNCTION 'SDOK_PHIOS_FILE_PROPERTIES_GET' TABLES: components = lt_comp bad_objects = lt_bad_obj.

CV120_DOC_GET_FILE CALL FUNCTION 'CV120_DOC_GET_FILE' EXPORTING: pf_file = ls_comp-file_name pf_mode = 'S' IMPORTING: pfx_file = lf_filep EXCEPTIONS: wrong_appl = 1 error = 2 OTHERS = 3.

CV120_KPRO_CHECKOUT_TO_TABLE CALL FUNCTION 'CV120_KPRO_CHECKOUT_TO_TABLE' EXPORTING: ps_phio_id = ls_phio pf_comp_get = lf_comp_get TABLES: pt_components = lt_dms_comp ptx_content = lt_content EXCEPTIONS: error = 1 no_content = 2 OTHERS = 3.

CV120_TRANSFER_DATA2CLIENT CALL FUNCTION 'CV120_TRANSFER_DATA2CLIENT' EXPORTING: pf_batchmode = '' pf_mode = 'GUI' pf_file = lf_filep TABLES: pt_drao = lt_content EXCEPTIONS: error = 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 DMS_KPRO_READ or its description.