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

Update dynpro values

Former Member
0 Likes
1,516

hi all,

Anybody knows how can I Update dynpro values vía ALV?

THanks.

regards.

marisol.

9 REPLIES 9
Read only

Former Member
0 Likes
1,437

what values do u want to update??

Read only

0 Likes
1,437

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.

Read only

0 Likes
1,437

do you want to capture the ALV totals of a column?

Read only

0 Likes
1,437

exactly, i want to set the total of tow columns into fields definied in my dynpro.

Read only

0 Likes
1,437

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®

Read only

0 Likes
1,437

If you want to refresh table display, call method refresh_table_display of grid.

call method grid->refresh_table_display

Read only

Former Member
0 Likes
1,437

In the PBO of the Dynpro calculate the value that you want with the table of your ALV.

Read only

0 Likes
1,437

yes, but the the total amount have to be updated on-line.

Read only

0 Likes
1,437

You can fill the value of a field but you won´t see the changes if the Dynpro don´t reload.