Skip to Content
avatar image
Former Member

ALV Grid Display for Field Symbols(Dynamic Internal Table )

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Mar 17, 2011 at 08:54 AM

    Hi

    Any Inputs on the above issues.

    Bhaskar

    Add comment
    10|10000 characters needed characters exceeded