2008 Jan 01 11:20 AM
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
2008 Jan 01 11:38 AM
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
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |