본문 바로가기

SAP/ABAP

Excel_Upload프로그램_Function Key 추가

최종 작성일: 2024년 6월 17일

최종 목표: Excel Upload 프로그램 뿌시기..(Function Key 추가하기..)

 

 

화면:

 

As-Is

 

To-Be

변경 대상 대상 Include 문(소스)

  • ZTEST90_SEL
SELECTION-SCREEN BEGIN OF BLOCK BL01 WITH FRAME TITLE TEXT-001.
    PARAMETERS: P_FILE TYPE RLGRAP-FILENAME DEFAULT 'C:\' OBLIGATORY.
SELECTION-SCREEN END OF BLOCK BL01.
SELECTION-SCREEN BEGIN OF BLOCK BL02 WITH FRAME TITLE TEXT-002.
PARAMETERS: r1 RADIOBUTTON GROUP rad DEFAULT 'X',
            r2 RADIOBUTTON GROUP rad,
            r3 RADIOBUTTON GROUP rad.
SELECTION-SCREEN END OF BLOCK BL02.
* FUNCTION KEY
SELECTION-SCREEN: FUNCTION KEY 1.
SELECTION-SCREEN: FUNCTION KEY 3.
  • ZTEST90_F01
FORM set_function_key.
*SMPL
  G_FUNCTION_KEY-ICON_ID   = ICON_XLS.
  G_FUNCTION_KEY-ICON_TEXT = 'SAMPLE다운'.
  G_FUNCTION_KEY-TEXT      = 'SAMPLE다운'.
  SSCRFIELDS-FUNCTXT_01    = G_FUNCTION_KEY.

 G_FUNCTION_KEY-ICON_ID  = ICON_ANNOTATION.
 G_FUNCTION_KEY-ICON_TEXT  = '노트생성'.
 G_FUNCTION_KEY-TEXT = '노트생성'.
  SSCRFIELDS-FUNCTXT_03 = G_FUNCTION_KEY.



ENDFORM.

 

*Function Code

* FUNCTION CODE
  TABLES: SSCRFIELDS.
  DATA: G_FUNCTION_KEY TYPE SMP_DYNTXT.

'SAP > ABAP' 카테고리의 다른 글

Excel_Upload프로그램_프로그램 작동 로직(1/3)  (0) 2024.06.25
CLASS  (0) 2024.06.25
Excel_Upload프로그램_기본  (0) 2024.06.17
집계( SUM + at new, at first, at end of)  (0) 2024.06.07
[WIP]두 테이블 조인하기 - READ TABLE  (0) 2024.06.04