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

How do i return control after a double click event

varun_rao
Product and Topic Expert
Product and Topic Expert
0 Kudos
974

Hi,

I will try to explain my problem in a little bit of detail so as to allow for a better understanding.

I have a field on a screen which has to be populated via an F4 help.

This field has been enabled via ON-VALUE-REQUEST so that a sub routine is called when the F4 help is pressed.

In this sub routine i get the data and call a class i created with the table as  input and the selected row as output.

Now i get the data after which i want to display the output in an ALV dialogbox container.

I have done this.

In the container i have a ALV grid with the display, i have enabled the event on double click to select the row and then close the container.

But now the problem arises.

I am not able to pass the selected value back to the function module which had called class.

in the event handler for double click

i first get the row which was double clicked

i then raise the event "CLOSE" for the dialog box container

however it never returns after that to the Function module...

Could you please tell me what i am doing incorrecty..?

Thanks and Best Regards,

Varun

1 ACCEPTED SOLUTION
Read only

Former Member
0 Kudos
744

Hi Varun,

Why dont you use he FM F4IF_INT_TABLE_VALUE_REQUEST directly.

Else you can use REUSE_ALV_POPUP_TO_SELECT if you want to use ALV.

Regards,

Santanu Mohapatra.

3 REPLIES 3
Read only

Former Member
0 Kudos
745

Hi Varun,

Why dont you use he FM F4IF_INT_TABLE_VALUE_REQUEST directly.

Else you can use REUSE_ALV_POPUP_TO_SELECT if you want to use ALV.

Regards,

Santanu Mohapatra.

Read only

varun_rao
Product and Topic Expert
Product and Topic Expert
0 Kudos
744

Hi Shantanu,

Thank you for that...

I used REUSE_ALV_POPUP_TO_SELECT as this task was urgent and i had to do it quickly...

However would you have an idea how i could solve my original problem..?

Thank you,

Best Regards,

Varun

Read only

Former Member
0 Kudos
744

form user_command using r_ucomm like sy-ucomm

                         rs_selfield type slis_selfield.

   data : column_name type string.

   if click_flag  = 1.

     " Ignore more than "One Click"

     exit.

   endif.

   click_flag  = 1.

   column_name = rs_selfield-fieldname.

   itab_index  = rs_selfield-tabindex.

   read table it_final into wa_final index itab_index.

   case r_ucomm.

     when '&IC1'.

       select * from zoee into table it_zoee where arbpl = wa_final-arbpl and zdate in s_date.

        perform display.

       leave list-processing .

   endcase.

endform.