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

events problem

Former Member
0 Likes
463

I have a program with alv_Tree and a normal AVL.

I fill the data in both alv. And In both alv I have implemented the class to be able to use the event "double click", When I execute double click on alv_tree control to execute this function 'SET_DYNP_VALUE' everything works correctly

And with this function of it updates the corresponding text

 CALL FUNCTION 'SET_DYNP_VALUE'
    EXPORTING
      I_FIELD = 'V_TXT_CDT'
      I_REPID = SY-REPID
      I_DYNNR = '0100'
      I_VALUE = ''
    EXCEPTIONS
      OTHERS  = 0.

But when I double click on alv normal, this function does not work

  CALL FUNCTION 'SET_DYNP_VALUE'
    EXPORTING
      I_FIELD = 'V_TXT_RULE'
      I_REPID = SY-REPID
      I_DYNNR = '0100'
      I_VALUE = ''
    EXCEPTIONS
      OTHERS  = 0.

When I make double click on ALVnormal The following events just don't happen.

PROCESS BEFORE OUTPUT.
PROCESS AFTER INPUT.

The values are updated when I press return in any input field in the screen. How can I make these events to execute when I use the double click function because even if I call the functions that compound these events, the screen doesnt get updated.

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
406

Right a doubleclick in an ALV grid will not fire a complete screen cycle.

Regards,

Rich Heilman

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
407

Right a doubleclick in an ALV grid will not fire a complete screen cycle.

Regards,

Rich Heilman

Read only

0 Likes
406

So.... we must force it, I wanted to test this before I actually suggested it, in your event handler method for double click, add the following code at the end.

    call method cl_gui_cfw=>set_new_ok_code
      exporting
        new_code = 'REFR'.

Adding this code will force a screen cycle, first PAI, then back around to PBO.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
406

IT WORK VERY WELL THANK YOU VERY MUCH