2013 Apr 26 6:24 AM
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
2013 Apr 26 7:15 AM
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.
2013 Apr 26 7:15 AM
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.
2013 Apr 26 10:52 AM
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
2013 Apr 26 7:51 AM
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.