본문 바로가기

Archive/ABAP

SAP Gateway and OData

728x90

SAP Gateway and OData

Use

 

By exposing SAP Business Suite functionality as REST-based OData (Open Data Protocol) services, SAP Gateway enables SAP applications to share data with a wide range of devices, technologies, and platforms in a way that is easy to understand and consume.

SAPGateway는 SAPBusinessSuite기능을 REST기반 OData(OpenDataProtocol)서비스로 노출함으로써 SAP애플리케이션이 이해하기 쉽고 이해하기 쉬운 방식으로 다양한 장치, 기술 및 플랫폼과 데이터를 공유합니다.

 

Using REST services provides the following advantages:

REST서비스를 사용하면 다음과 같은 이점이 있습니다.

  • Obtain human readable results; you can use your browser to see what data you will get.

  • Use stateless applications

  • Receive related pieces of information, one leading to another.

  • Use standard GET, PUT, POST, DELETE, and QUERY. If you know where to GET data, you know where to PUT it, and you can use the same format.

  • 사람이 읽을 수 있는 결과를 얻습니다. 브라우저를 사용하여 어떤 데이터를 얻을지 볼 수 있습니다.

  • 상태 비저장 애플리케이션 사용

  • 다른 정보로 이어지는 관련 정보를 수신합니다.

  • 표준 GET, PUT, POST, Delete및 QUERY를 사용합니다. 데이터를 가져올 위치를 알고 있으면 PUT를 실행할 위치를 알고 동일한 형식을 사용할 수 있습니다.

What Is OData and Why Do We Use It?

OData란 무엇이고 왜 우리는 그것을 사용하는가?

 

OData is a Web protocol for querying and updating data, applying and building on Web technologies such as HTTP, Atom Publishing Protocol (AtomPub), and RSS (Really Simple Syndication) to provide access to information from a variety of applications. It is easy to understand and extensible, and provides consumers with a predictable interface for querying a variety of data sources.

OData는 HTTP, Atompub(AtomPublishingProtocol)및 RSS(ReallySimpleSyndication)와 같은 웹 기술을 기반으로 데이터를 쿼리 및 업데이트하는 웹 프로토콜입니다. 이는 이해하기 쉽고 확장 가능하며 소비자에게 다양한 데이터 소스를 쿼리 하기 위한 예측 가능한 인터페이스를 제공합니다.

 

AtomPub is the standard for treating groups of similar information snippets as it is simple, extensible, and allows anything textual in its content. However, as so much textual enterprise data is structured, there is also a requirement to express what structure to expect in a certain kind of information snippet. As these snippets can come in large quantities, they must be trimmed down to manageable chunks, sorted according to ad-hoc user preferences, and the result set must be stepped through page by page.

Atompub는 단순하고 확장 가능하며 내용에 텍스트를 허용하기 때문에 유사한 정보 조각 그룹을 처리하기 위한 표준입니다. 그러나 텍스트 기업 데이터가 구조화되어 있기 때문에 특정 유형의 정보 조각에서 기대할 구조를 표현할 필요가 있다. 이러한 조각은 대량으로 제공될 수 있으므로 관리 가능한 조각으로 잘라 임시 사용자 환경 설정에 따라 정렬해야 하며, 결과 세트는 페이지 단위로 단계별로 정리해야 합니다.

 

OData provides all of the above as well as additional features, such as feed customization that allows mapping part of the structured content into the standard Atom elements, and the ability to link data entities within an OData service (via "…related…" links) and beyond (via media link entries). This facilitates support of a wide range of clients with different capabilities:

OData는 구조화된 콘텐츠의 일부를 표준 Atom요소에 매핑 할 수 있는 피드 사용자 지정,"관련된…"서비스를 통해 OData서비스 내의 데이터 엔티티를 링크하는 기능과 같은 추가 기능과 함께 위의 모든 기능을 제공합니다. 이를 통해 다양한 기능을 갖춘 광범위한 클라이언트를 지원할 수 있습니다.

  • Purely Atom, simply paging through data.

  • Hypermedia-driven, navigating through the data web.

  • Aware of query options, tailoring the OData services to their needs.

  • 그냥 Atom, 단순히 데이터를 페이징만 하면 됩니다.

  • 하이퍼 미디어를 기반으로 데이터 웹 탐색

  • 쿼리 옵션을 인식하고 필요에 따라 OData서비스를 조정합니다.

OData is also extensible, like the underlying AtomPub, and thereby allows the addition of features that are required when building easy-to-use applications, both mobile and browser-based.

OData는 기본 Atompub과 같이 확장 가능하며, 따라서 모바일 및 브라우저 기반 애플리케이션을 구축할 때 필요한 기능을 추가할 수 있습니다.

 

