Now a days we can see that there are a lot of requirements regarding to implement our Big Data, ERP interoperability or Data Warehousing needs, and some companies use SAP PI independent if it is or not a best practice. So for this reason i share some interesting topics:
A. What Teradata is?:
B. After that, you will be able to implement different SAP PI Integrations using SQL Best Practices:
C. SAP PI Configuration:
1. Enterprise Service Repository:
You can implement just ONE Service Interface Outbound simulating the Inbound service interface, just if Metadata (Data Types) are equals…
We implement the structure to request the information via Macro and from the clienttest (sender) we will add the data requeried, and will be delivered the same structure to the receiver:
For the response we create the next structure, just adding that we need to include “_response” after the name of the above DT_name, now called DT_name_response.
2. Integration Directory:
Now we can implement a classic interface or an ICO (Integrated Configuration) as bellow, and the important logic here is that the Service Interface Outbound must to be configured in the Receiver Interfaces following the “trick”. This is because we have the same structure in the sender and the receiver metadata.
We can implement a SOAP Sender Communication Channel, to play with SOAPUI and to confirm the functionality.
And the important configuration is the JDBC Receiver, to connect to Teradata via JDBC Driver and the important parameters.
D. Teradata Structures:
The SQL Macro Sentence that execute the macro, will be:
EXEC MACRO_TERADATA_NAME (3, '2017-03-03');
And the Macro maybe call a select statement, with some structure like this, that will return in our example the rows that match with Id=3 and Date=2017-03-03:
Table: Structure to be called by MACRO_TERADATA_NAME | ||
Id | Date | Amount |
3 | 2017-03-03 |
|
3 | 2017-03-03 |
|
3 | 2017-03-03 |
|
2 | 2017-03-03 |
|
1 | 2017-03-03 |
|
E. Test via SOAPUI to SAP PI SOAP to SAP PI JDBC Teradata driver in Synchronous Mode.
Now we can request the following information:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="HERE YOUR NAMESPACE">
<soapenv:Header/>
<soapenv:Body>
<urn:MT_Teradata>
<SAPStandard4SQL>
<Macro action="SQL_QUERY">
<access>EXEC MACRO_TERADATA_NAME (3, '2017-03-03');</access>
</Macro>
</SAPStandard4SQL>
</urn:MT_Teradata>
</soapenv:Body>
</soapenv:Envelope>
In SOAPUI we confirmed that we consumed the web service, requesting the EXEC Statement and we received the response whit the 3 rows that matched:
And we will receive something like this:
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Header/>
<SOAP:Body>
<urn:MT_Teradata_response xmlns:urn="USE HERE URE NAMESPACE">
<SAPStandard4SQL_response>
<row>
<Id>3</Id>
<Date>2017-03-03</Date>
<Amount>100000.0000</Amount>
</row>
<row>
<Id>3</Id>
<Date>2017-03-03</Date>
<Amount>200000.0000</Amount>
</row>
<row>
<Id>3</Id>
<Date>2017-03-03</Date>
<Amount>300000.0000</Amount>
</row>
</SAPStandard4SQL_response>
</urn:MT_Teradata_response>
</SOAP:Body>
</SOAP:Envelope>
With this we can confirm the easy way to integrate Teradata and SAP PI in other ways...
Thank you!,
Azael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
9 | |
7 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 |