0% found this document useful (0 votes)
345 views4 pages

SAP PO Mapping Sync SOAP To JDBC - Jaehoo Weblog

The document discusses how to create a service interface in SAP PO/PI to retrieve data from a database using SOAP and JDBC. It describes mapping message types between the request and response, with the response structure needing to have "_response" appended to field names from the request. Key aspects of mapping fields from the request to the database query and response are highlighted, such as mapping the "action" field to the SQL statement and "key1" to the WHERE clause.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
345 views4 pages

SAP PO Mapping Sync SOAP To JDBC - Jaehoo Weblog

The document discusses how to create a service interface in SAP PO/PI to retrieve data from a database using SOAP and JDBC. It describes mapping message types between the request and response, with the response structure needing to have "_response" appended to field names from the request. Key aspects of mapping fields from the request to the database query and response are highlighted, such as mapping the "action" field to the SQL statement and "key1" to the WHERE clause.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

5/3/2019 SAP PO mapping Sync SOAP to JDBC – Jaehoo Weblog

Jaehoo Weblog

Blog personal de jaehoo

SAP PO mapping Sync SOAP to JDBC


marzo 7, 2018abril 20, 2019

Well, this time I would like to share this tip to create a service interface to retrieve data from Database
with SAP PO/PI.

When you develop the message types to get SQL data you must to check the names and the structure of
the Data Types, for example, this is a simple structure to do this query:

1 SELECT VC_PEDIMENTO, INVNUM, VC_PRC_FILE_FLG
2 FROM MYTABLE WHERE (INVNUM='4900005421')

For the request sender message type you can write your own structure with any label names:

For the request receiver message type, the name of the structure is very important because when we
retrieve the data  is necessary to write in the receiver structure the same label  names and add “_
response” (internally SAP PO create the XML with this convention)

https://jaehoo.wordpress.com/2018/03/07/sap-po-mapping-sync-soap-to-jdbc/ 1/4
5/3/2019 SAP PO mapping Sync SOAP to JDBC – Jaehoo Weblog

note: the attribute hasQuot it’s used to add single quotes in the field on the WHERE clause.

Then in receiver message type your structure It must be like this, notice the “_response” on the two first
elements, the are the same of the previous request structure:

The label statement_response it’s not mapped because in the runtime execution will be added. And
that’s it, now the mappings look like this, the request:

The important fields are mapped with:

action: has the SELECT operation


table: the name of the table on DB

https://jaehoo.wordpress.com/2018/03/07/sap-po-mapping-sync-soap-to-jdbc/ 2/4
5/3/2019 SAP PO mapping Sync SOAP to JDBC – Jaehoo Weblog

access: has the all fields to retrieve, they are mapped with a constant with an empty blank space
character.
key1: it’s the fields on WHERE clause, it has the attribute to add single quotes

The response:

The fields are mapped one to one except statement_response.

If you want to know more about the document formats and attributes on JDBC adapter I recommend
check this document
(https://help.sap.com/erp2005_ehp_04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.ht
m?no_cache=true).

Cheers,

References

https://blogs.sap.com/2006/07/03/jdbc-receiver-adapter-synchronous-select-step-by-step/
(https://blogs.sap.com/2006/07/03/jdbc-receiver-adapter-synchronous-select-step-by-step/)
https://help.sap.com/erp2005_ehp_04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.
htm?no_cache=true
(https://help.sap.com/erp2005_ehp_04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content
.htm?no_cache=true)
http://saptechnical.com/Tutorials/XI/SOAP2JDBC/Page1.htm
(http://saptechnical.com/Tutorials/XI/SOAP2JDBC/Page1.htm)

Publicado en: Development, General, Información, SAP, SAP PI | Etiquetado: Development, mapping, SAP
PI
This site uses Akismet to reduce spam. Learn how your comment data is processed.

CREA UN BLOG O UN SITIO WEB GRATUITOS CON WORDPRESS.COM.

https://jaehoo.wordpress.com/2018/03/07/sap-po-mapping-sync-soap-to-jdbc/ 3/4
5/3/2019 SAP PO mapping Sync SOAP to JDBC – Jaehoo Weblog

https://jaehoo.wordpress.com/2018/03/07/sap-po-mapping-sync-soap-to-jdbc/ 4/4

You might also like