Application Development and Automation 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: 
Read only

alv grid report

Former Member
0 Likes
346

hi,

i want create alv grid report in dynamically.

now 5 field in my table the smae fields in my report i have add one more filed in my table the report also diplay in that field in dynamically.

i want sample coding . plz help me.

regards,

jayachandran

hi,

i want create alv grid report in dynamically.

now 5 field in my table the smae fields in my report i have add one more filed in my table the report also diplay in that field in dynamically.

i want sample coding . plz help me.

regards,

jayachandran

1 REPLY 1
Read only

Former Member
0 Likes
330

Hi,

Declare this in TOP:

DATA:v_alvgrid TYPE REF TO cl_gui_alv_grid,

v_alvgrid1 TYPE REF TO cl_gui_alv_grid.

DATA v_custom_control_name TYPE scrfname VALUE 'CONTAINER_100'.

DATA: v_container_100 TYPE REF TO cl_gui_custom_container,

v_container_200 TYPE REF TO cl_gui_custom_container.

DATA it_fieldcat TYPE lvc_t_fcat.

DATA : wa_layout TYPE lvc_s_layo.

CONSTANTS: c_container_name_100(13) TYPE c VALUE 'CONTAINER_100',

c_container_name_200(13) TYPE c VALUE 'CONTAINER_200'.

In PAI

CALL METHOD v_alvgrid->check_changed_data.

<write code here>

CALL METHOD v_alvgrid->refresh_table_display.

HOPE THIS HELPS