2007 Oct 29 6:06 PM
Dear Friends,
Greetings.....................
Please give me solution for my problem.
Consider there is one module pool screen with the fields empno, edob, ecity.There is one search button.if the user clicks the search button.it should display the employee details based on empno and output must be in ALV reports.
Thanks in advance
Raj
2007 Oct 29 6:24 PM
Hi,
Try to use
call function 'REUSE_ALV_POPUP_TO_SELECT'
exporting
i_title = text-021
i_zebra = 'X'
i_tabname = 'P_YSIZE1'
it_fieldcat = p_fieldcat[]
it_excluding = p_excltab[]
i_screen_start_column = 02
i_screen_start_line = 02
i_screen_end_column = 45
i_screen_end_line = 15
importing
e_exit = p_exit
es_selfield = p_selfield
tables
t_outtab = p_ysize1.
a®
2007 Oct 29 6:42 PM
Raj, If u need to output in ALV format (report) and u r in a Module pool.
Simply create the report with selection screen and then in the module pool call that report program passing values to the search criteria and skipping the first screen.
So the user will pass from the module pool directly to the ALV report output.