SAP Reports / Programs | Cross-Application Components | General Application Functions | Data Retention Tool(CA-GTF-DRT) SAP CA

RTXWVWL2 SAP ABAP Report - documentation and ABAP source code







RTXWVWL2 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 RTXWVWL2 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

FTWN - Display view query log


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


Text pool values


Text Symbol: H16 = Status
Text Symbol: H20 = View file general information
Text Symbol: H21 = Client
Text Symbol: H22 = Date and Time
Text Symbol: H23 = Requestor
Text Symbol: H24 = View template
Text Symbol: H25 = Total size (MB)
Text Symbol: H26 = Total records
Text Symbol: H27 = Description
Text Symbol: H28 = Archive export user/date/time
Text Symbol: H29 = Archive import user/date/time
Text Symbol: H30 = File size (MB)
Text Symbol: Q01 = Export to archive
Text Symbol: Q02 = Import from archive
Text Symbol: Q03 = Export is in progress
Text Symbol: Q04 = Import is in progress
Text Symbol: Q11 = Status: Exported without errors
Text Symbol: Q12 = Status: Exported with errors
Text Symbol: Q21 = Status: Imported without errors
Text Symbol: Q22 = Status: Imported with errors
Text Symbol: V00 = File deleted
Text Symbol: V01 = File archived
Text Symbol: V02 = File available
Text Symbol: V03 = Archiving or retrieval from archive in progress
Text Symbol: X01 = Show deleted files
Text Symbol: X02 = Hide deleted files
Text Symbol: H15 = ALE stat
Text Symbol: 001 = File deleted
Text Symbol: 002 = This file has been deleted or overwritten
Text Symbol: 003 = Automatically created by SAP
Text Symbol: 010 = View query log
Text Symbol: 020 = Display view file
Text Symbol: 030 = ArchiveLink messages
Text Symbol: 040 = Data
Text Symbol: 041 = Associated Data
Text Symbol: 111 = File created
Text Symbol: 112 = File deleted
Text Symbol: A00 = Delete view query file





Text Symbol: A01 = Do you really want to delete?
Text Symbol: B01 = Do you really want to archive
Text Symbol: B02 = the selected view query file?
Text Symbol: B10 = File is already retrieved
Text Symbol: B11 = and is available.
Text Symbol: B12 = Retrieve file again?
Text Symbol: C01 = File has already been archived.
Text Symbol: C02 = Archive again?
Text Symbol: D01 = Do you really want to retrieve the
Text Symbol: D02 = view file from the archive?
Text Symbol: E01 = Errors found when deleting
Text Symbol: E02 = continue anyway?
Text Symbol: H11 = Filename
Text Symbol: H12 = Offset (bytes)
Text Symbol: H14 = ALI stat


INCLUDES used within this REPORT RTXWVWL2

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_UUID_CONVERT_CHECK CALL FUNCTION 'TXW_UUID_CONVERT_CHECK'.

TXW_DATA_VIEW_AUTHORITY_CHECK CALL FUNCTION 'TXW_DATA_VIEW_AUTHORITY_CHECK' EXPORTING activity = dart1_act-display data_view = ld_tax_view. "H1490831

TXW_FILE_NAME_GET CALL FUNCTION 'TXW_FILE_NAME_GET' EXPORTING voldir_set = tmp_vwlog2-vol_set vol_id = tmp_vwlog2-vol_id log_filename = tmp_vwlog2-l_file IMPORTING phy_filename = phys_file.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = msgarbgb msgty = msgtype txtnr = '082'.

MESSAGES_STOP CALL FUNCTION 'MESSAGES_STOP' EXCEPTIONS OTHERS = 0.

MESSAGES_SHOW CALL FUNCTION 'MESSAGES_SHOW' EXPORTING send_if_one = 'X' show_linno = ' ' object = text-030.

TXW_DIRECTORY_SET_GET CALL FUNCTION 'TXW_DIRECTORY_SET_GET' CHANGING directory_set = volset EXCEPTIONS canceled = 1.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = msgarbgb msgty = msgtype msgv1 = -l_file txtnr = '231'.

TXW_DATA_VIEW_AUTHORITY_CHECK





CALL FUNCTION 'TXW_DATA_VIEW_AUTHORITY_CHECK' EXPORTING activity = dart1_act-delete * data_view = sel_txw_vwlog2-tax_view.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING defaultoption = 'N' textline1 = text-a01 textline2 = -l_file titel = text-a00 IMPORTING answer = answer.

TXW_DIRECTORY_SET_GET CALL FUNCTION 'TXW_DIRECTORY_SET_GET' CHANGING directory_set = volset EXCEPTIONS canceled = 1.

TXW_FILE_NAME_GET CALL FUNCTION 'TXW_FILE_NAME_GET' EXPORTING voldir_set = volset vol_id = sel_txw_vwlog2-vol_id log_filename = sel_txw_vwlog2-l_file IMPORTING phy_filename = phys_file.

