CAFE

ABAP

BAPIs ?

작성자우승권|작성시간08.10.27|조회수631 목록 댓글 0

SAP Business Object

- R/3 Data와 Process를 같이 Encapsulation한 Black Box. Encapsulation을 위하여 SAP는 BO를 다음과 같은 Multi-Layer형태로 구성하였다.

 . SAP BO의 Core부분에는 Object의 Inherent data를 나타내는 Kernel.
 . Second Layer : Object의 Business Logic을 나타내는 Integrity Layer
 . Third Layer    : 외부와의 Interface를 제공
 .  Fourth Layer  : Access Layer, Object Data의 외부 Access를 가능하게
                          기술을 의미(e.g: COM/DCOM, CORBA) 
- Accessing Business Object 
   . SAP BO는 외부세계에, 단지 잘 정의된 Interface인 Method만을 공개하고, 외부 Application들

     은  이 Method를 통하여 BO Data를 Access할 수 있다.
   . 특정 BO에 대한 Method는 BO를 통해 발생할 수 있는 행위들을 정의하고 있다.
- Object Type and Object Instances 각각의 BO는 Object의 일반적인 특성을 가지고 있는 특정

     Object Class에 포함되어 있는데, 이 Object Class를 Object Type이라 한다.
   . Object Type
   . Key fields : Object Type의 특정 Instance를 유일하게 구별
   . Methods    : BAPI
   . Attributes  : 한 Attribute는 BO에 관한 Data포함 (Object Property)
   . Events       : BO의 상태 변화 


- Inheritance and Polymorphism

 


 
Introduction to BAPIs Definition

 외부 Application에서 SAP R/3 Business Data를 Access가능하도록 SAP에서 제공하는 잘 정의
 된 Application Programming Interface.
 SAP BO의 Method로 정의.(실체 : R/3 Function Module)
 
Using BAPIs in Application Programs
  - You can call the BAPI in the BOR
  . SAP에 의해 제공되는 BAPI ActiveX Control.
  . 외부 Application이 OLE Automation을 통해 BAPI를 Call함으로써 BOR에 있는 BO를 Access
    가능케 함.
  . SAP의 BAPI C++ Class Library
  . SAP의 JAVA Class Library
  . Borland’s Delphi 개발 환경
  - BAPI의 실체인 Function Module을 Call
  . ABAP/4, C/C++ RFC class library를 지원하는 개발 Platform BAPI ActiveX Control이 가능하지
    않은 non-windows platform ABAP이 OO Middleware를 완벽하게 지원하고, SAP BO에 대한
    Direct Call이 허락될 때 까지,  Client Program이 SAP BO를 Access 하게하는 Low-level Soluti
    on을 지원하기 위함.
 
Application Programs에서 BAPI를 이용 시 필요한 일들
- 필요한 SAP BO와 BAPI를 찾아내고, 적절한 위치에 배치
- BAPI Interface에 관한 Parameter정보를 알아내고, 필요로 하는 값들을 준비한다.
- BAPI를 포함하고자 하는 Application Program에 적절하게 BAPI  call or Function Call,
  Parameter 선언.
 
Advantages of Using BAPIs
 - Business standard R/3와 다른 S/W Component사이의 Integration을 Business Level에서 
    가능케 함.
 - Standards Conformance BAPI는 Customer, Partner, 표준화 조직과 Joint형식으로 개발되었기
    때문에 Business System사이의 표준 Communication.
 - Stability and Downward Compatibility
     SAP에 의해 정의된 BAPI는 거의 변하지 않기 때문에, BAPI를 이용
     하는 외부 Application의 경우에, R/3의 변화에 거의 영향을 받지
     않는다. SAP는 BAPI를 사용하는 외부 Application에 영향을 주지
     않으면서 Parameter를 추가하는 등의 필요한 확장이 가능.
 - Object Orientation
 - Openness
     RFC를 지원하는 모든 개발 Platform에서 BAPI를 Call할수 있다.
 
Characteristics of BAPIs
 - Standards BAPIs
 - Database Consistency
 - No Dialog Orientation
 - Authorization
 - Data Types and Data Display
 - Synchronous and Asynchronous Processing
 - Business Object attributes
 
BAPI OCX와 BAPI Call 예

- OLE Automation을 통한 BAPI Call
- Business Object이 OLE Automation이 된다.
- Create OCX                                                      
   set oBapi = CreateObject(“SAP.BAPI.1”)
- Log on R/3                                                               
  oBapi.Connection.Logon      
- Get a Business Object                                        
  set oReq = oBapi.GetSAPObject(“PurchaseRequisition”)
- Initialize need tables                                          
  set tblReqs = oReq.DimAs(oReq, “GetList”, “ItemData”) 
- Call  
  Call oReq.GetList(ItemData:=oReq, OpenItems:=“X”, CloseItems:=“X”, Requisitioner:=“JONES”)

다음검색
현재 게시글 추가 기능 열기

댓글

댓글 리스트
맨위로

카페 검색

카페 검색어 입력폼