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

MSDCUI01 SAP ABAP INCLUDE - Doc tools







MSDCUI01 is a standard ABAP INCLUDE available within your SAP system (depending on your version and release level). It is used for Documentation Tools ..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 MSDCUI01 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 MSDCUI01. "Basic submit
SUBMIT MSDCUI01 AND RETURN. "Return to original report after report execution complete
SUBMIT MSDCUI01 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Doc tools


INCLUDES used within this REPORT MSDCUI01

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:

DOCU_TYPESWITCH CALL FUNCTION 'DOCU_TYPESWITCH' EXPORTING docu_id = sdoc-profile+4(2) docu_langu = sdoc-profile(1) docu_object = rsdcu-object docu_typ = sdoc-profile+3(1) IMPORTING docu_typ = sdoc-profile+3(1).

DOCU_PRINT CALL FUNCTION 'DOCU_PRINT' "li EXPORTING dialog = 'X' id = sdoc-profile+4(2) langu = sdoc-profile(1) object = rsdcu-object printer = 'X' typ = sdoc-profile+3(1) TABLES line = line.

DOCU_AUTHORITYCHECK CALL FUNCTION 'DOCU_AUTHORITYCHECK' EXPORTING id = wrk-id object = rsdcu-object name = sdoc-dokuser EXCEPTIONS no_activate = 1 not_allowed = 2 not_found = 4 no_entry = 8.

RS_CORR_CHECK CALL FUNCTION 'RS_CORR_CHECK' EXPORTING global_lock = global_lock * MODE = ' ' object = e071-obj_name object_class = e071-object suppress_dialog = ' ' IMPORTING devclass = global_devcl error_info = errcode * MASTER_LANGUAGE = * TRANSPORT_KEY = EXCEPTIONS cancelled = 1 permission_failure = 2 unknown_objectclass = 3 OTHERS = 4.

DOCU_PUT_WORKAREA_LSDOC CALL FUNCTION 'DOCU_PUT_WORKAREA_LSDOC' EXPORTING w_no_edit = ':'.

RS_CORR_INSERT CALL FUNCTION 'RS_CORR_INSERT' EXPORTING object = e071-obj_name object_class = e071-object global_lock = global_lock devclass = global_devcl korrnum = global_korr EXCEPTIONS cancelled = 1 permission_failure = 2 unknown_objectclass = 3 OTHERS = 4.

DOCU_PUT_WORKAREA_LSDOC CALL FUNCTION 'DOCU_PUT_WORKAREA_LSDOC' EXPORTING w_no_edit = 'X'.

DOCU_PUT_WORKAREA_LSDOC CALL FUNCTION 'DOCU_PUT_WORKAREA_LSDOC' EXPORTING w_no_edit = ':'.

ENQUEUE_ESDOC CALL FUNCTION 'ENQUEUE_ESDOC' EXPORTING id = enq-id object = enq-object langu = enq-langu typ = enq-typ EXCEPTIONS foreign_lock = 1 system_failure = 2.

DOCU_PUT_WORKAREA_LSDOC CALL FUNCTION 'DOCU_PUT_WORKAREA_LSDOC' EXPORTING w_dokil = dokil w_sdoc = sdoc w_enq = enq.

GENERATE_INCLUDE CALL FUNCTION 'GENERATE_INCLUDE' EXPORTING incl_langu = incl_langu rsdcu_object = rsdcu-object wrk_id = wrk-id IMPORTING string = string.

SAPMS_TEXT_EDIT CALL FUNCTION 'SAPMS_TEXT_EDIT' EXPORTING * display = ' ' display = display editor_title = text-014 header = head save = 'X' IMPORTING function = ok_code newheader = head TABLES lines = line EXCEPTIONS id = 01 language = 02 linesize = 03 name = 04 object = 05. "#EC *

EDIT_TEXT CALL FUNCTION 'EDIT_TEXT' EXPORTING header = head display = display IMPORTING newheader = head TABLES lines = line.

DOCU_GET_WORKAREA_LSDOC CALL FUNCTION 'DOCU_GET_WORKAREA_LSDOC' IMPORTING w_sdoc = sdoc w_enq = enq.

DEQUEUE_ESDOC CALL FUNCTION 'DEQUEUE_ESDOC' EXPORTING id = enq-id object = enq-object langu = enq-langu typ = enq-typ.

