SAP Reports / Programs | Cross-Application Components | Document Management System(CA-DMS) SAP CA

DMS_KPRO_CHECK1 SAP ABAP Report - KPRO Check Report







DMS_KPRO_CHECK1 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Tool for comparing document management, KPro and the SAP Content Server The report determines the following data: Originals in content server without a reference in the SAP system (KPro) Originals in the SAP system (KPRO) without a reference in the content server Data (LOIOS) in KPro without a reference in document management Data (LOIOS) in document management without a reference in KPro The comparison with the content server is only available for the SAP Content server...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter DMS_KPRO_CHECK1 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_CHECK1. "Basic submit
SUBMIT DMS_KPRO_CHECK1 AND RETURN. "Return to original report after report execution complete
SUBMIT DMS_KPRO_CHECK1 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_RFC = D RFC destination
Selection Text: P_REP = D Content Repository
Selection Text: P_CDB = Checking KPRO - DMS
Selection Text: P_CCS = Checking Content Server - R/3
Title: KPRO Check Report
Text Symbol: 008 = LOIOS in DMS w/o Reference to KPRO
Text Symbol: 009 = LOIOS in KPRO w/o Reference to DMS
Text Symbol: 010 = Number of LOIOS:
Text Symbol: 011 = Number of PHIOS:
Text Symbol: 012 = Delete selected LOIOS/PHIOS?
Text Symbol: 013 = Deleting PHIOS in KPRO
Text Symbol: 007 = Reding LOIOS from the Database
Text Symbol: 001 = PHIOS in Content Server w/o Reference in KPRO
Text Symbol: 002 = PHIOS in KPRO w/o Reference in Content Server
Text Symbol: 003 = Reading PHIOS from Content Server ...
Text Symbol: 004 = Reading PHIOS from Database
Text Symbol: 005 = Check Content Server <-> R/3
Text Symbol: 006 = Check KPRO <-> DMS
Text Symbol: 102 = Check with Content Server only for SAP Content Server
Text Symbol: 101 = Checking options
Text Symbol: 014 = Deleting PHIOS on the Contentserver
Text Symbol: 015 = Deleting LOIOS in KPRO
Text Symbol: 016 = Deleting LOIOS in DMS
Text Symbol: 017 = Contentserver:
Text Symbol: 018 = Error while deleting the following LOIOS:
Text Symbol: 100 = Storage system


INCLUDES used within this REPORT DMS_KPRO_CHECK1

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:

SCMS_URL_GENERATE CALL FUNCTION 'SCMS_URL_GENERATE' EXPORTING: command = 'adminContRep' operation = 'docIdList' contrep = pf_rep accessmode = 'r' security = 'B' IMPORTING: absolute_uri = lf_url EXCEPTIONS: error_parameter = 1 error_signature = 2 OTHERS = 3.

HTTP_GET CALL FUNCTION 'HTTP_GET' EXPORTING: absolute_uri = lf_url blankstocrlf = 'X' rfc_destination = p_rfc user = '' password = '' timeout = '86400' IMPORTING: status_code = lf_status_code status_text = lf_status_text response_entity_body_length = lf_resp_len TABLES: response_entity_body = lt_body response_headers = lt_header EXCEPTIONS: connect_failed = 1 timeout = 2 internal_error = 3 tcpip_error = 4 data_error = 5 OTHERS = 6.

SDOK_LOIO_TO_RELATIONS_GET CALL FUNCTION 'SDOK_LOIO_TO_RELATIONS_GET' EXPORTING: object_id = ls_obj_id relation_class = 'LOGOBJECT' TABLES: RESULT = lt_rel_loios EXCEPTIONS: not_existing = 1 bad_class = 2 not_authorized = 3 OTHERS = 4.

CV115_DOCKEY_FORMAT CALL FUNCTION 'CV115_DOCKEY_FORMAT' EXPORTING: pf_no_gaps = 'X' pf_dokar = -doc_key-dokar pf_doknr = -doc_key-doknr pf_doktl = -doc_key-doktl pf_dokvr = -doc_key-dokvr IMPORTING: pfx_doc_string = lf_text.

CV115_DOCKEY_FORMAT CALL FUNCTION 'CV115_DOCKEY_FORMAT' EXPORTING: pf_no_gaps = 'X' pf_dokar = gs_doc_key-dokar pf_doknr = gs_doc_key-doknr pf_doktl = gs_doc_key-doktl pf_dokvr = gs_doc_key-dokvr IMPORTING: pfx_doc_string = lf_text.

SDOK_LOIO_FROM_RELATIONS_GET CALL FUNCTION 'SDOK_LOIO_FROM_RELATIONS_GET' EXPORTING: object_id = ls_object relation_class = 'LOGOBJECT' TABLES: RESULT = lt_result EXCEPTIONS: not_existing = 1 bad_class = 2 not_authorized = 3 OTHERS = 4.

