Skip to Content
author's profile photo Former Member
Former Member

refresh screenn field

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Best Answer
    Posted on Oct 04, 2006 at 10: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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 04, 2006 at 10: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 04, 2006 at 10:39 AM

    Welcome to SDN..

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

    hope this helps you

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 04, 2006 at 10:42 AM

    hi,

    Check this link

    refresh-in-alv

    REgards,

    Sailaja.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 04, 2006 at 10: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 04, 2006 at 10: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.