‎2006 Oct 04 11:28 AM
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
‎2006 Oct 04 11:30 AM
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
‎2006 Oct 04 11:30 AM
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
‎2006 Oct 04 11:34 AM
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
‎2006 Oct 04 11:34 AM
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
‎2006 Oct 04 11:39 AM
Welcome to SDN..
you can use refresh_table_display method of the ALV grid object...
hope this helps you
‎2006 Oct 04 11:40 AM
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
‎2006 Oct 04 11:42 AM