Displaying Report in Pop up using REUSE_ALV_POPUP_TO_SELECT

 

  ***&---------------------------------------------------------------------*
***& Report ZVB_ALV_POPUP
***&---------------------------------------------------------------------*
***&
***&---------------------------------------------------------------------*
REPORT zvb_alv_popup.

  TYPE-POOLS: slis.
TABLES:ZVB_STU.

DATA : it_stu TYPE TABLE OF ZVB_STU,
       ls_selfld TYPE slis_selfield.

START-OF-SELECTION.
  SELECT * FROM ZVB_STU INTO TABLE it_stu UP TO 10 ROWS  .

  CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
    EXPORTING
      i_title          = 'SO Items'
      i_zebra          = 'X'
*     I_SCREEN_START_COLUMN   = 0
*     I_SCREEN_START_LINE     = 0
*     I_SCREEN_END_COLUMN     = 0
*     I_SCREEN_END_LINE       = 0
*     I_CHECKBOX_FIELDNAME    =
*     I_LINEMARK_FIELDNAME    =
*     I_SCROLL_TO_SEL_LINE    = 'X'
      i_tabname        = 'it_stu'
      i_structure_name = 'ZVB_STU'
    TABLES
      t_outtab         = it_stu
    EXCEPTIONS
      program_error    = 1
      OTHERS           = 2.
 

Output:


we can achieve this using 'REUSE_ALV_GRID_DISPLAY' also.

Refer the below link

https://sapsimpleabap.blogspot.com/2024/01/displaying-alv-report-in-pop-up-or.html 

Comments

Popular posts from this blog

CDS Views: Table Functions with Example

ABAP-Managed Database Procedures (AMDP) with Example

Passing Dynamic Variables to SO10 TEXT