SAP Reports / Programs

RS_TEMPLATE_MASS_ALTER SAP ABAP Report - Web Template Mass Maintenance/Conversion







RS_TEMPLATE_MASS_ALTER 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 RS_TEMPLATE_MASS_ALTER 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 RS_TEMPLATE_MASS_ALTER. "Basic submit
SUBMIT RS_TEMPLATE_MASS_ALTER AND RETURN. "Return to original report after report execution complete
SUBMIT RS_TEMPLATE_MASS_ALTER VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Web Template Conversion Results -...
Selection Text: B_FSSAVE = Save to Filesystem
Selection Text: B_LTNIN = Input file of template names
Selection Text: B_MANFI = Manual Selection
Selection Text: B_OPNO = No Operation(just down/upload)
Selection Text: B_OPXSL = XSLT-Transform
Selection Text: B_PATFI = Pattern Filter
Selection Text: B_REGEN = Regenerate Pattern
Selection Text: B_SAR = Search and Replace
Selection Text: B_SEAFI = Filter via string search
Selection Text: P_FBNM = Function Module name
Selection Text: P_FBP1 = Function Module param 1
Selection Text: P_FBP2 = Function Module param 2
Selection Text: P_FBP3 = Function Module param 3
Selection Text: P_FBP4 = Function Module param 4
Selection Text: P_FILP1 = XSLT Filter parameter 1
Selection Text: P_FILP2 = XSLT Filter parameter 2
Selection Text: P_FILP3 = XSLT Filter parameter 3
Selection Text: P_FILP4 = XSLT Filter parameter 4
Selection Text: P_FILXS = Filter-XSLT (SE80!->XSLT)
Selection Text: P_FNLST = Name of output list file
Selection Text: P_FNTLI = File input (list of names)
Selection Text: P_FOLIN = Folder input
Selection Text: P_FOOUT = Output Folder
Selection Text: P_OBJVER = Object version(A,M,D)
Selection Text: P_PATNM = Pattern name
Selection Text: P_SAR = Seach and replace
Selection Text: P_SEAFI = Filter Strings ( LOW,EQ[I,E] )
Selection Text: P_TYPE = Template Type(00,01)
Selection Text: P_XSLP1 = XSLT Transform Parameter 1
Selection Text: P_XSLP2 = XSLT Transform Parameter 2
Selection Text: P_XSLP3 = XSLT Transform Parameter 3
Selection Text: P_XSLP4 = XSLT Transform Parameter 4
Selection Text: P_XSLT = Modif. XSLT-Transform( SE80!)
Selection Text: S_LUSER = User (Last changed)
Selection Text: S_ROLES = Roles (Technical name)
Selection Text: S_TEMPL = Template name
Selection Text: B_FSLST = Output list of technical names





