SAP Reports / Programs

RTXWVGTEMPLATE SAP ABAP Report - Template for view generation







RTXWVGTEMPLATE 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 RTXWVGTEMPLATE 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 RTXWVGTEMPLATE. "Basic submit
SUBMIT RTXWVGTEMPLATE AND RETURN. "Return to original report after report execution complete
SUBMIT RTXWVGTEMPLATE 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: S003 = D .
Selection Text: S002 = D .
Selection Text: S001 = D .
Selection Text: P_XTEXT = D .
Selection Text: P_XPRINT =
Selection Text: P_XFILE = D .
Selection Text: P_XEXPRT =
Selection Text: P_XDIRS = D .
Selection Text: P_OVERWR =
Selection Text: P_MAXNR = D .
Selection Text: P_HEADER =
Selection Text: P_FRMT2 =
Selection Text: P_FRMT1 =
Selection Text: P_FILE = D .
Selection Text: P_DIRS = D .
Title: Template for view generation
Text Symbol: S33 = Layout selection for Display/print
Text Symbol: S32 = Layout Name
Text Symbol: S31 = Options for exporting to file
Text Symbol: S04 = Additional Source extracts
Text Symbol: S03 = Output options
Text Symbol: S02 = Data view selection criteria
Text Symbol: S01 = Source extract
Text Symbol: R52 = Dir.set
Text Symbol: R51 = Filename
Text Symbol: R43 = SAP Audit Format
Text Symbol: R42 = Fixed-length columns
Text Symbol: R41 = Semicolon separated columns
Text Symbol: R32 = Append to file
Text Symbol: R31 = Overwrite file
Text Symbol: R22 = Use specified access sequence
Text Symbol: R21 = Optimize access sequence
Text Symbol: R12 = Export to file
Text Symbol: R11 = Display/print
Text Symbol: R10 = Totals Only
Text Symbol: Q01 = Field
Text Symbol: P31 = Insert header line
Text Symbol: 001 = Enter query conditions





INCLUDES used within this REPORT RTXWVGTEMPLATE

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:

TXW_DATA_FILE_VALUE_HELP CALL FUNCTION 'TXW_DATA_FILE_VALUE_HELP' IMPORTING data_file = p_file EXCEPTIONS canceled = 1 OTHERS = 2.

TXW_VIEW_FILE_VALUE_HELP CALL FUNCTION 'TXW_VIEW_FILE_VALUE_HELP' EXPORTING tax_view = p_txview IMPORTING view_file = p_xfile EXCEPTIONS cancelled = 1 OTHERS = 2.

TXW_DATA_FILE_VALUE_HELP CALL FUNCTION 'TXW_DATA_FILE_VALUE_HELP' "&GEN11& IMPORTING "&GEN11& data_file = p_file01 "&GEN11& EXCEPTIONS "&GEN11& canceled = 1 "&GEN11& OTHERS = 2. "&GEN11&

REUSE_ALV_VARIANT_F4 call function 'REUSE_ALV_VARIANT_F4' exporting is_variant = ls_variant i_save = 'A' importing es_variant = ls_variant.

REUSE_ALV_VARIANT_EXISTENCE call function 'REUSE_ALV_VARIANT_EXISTENCE' exporting i_save = 'A' changing cs_variant = ls_variant exceptions wrong_input = 1 not_found = 2 others = 3.

TXW_VIEW_CHECK_INPUT call function 'TXW_VIEW_CHECK_INPUT' exporting id_tax_view = ls_params-tax_view is_params = ls_params exceptions no_authority = 1 invalid_view = 2 invalid_input = 3 others = 4.

RSTI_REPORT_FIELDS_FIND call function 'RSTI_REPORT_FIELDS_FIND' exporting e_repid = sy-repid * E_TYPE = 'S' * I_VARIANT = * IMPORTING * E_VARIANT = tables it_sel = lt_sel_tab it_fields = lt_field_tab.

GET_JOB_RUNTIME_INFO CALL FUNCTION 'GET_JOB_RUNTIME_INFO' "H1700639 IMPORTING "H1700639 stepcount = gd_tab_num "H1700639 EXCEPTIONS "H1700639 OTHERS = 4. "H1700639

TXW_VIEW_DATA_EXECUTE call function 'TXW_VIEW_DATA_EXECUTE' exporting it_sourcefiles = lt_source id_tax_view = ls_params-tax_view is_params = ls_params it_trange = lt_trange is_variant = ls_variant id_tot_only = ld_tot_only prog = prog id_flag_complete = p_flag_complete CHANGING cd_viewid = ld_viewid EXCEPTIONS NO_AUTHORITY = 1 INVALID_VIEW = 2 SEGMENT_NOT_FOUND = 3 OTHERS = 4.

TXW_DATA_FILE_ENTER_MULTIPLE CALL FUNCTION 'TXW_DATA_FILE_ENTER_MULTIPLE' TABLES t_xfiles = lt_xfiles EXCEPTIONS canceled = 1.

G_SET_INSERT CALL FUNCTION 'G_SET_INSERT' EXPORTING NO_TITLES = 'X' SETNAME = ls_V4-SETID TABLE = SET_TABLE IMPORTING HEADER = SET_HEADER * INDEX = ls_V4-SET_INDEX EXCEPTIONS SET_NOT_FOUND = 1.

G_SET_INSERT CALL FUNCTION 'G_SET_INSERT' EXPORTING NO_TITLES = 'X' SETNAME = ls_V4-SETID IMPORTING HEADER = SET_HEADER INDEX = SET_INDEX EXCEPTIONS SET_NOT_FOUND = 1.

G_INTERVAL_GET_NEXT CALL FUNCTION 'G_INTERVAL_GET_NEXT' EXPORTING CONTROL_BLOCK = '2' INDEX = SET_INDEX IMPORTING ENTRY = ENTRY EXCEPTIONS END_OF_INTERVALS = 01 INVALID_INDEX = 02.



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