SCMS_DOC_INFO CALL FUNCTION 'SCMS_DOC_INFO' EXPORTING: crep_id = gf_repid doc_id = pf_phio stor_cat = '' TABLES: comps = lt_comp EXCEPTIONS: error = 1 error_config = 2 OTHERS = 3.

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

SCMS_DOC_READ CALL FUNCTION 'SCMS_DOC_READ' EXPORTING: stor_cat = space doc_id = pf_phio crep_id = p_rep TABLES: access_info = lt_info content_txt = lt_ctxt content_bin = lt_cbin EXCEPTIONS: bad_storage_type = 1 bad_request = 2 unauthorized = 3 comp_not_found = 4 not_found = 5 forbidden = 6 conflict = 7 internal_server_error = 8 error_http = 9 error_signature = 10 error_config = 11 error_format = 12 error_parameter = 13 error = 14 OTHERS = 15.

SDOK_LOIO_PROPERTIES_GET CALL FUNCTION 'SDOK_LOIO_PROPERTIES_GET' EXPORTING: object_id = ps_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 = ps_phio TABLES: properties = lt_attrib EXCEPTIONS: not_existing = 1 not_authorized = 2 OTHERS = 3.

SCMS_DOC_INFO CALL FUNCTION 'SCMS_DOC_INFO' EXPORTING: crep_id = pf_repid doc_id = ps_phio-objid stor_cat = '' IMPORTING: crea_time = lf_create_time crea_date = lf_create_date chng_time = lf_change_time chng_date = lf_change_date TABLES: comps = lt_comp EXCEPTIONS: error = 1 error_config = 2 OTHERS = 3.

BALW_BAPIRETURN_GET2 CALL FUNCTION 'BALW_BAPIRETURN_GET2' EXPORTING: type = sy-msgty cl = sy-msgid number = sy-msgno par1 = sy-msgv1 par2 = sy-msgv2 par3 = sy-msgv3 par4 = sy-msgv4 IMPORTING : return = ls_return.

SAPGUI_PROGRESS_INDICATOR CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING: percentage = pf_percentage text = pf_text.

CV110_DOC_DIALOG CALL FUNCTION 'CV110_DOC_DIALOG' EXPORTING: pf_skip_first = 'X' pf_transaction = 'CV03' pf_commit = 'X' pf_dokar = gs_doc_key-dokar pf_doknr = gs_doc_key-doknr pf_dokvr = gs_doc_key-dokvr pf_doktl = gs_doc_key-doktl EXCEPTIONS: not_found = 1 no_auth = 2 locked = 3 error = 4 OTHERS = 5.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING: defaultoption = 'Y' textline1 = text-012 textline2 = '' titel = '' IMPORTING: answer = lf_answer.

SDOK_LOIOS_DELETE_WITH_PHIOS CALL FUNCTION 'SDOK_LOIOS_DELETE_WITH_PHIOS' TABLES: object_list = lt_loio bad_objects = lt_bad_obj.

SDOK_LOIO_FROM_RELATIONS_GET





CALL FUNCTION 'SDOK_LOIO_FROM_RELATIONS_GET' EXPORTING object_id = ls_loio relation_class = cvkpr_relation_logobject TABLES RESULT = lt_relation EXCEPTIONS not_existing = 1 bad_class = 2 not_authorized = 3 exception_in_exit = 4 OTHERS = 5.

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.

CV120_PHIO_CHECKOUT_USER_SET CALL FUNCTION 'CV120_PHIO_CHECKOUT_USER_SET' EXPORTING: object_id = ls_phio pf_user = sy-uname pf_commit = 'X' EXCEPTIONS: error = 1 OTHERS = 2.

CV120_KPRO_PHIO_DELETE CALL FUNCTION 'CV120_KPRO_PHIO_DELETE' EXPORTING: pf_phio = -phio_id EXCEPTIONS: error = 1 OTHERS = 2.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

SCMS_DOC_DELETE CALL FUNCTION 'SCMS_DOC_DELETE' EXPORTING: crep_id = gf_repid stor_cat = '' doc_id = -objid EXCEPTIONS: error = 1 error_config = 2 OTHERS = 3.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

SDOK_LOIO_FROM_RELATIONS_GET CALL FUNCTION 'SDOK_LOIO_FROM_RELATIONS_GET' EXPORTING: object_id = ps_object relation_class = 'LOGOBJECT' TABLES: RESULT = lt_result EXCEPTIONS: not_existing = 1 bad_class = 2 not_authorized = 3 OTHERS = 4.

CV120_PHIO_CHECKOUT_USER_SET CALL FUNCTION 'CV120_PHIO_CHECKOUT_USER_SET' EXPORTING: object_id = ls_object pf_user = sy-uname pf_commit = 'X' 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_CHECK1 or its description.