Friday 24 October 2014

Need a POP-UP ALV List?


Step1. Here is the simple code .























-------------------------------------------------------------------------------------------------------
TYPE-POOLS: slis.
DATA : lt_flight TYPE TABLE OF sgeocity,
               ls_selfld TYPE slis_selfield.

START-OF-SELECTION.
  SELECT * FROM sgeocity INTO TABLE lt_flight UP TO 10 ROWS  .

  CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
       EXPORTING
            i_title                 = 'Flight Schedules '
            i_selection             = 'X'
            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               = 'LT_FLIGHT'
            i_structure_name        = 'SGEOCITY'
*           IT_FIELDCAT             =
*           IT_EXCLUDING            =
*           I_CALLBACK_PROGRAM      =
*           I_CALLBACK_USER_COMMAND =
*            is_private              =
     IMPORTING
            es_selfield             = ls_selfld
*            e_exit                  =
       TABLES
            t_outtab                = lt_flight
       EXCEPTIONS
            program_error           = 1
            OTHERS                  = 2.
--------------------------------------------------------------------------------------------------------
Step2. Here is the Pop Up ALV list output.




















------------------------------------------------------------------------------------------------------

No comments:

Comments system

Disqus Shortname