Saturday 25 July 2015

Display Internal table in a pop up window!

---------------------------------------------------------------------------------------------------------------------------------
SAP provides standard FM - POPUP_WITH_TABLE_DISPLAY to display internal table in a popup.
---------------------------------------------------------------------------------------------------------------------------------
DATA lt TYPE TABLE OF scarr,
              ls TYPE scarr,
              lv_choose TYPE i,
              lv_lines TYPE i.
SELECT FROM scarr INTO TABLE lt.
lv_lines lineslt ).

CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
  EXPORTING
    endpos_col   15
    endpos_row   lv_lines
    startpos_col 1
    startpos_row 1
    titletext    'Flight Info'
  IMPORTING
    choise       lv_choose
  TABLES
    valuetab     lt
  EXCEPTIONS
    break_off    1
    OTHERS       2.
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.

WRITE :'you have selected'lv_choose'line'.



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






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

No comments:

Comments system

Disqus Shortname