2014년 11월 24일 월요일

[PI] PI Memo

NWDS에서 SAP Process Integration Designer와 연결할때 발생되는 에러
ㆍ오류검색 : Dual Stack에서는 추가적인 Setting이 필요하다.
ㆍ오류내용 : SAP Process Integration Designer is supported for AEX usage type from release 7.31 onwards
ㆍWhat is AEX : http://scn.sap.com/people/rodrigoalejandro.pertierra/blog/2011/11/15/what-is-aex
ㆍStandard Users (AEX) : http://help.sap.com/saphelp_nw73ehp1/helpdata/en/5a/262466578e4436abe2ace36b6287b9/frameset.htm
ㆍAP PI 7.31 AEX : Importing ESR Content and Initial set-up for AEX

AAE_HTTP
aae_http2soap 방식으로 Sender Adapter Type(HTTP_AAE) + Integrated Configuration으로 Integration Directory를 구성할경우, IE를 통과하지 않고 AE만 통과한다.
※ Sender Adapter Type(HTTP)인 경우 Integrated Configuration에 추가가 안된다.
현 PI 7.3에는 HTTP_AEE, HTTP Adapter Type이 존재하는데 Adapter Type(HTTP) + Receiver Determination으로 구성해서 호출할경우 에러 발생한다.
ㆍ에러내용
500 Internal Server Error
Binding not Found : CANNOT_FIND_BINDING, Couldn't retrieve inbound binding for the given P/S/A values: FP=;TP=;D_EDUSYS;TS=;AN=ao_http2soap;ANS=http://hhi.co.kr/EDU/BST;

Oracle 11g to Webservice
ㆍOracle 11g에서 Web Service 수행시 준비사항
11g 부터는 utl_http에 대한 접근권한을 설정해야 작동 - http://jsp-making.tistory.com/194

ㆍExample of Procedure to JSP Call and Web Service Call in Procedure UTL_HTTP 패키지를 사용하여 오라클 DB에서 URI 호출하는 DB 프로시저 생성 - http://jsp-making.tistory.com/26

UTL_HTTP를 이용한 WebService호출 - http://blog.naver.com/spike21c?Redirect=Log&logNo=50081843546

ㆍExample of Function to Webservice Call

Repid PL/SQL Web Service Client development (using soapUI and utl_http) - http://technology.amis.nl/2008/06/16/rapid-plsql-web-service-client-development-using-soapui-and-utl_http/
http://technology.amis.nl/wp-content/uploads/images/GetConversionRateFunction.sql
Using XMLType - https://docs.oracle.com/cd/B10501_01/appdev.920/a96620/xdb04cre.htm

File2File

Win7, FTP설정 - http://sinooro.blog.me/203631940
※ 방화벽, Outbound, Inbound FTP관련 항목 모두사용 설정은 필수이다.

ㆍSender에서 FTP로 File을 전송

Exclusion Mask항목 Directory, File Name Mask(허용할 파일), Exclusion Mask(제외할 파일)로 설정시 불필요한 파일을 제외한 파일을 가져올수 있다.
Processing Mode를 Archive로 설정시 해당 Directory에 파일을 백업받을수 있으며 전송된 파일은 삭제가 된다.

ㆍCSV to XML파일로 변환하는 방법?

Converting File Content in a Sender Adapter - https://help.sap.com/saphelp_nw73/helpdata/en/44/682bcd7f2a6d12e10000000a1553f6/frameset.htm
XI - File Content Conversion - http://www.saptechnical.com/Tutorials/XI/Contentconversion/page1.htm
※ fiexedlength 사용방법과 Recordset 노드 삭제방법?

ㆍXML to CSV파일로 변환하는 방법?

[Recordset name].fieldNames = BUKRS,BUS_AREA,CONTR_NO,ORG_NUM
[Recordset name].fieldSeparator = ,
ㆍ소스에서 보낸 파일명으로 타겟에 파일 생성
XI : The same filename from a sender to a receiver file adapter - SP14 - http://scn.sap.com/community/pi-and-soa-middleware/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
ㆍ소스에서 보낸 데이터와 동일한 파일명으로 타겟에 파일 생성
Dynamic file name and directory in Receiver File Adapter - summary of possibilities - http://wiki.scn.sap.com/wiki/display/XI/Dynamic+file+name+and+directory+in+Receiver+File+Adapter+-+summary+of+possibilities

SOAP의 Attachment를 이용한 파일전송(자바to자바) - http://epoonet.egloos.com/viewer/4407362

ㆍError 내용 : no parameters specified to the call object you must call addparameter() for all parameters if you hae called setReturnType
ㆍSolution : Object rect = call.invoke(new Object[]{file}); 구문뒤에 call.addParameter(qname,null,String.call,null); 추가해야한다.
http://scn.sap.com/thread/3250774
ㆍJAF를 이용한 이미지 전송 Axis 웹 서비스 구현 예제 - http://blog.naver.com/cache798/130009089449
※ PI를 경유하는 경우 Message Type이 송ㆍ수신 시스템에서 생성되는 XML구조와 동일해야한다.
ㆍHandle SOAP with Attachment in SAP PI 7.31 - http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/12/26/handle-soap-with-attachment-in-sap-pi-731
ㆍPI 자바 API
http://help.sap.com/javadocs/pi/SP3/xpi/index.html?com/sap/aii/mappingtool/tf7/rt/package

