Function Module that provides details of a table

PARAMETERS p_table TYPE dfiestabname 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_layoutcolwidth_optimize ‘X’.

CALL FUNCTION ‘REUSE_ALV_GRID_DISPLAY’
EXPORTING
i_callback_program syrepid
i_structure_name   ‘DFIES’
is_layout          ls_layout
TABLES
t_outtab           lt.


 


 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s