Quantcast
Channel: Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 741

SAP PI ABAP Proxy to JDBC Synchronous Interface Part II

$
0
0

This part I will show that how to configure PI ESR and generate ABAP proxy consumer in ABAP system.

 

2. Configure ESR

2.1 Create Data Type

Request data type in ERP side:

27.png

 

Response data type in ERP side:

  28.png

 

Request data type in 3rd Party

  29.png

The JDBC XML format can be found in SAP help in the 5 part Reference

In this scenario I want to use JDBC Adapter to execute a store procedure, so should use the XLM format as below:

Format of EXECUTE Statement

<StatementName>     <storedProcedureName action=" EXECUTE">          <table>realStoredProcedureeName</table>          <param1 [isInput="true"][isOutput=true]type=SQLDatatype>val1</param1>     </storedProcedureName ></StatementName>

 

PS: <table> element is optional, I leave out in the data type.

Element name ”SP_GET_SUPERIOR_APPROVER” is the store procedure name.

 

Reponse data type in the 3rd party side:

  30.png

 

PS: The element name “Procedure_response” is required according to element name “Procedure” in request data type;

I don’t find the explain for “reponse_1” and “row” in SAP help, but they could be found in PI message monitor.

 

2.2 Create Message Type

Request message type in ERP side:

  31.png

 

Reponse message type in ERP side:

  32.png

 

Request message type in 3rd party side:

  33.png

Response message type in 3rd party side:

  34.png

 

PS: The response message type name must be “<reqmt>_response”, <reqmt> is the request message type name.

 

2.3 Create Service Interface

Service interface in ERP side:

  35.png

Outbound and Synchronous.

Service interface in 3rd party side:

  36.png

 

2.4 Create Message Mapping

Request message mapping:

  37.png

From ERP request message type to 3rd request message type

  38.png

The value for action should be “EXECUTE” for store procedure.

  39.png

 

Response message mapping:

  40.png

 

2.5 Create Operation Mapping

  41.png

42.png

 

3. Generate ABAP Proxy Consumer

3.1 Configure RFC destination to ESR

Tcode: SM59

The RFC destination name must be: “SAP_PROXY_ESR”

  43.png

Input the PI server host and port in “Target Host” and “Service No.”, the “Path Prefix” must be “/rep”.

  44.png

 

3.2 Generate Consumer

Tcode: SPROXY

  45.png

Double click the Service Consumers(Service Interface in PI) “SI_A2J”

  46.png

47.png

  Activate!

 

The links of other parts:

http://scn.sap.com/community/pi-and-soa-middleware/blog/2015/09/02/sap-pi-abap-proxy-to-jdbc-synchronous-interface-part-i

http://scn.sap.com/community/pi-and-soa-middleware/blog/2015/09/02/sap-pi-abap-proxy-to-jdbc-synchronous-interface-part-iii

http://scn.sap.com/community/pi-and-soa-middleware/blog/2015/09/02/sap-pi-abap-proxy-to-jdbc-synchronous-interface-part-iv

 

 


Viewing all articles
Browse latest Browse all 741

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>