IT WORK/SAP FI and ABAP

[ABAP] 여러 줄 표시 가능한 팝업 펑션 How to make a popup(display multiple lines) in a simple way with POPUP_WITH_TABLE_DISPLAY

Bathildis 2023. 2. 14. 14:26
반응형
DATA: BEGIN OF LT_LIST OCCURS 0,
  TEXT(100),
  END OF LT_LIST.

CLEAR: LT_LIST, LT_LIST[].

LT_LIST-TEXT = 'Line 1'.
APPEND LT_LIST.

LT_LIST-TEXT = 'Line 2'.
APPEND LT_LIST.

LT_LIST-TEXT = 'Line 3'.
APPEND LT_LIST.

LT_LIST-TEXT = 'Line 4'.
APPEND LT_LIST.

LT_LIST-TEXT = 'Line 5'.
APPEND LT_LIST.

LT_LIST-TEXT = 'Line 6'.
APPEND LT_LIST.

LT_LIST-TEXT = 'Line 7'.
APPEND LT_LIST.

LT_LIST-TEXT = 'Line 8'.
APPEND LT_LIST.

LT_LIST-TEXT = 'Line 9'.
APPEND LT_LIST.

LT_LIST-TEXT = 'Line 10'.
APPEND LT_LIST.

CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
  EXPORTING
    ENDPOS_COL   = 70
    ENDPOS_ROW   = 7
    STARTPOS_COL = 2
    STARTPOS_ROW = 1
    TITLETEXT    = 'POPUP TEST'
  TABLES
    VALUETAB     = LT_LIST
  EXCEPTIONS
    BREAK_OFF    = 1
    OTHERS       = 2.

 

<Result>

 

반응형

 

반응형