2008 Nov 10 9:12 PM
hi all,
Anybody knows how can I Update dynpro values vía ALV?
THanks.
regards.
marisol.
2008 Nov 10 10:28 PM
2008 Nov 10 11:29 PM
update a field on a dynpro vía values captured into ALV, the total amount of the column must be in a field on dynpro.
2008 Nov 11 12:00 AM
2008 Nov 11 6:53 PM
exactly, i want to set the total of tow columns into fields definied in my dynpro.
2008 Nov 11 7:56 PM
Try this way
DATA: lo_grid TYPE REF TO cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = lo_grid.
* get the subtotal
DATA: it_01 TYPE REF TO data.
CALL METHOD lo_grid->get_subtotals
IMPORTING
ep_collect01 = it_01.
FIELD-SYMBOLS: <ft_tab> TYPE ANY TABLE,
<fs_tab> TYPE ANY,
<ff_field> TYPE ANY.
ASSIGN it_01->* TO <ft_tab>.
" Here you have total value then move this you dynpro field
a®
2008 Nov 11 8:33 PM
If you want to refresh table display, call method refresh_table_display of grid.
call method grid->refresh_table_display
2008 Nov 10 11:33 PM
In the PBO of the Dynpro calculate the value that you want with the table of your ALV.
2008 Nov 10 11:40 PM
2008 Nov 11 12:01 AM
You can fill the value of a field but you won´t see the changes if the Dynpro don´t reload.