Application Development 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: 

Problem disalying alv using dynamic internal table

Former Member
0 Kudos
109

Hi All,

I have 4 radiobutton for each radiobutton there is one internaltable to be displayed in alv.

My requirement is intead of calling the function module reuse_alv_grid_display everytime for

each of the internal table I want to create a dynamic internal tble for the function module.

My question is how to create a dynamic internal table which will hold the fields & data of

different interna table when diffrent radiobuttons are checked.

Areciate your time to help.

Thank you very much.

5 REPLIES 5

Former Member
0 Kudos
89

Hi,

Using Field Symbols ist possible.

EXAMPLE:


  field-symbols: <dyn_table> type standard table, 
               <dyn_wa>, 
               <dyn_field>. 

Methods:
cl_alv_table_create=>create_dynamic_table 

Hope this will resolve the issue.

Regards,

Gurpreet

Former Member
0 Kudos
89

Hi Santosh,

Take that FM reuse_alv_grid_display into one perform and call every time that perform for each radio button and take bewlo table parameteras for that perfrom

1) your output table for that radio button

2) field catalog for that radio button

Regards!

0 Kudos
89

Hi follow following logic:

field-symbols: <i_table> type standard table.

when rb1 is checked.

assign itab1 to <i_table>.

perform alv_disp using <i_table>

when rb2 is checked.

assign itab2 to <i_table>.

perform alv_disp using <i_table>

when rb3 is checked.

assign itab3 to <i_table>.

perform alv_disp using <i_table>

when rb4 is checked.

assign itab4 to <i_table>.

perform alv_disp using <i_table>

<<<<<<<<<<form alv_disp

form alv_disp using p_i_table type standard table.

perform create fieldcatelog changing i_fc

call the fm and pass the table p_i_table and i_fc

<<<<<<<<<< form create fieldcaelog

here create field catelog ..either by fm reuse_alv_fieldcatelog_merge ...in this just pass the structure name based on the radiobutton

hope its useful

I355602
Product and Topic Expert
Product and Topic Expert
0 Kudos
89

This message was moderated.

Former Member
0 Kudos
89

q