Skip to Content
0
Former Member
Nov 25, 2008 at 11:08 PM

How to get rid of the loop in ALV output from At selection screen event?

47 Views

I have several push buttons on a selection screen.

Clikc on a button, then it pops up an editable ALV report. (This gets triggered AT SELECTION SCREEN event.). REUSE_ALV_GRID_DISPLAY_LVC..

On the ALV output, I enabled F4 for a couple of fields. Once I click on the F4 button, ONF4 method gets triggerd and a pop up appears with custom search helps.

choose a line and it fills the cell.

Upto this it works fine.

Now I click on the BACK button at the ALV output, it takes me to the selection screen. I click on the button again, it show the editable ALV. Now when I click on the F4 button, the pop up comes up twice and the cell gets filled from the second pop - up.

How to control this?

Probably I am not refreshing something?

(I am using REUSE_ALV_GRID_DISPLAY_LVC and tooks ome code for ONF4 event from BCALV_*DATATYPES (forgot the exact name) program.)

Thanks,

Ven