DOCU_PUT_WORKAREA_LSDOC CALL FUNCTION 'DOCU_PUT_WORKAREA_LSDOC' EXPORTING w_devclass = global_devcl w_korrnum = global_korr.

RS_TASK_OVERVIEW CALL FUNCTION 'RS_TASK_OVERVIEW' EXCEPTIONS OTHERS = 0.

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

DOCU_NAME_CHECK





CALL FUNCTION 'DOCU_NAME_CHECK' EXPORTING IV_ID = wrk-id IV_OBJECT_NAME = rsdcu-object IV_CHECK_FROM_SE61 = 'X' IMPORTING EV_MESSAGE_NUMBER = lv_message_number EV_ALLOWED_SYMBOLS = lv_message_var.

DOCU_CHANGE_ORIG_LANGUAGE CALL FUNCTION 'DOCU_CHANGE_ORIG_LANGUAGE' EXPORTING iv_id = dokil-id iv_object = dokil-object iv_new_orig_langu = dokil-langu * IV_POP_UP = 'X' IV_SUPPRESS_TRANSPORT = ' ' * IV_SUPPRESS_AUTHORITY = 'X' * IV_SUPPRESS_ENQUEUE = 'X' EXCEPTIONS MEW_ORIG_EQUAL_OLD_ORIG_LANGU = 1 NO_DOCU_IN_NEW_ORIG_LANGU = 2 MORE_THAN_1_ORIG_LANGU = 3 ENTRY_IS_SELF_EXPLANATORY = 4 NO_AUTHORISATION = 5 OBJECT_IS_ALREADY_ENQUEUED = 6 TECHN_ENQUEUE_PROBLEM = 7 SAP_NAMESPACE = 8 OTHERS = 9.

AUTHORITY_CHECK_TCODE CALL FUNCTION 'AUTHORITY_CHECK_TCODE' EXPORTING tcode = l_tcode EXCEPTIONS ok = 1 not_ok = 2 OTHERS = 3.

DOCU_PUT_WORKAREA_LSDOC CALL FUNCTION 'DOCU_PUT_WORKAREA_LSDOC' EXPORTING w_sdoc = sdoc w_actclass = actclass.

DOCU_TYPESWITCH CALL FUNCTION 'DOCU_TYPESWITCH' "li EXPORTING "li docu_id = wrk-id "li docu_object = rsdcu-object "li docu_langu = sdoc-profile(1) "li docu_typ = sdoc-profile+3(1) "li IMPORTING "li docu_typ = sdoc-profile+3(1). "li

DOCU_INIT CALL FUNCTION 'DOCU_INIT' EXPORTING id = wrk-id object = rsdcu-object langu = sdoc-profile(1) typ = sdoc-profile+3(1) IMPORTING xdokil = dokil found = l_found. " sy-subrc.

DOCU_GET_WITH_RFC CALL FUNCTION 'DOCU_GET_WITH_RFC' EXPORTING id = wrk-id object = rsdcu-object langu = dokentry-langu typ = dokentry-dokutyp * VERSION = '0000' destination = docrfc-destinatio IMPORTING head = head * ERRORTYPE = TABLES dokline = line.

DOCU_READ CALL FUNCTION 'DOCU_READ' EXPORTING id = wrk-id object = rsdcu-object langu = sdoc-profile(1) version = dokil-version typ = sdoc-profile+3(1) IMPORTING head = head * DOKTITLE = DSYST-DOKTITLE TABLES line = line.

DOCU_AUTHORITYCHECK CALL FUNCTION 'DOCU_AUTHORITYCHECK' EXPORTING id = wrk-id object = rsdcu-object name = sdoc-dokuser EXCEPTIONS no_activate = 1 not_allowed = 2 not_found = 4 no_entry = 8.

DOCU_INIT CALL FUNCTION 'DOCU_INIT' EXPORTING id = wrk-id object = rsdcu-object langu = sdoc-profile(1) typ = sdoc-profile+3(1) IMPORTING xdokil = dokil found = l_found. " sy-subrc.

DOCU_DELETE CALL FUNCTION 'DOCU_DELETE' EXPORTING head = head version = dokil-version typ = sdoc-profile+3(1).

