---------------------------------------------------------------------------------------------------------------------------------
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 = lines( lt ).
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'.
-------------------------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------------------------
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 = lines( lt ).
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:
Post a Comment