Application Development 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: 

input must bein module pool and the output should be in ALV report

0 Kudos

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

2 REPLIES 2

former_member194669
Active Contributor
0 Kudos

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.

Rodrigo-Giner
Active Contributor
0 Kudos

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.