OData for SAP Products

 

SAP Gateway uses OData for SAP Products, which contains SAP-specific metadata that helps the developer to consume SAP business data, such as descriptions of fields that can be retrieved from the SAP ABAP Dictionary. The following are examples of OData for SAP applications:

SAPGateway는 SAPABAP사전에서 검색할 수 있는 필드 설명과 같은 SAP비즈니스 데이터를 사용할 수 있도록 개발자에게 도움이 되는 SAP제품용 OData를 사용합니다. 다음은 SAP애플리케이션용 OData의 예입니다.

  • Human-readable, language-dependent labels for all properties (required for building user interfaces).

  • Free-text search, within collections of similar entities, and across collections using OpenSearch. OpenSearch can use the Atom Syndication Format for its search results, so the OData entities that are returned by the search fit in, and OpenSearch can be integrated into AtomPub service documents via links with rel="search", per collection as well as on the top level. The OpenSearch description specifies the URL template to use for searching, and for collections it simply points to the OData entity set, using a custom query option with the name of "search".

  • Semantic annotations, which are required for applications running on mobile devices to provide seamless integration into contacts, calendar, and telephony. The client needs to know which OData properties contain a phone number, a part of a name or address, or something related to a calendar event.

  • Not all entities and entity sets will support the full spectrum of possible interactions defined by the uniform interface, so capability discovery will help clients avoiding requests that the server cannot fulfill. The metadata document will tell whether an entity set is searchable, which properties may be used in filter expressions, and which properties of an entity will always be managed by the server.

  • Most of the applications for "light-weight consumption" follow an interaction pattern called "view-inspect-act", "alert-analyze-act", or "explore & act", meaning that you somehow navigate (or are led) to an entity that interests you, and then you have to choose what to do. The chosen action eventually results in changes to this entity, or entities related to it, but it may be tricky to express it in terms of an Update operation, so the available actions are advertised to the client as special atom links (with an optional embedded simplified "form" in case the action needs parameters) and the action is triggered by POSTing to the target URI of the link.

  • 모든 특성에 대한 사람이 읽을 수 있는 언어 의존적 라벨(사용자 인터페이스를 구축하는 데 필요).

  • Open/Search를 사용하여 유사한 엔티티 모음 내 및 컬렉션 간에 자유 텍스트 검색을 수행합니다. OpenSearch는 검색 결과에 AtomSyndication형식을 사용할 수 있으므로 검색에서 반환되는 OData엔터티와 함께 AtomSyndication형식을 사용합니다. OpenSearch설명은 검색에 사용할 URL템플릿을 지정하며,"검색"이름의 사용자 지정 쿼리 옵션을 사용하여 OData엔티티 집합을 가리키기만 하면 됩니다.

  • 시멘틱 주석-모바일 기기에서 실행 중인 애플리케이션이 연락처, 일정 및 전화 통신에 원활하게 통합되는 데 필요합니다. 클라이언트는 전화 번호, 이름 또는 주소의 일부 또는 일정 관리 이벤트와 관련된 정보를 포함하는 OData속성을 알아야 합니다.

  • 모든 엔티티와 엔티티 집합이 동일한 인터페이스에 의해 정의된 가능한 상호 작용의 전체 스펙트럼을 지원하는 것은 아니므로, 기능 검색은 클라이언트가 서버가 수행할 수 없는 요청을 피하도록 도와 줍니다. 메타 데이터 문서는 엔티티 집합이 검색 가능한지 여부, 필터 식을 사용할 수 있는 속성, 그리고 항상 서버에서 관리할 엔티티의 속성을 알려 줍니다.

  • "경량 소비"를 위한 대부분의 애플리케이션은 "뷰-검사-조치","모든 것을 분석하고"&를 탐색하는 "상호 작용 패턴을 따릅니다. 선택한 액션은 결국 이 엔티티 또는 이와 관련된 엔티티를 변경하지만 업데이트 작업으로 표현하기가 까다로울 수 있으므로 사용 가능한 액션은 "단순화된 선택적"의 클라이언트에 알림 링크의 대상 URI로 이동하는 중입니다.

The following simplified diagram shows how Atom, OData, and OData for SAP Products fit together:

다음의 간단한 다이어그램은 SAP제품의 Atom, OData및 OData가 어떻게 서로 맞는지를 보여 줍니다.

For more information about OData, see http://www.odata.org

 

OData - the Best Way to REST

OData (Open Data Protocol) is an ISO/IEC approved, OASIS standard that defines a set of best practices for building and consuming RESTful APIs. OData helps you focus on your business logic while building RESTful APIs without having to worry about

www.odata.org

 

728x90