cancel
Showing results for 
Search instead for 
Did you mean: 

ALV Grid Display for Field Symbols(Dynamic Internal Table )

Former Member
0 Kudos

Hi ,

I need to display the out put in ALV Grid format, am able to Display the Dynamic Internal Table which is stored in Field Symbol as ALV List.

But when am trying to Display using ALV Grid am getting the error as Field Symbol is not yet assinged.

For ALV List Display ( which is working fine )

cl_salv_table=>factory(

EXPORTING

list_display = abap_false

IMPORTING

r_salv_table = lo_alv

CHANGING

t_table = <new_tab> ).

CATCH cx_salv_msg .

ENDTRY.

lo_columns = lo_alv->get_columns( ).

lo_aggregations = lo_alv->get_aggregations( ).

rt_fcat =

cl_salv_controller_metadata=>get_lvc_fieldcatalog(

r_columns = lo_columns

r_aggregations = lo_aggregations ).

lo_alv->display( ).

BUT for ALV Grid Display am facing the problem

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

it_fieldcat = ft_fldcat

TABLES

t_outtab = <new>

EXCEPTIONS

program_error = 1

OTHERS = 2.

IF sy-subrc <> 0.

ENDIF.

here <NEW> is Dynamic internal table which is having proper data, ft_fldcat is field catalog

but when am passing this Field symbol data it is showing the error is not yet assigned.

pls let me know if any thing is needed or any additional functionality is needs to add.

Thanks

Bhaskar

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

Any Inputs on the above issues.

Bhaskar