SAP Reports / Programs

RN2ADMTBS SAP ABAP Report - Manage Text Modules for Each of Two Assignment Levels







RN2ADMTBS is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You can use this report to manage your text modules that you use in the IS-H*MED long text fields...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 RN2ADMTBS into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

N2TBS - Text Module Management


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 RN2ADMTBS. "Basic submit
SUBMIT RN2ADMTBS AND RETURN. "Return to original report after report execution complete
SUBMIT RN2ADMTBS 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_USER2 = D .
Selection Text: P_USER = D .
Selection Text: P_SET2 = D .
Selection Text: P_SET1 = D .
Selection Text: P_ORGFA2 = D .
Selection Text: P_ORGFA = D .
Selection Text: P_ORGDO2 = D .
Selection Text: P_ORGDO = D .
Selection Text: P_EIN2 = D .
Selection Text: P_EIN = D .
Selection Text: P_FLAG52 = SetID Radio Button
Selection Text: P_FLAG5 = SetID Radio Button
Selection Text: P_FLAG42 = Radio Button - User
Selection Text: P_FLAG4 = Radio Button - User
Selection Text: P_FLAG32 = Radio Button - Docu OU
Selection Text: P_FLAG3 = Radio Button - Docu OU
Selection Text: P_FLAG22 = Radio Button - Dept. OU
Selection Text: P_FLAG2 = Radio Button - Dept. OU
Selection Text: P_FLAG12 = Radiobutton - Institution
Selection Text: P_FLAG1 = Radio Button - Institution
Title: Manage Text Modules for Each of Two Assignment Levels
Text Symbol: T03 = Input Help: Documenting OU
Text Symbol: T02 = Input Help: Departmental OU
Text Symbol: S02 = Level for Text Modules in the Right Tree
Text Symbol: S01 = Level for Text Modules in the Left Tree
Text Symbol: P05 = Text Module Set
Text Symbol: E08 = Unknown Text Module Set
Text Symbol: E07 = Reference levels must be different
Text Symbol: E06 = Report must run in the dialog
Text Symbol: E05 = Internal Error
Text Symbol: E04 = Unknown User ID
Text Symbol: E03 = Unknown Documenting OU
Text Symbol: E02 = Unknown Departmental OU
Text Symbol: E01 = Unknown Institution
Text Symbol: B02 = Manage SetID
Text Symbol: B01 = Enhanced Administration
Text Symbol: 006 = User ID
Text Symbol: 005 = Documenting OU





Text Symbol: 004 = Departmental OU
Text Symbol: 003 = Institution
Text Symbol: 002 = Select the Assignment Level
Text Symbol: 001 = Manage Text Modules


INCLUDES used within this REPORT RN2ADMTBS

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:

ISH_GRAPHIC_ORGID_SELECT CALL FUNCTION 'ISH_GRAPHIC_ORGID_SELECT' EXPORTING ambes = '*' fazuw = 'X' pfzuw = '*' graph_title = 'Eingabehilfe: Fachliche OE'(t02) einri = p_ein freig = 'X' start_orgfa = p_orgfa loekz = space no_bauid = space sperr = space IMPORTING selected_orgid = p_orgfa EXCEPTIONS bauid_not_in_nbau = 1 einri_not_in_tn01 = 2 no_hierarchy = 3 orgid_not_in_norg = 4 OTHERS = 5.

ISH_GRAPHIC_ORGID_SELECT CALL FUNCTION 'ISH_GRAPHIC_ORGID_SELECT' EXPORTING ambes = 'X' fazuw = 'X' pfzuw = 'X' graph_title = 'Eingabehilfe: Dokumentierende OE'(t03) einri = p_ein freig = 'X' start_orgfa = p_orgdo loekz = space no_bauid = 'X' sperr = space IMPORTING selected_orgid = p_orgdo EXCEPTIONS bauid_not_in_nbau = 1 einri_not_in_tn01 = 2 no_hierarchy = 3 orgid_not_in_norg = 4 OTHERS = 5.

ISH_GRAPHIC_ORGID_SELECT CALL FUNCTION 'ISH_GRAPHIC_ORGID_SELECT' EXPORTING ambes = '*' fazuw = 'X' pfzuw = '*' graph_title = 'Eingabehilfe: Fachliche OE'(t02) einri = p_ein2 freig = 'X' start_orgfa = p_orgfa2 loekz = space no_bauid = space sperr = space IMPORTING selected_orgid = p_orgfa2 EXCEPTIONS bauid_not_in_nbau = 1 einri_not_in_tn01 = 2 no_hierarchy = 3 orgid_not_in_norg = 4 OTHERS = 5.

ISH_GRAPHIC_ORGID_SELECT CALL FUNCTION 'ISH_GRAPHIC_ORGID_SELECT' EXPORTING ambes = 'X' fazuw = 'X' pfzuw = 'X' graph_title = 'Eingabehilfe: Dokumentierende OE'(t03) einri = p_ein2 freig = 'X' start_orgfa = p_orgdo2 loekz = space no_bauid = 'X' sperr = space IMPORTING selected_orgid = p_orgdo2 EXCEPTIONS bauid_not_in_nbau = 1 einri_not_in_tn01 = 2 no_hierarchy = 3 orgid_not_in_norg = 4 OTHERS = 5.

