You are on page 1of 3

Graphical Mapping Technique in SAP NetWeaver Process Integration Applies to: SAP NetWeaver XI/PI mappings.

For more information, visit the Repository-based Modeling and Design homepage. Summary This guide answers the various common mapping requirements and their implementat ion using graphical mapping. The scope of this document is to provide an overvie w of the necessary design tasks and tools for selected mapping requirements. Author: Alok Chaurasia Company: Accenture Created on: 20 August 2009 Author Bio I am a NetWeaver consultant working mainly in the Process Integration part of th e SAP NetWeaver framework with Accenture Services India. I am mainly working on SAP XI, JAVA and have exposure to SAP MDM, ABAP and other middleware tools like TIBCO, MQ Series. I have 4 years of total IT experience including 3 years of SAP NetWeaver XI Experience. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sa p.com | BOC - boc.sap.com 2009 SAP AG 1 Graphical Mapping Technique in SAP NetWeaver Process Integration Table of Contents Introduction ................................................................... ................................................................................ ..... 3 Requirements ................................................................... ................................................................................ . 3 Check input values in predefined set of values: ................................ ............................................................. 3 Approach 1 ..................................................................... ................................................................................ 4 Design ......................................................................... ................................................................................ ................ 4 Result ......................................................................... ................................................................................ ................. 4 Approach 2 ..................................................................... ................................................................................ 5 Design ......................................................................... ................................................................................ ................ 5 Result ......................................................................... ................................................................................ ................. 7 Related Content ................................................................ ................................................................................ . 8 Disclaimer and Liability Notice ................................................ ............................................................................ 9 S AP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 2009 SAP AG 2 Graphical Mapping Technique in SAP NetWeaver Process Integration Introduction This guide answers the various common mapping requirements and their implementat ion using graphical mapping. The scope of this document is to provide an overvie w of the necessary design tasks and tools for selected mapping requirements. This guide is intended for use in conjunction with the accompanying screen shots

. The screen shots serve as an entry point to the guide by providing high-level guidance at a glance, while the guide provides step-by-step instruction for the individual design tasks Requirements This section deals with the mapping requirements, design and their results. Fig 1: Standard Structure Check input values in predefined set of values: We have a requirement where we have to check whether the input values are presen t in the given set of value if present then return true else return false. SAP C OMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 2009 SAP AG 3 Graphical Mapping Technique in SAP NetWeaver Process Integration Approach 1 Requirement: if age equals 11 or 21 then generate the target segment. Normally we address this requirement in graphical mapping using equals, ifWithou tElse and Or standard functions. If we have to check the input value within 2 or 3 given values then it can be used. Design Result However if we have to check the input value within many values let say some 30 o r more given values then this approach may not be the wise option. For this kind of requirement Approach 2 will be the best fit. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 2009 SAP AG 4 Graphical Mapping Technique in SAP NetWeaver Process Integration Approach 2 Design indexOf2 : Standard function We can address this kind of requirement by indexOf2 standard function. Here in the below given screenshot age is the input field contain some value whi ch we have to check within the given set of values maintained in the constant. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 2009 SAP AG 5 Graphical Mapping Technique in SAP NetWeaver Process Integration Here in constant we can write all the values. We can separate the values written in constant by comma, forward slash (/) or other special character to avoid err or and confusion. How it works: 1. age : is a source field contains input values. Now we have to check whether the input values are present in the predefined set of values, if present then return true else false 2. Constant: in constant we have to put all those values which will get compared wi th the input values. 3. indexOf2: this function will check the input value in the constant and if input value found then return the starting index (position) of the value. 4. Greater: this function will check whether the input is greater then -1 then retu rn true else return false. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 2009 SAP AG 6 Graphical Mapping Technique in SAP NetWeaver Process Integration Result All those segment has been generated where the age value equal to the defined va lues in the constant. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 2009 SAP AG 7 Graphical Mapping Technique in SAP NetWeaver Process Integration

Related Content SAP Help - Standard Functions For more information, visit the Repository-based Modeling and Design homepage. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 2009 SAP AG 8 Graphical Mapping Technique in SAP NetWeaver Process Integration SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 2009 SAP AG 9 Disclaimer and Liability Notice This document may discuss sample coding or other information that does not inclu de SAP official interfaces and therefore is not supported by SAP. Changes made b ased on this information are not supported and can be overwritten during an upgr ade. SAP will not be held liable for any damages caused by using or misusing the info rmation, code or methods suggested in this document, and anyone using these meth ods does so at his/her own risk. SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this doc ument and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document.

You might also like