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: 

Display ALV GRID Using Dynamic Internal Table

Former Member
0 Kudos

Hi all,

I try to display ALV Grid using Dynamic Internal Table, but when i activate my program, i get an error message "DYN_TABLE" is not type-compatible with formal parameter "IT_OUTTAB". ( DYN_TABLE is my Dynamic Itab).

Anybody can help me how to passing Dynamic Itab into ALV Grid ?? Of ALV Grid only accept static Itab ??

Thanks,

5 REPLIES 5

former_member188685
Active Contributor
0 Kudos

Hi,

try giving like this way instead of IT_OUTTAB

pass it like this <b> IT_OUTTAB[].</b>

Regards

vijay

0 Kudos

hi,

WELCOME TO SDN

instead of passing IT_OUTTAB pass it as <b>IT_OUTTAB[]</b>

Regards,

Santosh

0 Kudos

Hi Vijay,

It's doesn't work, and make new error "Formal parameter "IT_OUTTAB[]" does not exist. However, the parameter "IT_OUTTAB" has a similar name."

Because the method is:

CALL METHOD <ref. var. to CL_GUI_ALV_GRID>->set_table_for_first_display

EXPORTING

I_BUFFER_ACTIVE = <any type (ANY)>

I_STRUCTURE_NAME = <string of type DD02L-TABNAME>

IS_VARIANT = <structure of type DISVARIANT>

I_SAVE = <var. of type CHAR01>

I_DEFAULT = <var. of type CHAR01>

IS_LAYOUT = <structure of type LVC_S_LAYO>

IS_PRINT = <structure of type LVC_S_PRNT>

IT_SPECIAL_GROUPS = <internal table of type LVC_T_SGRP>

IT_TOOLBAR_EXCLUDING = <internal table of type UI_FUNCTIONS>

IT_HYPERLINK = <internal table of type LVC_T_HYPE>

IT_ALV_GRAPHICS = <internal table of type DTC_T_TC>

CHANGING

IT_OUTTAB = <internal table>

IT_FIELDCATALOG = <internal table of type LVC_T_FCAT>

IT_SORT = <internal table of type LVC_T_SORT>

IT_FILTER = <internal table of type LVC_T_FILT>

Thanks,

0 Kudos

Hi Jatra,

i'm sure it will work. but i want to see your code once.

there is some problem with your code,..

Regards

vijay

Former Member
0 Kudos

Jatra,

That should work.

Take a look at my blog which explain in details about the same. I hope you have declared IT_OUTTAB as TYPE REF to DATA.

/people/ravikumar.allampallam/blog/2005/05/31/expand-the-list-of-columns-in-a-report-dynamically

regards,

Ravi

Note : Please close the thread if this solves the issue.