2006 Apr 13 9:14 AM
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,
2006 Apr 13 9:19 AM
Hi,
try giving like this way instead of IT_OUTTAB
pass it like this <b> IT_OUTTAB[].</b>
Regards
vijay
2006 Apr 13 9:24 AM
hi,
WELCOME TO SDN
instead of passing IT_OUTTAB pass it as <b>IT_OUTTAB[]</b>
Regards,
Santosh
2006 Apr 13 9:31 AM
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,
2006 Apr 13 9:35 AM
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
2006 Apr 13 9:45 AM
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.