SAP Reports / Programs

RSIR_DOCPROT_ADJUST SAP ABAP Report - Change of Protection Level of Existing Documents







RSIR_DOCPROT_ADJUST 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 RSIR_DOCPROT_ADJUST 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 RSIR_DOCPROT_ADJUST. "Basic submit
SUBMIT RSIR_DOCPROT_ADJUST AND RETURN. "Return to original report after report execution complete
SUBMIT RSIR_DOCPROT_ADJUST 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: S_PHCL = Physical Document Classes
Selection Text: P_TPROT = Target Protection
Selection Text: P_TMPREP = Temporary Repository
Selection Text: P_TEST = Just Determine Inventory
Selection Text: P_SPROT = Source Protection
Selection Text: P_DOCSP = Document Area
Selection Text: P_CLIENT = Client
Title: Change of Protection Level of Existing Documents
Text Symbol: 021 = Processing terminated
Text Symbol: 020 = No document classes selected:
Text Symbol: 019 = Category undefined:
Text Symbol: 018 = Category points to temporary repository:
Text Symbol: 017 = Target Protection:
Text Symbol: 016 = Source Protection:
Text Symbol: 015 = Temporary Repository for Cache:
Text Symbol: 014 = Error when updating category (test)
Text Symbol: 013 = Successful, but error when unlocking
Text Symbol: 012 = Locking error
Text Symbol: 011 = Number of Physical Documents Processed with Errors:
Text Symbol: 010 = Processing prerequisites met
Text Symbol: 009 = not processed, protection not assigned
Text Symbol: 008 = Number of Physical Documents Processed Successfully:
Text Symbol: 007 = Successful, but error when deleting from temp. repository
Text Symbol: 006 = Error when modifying protection
Text Symbol: 005 = Error when copying from temporary repository
Text Symbol: 004 = Error when copying to temporary repository
Text Symbol: 003 = Error when updating protection (test)
Text Symbol: 002 = Number of Physical Documents Found:
Text Symbol: 001 = Selected Document Classes:


INCLUDES used within this REPORT RSIR_DOCPROT_ADJUST

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:

DDIF_DOMA_GET CALL FUNCTION 'DDIF_DOMA_GET' EXPORTING name = 'SDOK_DPROT' * STATE = 'A' * LANGU = ' ' * IMPORTING * GOTSTATE = * DD01V_WA = TABLES dd07v_tab = l_dd07v_tab EXCEPTIONS illegal_input = 1 OTHERS = 2 .

SCMS_ADM_CREP_LIST CALL FUNCTION 'SCMS_ADM_CREP_LIST' TABLES repositories = l_creps EXCEPTIONS failed = 1 OTHERS = 2.

SDOK_PHIO_ATTRIBUTES_GET CALL FUNCTION 'SDOK_PHIO_ATTRIBUTES_GET' EXPORTING class = l_phcl TABLES attributes = l_attributes EXCEPTIONS not_existing = 1 not_authorized = 2 OTHERS = 3.

SCMS_CAT_INFO_GET CALL FUNCTION 'SCMS_CAT_INFO_GET' EXPORTING stor_cat = l_phio-stor_cat IMPORTING stor_rep = l_crep * STOR_TYPE = * R3DB_TAB = EXCEPTIONS not_found = 1 OTHERS = 2.

SDOK_PHIO_ENQUEUE CALL FUNCTION 'SDOK_PHIO_ENQUEUE' EXPORTING object_id = l_object_id EXCEPTIONS missing_class = 1 bad_class = 2 foreign_lock = 3 enqueue_system_failure = 4 OTHERS = 5.

SDOK_PHIO_PROPERTIES_SET CALL FUNCTION 'SDOK_PHIO_PROPERTIES_SET' EXPORTING object_id = l_object_id client = p_client TABLES properties = l_properties_old EXCEPTIONS not_existing = 1 bad_properties = 2 not_authorized = 3 exception_in_exit = 4 OTHERS = 5.

SDOK_PHIO_DEQUEUE CALL FUNCTION 'SDOK_PHIO_DEQUEUE' EXPORTING object_id = l_object_id EXCEPTIONS OTHERS = 0.

SDOK_UNIQUE_ID_GET CALL FUNCTION 'SDOK_UNIQUE_ID_GET' IMPORTING unique_id = l_guid.

SCMS_DOC_CREATE CALL FUNCTION 'SCMS_DOC_CREATE' EXPORTING mandt = p_client stor_cat = l_phio-stor_cat * CREP_ID = ' ' doc_id = l_guid * DOC_PROT = ' ' * SECURITY = ' ' IMPORTING doc_id_out = l_dummy_doc_id TABLES access_info = l_access_info content_txt = l_content_txt * CONTENT_BIN = EXCEPTIONS bad_storage_type = 1 bad_request = 2 unauthorized = 3 forbidden = 4 conflict = 5 internal_server_error = 6 error_http = 7 error_signature = 8 error_config = 9 error_hierarchy = 10 error_format = 11 error_parameter = 12 error = 13 OTHERS = 14.

