Sunday, July 10, 2016

PI Configuration

On PI system:

1. Create Enterprise Services Repository Objects:

Enterprise Services Builder requires you to install Java SDK to run this Enterprise Services Builder.

1-1 Create software component version:
1-2 Create Namespace
1-3 Create Data Type for Sender and Receiver:

Data type is declared using XML Schema Definition.

For example:
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://phudt_test" targetNamespace="http://phudt_test">
   <xsd:complexType name="DT_PHU_R_01">
      <xsd:sequence>
         <xsd:element name="PRODUCT" maxOccurs="unbounded">
            <xsd:complexType>
               <xsd:sequence>
                  <xsd:element name="PRO_ID" type="xsd:string" minOccurs="0" />
                  <xsd:element name="PRO_NAME" type="xsd:string" minOccurs="0" />
               </xsd:sequence>
            </xsd:complexType>
         </xsd:element>
      </xsd:sequence>
   </xsd:complexType>
</xsd:schema>


Some useful indicators:
  • Occurrence indicators: Occurrence indicators are used to define how often an element can occur.
1-4 Create message type for sender and receiver

Message type is the wrapper of data type. You will be using your message type while mapping but not the data type. It's the abstraction concept used in oops. A message type comprises of a data type that describes the structure of a message.
Data type is like a Structure and message type is like a internal table in ABAP.


1-5 Create Message Mapping



Message Mapping is a set of rules for producing target XML from the source XML.These rules are nothing but relations between the source XML tags and target XML tags.

1-6 Create Service Interface for Sender and Receiver


There are two cases of interface to be created:
·  Inbound (provider/sender role)
You want to implement a service in an application system, which can be called by a user.
·  Outbound (consumer/receiver Role)
You want to call a service of a provider. To do so, you require the outbound service interface that matches your inbound service interface.


A service interface enables you to describe – independently of a platform or programming language – operations that you require later for an implementation in the application system at a later stage. 
In the application system, you use proxy generation to generate development objects for implementation based on the service interfaces. Proxy generation generates the following objects automatically:
·  Proxy objects (for example, classes, methods, and data types).
·  A service definition for communication using the Web service run-time.
This graphic is explained in the accompanying text

1-7 Create Operation Mapping


You use an operation mapping to relate an outbound service interface operation with an inbound service interface operation and assign Mapping Program by Message Mapping. You can also relate IDoc and RFC interfaces with entities of the same type or with service interface operations. This is illustrated in the following figure:


2. Create Integration Directory:

2-1 Create Business Component for Sender and ERP

You define a business component to use it as an abstract communication unit that can function as a sender or receivers of messages. A business component is used when the details of a technical system is not exposed. Instead, you can group the interfaces that are publicly available under a business component.

2-2 Create Communication Channel for Sender and ERP

We define the rules for handling messages during inbound or outbound processing. A communication channel defines the type and configuration of the adapter used during inbound or outbound processing. Communication channels are defined under business systems/services. There are two types of communication channels: Sender Communication Channel (contains the configuration data for a sender adapter) and Receiver Communication Channel (contains the configuration data for a receiver adapter).
  • Tab Parameters:
    • Adapter Type: eg. file: data converting to file, SOAP: data exchange as XML SOAP

2-3 Create Integrated Configuration



Reference:
https://aspireopenmic.com/2012/02/14/pi101-basic-things-you-need-know-about-pi/


No comments:

Post a Comment

SAP giới thiệu mã hỗ trợ AI trong ngôn ngữ ABAP riêng của mình

SAP đã ra mắt một loạt tính năng mã hỗ trợ AI trong môi trường phát triển ứng dụng dựa trên đám mây của mình, đồng thời tham gia vào danh sá...