To display ALV in dialog box or popup window using function module 

REUSE_ALV_GRID_DISPLAY just set X and Y co-ordinates of start (top left) and end points(bottom right) of the dialog box.

To set the start and endpoints of dialog box just set the below IMPORT parameters of REUSE_ALV_GRID_DISPLAY.



ParameterDescription
I_SCREEN_START_COLUMN X Coordinate of the top left corner of the dialog box
I_SCREEN_START_LINE Y coordinate of the top left corner of the dialog box
I_SCREEN_END_COLUMN X coordinate of the bottom right corner of the dialog box
I_SCREEN_END_LINE Y coordinate of the bottom right corner of the dialog box
 
 
DATA: it_spfli TYPE TABLE OF spfli.

SELECT * FROM spfli INTO TABLE it_spfli.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
  EXPORTING
    i_grid_title          = 'ALV Popup Demo'
    i_structure_name      = 'SPFLI'
    i_screen_start_column = 10
    i_screen_start_line   = 20
    i_screen_end_column   = 100
    i_screen_end_line     = 40
  TABLES
    t_outtab              = it_spfli.
 
 
 


Serkan AKKAVAK
Computer Engineer
ABAP Developer & SAP MM SD Consultant
Contact : serkurumsal@yandex.com