SCMS_DOC_DELETE CALL FUNCTION 'SCMS_DOC_DELETE' EXPORTING mandt = p_client stor_cat = l_phio-stor_cat crep_id = l_dummy_crep_id doc_id = l_guid * SIGNATURE = 'X' * SECURITY = ' ' EXCEPTIONS OTHERS = 0.

SDOK_PHIO_DEQUEUE CALL FUNCTION 'SDOK_PHIO_DEQUEUE' EXPORTING object_id = l_object_id EXCEPTIONS OTHERS = 0.

SCMS_DOC_COPY CALL FUNCTION 'SCMS_DOC_COPY' EXPORTING src_mandt = p_client src_stor_cat = l_phio-stor_cat * SRC_CREP_ID = ' ' src_doc_id = l_phio-phio_id * SRC_PHIO_ID = * SRC_SIGNATURE = 'X' dst_mandt = p_client * DST_STOR_CAT = ' ' dst_crep_id = p_tmprep dst_doc_id = l_phio-phio_id * DST_PHIO_ID = dst_doc_prot = p_tprot * SECURITY = ' ' overwrite = 'X' * IMPORTING * DOC_ID_OUT = EXCEPTIONS bad_storage_type = 1 bad_request = 2 unauthorized = 3 not_found = 4 forbidden = 5 conflict = 6 internal_server_error = 7 error_http = 8 error_signature = 9 error_config = 10 error_format = 11 error_parameter = 12 error = 13 OTHERS = 14.

SDOK_PHIO_DEQUEUE CALL FUNCTION 'SDOK_PHIO_DEQUEUE' EXPORTING object_id = l_object_id EXCEPTIONS OTHERS = 0.

SCMS_DOC_COPY CALL FUNCTION 'SCMS_DOC_COPY' EXPORTING src_mandt = p_client src_stor_cat = space src_crep_id = p_tmprep src_doc_id = l_phio-phio_id * SRC_PHIO_ID = * SRC_SIGNATURE = 'X' dst_mandt = p_client dst_stor_cat = l_phio-stor_cat * DST_CREP_ID = ' ' dst_doc_id = l_phio-phio_id * DST_PHIO_ID = dst_doc_prot = p_tprot * SECURITY = ' ' overwrite = 'X' * IMPORTING * DOC_ID_OUT = EXCEPTIONS bad_storage_type = 1 bad_request = 2 unauthorized = 3 not_found = 4 forbidden = 5 conflict = 6 internal_server_error = 7 error_http = 8 error_signature = 9 error_config = 10 error_format = 11 error_parameter = 12 error = 13 OTHERS = 14.

SDOK_PHIO_DEQUEUE CALL FUNCTION 'SDOK_PHIO_DEQUEUE' EXPORTING object_id = l_object_id EXCEPTIONS OTHERS = 0.

SDOK_PHIO_PROPERTIES_SET CALL FUNCTION 'SDOK_PHIO_PROPERTIES_SET' EXPORTING object_id = l_object_id client = p_client TABLES properties = l_properties_new EXCEPTIONS not_existing = 1 bad_properties = 2 not_authorized = 3 exception_in_exit = 4 OTHERS = 5.

SDOK_PHIO_DEQUEUE CALL FUNCTION 'SDOK_PHIO_DEQUEUE' EXPORTING object_id = l_object_id EXCEPTIONS OTHERS = 0.

SCMS_DOC_DELETE CALL FUNCTION 'SCMS_DOC_DELETE' EXPORTING mandt = p_client stor_cat = space crep_id = p_tmprep doc_id = l_phio-phio_id * PHIO_ID = * COMP_ID = ' ' * SIGNATURE = 'X' * SECURITY = ' ' EXCEPTIONS bad_storage_type = 1 bad_request = 2 unauthorized = 3 not_found = 4 conflict = 5 internal_server_error = 6 error_http = 7 error_signature = 8 error_config = 9 error_hierarchy = 10 error_parameter = 11 error = 12 OTHERS = 13.

SDOK_PHIO_DEQUEUE





CALL FUNCTION 'SDOK_PHIO_DEQUEUE' EXPORTING object_id = l_object_id EXCEPTIONS OTHERS = 0.

SDOK_PHIO_DEQUEUE CALL FUNCTION 'SDOK_PHIO_DEQUEUE' EXPORTING object_id = l_object_id EXCEPTIONS missing_class = 1 bad_class = 2 enqueue_system_failure = 3 OTHERS = 4.



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