Beruflich Dokumente
Kultur Dokumente
Jaehoo Weblog
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:
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:
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.
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