SAP Reports / Programs | Basis Components | Basis Components | Documentation Tools(BC-DOC-DTL) SAP BC

REPAIR_DOCU SAP ABAP Report - Document Repairs







REPAIR_DOCU 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 REPAIR_DOCU 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 REPAIR_DOCU. "Basic submit
SUBMIT REPAIR_DOCU AND RETURN. "Return to original report after report execution complete
SUBMIT REPAIR_DOCU 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: VERSION = D .
Selection Text: OBJ_TYP = D .
Selection Text: OBJ_NAME = D .
Selection Text: OBJ_ID = D .
Selection Text: LANGU = D .
Selection Text: ONLY_ONE = One (Default) or All
Selection Text: AMOUNT = Number of Objects per Run
Selection Text: ACTION = Type of Processing
Title: Document Repairs
Text Symbol: 026 = NO_DOKIL_W_OL
Text Symbol: 025 = TADIR Author:
Text Symbol: 024 = Original System:
Text Symbol: 023 = Reason:
Text Symbol: 022 = Package:
Text Symbol: 021 = Total Number of Deleted Objects:
Text Symbol: 020 = Incorrect Objects:
Text Symbol: 019 = Original Language
Text Symbol: 018 = NO_DOKIL
Text Symbol: 017 = NO_TADIR
Text Symbol: 016 = Total Number of Objects:
Text Symbol: 015 = MODIFICATION
Text Symbol: 014 = UPGRADE
Text Symbol: 013 = CHECK_ENTRY:
Text Symbol: 012 = Not Processed Docu Objects:
Text Symbol: 011 = No Processing Required
Text Symbol: 010 = DELETE:
Text Symbol: 009 = UPDATE:
Text Symbol: 008 = , Type of Deletion:
Text Symbol: 007 = , Original System:
Text Symbol: 006 = Docu Object Type:
Text Symbol: 005 = SPECIAL_CASE
Text Symbol: 004 = SAME_TIME
Text Symbol: 003 = TOO_MANY_ENTRIES
Text Symbol: 002 = WRONG_TIME
Text Symbol: 001 = Settings for Processing:


INCLUDES used within this REPORT REPAIR_DOCU

INCLUDE: RSDOCEXD, SDOC_CONSTANTS.
INCLUDE: RSDOCEXD, SDOC_CONSTANTS.


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:

DOCU_OBJECT_NAME_SPLIT CALL FUNCTION 'DOCU_OBJECT_NAME_SPLIT' EXPORTING docu_id = p_dokil-id object = p_dokil-OBJECT IMPORTING element = arbgb addition = msgnr.

TR_TADIR_INTERFACE CALL FUNCTION 'TR_TADIR_INTERFACE' EXPORTING wi_tadir_pgmid = 'R3TR' wi_tadir_object = l_trkey-obj_type wi_tadir_obj_name = l_trkey-obj_name wi_read_only = 'X' IMPORTING new_tadir_entry = l_tadir_entry EXCEPTIONS others = 1.

DOCU_OBJECT_NAME_SPLIT CALL FUNCTION 'DOCU_OBJECT_NAME_SPLIT' "Hirche EXPORTING docu_id = 'DZ' object = l_object_tmp IMPORTING element = p_origin_trkey-obj_name.

DOCU_OBJECT_NAME_SPLIT CALL FUNCTION 'DOCU_OBJECT_NAME_SPLIT' "Hirche EXPORTING docu_id = 'NA' object = l_object_tmp IMPORTING element = p_origin_trkey-obj_name.

DOCU_EXTRACT_OBJ_NAME_FROM_REP CALL FUNCTION 'DOCU_EXTRACT_OBJ_NAME_FROM_REP' EXPORTING obj_name_in = p_object IMPORTING obj_name_out = l_object_out CHANGING object = p_origin_trkey-obj_type EXCEPTIONS OTHERS = 1.

FUNCTION_INCLUDE_INFO CALL FUNCTION 'FUNCTION_INCLUDE_INFO' * IMPORTING * FUNCTAB = CHANGING funcname = l_function_name group = l_fugr_name * INCLUDE = EXCEPTIONS function_not_exists = 1 include_not_exists = 2 group_not_exists = 3 no_selections = 4 OTHERS = 5.

TR_TADIR_INTERFACE CALL FUNCTION 'TR_TADIR_INTERFACE' EXPORTING wi_tadir_pgmid = 'R3TR' wi_tadir_object = p_origin_trkey-obj_type wi_tadir_obj_name = p_origin_trkey-obj_name wi_read_only = 'X' IMPORTING new_gtadir_entry = l_gtadir_entry new_tadir_entry = l_tadir_entry EXCEPTIONS tadir_entry_not_existing = 1 tadir_entry_ill_type = 2 no_systemname = 3 no_systemtype = 4 original_system_conflict = 5 object_reserved_for_devclass = 6 object_exists_global = 7 object_exists_local = 8 object_is_distributed = 9 obj_specification_not_unique = 10 no_authorization_to_delete = 11 devclass_not_existing = 12 simultanious_set_remove_repair = 13 order_missing = 14 no_modification_of_head_syst = 15 pgmid_object_not_allowed = 16 masterlanguage_not_specified = 17 devclass_not_specified = 18 specify_owner_unique = 19 loc_priv_objs_no_repair = 20 gtadir_not_reached = 21 object_locked_for_order = 22 change_of_class_not_allowed = 23 no_change_from_sap_to_tmp = 24 OTHERS = 25.

CLM_SYSTEM_PARAMETERS CALL FUNCTION 'CLM_SYSTEM_PARAMETERS' IMPORTING MODIFICATION_TYPE = L_MODIF_TYPE.

RS_FUNCTION_EXTEND CALL FUNCTION 'RS_FUNCTION_EXTEND' EXPORTING funcname = l_object(30) parameter = l_object+30(30) IMPORTING parameter_extended = l_parameter_extended.

EXT_MODIFY_ORIGINAL_CHECK CALL FUNCTION 'EXT_MODIFY_ORIGINAL_CHECK' EXPORTING p_id = p_dokil-id p_object = p_dokil-object IMPORTING p_original_modified = l_original_modified.

DOCU_INIT CALL FUNCTION 'DOCU_INIT' EXPORTING id = p_dokil-id langu = p_dokil-langu object = p_dokil-object typ = 'M' IMPORTING found = l_old_ext_docu_found xdokil = l_dokil_entry.

TRINT_GTADIR_ACCESS CALL FUNCTION 'TRINT_GTADIR_ACCESS' EXPORTING MESSAGE = 'GETLIST' * IMPORTING * ACTION = * ERROR = * STATUS = TABLES TABLE_IN = lt_TABLE_IN TABLE_OUT = lt_TABLE_OUT * TT_QUERY = .

RS_NAME_SPLIT_NAMESPACE CALL FUNCTION 'RS_NAME_SPLIT_NAMESPACE' EXPORTING name_with_namespace = lv_w_namespace IMPORTING namespace = lv_namespace name_without_namespace = lv_wo_namespace EXCEPTIONS delimiter_error = 1 OTHERS = 2.

TR_TADIR_INTERFACE CALL FUNCTION 'TR_TADIR_INTERFACE' EXPORTING wi_delete_tadir_entry = 'X' wi_test_modus = space wi_tadir_pgmid = ls_tadir-pgmid wi_tadir_object = ls_tadir-object wi_tadir_obj_name = ls_tadir-obj_name EXCEPTIONS OTHERS = 1.



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