Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Function modules for Transaction SE16 for any table whole data

Former Member
0 Likes
1,646

Hi Experts,

i need to pass report or function module input as table name:LFA1.

I Need to get all the data with fileds for those table.

say : i/p

paramters: s_tabname like (tabname).

here s_tabname ='lfa1'.

output :all the fileds details with whole data like se16 or se11 transaction for table.

is there any function module.

Thanks

nag

3 REPLIES 3
Read only

Former Member
0 Likes
707

Hello,

Check the FM RFC_GET_TABLE_ENTRIES

Vikranth

Read only

former_member156446
Active Contributor
0 Likes
707

You can also use : RFC_READ_TABLE or GET_TABLE_RFC

Read only

Clemenss
Active Contributor
0 Likes
707

Hi,

you can create this easily using runtime creation of objects and SALV for display.

Although I would never do something like this...

REPORT  zzzz.
DATA:
  gr_itab  TYPE REF TO data,
  gr_salv  TYPE REF TO cl_salv_table.

  PARAMETERS:
    p_table TYPE tabname.
  FIELD-SYMBOLS:
    <tab> TYPE table.

START-OF-SELECTION.
  create data gr_itab type table of (p_table).
  ASSIGN gr_itab->* TO <tab>.
  select *
    from (p_table)
    into table <tab>.
  TRY.
      cl_salv_table=>factory(
        IMPORTING
          r_salv_table = gr_salv
        CHANGING
          t_table      = <tab> ).
    CATCH cx_salv_msg.                                  "#EC NO_HANDLER
  ENDTRY.

  DATA:
    lr_functions TYPE REF TO cl_salv_functions_list.

  lr_functions = gr_salv->get_functions( ).
  lr_functions->set_all( abap_true ).

  gr_salv->display( ).

You won't find anything simpler.

Regards,

Clemens