18
Webdynpro Webdynpro 에에 에에 transaction i-view transaction i-view 에에에에 에에에에 t-code t-code 에에에에 에에에에 Skill cut [email protected] Copyright © 2006 by BNE Solution Consulting INC. ALL RIGHTS RESERVED. No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means - electronic, mechanical, photocopying, recording, or otherwise- without the permission of BNE Solution Consulting. This document provides an outline of a presentation and is incomplete without the accompanying oral commentary and discussion.

webdynpro에서 iview통해서 transaction call

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: webdynpro에서  iview통해서 transaction call

WebdynproWebdynpro 에서 에서 transaction i-viewtransaction i-view 이용해서 이용해서 t-t-codecode 호출하기호출하기

Skill cut

[email protected]

Copyright © 2006 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means- electronic, mechanical, photocopying, recording, or otherwise- without the permission of BNE Solution Consulting.

This document provides an outline of a presentation and is incomplete without the accompanying oral commentary and discussion.

Page 2: webdynpro에서  iview통해서 transaction call

Agenda

I. Transaction i-view 생성

II. Property 설정

III. Role 부여

IV. Webdynpro 에서 호출

IndexIndex

Page 3: webdynpro에서  iview통해서 transaction call

3 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.

Module Task

Stage Task 명

Phase 명 산출물명

순번 버전 작성일자 작성자 변경사유 검토일자 검토자 승인일자 승인자

1 Ver1.0 정세훈 최초작성

Document ControlDocument Control

Page 4: webdynpro에서  iview통해서 transaction call

4 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.

I. Transaction i-view 생성

Page 5: webdynpro에서  iview통해서 transaction call

5 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.

I. Transaction i-view 생성

Procedure

1. 해당 폴더에서 우클릭 New iView 선택

참고사항

Related Link

목적 • t-code 를 호출할 i-view 생성

메뉴 • EP Content Administration Portal Content• Content Navigation

Page 6: webdynpro에서  iview통해서 transaction call

6 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.

I. Transaction i-view 생성

Procedure

1. Iview 템플릿 선택

참고사항

Related Link

목적 • t-code 를 호출할 i-view 생성

메뉴

Page 7: webdynpro에서  iview통해서 transaction call

7 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.

I. Transaction i-view 생성

Procedure

1. Sap 트랜잭션 iview 선택

참고사항

Related Link

목적 • t-code 를 호출할 i-view 생성

메뉴

Page 8: webdynpro에서  iview통해서 transaction call

8 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.

I. Transaction i-view 생성

Procedure

1. 이름 및 ID 입력

참고사항

Related Link

목적 • t-code 를 호출할 i-view 생성

메뉴

Page 9: webdynpro에서  iview통해서 transaction call

9 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.

I. Transaction i-view 생성

Procedure

1. SAP GUI for HTML 선택

참고사항

Related Link

목적 • t-code 를 호출할 i-view 생성

메뉴

Page 10: webdynpro에서  iview통해서 transaction call

10 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.

I. Transaction i-view 생성

Procedure

1. 사용할 시스템과 트랜잭션 입력 .

참고사항1. Application paramenter 는 입력하지 않아도 된다 .( 고정된 값을 계속 넘길때 상용할수 있다 )

Related Link

목적 • t-code 를 호출할 i-view 생성

메뉴

Page 11: webdynpro에서  iview통해서 transaction call

11 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.

II. Property 설정

Page 12: webdynpro에서  iview통해서 transaction call

12 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.

II. Creating Web Dynpro JAVA iView

Procedure

1. 생성된 i-view 를 더블클릭한다 .2. Ok 코드 필드에 ‘ /00’ 입력한다 .( 호출시 바로 실행을 위해 )

참고사항

Related Link

목적 • i-view 의 property 를 설정함

메뉴 •

Page 13: webdynpro에서  iview통해서 transaction call

13 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.

II. Creating Web Dynpro JAVA iView

Procedure

1. 트랜잭션으로 전달된 매개변수에 변수를 설정한다 .(ex> P_REQNO)

참고사항되도록 대문자로 설정하자 .

Related Link

목적 • i-view 의 property 를 설정함

메뉴 •

Page 14: webdynpro에서  iview통해서 transaction call

14 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.

III. Role 부여

Page 15: webdynpro에서  iview통해서 transaction call

15 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.

III. Creating Transaction iView

Procedure

1. i-view 에 role 을 부여한다 .

참고사항

Related Link

목적 • 생성된 i-view 에 role 을 부여한다 .

메뉴 • EP Content Administration Portal Content• Content Navigation

Page 16: webdynpro에서  iview통해서 transaction call

16 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.

IV. Webdynpro 에서 호출

Page 17: webdynpro에서  iview통해서 transaction call

17 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.

IV. Creating SAP BSP iView

Procedure

1. URL 을 만든다 .2. 1~4 까지 붙여서 호출하면 됨

참고사항

Related Link

목적 • webdynpro 에서 URL 호출

URL 생성 공식 : 크게 4 부분으로 나뉜다 .[1] http://<host>:<port>[2] /irj/servlet/prt/portal/prtroot/com.sap.portal.pagebuilder.IviewModeProxy?iview_id=pcd%3A[3] portal_content/sdn/sdnrole/bookmarkableiviewurls/java_sap_com_params_com_sap_tc_wd_test_params_ParametersApp[4] &parameter=value

[1] http://<host>:<port>=> ex>http://devepap1.postech.ac.kr:50100[2]/irj/servlet/prt/portal/prtroot/com.sap.portal.pagebuilder.IviewModeProxy?iview_id=pcd%3A=> 고정 값[3]portal_content/sdn/sdnrole/bookmarkableiviewurls/java_sap_com_params_com_sap_tc_wd_test_params_ParametersApp&iview_mode=default=> role 이 부여된 i-view 의 pcd=> ex>portal_content/postech/roles/kr.ac.postech.epuser_r/kr.ac.postech.wa_ws_01/kr.ac.postech.dm_ws_00/kr.ac.postech.hsm_receipt_iv[4]&parameter=valueex>&P_REQNO='1000000001‘

참고사항 .1. role 에 따라 pcd 가 변하하기 때문에 CBO 에 role 에 따른 URL 을 관리 하는게 바람직 할 것같다 .2. 파라미터는 & 를 이용하여 여러개를 사용 가능하다 .3. 고정값으로 호출할 시엔 i-view 의 application parameter 에 값을 둘수있다 .( ex> P_REQNO=1000000001)4.BDC program 을 'E' mode 로 만들어서 호출하면 원하는 GUI 화면을 호출 가능하다 .

메뉴

Page 18: webdynpro에서  iview통해서 transaction call

18 Copyright © 2007 by BNE Solution Consulting INC. ALL RIGHTS RESERVED.

IV. Creating SAP BSP iView

Procedure

참고사항

Related Link

목적 • 호출 sample code

data l_api_window_open type ref to if_wd_view_controller. data l_component type ref to if_wd_component. data l_window_manager type ref to if_wd_window_manager. data remote_window type ref to if_wd_window. data l_url type string.

l_url = ' 위 공식대로 만든 URL'.

“ 파라미터와 값 연결 CONCATENATE l_url '&P_REQNO=' value into l_url.

l_api_window_open = wd_this->wd_get_api( ). l_component = l_api_window_open->get_component( ). l_window_manager = l_component->get_window_manager( ).

remote_window = l_window_manager->create_external_window( url = l_url ). remote_window->open( ).

메뉴