TR_DEVCLASS_GET CALL FUNCTION 'TR_DEVCLASS_GET' EXPORTING iv_devclass = g_devclass IMPORTING es_tdevc = ls_tdevc EXCEPTIONS OTHERS = 1.

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 = 0.

AUTHORITY_CHECK_TCODE CALL FUNCTION 'AUTHORITY_CHECK_TCODE' EXPORTING tcode = l_tcode EXCEPTIONS ok = 1 not_ok = 2 OTHERS = 3.

TR_CHANGE_OBJS_DEVC CALL FUNCTION 'TR_CHANGE_OBJS_DEVC' EXPORTING it_tadir = itrtad_keys iv_target_devc = devc_target * IV_COMPLETE_ONLY = ' ' * IV_TASK = ' ' * IV_AUTHOR = ' ' * IMPORTING * ET_ERROR = * EV_ERROR_STATUS = * ET_TADIR_NEW = * ET_KORR_ENTRIES = * EV_KORRNUM = EXCEPTIONS object_indep_error = 1 object_dep_error = 2 user_cancel = 3 OTHERS = 4.

DOCU_PUT_WORKAREA_LSDOC CALL FUNCTION 'DOCU_PUT_WORKAREA_LSDOC' EXPORTING w_sdoc = sdoc.

SOTR_STRING_REVIEW_DIALOG * call function 'SOTR_STRING_REVIEW_DIALOG' * EXPORTING * langu = dokentry-langu.

DOCU_PUT_WORKAREA_LSDOC CALL FUNCTION 'DOCU_PUT_WORKAREA_LSDOC' EXPORTING w_sdoc = sdoc.

DOCU_OBJECT_NAME_CONCATENATE CALL FUNCTION 'DOCU_OBJECT_NAME_CONCATENATE' EXPORTING docu_id = fromclass-class element = rsdcu-object7fr addition = rsdcu-object6fr IMPORTING object = rsdcu-objectfr.

DOCU_OBJECT_NAME_CONCATENATE CALL FUNCTION 'DOCU_OBJECT_NAME_CONCATENATE' EXPORTING docu_id = toclass-class element = rsdcu-object7to addition = rsdcu-object6to IMPORTING object = rsdcu-objectto.




DOCU_AUTHORITYCHECK CALL FUNCTION 'DOCU_AUTHORITYCHECK' EXPORTING id = rsdcu-idto object = rsdcu-objectto name = sy-uname EXCEPTIONS no_activate = 1 not_allowed = 2 not_found = 4 no_entry = 8.

DOCU_CPY CALL FUNCTION 'DOCU_CPY' EXPORTING generic = ' ' id = rsdcu-idfr langu = sdoc-profile(1) newid = rsdcu-idto newname = rsdcu-objectto newstate = copysavestate object = rsdcu-objectfr typ = lv_typ_to EXCEPTIONS ret_code = 01.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING DYNAME = 'SAPMSDCU' DYNUMB = '0118' * translate_to_upper = 'X' * REQUEST = ' ' TABLES DYNPFIELDS = L_DYNPFIELDS EXCEPTIONS INVALID_ABAPWORKAREA = 1 INVALID_DYNPROFIELD = 2 INVALID_DYNPRONAME = 3 INVALID_DYNPRONUMMER = 4 INVALID_REQUEST = 5 NO_FIELDDESCRIPTION = 6 INVALID_PARAMETER = 7 UNDEFIND_ERROR = 8 OTHERS = 9.

COMPLEX_SELECTIONS_DIALOG CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG' EXPORTING title = seletext no_interval_check = 'X' TABLES range = range EXCEPTIONS OTHERS = 0.

COMPLEX_SELECTIONS_DIALOG CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG' EXPORTING title = seletext * text = ' ' * SIGNED = 'X' * LOWER_CASE = ' ' no_interval_check = 'X' * JUST_DISPLAY = ' ' TABLES range = range EXCEPTIONS no_range_tab = 1 cancelled = 2 internal_error = 3 OTHERS = 4. "#EC *

POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING TITLEBAR = text-600 text_question = h_text2 * TEXT_BUTTON_1 = 'Ja'(001) * TEXT_BUTTON_2 = 'Nein'(002) DEFAULT_BUTTON = '2' * DISPLAY_CANCEL_BUTTON = 'X' IMPORTING ANSWER = antwort EXCEPTIONS OTHERS = 0.



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