SAP Function Modules

TXW_VIEW_DATA_PERFORM SAP Function module - View data output (display or file)







TXW_VIEW_DATA_PERFORM is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name TXW_VIEW_DATA_PERFORM into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: TXW5
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM TXW_VIEW_DATA_PERFORM - TXW VIEW DATA PERFORM





CALL FUNCTION 'TXW_VIEW_DATA_PERFORM' "View data output (display or file)
  EXPORTING
    it_vw_meta =                " txw_vw_meta_t  internal: Table for View meta data
    it_desc =                   " txw_vdt_desc_t  Table of View Data Description
    is_params =                 " txw_vb_params  Parameters for DART Viewbuilder
    it_trange =                 " rsds_trange
    it_sourcefiles =            " txw_vdt_sourcefile_t  Table of Sourcefiles for a view
*   id_flag_complete =          " c
    it_meta_ori =               " txw_vw_meta_t  internal: Table for View meta data
  IMPORTING
    gd_total_count =            " i             Count of totalling records
  TABLES
    et_lines =                  "               generated Source code
  CHANGING
    cd_tabref =                 " data          Reference to table
    cd_viewid =                 " num4          key counter for DB table key
  EXCEPTIONS
    NO_RECORDS = 1              "               no records
    .  "  TXW_VIEW_DATA_PERFORM

ABAP code example for Function Module TXW_VIEW_DATA_PERFORM





The ABAP code below is a full code listing to execute function module TXW_VIEW_DATA_PERFORM including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
ld_gd_total_count  TYPE I ,
it_et_lines  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_et_lines  LIKE LINE OF it_et_lines .

DATA(ld_cd_tabref) = 'Check type of data required'.
DATA(ld_cd_viewid) = 'Check type of data required'.
DATA(ld_it_vw_meta) = 'Check type of data required'.
DATA(ld_it_desc) = 'Check type of data required'.
DATA(ld_is_params) = 'Check type of data required'.
DATA(ld_it_trange) = 'Check type of data required'.
DATA(ld_it_sourcefiles) = 'Check type of data required'.
DATA(ld_id_flag_complete) = 'Check type of data required'.
DATA(ld_it_meta_ori) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_lines to it_et_lines. . CALL FUNCTION 'TXW_VIEW_DATA_PERFORM' EXPORTING it_vw_meta = ld_it_vw_meta it_desc = ld_it_desc is_params = ld_is_params it_trange = ld_it_trange it_sourcefiles = ld_it_sourcefiles * id_flag_complete = ld_id_flag_complete it_meta_ori = ld_it_meta_ori IMPORTING gd_total_count = ld_gd_total_count TABLES et_lines = it_et_lines CHANGING cd_tabref = ld_cd_tabref cd_viewid = ld_cd_viewid EXCEPTIONS NO_RECORDS = 1 . " TXW_VIEW_DATA_PERFORM
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_cd_tabref  TYPE DATA ,
ld_gd_total_count  TYPE I ,
ld_it_vw_meta  TYPE TXW_VW_META_T ,
it_et_lines  TYPE STANDARD TABLE OF STRING ,
wa_et_lines  LIKE LINE OF it_et_lines,
ld_cd_viewid  TYPE NUM4 ,
ld_it_desc  TYPE TXW_VDT_DESC_T ,
ld_is_params  TYPE TXW_VB_PARAMS ,
ld_it_trange  TYPE RSDS_TRANGE ,
ld_it_sourcefiles  TYPE TXW_VDT_SOURCEFILE_T ,
ld_id_flag_complete  TYPE C ,
ld_it_meta_ori  TYPE TXW_VW_META_T .

ld_cd_tabref = 'Check type of data required'.
ld_it_vw_meta = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_et_lines to it_et_lines.
ld_cd_viewid = 'Check type of data required'.
ld_it_desc = 'Check type of data required'.
ld_is_params = 'Check type of data required'.
ld_it_trange = 'Check type of data required'.
ld_it_sourcefiles = 'Check type of data required'.
ld_id_flag_complete = 'Check type of data required'.
ld_it_meta_ori = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name TXW_VIEW_DATA_PERFORM or its description.