메뉴 건너뛰기

SAP 한국 커뮤니티

온라인 스크린에서 SELECT-OPTION 사용하기

sapjoy 2007.02.11 15:14 조회 수 : 7786 추천:53

1) 1010 번 스크린을 만들고, subscreen area를 지정한다.
    subscreen area 명 : s1001.

2) Selection screen 코드를 작성한다.
*-- Selection screen
selection-screen begin of screen 1010 as subscreen.
SELECTION-SCREEN BEGIN OF BLOCK BOX1 WITH FRAME.
PARAMETERS:     PA_BUKRS TYPE ANLA-BUKRS MEMORY ID BUK OBLIGATORY.
SELECT-OPTIONS: SO_GSBER FOR  TGSB-GSBER MEMORY ID GSB OBLIGATORY,
                SO_ANLKL FOR  ANLA-ANLKL MEMORY ID ANK OBLIGATORY,
                SO_ANLN1 FOR  ANLA-ANLN1,
                SO_BUDAT FOR  ANEK-BUDAT OBLIGATORY.

SELECTION-SCREEN END OF BLOCK BOX1.

SELECTION-SCREEN BEGIN OF BLOCK BOX2 WITH FRAME.
PARAMETERS: PA_HISTO  AS CHECKBOX.
SELECTION-SCREEN END OF BLOCK BOX2.
selection-screen end of screen 1010.

3) Screen 100번
process before output.
  module status_0100.
  module set_cursor_field.    "Cursor 위치 설정.
  CALL SUBSCREEN s1001 INCLUDING sy-repid '1010'.

process after input.
  module exit_0100 at exit-command.
  module get_cursor_field.    "현재 커서위치 읽기

  CALL SUBSCREEN s1001.
  module user_command_0100.

출처 :  WWW.RACEFROG.NET
번호 제목 글쓴이 날짜 조회 수
67 User Parameter 조회 펑션 [3] 양키(이경환) 2014.03.04 3173
66 Working with User-Exits for the transaction VA01 [3] file 노름마치 2009.07.10 3169
65 Implementing Field Exit for the transaction MK01 [3] file 노름마치 2009.07.10 3150
64 Working with Substitution Exit [6] file 노름마치 2009.07.10 3064
63 Creating Custom Screen in XD01 [2] file 노름마치 2009.07.10 3055
62 sap perforamnce check t-code list [2] sapjoy 2014.06.16 3042
61 Effective_Code_Writing [3] file sapjoy 2007.04.18 2991
60 System Administration Made Easy - Performace file 박진만 2007.06.26 2985
59 workflow 와 wepflow를 위한 초보 가이드 [2] file gauguin 2008.06.14 2967
58 BTE_Adding custom fields to the FI report FBL5N using BTEs [1] file 노름마치 2009.07.10 2955
57 ABAP based Application Log Using SLG1 [1] file 노름마치 2009.07.10 2947
56 Adding custom fields to the Purchase Order transaction ME22N [1] file 노름마치 2009.07.10 2946
55 SAP tips Journal - 8,9월 호 (2007) [3] file onefineday 2009.02.11 2942
54 SAP tips Journal - 6,7월 호 (2007) [8] file onefineday 2009.02.11 2914
53 REM TABLE1 밤의화신 2013.09.11 2867
52 SAP tips Journal - 10,11월 호 (2007) [4] file onefineday 2009.02.11 2862
51 Defining and Implementing Business Add-ins (BADI) (Step-by-step with screenshots)_2 [2] file 노름마치 2009.07.10 2852
50 Chain statement : [3] sapjoy 2014.12.18 2842
49 REM TABLE2 밤의화신 2013.09.11 2819
48 Changing the description of the standard SAP fields [3] file 노름마치 2009.07.10 2795