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

refresh screenn field

Former Member
0 Likes
754

Hello,

I have a screen containing some fields and an alv grid control.

In my method data_changed of the alv grid control I change the value of one field of the screen, but it doesn't change automatically.

How to refresh the screen?

Thanks in advance.

Alberto

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
718

Hi Alberto,

If the field is not an ALV field but a Screen field, then you need to use FM `DYNP_VALUES_READ`.

Best regards,

Prashant

Pls. mark points for helpful answers

6 REPLIES 6
Read only

Former Member
0 Likes
719

Hi Alberto,

If the field is not an ALV field but a Screen field, then you need to use FM `DYNP_VALUES_READ`.

Best regards,

Prashant

Pls. mark points for helpful answers

Read only

anversha_s
Active Contributor
0 Likes
718

hi,

use this.

DATA: BEGIN OF dynprofelder OCCURS 10.

INCLUDE STRUCTURE dynpread.

DATA: END OF dynprofelder.

REFRESH dynprofelder.

dynprofelder-fieldname = 'SCREEEN_FIELD_NAME'.

dynprofelder-fieldvalue = put_the_required_value.

APPEND dynprofelder.

call function 'DYNP_VALUES_UPDATE'

exporting

dyname = sy-cprog

dynumb = sy-dynnr

tables

dynpfields = dynprofelder

exceptions

invalid_abapworkarea = 1

invalid_dynprofield = 2

invalid_dynproname = 3

invalid_dynpronummer = 4

invalid_request = 5

no_fielddescription = 6

undefind_error = 7

others = 8.

rgds

anver

Read only

sathish_perumal
Active Participant
0 Likes
718

Hi,

Some action has to be triggered so that SAP executes PAI and PBO, so proably if you press enter it should goto PAI where it should update the field which should have the value entered by the user.

Regards,

Sathish

Read only

Former Member
0 Likes
718

Welcome to SDN..

you can use refresh_table_display method of the ALV grid object...

hope this helps you

Read only

Former Member
0 Likes
718

Hi,

you need to update the Screen field with the Function module

dynpro-fieldname = <>Field namw>.

dynpro-fieldvalue = <Field Value>.

APPEND dynpro.

call function 'DYNP_VALUES_UPDATE'

exporting

dyname = sy-cprog

dynumb = sy-dynnr

tables

dynpfields = dynpro.

Regards

Sudheer

Read only

Former Member
0 Likes
718

hi,

Check this link

REgards,

Sailaja.