-
셀렉션 스크린에 버튼달기SAP/ABAP 2013. 3. 19. 13:29
*&---------------------------------------------------------------------*
*& Report Z_SEL_BUTTON *
*& *
*&---------------------------------------------------------------------*
*& *
*& *
*&---------------------------------------------------------------------*
REPORT Z_SEL_BUTTON .
TABLES : SSCRFIELDS.
PARAMETERS P_INPUT TYPE C.
SELECTION-SCREEN FUNCTION KEY 1.
*----------------------------------------------------------------------*
* INITIALIZATION
*----------------------------------------------------------------------*
INITIALIZATION.
PERFORM ADD_FUNTION_KEY.
*----------------------------------------------------------------------*
* AT SELECTION-SCREEN
*----------------------------------------------------------------------*
AT SELECTION-SCREEN.
PERFORM USER_COMMAND.
*---------------------------------------------------------------------*
* Form ADD_FUNTION_KEY
*---------------------------------------------------------------------*
FORM ADD_FUNTION_KEY .
DATA: LV_FTEXT(30), "FunctionKey Text (1) Display
LV_INTERNAL TYPE ICON_INT.
SELECT SINGLE INTERNAL INTO LV_INTERNAL
FROM ICON
WHERE NAME = 'ICON_XLS'.
CONCATENATE LV_INTERNAL 'DownLoad Excel Form'
INTO LV_FTEXT SEPARATED BY SPACE.
SSCRFIELDS-FUNCTXT_01 = LV_FTEXT.
ENDFORM. " ADD_FUNTION_KEY
*---------------------------------------------------------------------*
* Form USER_COMMAND
*---------------------------------------------------------------------*
FORM USER_COMMAND .
CASE SSCRFIELDS-UCOMM.
WHEN 'FC01'.
" ACTION
ENDCASE.
ENDFORM. " USER_COMMAND'SAP > ABAP' 카테고리의 다른 글
심플한 필드카달로그 - 매크로버전 (1) 2013.03.21 서치헬프 강제생성(헤더 변경 포함) (0) 2013.03.20 프로그레스바 진행률 표시 (1) 2013.03.19 프로그램 소스 직접 수행 (0) 2013.03.11 SAP Query 수정 후 반영 (0) 2011.12.07