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

ALV Control and Screen Processing

I am using an ALV control for data entry for a custom application in 4.6C. I have a field outside of the control on the same screen that is a weighted average of some of the data in the ALV control. When the user changes the data in the ALV I then recalculate the weighted average and attempt to display the new value on the screen. The variable holding the weighted average has the correct value but the user sees the initial value until they put the cursor somewhere on the screen, not in ALV, and hit enter. I have tried the dynp_values_update and the dynp_update_fields function modules but neither seemed to push this value to the screen. Is there a way to simulate the enter on the screen or am I doing something wrong? Please help.

Thanks in advance!


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jan 15, 2004 at 05:08 PM

    Whenever I want to trigger a Dialog refresh and thereby trigger the PBO, I always use the following:

    call method cl_gui_cfw=>set_new_ok_code


    new_code = 'ENT'


    rc = rc.

    This should simulate the user hitting enter.

    Hope this helps.

    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.