Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 이명박
- 방화벽
- EXIT
- SAP
- 오라클 함수
- Standard Function
- ABAP
- 엑소버드
- 가계부
- EUC-kr
- fi
- badi
- 머니플랜
- alv 정형화
- Smart Forms
- 스마트폼
- 동적 쿼리
- Java
- KOSA
- ALV
- Enhancement
- ole
- sapa
- function
- UTF-8
- List box
- selection screen
- gimp
- FI 용어정리
- 유닉스
Archives
- Today
- Total
Drunken Lion
[ALV]툴바에 버튼 추가하기 본문
* LOCAL CLASS 선언
CLASS lcl_def_receiver DEFINITION.
PUBLIC SECTION.
METHODS : handle_toolbar
FOR EVENT toolbar OF cl_gui_alv_grid
IMPORTING e_object
e_interactive.
ENDCLASS.
CLASS lcl_def_receiver IMPLEMENTATION.
METHOD handle_toolbar.
PERFORM TOOLBAR_PART USING E_OBJECT E_INTERACTIVE.
ENDMETHOD.
ENDCLASS.
* PERFORM TOOLBAR_PART USING E_OBJECT E_INTERACTIVE.
FORM toolbar_part USING p_object TYPE REF TO cl_alv_event_toolbar_set
p_interactive.
DATA: ls_toolbar TYPE stb_button.
* 세로 구분선 추가
CLEAR ls_toolbar.
MOVE 3 TO ls_toolbar-butn_type.
APPEND ls_toolbar TO p_object->mt_toolbar.
* 버튼 추가
CLEAR ls_toolbar.
MOVE 'PER' TO ls_toolbar-function. "#EC NOTEXT
MOVE icon_display_text TO ls_toolbar-icon.
MOVE 'Passenger Info'(201) TO ls_toolbar-quickinfo.
MOVE 'Passenger Info'(201) TO ls_toolbar-text.
MOVE ' ' TO ls_toolbar-disabled. "#EC NOTEXT
APPEND ls_toolbar TO p_object->mt_toolbar.
ENDFORM. " TOOLBAR_PART
참고 자료 : 2009/03/09 - [SAP R/3/ALV] - ReferenceForALV_Grid
CLASS lcl_def_receiver DEFINITION.
PUBLIC SECTION.
METHODS : handle_toolbar
FOR EVENT toolbar OF cl_gui_alv_grid
IMPORTING e_object
e_interactive.
ENDCLASS.
CLASS lcl_def_receiver IMPLEMENTATION.
METHOD handle_toolbar.
PERFORM TOOLBAR_PART USING E_OBJECT E_INTERACTIVE.
ENDMETHOD.
ENDCLASS.
* PERFORM TOOLBAR_PART USING E_OBJECT E_INTERACTIVE.
FORM toolbar_part USING p_object TYPE REF TO cl_alv_event_toolbar_set
p_interactive.
DATA: ls_toolbar TYPE stb_button.
* 세로 구분선 추가
CLEAR ls_toolbar.
MOVE 3 TO ls_toolbar-butn_type.
APPEND ls_toolbar TO p_object->mt_toolbar.
* 버튼 추가
CLEAR ls_toolbar.
MOVE 'PER' TO ls_toolbar-function. "#EC NOTEXT
MOVE icon_display_text TO ls_toolbar-icon.
MOVE 'Passenger Info'(201) TO ls_toolbar-quickinfo.
MOVE 'Passenger Info'(201) TO ls_toolbar-text.
MOVE ' ' TO ls_toolbar-disabled. "#EC NOTEXT
APPEND ls_toolbar TO p_object->mt_toolbar.
ENDFORM. " TOOLBAR_PART
참고 자료 : 2009/03/09 - [SAP R/3/ALV] - ReferenceForALV_Grid
'SAP > ALV' 카테고리의 다른 글
[ALV] LIST BOX 만들기 (0) | 2009.06.03 |
---|---|
[ALV] DATA_CHANGED EVENT (1) | 2009.06.02 |
CLASS ALV에서 간단한 FIELD CATALOG 생성 (0) | 2009.03.23 |
ReferenceForALV_Grid (0) | 2009.03.09 |
HTML Container (0) | 2009.02.18 |