POPUP_TO_CONFIRM_STEP CALL FUNCTION 'POPUP_TO_CONFIRM_STEP' EXPORTING defaultoption = 'J' textline1 = text-e01 textline2 = text-e02 titel = text-a00 IMPORTING answer = up_answer.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = msgarbgb msgty = msgtype msgv1 = phys_file txtnr = '232'.

MESSAGES_STOP CALL FUNCTION 'MESSAGES_STOP' EXCEPTIONS OTHERS = 0.

MESSAGES_SHOW CALL FUNCTION 'MESSAGES_SHOW' EXPORTING send_if_one = 'X' show_linno = ' ' object = text-030.

TXW_DATA_VIEW_AUTHORITY_CHECK CALL FUNCTION 'TXW_DATA_VIEW_AUTHORITY_CHECK' EXPORTING activity = dart1_act-display data_view = ld_tax_view. "H1490831

TXW_DIRECTORY_SET_GET CALL FUNCTION 'TXW_DIRECTORY_SET_GET' CHANGING directory_set = volset EXCEPTIONS canceled = 1.

POPUP_GET_VALUES CALL FUNCTION 'POPUP_GET_VALUES' EXPORTING popup_title = text-020 IMPORTING returncode = returncode TABLES fields = t_sval.

TXW_FILE_NAME_GET CALL FUNCTION 'TXW_FILE_NAME_GET' EXPORTING voldir_set = volset vol_id = nvol_id log_filename = l_file IMPORTING phy_filename = phys_file.

TXW_FILE_OPEN_FOR_READ CALL FUNCTION 'TXW_FILE_OPEN_FOR_READ' EXPORTING file_name = phys_file file_position = offset EXCEPTIONS OTHERS = 3.

TXW_DIRECTORY_SET_GET CALL FUNCTION 'TXW_DIRECTORY_SET_GET' CHANGING directory_set = l_volset EXCEPTIONS canceled = 1.

TXW_AL_EXPORT_PROCESS CALL FUNCTION 'TXW_AL_EXPORT_PROCESS' EXPORTING I_MODE = 'J' I_OBJ_TYPE = 'V' it_obj_uuid = lt_obj i_voldir = l_volset EXCEPTIONS WRONG_CALL = 1 CANCELED_BY_USER = 2 OTHERS = 3.

TXW_DIRECTORY_SET_GET CALL FUNCTION 'TXW_DIRECTORY_SET_GET' CHANGING directory_set = l_volset EXCEPTIONS canceled = 1.

TXW_AL_IMPORT_PROCESS CALL FUNCTION 'TXW_AL_IMPORT_PROCESS' EXPORTING I_MODE = 'J' I_OBJ_TYPE = 'V' it_obj_uuid = lt_obj i_voldir = l_volset EXCEPTIONS WRONG_CALL = 1 CANCELED_BY_USER = 2 OTHERS = 3.

TXW_VIEW_DATA_SHOW_FILE CALL FUNCTION 'TXW_VIEW_DATA_SHOW_FILE' EXPORTING i_vwlog_uuid = glo_file_uuid.

LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'TXW_VWLVF2' CHANGING ct_fieldcat = gt_elog_fieldcatalog.

TXW_DIRECTORY_SET_GET CALL FUNCTION 'TXW_DIRECTORY_SET_GET' CHANGING directory_set = ld_volset EXCEPTIONS canceled = 1.




TXW_FILE_NAME_GET CALL FUNCTION 'TXW_FILE_NAME_GET' EXPORTING voldir_set = ld_volset vol_id = '' log_filename = us_vwlogf2-l_file IMPORTING phy_filename = ld_phys_file.

TXW_FILE_COPY_NO_CONVERSION CALL FUNCTION 'TXW_FILE_COPY_NO_CONVERSION' EXPORTING i_source_filename = ld_phys_file i_tax_view = us_vwlogf2-tax_view * I_BUKRS = * EXCEPTIONS * FILE_READ_ERROR = 1 * FILE_WRITE_ERROR = 2 * DB_ERROR = 3 * NO_AUTHORITY = 4 * OTHERS = 5 .

RS_VARIANT_EXISTS CALL FUNCTION 'RS_VARIANT_EXISTS' EXPORTING report = lc_btc_prog variant = ld_variant IMPORTING r_c = ld_subrc.

RS_CREATE_VARIANT CALL FUNCTION 'RS_CREATE_VARIANT' EXPORTING curr_report = lc_btc_prog curr_variant = ld_variant vari_desc = ls_variant TABLES vari_contents = lt_param vari_text = lt_text.

JOB_OPEN CALL FUNCTION 'JOB_OPEN' EXPORTING jobname = ld_jobname IMPORTING jobcount = ld_jobcount.

JOB_SUBMIT CALL FUNCTION 'JOB_SUBMIT' EXPORTING authcknam = sy-uname jobcount = ld_jobcount jobname = ld_jobname report = lc_btc_prog variant = ld_variant.

JOB_CLOSE CALL FUNCTION 'JOB_CLOSE' EXPORTING jobcount = ld_jobcount jobname = ld_jobname sdlstrtdt = sy-datum sdlstrttm = ld_time direct_start = 'X' IMPORTING job_was_released = ld_job_released.



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