Friday, 24 July 2015

Function Module that provides details of a table

-----------------------------------------------------------------------------------------------------------------------------------
PARAMETERS p_table TYPE dfies-tabname DEFAULT 'VBAK'.

DATA lt TYPE TABLE OF dfies,
            ls_layout TYPE slis_layout_alv.


* FM that provides details of a Table
CALL FUNCTION 'DDIF_NAMETAB_GET'
  EXPORTING
    tabname   p_table
    status    'A'
  TABLES
    dfies_tab lt.


ls_layout-colwidth_optimize 'X'.


CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
  EXPORTING
    i_callback_program sy-repid
    i_structure_name   'DFIES'
    is_layout          ls_layout
  TABLES
    t_outtab           lt.

----------------------------------------------------------------------------------------------------------------------------------





-----------------------------------------------------------------------------------------------------------------------------------

No comments:

Comments system

Disqus Shortname