메뉴 건너뛰기

SAP 한국 커뮤니티

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

sapjoy 2007.02.11 15:14 조회 수 : 7795 추천: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
번호 제목 글쓴이 날짜 조회 수
447 Overview transport requests for all systems and clients [3] file 노름마치 2009.11.05 3676
446 새로운 Print format 추가하기 [5] file 이명환 2007.10.18 3679
445 How to read same field from D.Base into two fields of ITAB [1] sapjoy 2006.12.12 3690
444 F1 도움말 존닭 2014.12.11 3696
443 OPEN SQL 사용법인데, 내용이 정리가 잘 되어 있네요 [21] file 노름마치 2008.06.09 3712
442 <b>[완료]</b>NW04 설치시 에러 몇가지 해결법 [3] file Abap consultant 2009.03.13 3715
441 ALV 활용해 보기 [4] file 박진만 2007.06.28 3727
440 new_abap_editor [3] file Lastforone 2007.07.31 3734
439 일자에 포멧에 맞게 자동으로 처리하는 프로그램 [1] 박종갑 2007.07.13 3741
438 zebra printer 상세 사용메뉴얼입니다. 양키 2013.08.26 3745
437 Selection Screeen에서 저장버튼 Disable 처리 [3] 양키(이경환) 2014.11.13 3755
436 Picking material description from custom table in the SAP Sales Order [2] file 노름마치 2009.07.10 3757
435 SAP BEST PRACTICES BASELINE PACKAGE Link(한국어) [10] ac3mania 2009.06.23 3789
434 파트너 정보 테이블(partner) sapjoy 2007.04.10 3799
433 Internal Table 내용 PC에 저장하기 [11] 별이고픈구름 2008.05.28 3828
432 BSP 명령구절 [3] gauguin 2008.06.04 3837
431 New ABAP Editor Concept [4] file D.Y.Kim 2007.06.07 3847
430 인용부호를 변수에 저장하려면 [2] 푸른밤 2007.07.31 3847
429 HELP를 WEB으로 접속하려면,,, 이렇게 하세요 [8] 김창훈 2007.08.08 3847
428 CLUSTER 테이블 찾는법~~ [4] 첼시 2008.02.28 3853