메뉴 건너뛰기

SAP 한국 커뮤니티

[요청]오브젝트에 관한 소스 질문입니다.

앙리 2009.03.25 00:59 조회 수 : 1030

MODULE init_tree OUTPUT.


  IF g_tree IS INITIAL.
    DATA: node_table TYPE node_table_type.
    DATA : events TYPE cntl_simple_events,
           event TYPE cntl_simple_event.
    CREATE OBJECT tree_con_ref
      EXPORTING        " the container is linked to the custom control with the
              " name 'TREE_CONTAINER' on the dynpro
        container_name = 'TREE_CONTAINER'.
* create a tree control
    CREATE OBJECT g_tree
      EXPORTING
        parent              = tree_con_ref
        node_selection_mode = cl_gui_simple_tree=>node_sel_mode_single.        " single node selection is used


    PERFORM build_node_table USING node_table.
* node_table_structure_name     = 'MTREESNODE'
    CALL METHOD g_tree->add_nodes
      EXPORTING
        table_structure_name = 'MTREESNODE'
        node_table           = node_table.



    CREATE OBJECT g_application.


* define the events which will be passed to the backend
    " node double click
    event-eventid = cl_gui_simple_tree=>eventid_node_double_click.
    event-appl_event = 'X'. " process PAI if event occurs
    APPEND event TO events.


    CALL METHOD g_tree->set_registered_events
      EXPORTING
        events                    = events
      EXCEPTIONS
        cntl_error                = 1
        cntl_system_error         = 2
        illegal_event_combination = 3.


* assign event handlers in the application class to each desired event
    SET HANDLER g_application->handle_node_double_click FOR g_tree.


  ENDIF.


ENDMODULE.                 " init_tree  OUTPUT


 


교재내용 중에 위 내용이 잇는데
어떻게 이해하면 되는가요? 교재내용을 봐도 이해가 어려워서 전체이해하는 어려움을 격고 있습니다.


전체적으로 sap tree내용인데 중간중간에 오브젝트내용이 들어가서..
오브젝트 내용이 잇어서 어렵게 느꼈는데 오브젝트 내용을 한번 공부한 후 봤는데도
뭔 내용인지 이해가 안가서 질문을 드립니다.

번호 제목 글쓴이 날짜 조회 수
3447 [요청]스탠다드프로그램의 필드에서 f1키를 눌러 나온 설명부분을 가져오는 방법 문의 [5] file Norton 2009.03.25 1149
» [요청]오브젝트에 관한 소스 질문입니다. [1] 앙리 2009.03.25 1030
3445 [re] [요청]오브젝트에 관한 소스 질문입니다. [2] 엉큼고냥이 2009.03.25 1457
3444 [요청]클러스터 테이블에서 데이터를 가져올라구합니다. [1] 별나라대마왕 2009.03.24 901
3443 <b>[완료]</b>엑셀업로드시 데이터건수제한에 대해서 질문드립니다. [3] kan145 2009.03.24 4752
3442 [요청]user-exits 과 built-in enhancements 차이점 [2] ToBe_anexpert 2009.03.24 1355
3441 [요청]오피스 워드(2007) 매크로를 실행했을 때 오류관련 질문입니다. [2] 무한반복 2009.03.24 1527
3440 [요청]number_get_next 함수 사용법이 궁금합니다. [4] copine 2009.03.24 6741
3439 [요청]입력한 수만큼의 데이터 출력하기 [3] 쿵쓰 2009.03.24 1033
3438 <b>[완료]</b>Function alv 에서 특정 행 색깔 바꾸기에 대하여 문의 드립니다. [3] 초밥 2009.03.24 2008
3437 <b>[완료]</b>SAP GUI 640 에서 로그온 할 경우에 R2, R3선택의 의미는 뭔가요 [2] 삽좀 2009.03.23 1141
3436 [요청]Write문 List를 PDF 파일로 저장이 가능한가요? [9] 달이랑 2009.03.23 2342
3435 <img src=3.gif border=0>[요청]역카피 이후에 GUI 상태 생성이 안되네요. [2] 별이 2009.03.22 1073
3434 [요청]넷위버 2004s 라이센스 문제관련해서 해결해주세요 [3] file 아밥초짜 2009.03.21 1201
3433 [요청]Sqvi 에서 생성한 Quick View 에 T-code 생성 방법 [6] copine 2009.03.20 4357
3432 [re] [요청]Sqvi 에서 생성한 Quick View 에 T-code 생성 방법 [1] 꼬맹이 2009.03.22 1322
3431 [요청]mass download 프로그램(소스다운로드)에서 sm69 처리방법 [4] file 왜이랴아마추어가치 2009.03.20 2994
3430 <b>[완료]</b>[WebDynPro] Excel 업로드해서 Internal 테이블에 담기 어려움.. [6] file 민버미꺼! 2009.03.20 2148
3429 [요청]Report painter(tcode:grr1)를 이용해서 만든 report에 tcode 부여하기 [5] 도움이 2009.03.20 2197
3428 [요청]문법 다시 한번 질문좀 드리겠습니다. [1] 쭈니 2009.03.20 2128