ISH_N2_TBS_SETID_HEAD CALL FUNCTION 'ISH_N2_TBS_SETID_HEAD'.

ISH_N2_TBS_SETID_HEAD CALL FUNCTION 'ISH_N2_TBS_SETID_HEAD' EXPORTING ss_setid = p_set2.

ISH_N2_TBS_SETID_HEAD CALL FUNCTION 'ISH_N2_TBS_SETID_HEAD' EXPORTING ss_setid = p_set1.

ISH_N2_TBS_ADM_CHECK CALL FUNCTION 'ISH_N2_TBS_ADM_CHECK' EXPORTING ss_level = l_level1 ss_user = p_user ss_orgdo = p_orgdo ss_orgfa = p_orgfa ss_einri = p_ein ss_setid = p_set1 EXCEPTIONS error = 1 OTHERS = 2.

ISH_N2_TBS_ADM_CHECK CALL FUNCTION 'ISH_N2_TBS_ADM_CHECK' EXPORTING ss_level = l_level2 ss_user = p_user2 ss_orgdo = p_orgdo2 ss_orgfa = p_orgfa2 ss_einri = p_ein2 ss_setid = p_set2 EXCEPTIONS error = 1 OTHERS = 2.

ISH_N2_TBS_ADM_INIT CALL FUNCTION 'ISH_N2_TBS_ADM_INIT' EXPORTING ss_level1 = l_level1 ss_user1 = p_user ss_orgdo1 = p_orgdo ss_orgfa1 = p_orgfa ss_einri1 = p_ein ss_level2 = l_level2 ss_user2 = p_user2 ss_orgdo2 = p_orgdo2 ss_orgfa2 = p_orgfa2 ss_einri2 = p_ein2 ss_setid1 = p_set1 ss_setid2 = p_set2.

ISH_READ_NORG CALL FUNCTION 'ISH_READ_NORG' EXPORTING einri = p_ein orgid = p_orgfa IMPORTING norg_e = l_norg_e * ORGKB_E = EXCEPTIONS missing_orgid = 1 OTHERS = 2.

ISH_READ_NORG CALL FUNCTION 'ISH_READ_NORG' EXPORTING einri = p_ein orgid = p_orgdo IMPORTING norg_e = l_norg_e * ORGKB_E = EXCEPTIONS missing_orgid = 1 OTHERS = 2.

SUSR_USER_ADDRESS_READ CALL FUNCTION 'SUSR_USER_ADDRESS_READ' EXPORTING user_name = p_user * READ_DB_DIRECTLY = ' ' IMPORTING user_address = l_addr * USER_USR03 = EXCEPTIONS user_address_not_found = 1 OTHERS = 2.

ISH_N2_GET_N2TBS_SET_HEAD CALL FUNCTION 'ISH_N2_GET_N2TBS_SET_HEAD' EXPORTING ss_setid = p_set1 IMPORTING ss_n2tbs_set_head = l_n2tbs_set_head EXCEPTIONS error = 1 OTHERS = 2.

ISH_READ_NORG CALL FUNCTION 'ISH_READ_NORG' EXPORTING einri = p_ein2 orgid = p_orgfa2 IMPORTING norg_e = l_norg_e * ORGKB_E = EXCEPTIONS missing_orgid = 1 OTHERS = 2.

ISH_READ_NORG CALL FUNCTION 'ISH_READ_NORG' EXPORTING einri = p_ein2 orgid = p_orgdo2 IMPORTING norg_e = l_norg_e * ORGKB_E = EXCEPTIONS missing_orgid = 1 OTHERS = 2.






SUSR_USER_ADDRESS_READ CALL FUNCTION 'SUSR_USER_ADDRESS_READ' EXPORTING user_name = p_user2 * READ_DB_DIRECTLY = ' ' IMPORTING user_address = l_addr * USER_USR03 = EXCEPTIONS user_address_not_found = 1 OTHERS = 2.

ISH_N2_GET_N2TBS_SET_HEAD CALL FUNCTION 'ISH_N2_GET_N2TBS_SET_HEAD' EXPORTING ss_setid = p_set2 IMPORTING ss_n2tbs_set_head = l_n2tbs_set_head EXCEPTIONS error = 1 OTHERS = 2.

ENQUEUE_E_TABLE CALL FUNCTION 'ENQUEUE_E_TABLE' EXPORTING * MODE_RSTABLE = 'E' tabname = lc_tabname varkey = lv_varkey * X_TABNAME = ' ' * X_VARKEY = ' ' * _SCOPE = '2' * _WAIT = ' ' * _COLLECT = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3 .

ENQUEUE_E_TABLE CALL FUNCTION 'ENQUEUE_E_TABLE' EXPORTING * MODE_RSTABLE = 'E' tabname = lc_tabname_2 varkey = lv_varkey * X_TABNAME = ' ' * X_VARKEY = ' ' * _SCOPE = '2' * _WAIT = ' ' * _COLLECT = ' ' EXCEPTIONS foreign_lock = 1 system_failure = 2 OTHERS = 3.

DEQUEUE_E_TABLE CALL FUNCTION 'DEQUEUE_E_TABLE' EXPORTING tabname = lc_tabname varkey = lv_varkey.

DEQUEUE_E_TABLE CALL FUNCTION 'DEQUEUE_E_TABLE' EXPORTING tabname = lc_tabname_2 varkey = lv_varkey.



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