SAP Reports / Programs

RN2UTDT_COPY SAP ABAP Report - Copying Document Categories







RN2UTDT_COPY is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Copying Parameterized Document Categories (PMDs) on a System This program enables you to copy document categories with their development elements, in order to use them as templates for a document category that you wish to create for the first time...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 RN2UTDT_COPY 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 RN2UTDT_COPY. "Basic submit
SUBMIT RN2UTDT_COPY AND RETURN. "Return to original report after report execution complete
SUBMIT RN2UTDT_COPY VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Copying Document Categories
Text Symbol: 001 = Target
Text Symbol: 002 = Client
Text Symbol: 003 = Institution
Text Symbol: 004 = Copy Variants
Text Symbol: 005 = Doc. Category w/ Abstract Design
Text Symbol: 006 = Document Category with Element List and Abstract Design
Text Symbol: 007 = Program is obsolete
Text Symbol: 008 = Additional Options
Text Symbol: 010 = Source
Text Symbol: 017 = Test Run
Text Symbol: S01 = Institution
Text Symbol: S02 = Document Category
Text Symbol: S03 = Version
Text Symbol: U07 = Select Source Client
Text Symbol: U08 = Select Source Institution
Text Symbol: U09 = Select Target Institution
Text Symbol: U10 = Select Document Ctgry


INCLUDES used within this REPORT RN2UTDT_COPY

INCLUDE RNDATA00.
INCLUDE MNCOLOUR.
INCLUDE RNSSIEIN.
INCLUDE RNSSSPBO.


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:

POPUP_DISPLAY_TEXT CALL FUNCTION 'POPUP_DISPLAY_TEXT' EXPORTING popup_title = 'Programm ist obsolet'(007) text_object = n2t_obsolet_trans EXCEPTIONS OTHERS = 0.

ISH_EINRI_CHECK CALL FUNCTION 'ISH_EINRI_CHECK' EXPORTING ss_einri = se_einri IMPORTING ss_einkb = txteinri * SS_TN01 = * SS_NADR = EXCEPTIONS not_found = 1.

ISH_CALL_LIST_HEAD * CALL FUNCTION 'ISH_CALL_LIST_HEAD' * EXPORTING * einri = rnstat-einri * line_size = rnstat-line_size * repid = rnstat-repid * title_lin1 = rnstat-title_lin1 * title_lin2 = rnstat-title_lin2 * uline = off.

ISH_N2_COPY_DOKTYP CALL FUNCTION 'ISH_N2_COPY_DOKTYP' EXPORTING SS_COPY_MODE = exv_copy_mode SS_MANDT_FROM = se_qmand SS_EINRI_FROM = se_einri SS_DTID_FROM = se_dtid SS_DTVERS_FROM = l_dtkey-dtvers "se_dtver SS_EINRI_TO = se_zeinr SS_DTID_TO = se_zdtid SS_DTVERS_TO = '1' SI_EINRI_TO = se_zeinr SI_MANDT_To = sy-mandt EXCEPTIONS ERROR = 1 ABBRUCH = 2 OTHERS = 3 .

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING ddic_structure = 'RN2F4_HELP_EINRI' retfield = 'EINRI' window_title = 'Zieleinrichtung auswaehlen'(u09) value_org = 'S' TABLES value_tab = f4_help_list return_tab = f4_help_list_ret EXCEPTIONS * PARAMETER_ERROR = 1 * NO_VALUES_FOUND = 2 OTHERS = 0 .

CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' EXPORTING input = wa_f4_help_list_ret-fieldval IMPORTING output = se_zeinr.

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING ddic_structure = 'RN2F4_HELP_EINRI' retfield = 'EINRI' window_title = 'Quelleinrichtung auswaehlen'(u08) value_org = 'S' TABLES value_tab = f4_help_list return_tab = f4_help_list_ret EXCEPTIONS * PARAMETER_ERROR = 1 * NO_VALUES_FOUND = 2 OTHERS = 0 .

CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' EXPORTING input = wa_f4_help_list_ret-fieldval IMPORTING output = se_einri.

DYNP_VALUES_READ CALL FUNCTION 'DYNP_VALUES_READ' EXPORTING dyname = sy-cprog dynumb = '1000' * TRANSLATE_TO_UPPER = ' ' * REQUEST = ' ' * PERFORM_CONVERSION_EXITS = ' ' * PERFORM_INPUT_CONVERSION = ' ' * DETERMINE_LOOP_INDEX = ' ' TABLES dynpfields = dynpfields EXCEPTIONS invalid_abapworkarea = 0 invalid_dynprofield = 0 invalid_dynproname = 0 invalid_dynpronummer = 0 invalid_request = 0 no_fielddescription = 0 invalid_parameter = 0 undefind_error = 0 double_conversion = 0 stepl_not_found = 0 OTHERS = 0.

DYNP_VALUES_UPDATE CALL FUNCTION 'DYNP_VALUES_UPDATE' EXPORTING dyname = sy-cprog dynumb = '1000' TABLES dynpfields = dynpfields EXCEPTIONS invalid_abapworkarea = 0 invalid_dynprofield = 0 invalid_dynproname = 0 invalid_dynpronummer = 0 invalid_request = 0 no_fielddescription = 0 undefind_error = 0 OTHERS = 0.

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING ddic_structure = 'RN2F4_HELP_MANDT' retfield = 'MANDT' window_title = 'Quellmandanten auswaehlen'(u07) value_org = 'S' TABLES value_tab = f4_help_list return_tab = f4_help_list_ret EXCEPTIONS * PARAMETER_ERROR = 1 * NO_VALUES_FOUND = 2 OTHERS = 0 .

CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' "wegen Format Einri EXPORTING input = dynpfields-fieldvalue IMPORTING output = se_einri.

F4IF_INT_TABLE_VALUE_REQUEST CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST' EXPORTING ddic_structure = 'RN2F4_HELP_DTID' retfield = 'DTID' dynpprog = sy-cprog dynpnr = '1000' dynprofield = fieldname stepl = 0 window_title = 'Dokumentyp auswaehlen'(u10) value_org = 'S' TABLES value_tab = f4_help_list.



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