Value Mapping Replication For Mass Data in PI 7.0 or PI 7.1

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 16

Value Mapping Replication for

Mass Data in PI 7.0 or PI 7.1

Applies to:
PI 7.0 – PI 7.1

Summary
Here you’ll find a little example of how you can make a value mapping replication for mass data. It’s an
easier example for beginners. I hope you enjoy it and useful.

Author(s): Marco Salazar S.


Company: NEORIS Chile
Created on: August 19, 2009

Author Bio

PI Senior consultant certified like developer and installation, worked in SAP Chile for 5 years,
including education area as PI instructor in different countries in LA, now working as senior
Business Consultant at NEORIS Chile.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 1
Value Mapping Replication for Mass Data in PI 7.0 or PI 7.1

Table of Contents
Integration Repository or Enterprise Service Repository (ESR)........................................................................3
Integration Directory..............................................................................................................................................4
Receiver Communication Channel.....................................................................................................................................5
Sender Communication Channel .......................................................................................................................................6
Sender Agreement ..............................................................................................................................................................7
Crear Receiver Determination ............................................................................................................................................8
Interface Determination.....................................................................................................................................................10
Receiver Agreement .........................................................................................................................................................11
How to Test?........................................................................................................................................................12

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 2
Value Mapping Replication for Mass Data in PI 7.0 or PI 7.1

Scenario
Well, we need to complete our value mapping tables from an external data, may be you’ll find a lot of
solutions, but why invent the wheel, if we already have a service interface available for this purpose.

Ok here we go:
First, we must register the service in our java proxy, to do this you have to put this link on your browser,
remember change the host and port of this for your own data.

http://<host>:<port>/ProxyServer/register?ns=http://sap.com/xi/XI/System&interface=ValueMappingReplicati
onOutSynchronous&bean=localejbs/sap.com/com.sap.xi.services/ValueMappingApplicationSynchronous&m
ethod=ValueMappingReplicationOutSynchronous
Great, first step done. Now we need to do some things, I’ll explain now.

Integration Repository or Enterprise Service Repository (ESR)


Like you can see on the picture and as we said in the last text, the services already exist, so we don’t need
to do nothing on the ESR. But take a look for the object there, you have to go to:

SWCV SAP BASIS 7.10


namespace http://sap.com/xi/XI/System
Interface Name ValueMappingReplicationOutSynchronous

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 3
Value Mapping Replication for Mass Data in PI 7.0 or PI 7.1

Well have you found something weird??.. no right, it’s all know or us. Well let’s continue with our little
introduction.

Integration Directory
Here we need to create a new business component, called Test_Value_Mapping, and do not forget put the
inbound and outbound interface ValueMappingSynchronous.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 4
Value Mapping Replication for Mass Data in PI 7.0 or PI 7.1

Receiver Communication Channel


Here we use an XI receiver communication channel, the most important here is the Path Prefix, this have to
appoint to /MesaagingSystem/receive/JPR/XI

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 5
Value Mapping Replication for Mass Data in PI 7.0 or PI 7.1

Sender Communication Channel


This will be a SOAP sender communication channel, so this way we can expose our interface as a
webservice, and this is an easier way to complete our value mapping table ;) . don´t you think?.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 6
Value Mapping Replication for Mass Data in PI 7.0 or PI 7.1

Sender Agreement
Well the sender agreement is like this, appointing to our Communication channel.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 7
Value Mapping Replication for Mass Data in PI 7.0 or PI 7.1

Receiver Determination
Ok, we have the half of our job done it, now we configure the receiver determination, like this:

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 8
Value Mapping Replication for Mass Data in PI 7.0 or PI 7.1

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 9
Value Mapping Replication for Mass Data in PI 7.0 or PI 7.1

Interface Determination
The interface determination do not need a message mapping, because we sending the same structure like
the message type of the service interface, great, easier no?...

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 10
Value Mapping Replication for Mass Data in PI 7.0 or PI 7.1