Selection Text: B_FOLIN = Input folder
Selection Text: B_FILXS = Post filter by XSLT
Selection Text: B_FB = Convert using function module
Selection Text: B_DBSAVE = Save to Database
Selection Text: B_DBIN = Input from Database
Selection Text: B_4SR = BEx-Runtime Template
Selection Text: B_3SR = 3.x Template
Title: Web Template Mass Maintenance/Conversion
Text Symbol: 062 = Select your templates
Text Symbol: 061 = File not found
Text Symbol: 060 = Nothing selected
Text Symbol: 058 = You are not authorized. Please read note 710112.
Text Symbol: 057 = Enter at least one search string in lower part.
Text Symbol: 054 = Attempt to alter BW Web Templates:
Text Symbol: 053 = Could not download list file
Text Symbol: 052 = Save to and from DB with no operation is not supported
Text Symbol: 051 = You must select at least one entry
Text Symbol: 021 = Processing result of the templates (
Text Symbol: 020 = Final opportunity to exit. Will operate on the following templates (
Text Symbol: 005 = Input
Text Symbol: 002 = Operation
Text Symbol: 001 = Template Selection
Text Symbol: 071 = Template ID
Text Symbol: 072 = Description
Text Symbol: 073 = Selection
Text Symbol: 074 = Result
Text Symbol: 080 = Program aborted
Text Symbol: 0S2 = Output Destination
Text Symbol: FIL = Filters
Text Symbol: FIS = Input from File-System
Text Symbol: FMT = Transformation by function module
Text Symbol: FPA = Filter by Pattern
Text Symbol: FSA = Transform by string replacement
Text Symbol: FSE = Selection by String search
Text Symbol: FXS = Selection by Filter XSLT
Text Symbol: LTN = List of Technical names
Text Symbol: RTF = Format


INCLUDES used within this REPORT RS_TEMPLATE_MASS_ALTER

INCLUDE ICONS.


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:

RSSB_AUTHORITY_ADMWB_OBJECT CALL FUNCTION 'RSSB_AUTHORITY_ADMWB_OBJECT' EXPORTING i_admwbobj = l_admwbobj i_actvt = l_actvt EXCEPTIONS user_not_authorized = 1 OTHERS = 2.

RSWAD_ALTER_TEMPLATE_SAMPLE CALL FUNCTION p_fbnm " 'RSWAD_ALTER_TEMPLATE_SAMPLE' EXPORTING p_1 = l_s1 p_2 = l_s2 p_3 = l_s3 p_4 = l_s4 CHANGING c_s_templateinfo = l_s_templateinfo c_templatestring = l_testrun EXCEPTIONS OTHERS = 2 .

RS_HELP_HANDLING CALL FUNCTION 'RS_HELP_HANDLING' EXPORTING dynpfield = field dynpname = sy-dynnr object = 'FB' progname = 'RS_TEMPLATE_MASS_ALTER' suppress_selection_screen = 'X'.

POPUP_TO_CONFIRM_LOSS_OF_DATA CALL FUNCTION 'POPUP_TO_CONFIRM_LOSS_OF_DATA' "#EC * EXPORTING textline1 = 'This report will destroy BW Templates if improperly used!'(002) textline2 = 'OK to continue? '(003) titel = l_title2 * START_COLUMN = 25 * START_ROW = 6 defaultoption = 'N' IMPORTING answer = l_answer. "#EC *

GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING filename = i_file filetype = 'ASC' * HAS_FIELD_SEPARATOR = ' ' * HEADER_LENGTH = 0 read_by_line = 'X' * DAT_MODE = ' ' * CODEPAGE = ' ' * IGNORE_CERR = ABAP_TRUE * REPLACEMENT = '#' * CHECK_BOM = ' ' * IMPORTING * FILELENGTH = * HEADER = TABLES data_tab = l_t_tmpllist EXCEPTIONS file_open_error = 1 file_read_error = 2 no_batch = 3 gui_refuse_filetransfer = 4 invalid_type = 5 no_authority = 6 unknown_error = 7 bad_data_format = 8 header_not_allowed = 9 separator_not_allowed = 10 header_too_long = 11 unknown_dp_error = 12 access_denied = 13 dp_out_of_memory = 14 disk_full = 15 dp_timeout = 16 OTHERS = 17 .

GUI_DOWNLOAD CALL FUNCTION 'GUI_DOWNLOAD' EXPORTING * BIN_FILESIZE = filename = l_filename * FILETYPE = 'ASC' * APPEND = ' ' * WRITE_FIELD_SEPARATOR = ' ' * HEADER = '00' * TRUNC_TRAILING_BLANKS = ' ' write_lf = 'X' * COL_SELECT = ' ' * COL_SELECT_MASK = ' ' * DAT_MODE = ' ' * CONFIRM_OVERWRITE = ' ' * NO_AUTH_CHECK = ' ' * CODEPAGE = ' ' * IGNORE_CERR = ABAP_TRUE * REPLACEMENT = '#' * WRITE_BOM = ' ' * TRUNC_TRAILING_BLANKS_EOL = 'X' * IMPORTING * FILELENGTH = TABLES data_tab = l_t_out EXCEPTIONS file_write_error = 1 no_batch = 2 gui_refuse_filetransfer = 3 invalid_type = 4 no_authority = 5 unknown_error = 6 header_not_allowed = 7 separator_not_allowed = 8 filesize_not_allowed = 9 header_too_long = 10 dp_error_create = 11 dp_error_send = 12 dp_error_write = 13 unknown_dp_error = 14 access_denied = 15 dp_out_of_memory = 16 disk_full = 17 dp_timeout = 18 file_not_found = 19 dataprovider_exception = 20 control_flush_error = 21 OTHERS = 22 .

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING * I_PROGRAM_NAME = * I_INTERNAL_TABNAME = i_structure_name = 'RSZW_S_TMPL_INFO_PROCESSING' * I_CLIENT_NEVER_DISPLAY = 'X' * I_INCLNAME = * I_BYPASSING_BUFFER = * I_BUFFER_ACTIVE = CHANGING ct_fieldcat = l_t_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 * OTHERS = 3 .

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_interface_check = 'X' * I_BYPASSING_BUFFER = ' ' * I_BUFFER_ACTIVE = ' ' i_callback_program = l_prog i_callback_pf_status_set = 'ALV_SEL_STATUS' i_callback_user_command = 'ALV_SEL_CALLBACK' * I_CALLBACK_TOP_OF_PAGE = ' ' * I_CALLBACK_HTML_TOP_OF_PAGE = ' ' * I_CALLBACK_HTML_END_OF_LIST = ' ' i_structure_name = 'rszw_s_tmpl_info_processing' * I_BACKGROUND_ID = ' ' i_grid_title = 'Select your templates'(062) * I_GRID_SETTINGS = is_layout = l_s_layout it_fieldcat = l_t_fieldcat * IT_EXCLUDING = * IT_SPECIAL_GROUPS = * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = * I_DEFAULT = 'X' * I_SAVE = ' ' * IS_VARIANT = * IT_EVENTS = * IT_EVENT_EXIT = * IS_PRINT = * IS_REPREP_ID = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * I_HTML_HEIGHT_TOP = 0 * I_HTML_HEIGHT_END = 0 * IT_ALV_GRAPHICS = * IT_HYPERLINK = * IT_ADD_FIELDCAT = * IT_EXCEPT_QINFO = IMPORTING e_exit_caused_by_caller = l_c1 es_exit_caused_by_user = l_c2 TABLES t_outtab = g_t_templateinfos EXCEPTIONS program_error = 1 * OTHERS = 2 .

POPUP_TO_CONFIRM_LOSS_OF_DATA CALL FUNCTION 'POPUP_TO_CONFIRM_LOSS_OF_DATA' "#EC * EXPORTING textline1 = 'This report will destroy BW Templates if improperly used!'(002) textline2 = 'OK to continue? '(003) titel = l_title2 * START_COLUMN = 25 * START_ROW = 6 defaultoption = 'N' IMPORTING answer = l_answer. "#EC *

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_interface_check = 'X' * I_BYPASSING_BUFFER = ' ' * I_BUFFER_ACTIVE = ' ' i_callback_program = l_prog i_callback_pf_status_set = 'ALV_SEL_STATUS' i_callback_user_command = 'ALV_SEL_CALLBACK' * I_CALLBACK_TOP_OF_PAGE = ' ' * I_CALLBACK_HTML_TOP_OF_PAGE = ' ' * I_CALLBACK_HTML_END_OF_LIST = ' ' i_structure_name = 'rszw_s_tmpl_info_processing' * I_BACKGROUND_ID = ' ' i_grid_title = l_title * I_GRID_SETTINGS = is_layout = l_s_layout it_fieldcat = l_t_fieldcat * IT_EXCLUDING = * IT_SPECIAL_GROUPS = * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = * I_DEFAULT = 'X' * I_SAVE = ' ' * IS_VARIANT = * IT_EVENTS = * IT_EVENT_EXIT = * IS_PRINT = * IS_REPREP_ID = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * I_HTML_HEIGHT_TOP = 0 * I_HTML_HEIGHT_END = 0 * IT_ALV_GRAPHICS = * IT_HYPERLINK = * IT_ADD_FIELDCAT = * IT_EXCEPT_QINFO = IMPORTING e_exit_caused_by_caller = l_c1 es_exit_caused_by_user = l_c2 TABLES t_outtab = g_t_templateinfos EXCEPTIONS program_error = 1 * OTHERS = 2 .

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING * I_PROGRAM_NAME = * I_INTERNAL_TABNAME = i_structure_name = 'RSZW_S_TMPL_INFO_PROCESSING' * I_CLIENT_NEVER_DISPLAY = 'X' * I_INCLNAME = * I_BYPASSING_BUFFER = * I_BUFFER_ACTIVE = CHANGING ct_fieldcat = l_t_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3 .

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_interface_check = 'X' * I_BYPASSING_BUFFER = ' ' * I_BUFFER_ACTIVE = ' ' i_callback_program = l_prog * i_callback_pf_status_set = 'ALV_SEL_STATUS' i_callback_user_command = 'ALV_SEL_CALLBACK' * I_CALLBACK_TOP_OF_PAGE = ' ' * I_CALLBACK_HTML_TOP_OF_PAGE = ' ' * I_CALLBACK_HTML_END_OF_LIST = ' ' i_structure_name = 'rszw_s_tmpl_info_processing' * I_BACKGROUND_ID = ' ' i_grid_title = l_title * I_GRID_SETTINGS = is_layout = l_s_layout it_fieldcat = l_t_fieldcat * IT_EXCLUDING = * IT_SPECIAL_GROUPS = * IT_SORT = * IT_FILTER = * IS_SEL_HIDE = * I_DEFAULT = 'X' * I_SAVE = ' ' * IS_VARIANT = * IT_EVENTS = * IT_EVENT_EXIT = * IS_PRINT = * IS_REPREP_ID = * I_SCREEN_START_COLUMN = 0 * I_SCREEN_START_LINE = 0 * I_SCREEN_END_COLUMN = 0 * I_SCREEN_END_LINE = 0 * I_HTML_HEIGHT_TOP = 0 * I_HTML_HEIGHT_END = 0 * IT_ALV_GRAPHICS = * IT_HYPERLINK = * IT_ADD_FIELDCAT = * IT_EXCEPT_QINFO = IMPORTING e_exit_caused_by_caller = l_c1 es_exit_caused_by_user = l_c2 TABLES t_outtab = g_t_templateinfos EXCEPTIONS program_error = 1 * OTHERS = 2 .

RSWEB_BCT3X_REGENERATE_PATTERN CALL FUNCTION 'RSWEB_BCT3X_REGENERATE_PATTERN' CHANGING c_s_templateinfo = c_s_templateinfo c_templatesource = c_src EXCEPTIONS no_pattern = 1 xslt_failure = 2 xslt_missing = 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 RS_TEMPLATE_MASS_ALTER or its description.