JMS Adapter

※ PI 연계시 드라이버 파일이 PI에 Depoly 되지않아 테스트 못하였다.
ㆍActiveMQ
ActiveMQ 설치 및 실행 - http://devbada.tistory.com/27
JMS Example using Apache ActiveMQ - http://www.coderpanda.com/jms-example-using-apache-activemq/
ActiveMQ 관리 페이지 - http://localhost:8161/admin
ㆍWebsphere MQ
Websphere MQ Trial download - https://www.ibm.com/developerworks/downloads/ws/wmq/
Steps to Create A Remote Queue in WebSphere MQ 7 - http://middlewaremagic.com/jboss/?p=1490
Simplest sample applications using WebSphere MQ JMS - https://hursleyonwmq.wordpress.com/2007/05/29/simplest-sample-applications-using-websphere-mq-jms/
java websphere MQ - http://stackoverflow.com/questions/14426272/java-websphere-mq
ㆍ에러내용
com.ibm.msg.client.jms.DetailedJMSSecurityException: JMSWMQ2013 username and password
com.ibm.mq.MQException: MQJE001: completion code '2', reason '2035'
Queue Manager특성 > 통신 > 채널 인증 레코드 = 사용안함으로 설정
com.ibm.mq.MQException: MQJE001: completion code '2', reason '2085'
Client 소스의 Queue Name이 틀려서 에러 발생이 되었다.

IDoc Adapter

ㆍIDoc과 RFC 차이
IDoc : Async Fail 발생시 SM58에서 에러분석 및 재수행 가능(XML스키마 구조)
RFC : Sync Fail 발생시 결과를 바로 주며 데이터 안정성에 대한 보장이 약하고 에러분석이 힘들다.
XI - IDoc to IDoc Scenario - http://www.saptechnical.com/Tutorials/XI/IDocToIDoc/page1.htm

FixValue and Value Mapping

ㆍXI/PI : Value Mapping Using Graphical Editor - http://www.riyaz.net/sap/xipi-value-mapping-using-graphical-editor/382/
※ FixValues와 ValueMapping의 차이
FixValues는 Integration Repository안의 필드단위로 키값에 대한 고정값을 부여하며, Value Mapping은 Integration Directory안에 Mapping Table을 구성하여 서로다른 개체의 키값에 대한 값을 부여한다.

Async-Sync Bridge

Generic PI Async-Sync Bridge Configuration for Any Adapters - http://scn.sap.com/community/pi-and-soa-middleware/blog/2014/01/28/generic-pi-async-sync-bridge-configuration-for-any-adapters
File-RFC-File(Without BPM) - http://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=69331
Asynchronous - synchronous bridge - http://scn.sap.com/community/pi-and-soa-middleware/blog/2014/03/27/bridges-construction-site-part-13-asynchronous--synchronous-bridge
Sync-Async without ccBPM - http://wiki.scn.sap.com/wiki/display/XI/Sync-Async+without+ccBPM
Message processing failed. Cause: java.lang.NullPointerException: while trying to invoke the method com.sap.engine.interfaces.messaging.api.Message.getMessageId() of an object loaded from local variable 'message1'
https://scn.sap.com/thread/3146013

BLOB 다루기 - http://blog.naver.com/PostView.nhn?blogId=ghawk&logNo=60056544967

※ conn.commit 구문이 없어 컬럼에 데이터가 들어가지 못한다.

PI, Mapping 수행시 XML에서 허용하지 않는 데이터로 인한 에러처리 방법
에러원인 : PI에 깨진 데이터유입으로 인한 에러
해결방법 : 특정문자 unicode 범위 - http://www.fullsource.net/bbs/view.php?id=tipntech&no=241
자바매핑 - http://scn.sap.com/thread/3491526
자바 XML String에서 적합하지 않은 문자 제거 - http://blog.daum.net/wooriaru/19
Replace a string pattern with a minor modification in Java - http://stackoverflow.com/questions/19204102/replace-a-string-pattern-with-a-minor-modification-in-java

JCO3.0 to RFC

에러내용 : java.lang.UnsatisfiedLinkError: no sapjco3 in java.library.path
해결방안 : http://stackoverflow.com/questions/13643905/exception-while-connecting-sap-through-java

xsl to java function Call


SAP ERP안에 유저에게 시스템메시지 전달 방법

SE37(T-Code) --> TH_POPUP

PI Library 다운받는 방법

http://scn.sap.com/community/pi-and-soa-middleware/blog/2013/01/09/hidden-tools-in-xipi-bat-file-to-launch-esrid-frameworks

Proxy to SOAP for File Attachment

ㆍAXIS API
http://axis.apache.org/axis/java/apiDocs/org/apache/axis/attachments/package-summary.html
ㆍAttachmentHandling_in_Axis

댓글 없음:

댓글 쓰기

최근글

9월 태안~천안 아이와 3박4일 가족 여행지