Receiver Agreement

Well, we have done our configuration, now we need test our interface, like we say here in Chile “listo”.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 11
Value Mapping Replication for Mass Data in PI 7.0 or PI 7.1

How to Test?
To make the test we will use the SAP PI HTTP Client

This is the XML content to test our interface or webservice

<ns1:ValueMappingReplication xmlns:ns1="http://sap.com/xi/XI/System"
xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance">
<Item>
<Operation>Insert</Operation>
<GroupID>fe9ffaa0494211dea47b001e372d2d65</GroupID>
<Context>http://sap.com/xi/XI</Context>
<Identifier scheme="TESTVALMAP"
agency="UXD">TESTVALUEMAPPING</Identifier>
</Item>
</ns1:ValueMappingReplication>

Well we put this payload in the client, complete the information on the blanks, you can take the information
from the receiver determination.

The server response

<ns:ValueMappingReplicationResponse
xmlns:ns="http://sap.com/xi/XI/System">true</ns:ValueMappingReplicationResponse>

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 12
Value Mapping Replication for Mass Data in PI 7.0 or PI 7.1

Now we have to check our test, don’t we?


Well it’s easier go to
http://<host>:<port>/rwb/FrontComponent/FC_Secure.jsp?doAction=showCacheMonitoring

Then you must choose the corresponding Value Mapping depending of your group.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 13
Value Mapping Replication for Mass Data in PI 7.0 or PI 7.1

Well there is our result

Can you See?!!!! … It’s easier, now you can make more examples by you, and make and stronger value
mapping in your interfaces.

Regards.

Marco Salazar
Marco.salazar@neoris.com

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 14
Value Mapping Replication for Mass Data in PI 7.0 or PI 7.1

Related Content
Please include at least three references to SDN documents or web pages.
http://help.sap.com/saphelp_nwpi711/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/frameset.htm
http://sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00ee347e-aabb-2a10-b298-d15a1ebf43c5
https://www.sdn.sap.com/irj/scn/weblogs

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 15
Value Mapping Replication for Mass Data in PI 7.0 or PI 7.1

Copyright
© Copyright 2009 SAP AG. All rights reserved.
No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG.
The information contained herein may be changed without prior notice.
Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors.
Microsoft, Windows, Excel, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation.
IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x, System z, System z10, System z9, z10, z9,
iSeries, pSeries, xSeries, zSeries, eServer, z/VM, z/OS, i5/OS, S/390, OS/390, OS/400, AS/400, S/390 Parallel Enterprise Server,
PowerVM, Power Architecture, POWER6+, POWER6, POWER5+, POWER5, POWER, OpenPower, PowerPC, BatchPipes,
BladeCenter, System Storage, GPFS, HACMP, RETAIN, DB2 Connect, RACF, Redbooks, OS/2, Parallel Sysplex, MVS/ESA, AIX,
Intelligent Miner, WebSphere, Netfinity, Tivoli and Informix are trademarks or registered trademarks of IBM Corporation.
Linux is the registered trademark of Linus Torvalds in the U.S. and other countries.
Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of Adobe Systems
Incorporated in the United States and/or other countries.
Oracle is a registered trademark of Oracle Corporation.
UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group.
Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of
Citrix Systems, Inc.
HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C®, World Wide Web Consortium, Massachusetts
Institute of Technology.
Java is a registered trademark of Sun Microsystems, Inc.
JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by
Netscape.
SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP Business ByDesign, and other SAP products and services mentioned
herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries.
Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and
other Business Objects products and services mentioned herein as well as their respective logos are trademarks or registered
trademarks of Business Objects S.A. in the United States and in other countries. Business Objects is an SAP company.
All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document
serves informational purposes only. National product specifications may vary.
These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP
Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or
omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the
express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an
additional warranty.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com


© 2009 SAP AG 16

You might also like