Mapping field to particularly a[2] element in an array of values.

Hi Experts,
The source structure is
MT
RootNode
        Parent(1..unbounded)
                 Contact(0..unbounded)
                         Phone(0..1)
                               Subscriber(0..)
I've to map a target node to Parent->Contact(1)->Phone->Subscriber node only and skipping all other occurences of Contact.
How do we do it in PI?
Regards,
Vishal

P836340 wrote:>
> For Ex:
> In my input file the following data come..
> <?xml version="1.0" encoding="UTF-8"?>
> <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
>    <ns0:Message1>
> <DT>
>  <Contact >
>                <Telephone >9857468<Property>
>                <Description >EFGH<Description>
> </Contact>
>  <Contact >
>                <Telephone >989897468<Property>
>                <Description >EFGH<Description>
> </Contact>
> </Contact>
>    </ns0:Message1>
> </ns0:Messages>
>
> I want only the 2nd Telephone value to be used in mapping.
Hi Vishal,
You want ony the 2nd Telephone numer....
Did you mean to say, If you are having 5 Telephone numbers you want to use only 2nd telephone number..
Mention your requirement properly...
Thanks.
Edited by: Jyothi Anagani on Aug 21, 2009 11:58 AM

Similar Messages

  • Using "Update All Mapped Fields" with multi-value attributes

    Is it possible to update a value in a multi-value attribute through the import manager?  It appears that if a source value is different then it just gets added as another value to the record.
    For example, a product has an attribute of speed which is measured in revolutions/minute. Some products can be rated at two speeds (i.e. 1800/3600).
    I created a numeric attribute for speed and enable only nominal rating and selected multi-valued.
    In import manager, I set "/" as multi delimiter for source field.  This created two entries in destination attribute, 1800 and 3600. 
    However, if on subsequent imports the speed values changes for this record (i.e. 1200 and 1800) then I will now have 1200, 1800, and 3600 as values for this record.
    Would the proper solution be to create two individual numeric attributes that are single valued (i.e. Speed1 and Speed2)?

    Hi Aaron,
    in your example it would make sense to use two different attributes called "Speed1" and "Speed2". Using the multi value option, MDM allows you to store a list of values into a single field. This list is more or less unlimited, you can add as many values as you like. A change of an existing value is not possible. The reason is that Import Manager does not know, which value you've changed! So it simply adds the "new" record (which is the 1200 in your example) to your value list. This is the intended behaviour of the "update all mapped fields option". If you really want to replace the values, you can check if the "Replace" option is useable for you. But note, that the replace will replace the complete existing record with the incoming new one. This means if the product you want to import with the replace option is smaller than the existing one (maybe it does not contain values for all segments), you'll loose data in MDM.
    BR Michael

  • OIM: Mapping to a particular OU in AD

    I have to create an adapter so that an Division from HR is mapped to a particular OU in AD.
    Like a Accounting divioson form HR system being mapped to OU=Users, ou=accouting
    I belive I can start creating the adapter from adapter factory.
    So i was trying to add the variable list but was not sure which type of variable I should be declaring the same. And also I believe i will have to define a logical task so that actions can be selected. But when I select a type of statement like for example IF, ELSEIF,.. I dont know how to match Operand Qualifier
    Thanks in advance.

    are you using the ootb ad conenctor pack? if so then there is a lookup field in the process form that brings up the values to the groups that the user should be added to, you can start by adding the "ou-users,ou=accounting" string to that lookup def so that it shows up when you do a direct provisioning this will be something that the admin will need to select.

  • Update (All Mapped Fields) Import Action creates a new record.....

    Hi All,
    I am on MDM 5.5 sp6,and this weird thing happens everytime i run the "update all mapped fields" option in the import manager,it creates a new duplicate field with the updated value record.Is this  a bug in sp6 or I guess i am going wrong somewhere.I want to update a particular field in the qualified table and i am using a import file which has values for qualified field on the main table and the values for the qualified table itself.
    Any Help greatly appreciated
    Thanks

    Hi Aravind,
    I am on MDM 5.5 sp6,and this weird thing happens everytime i run the "update all mapped fields" option in the import manager,it creates a new duplicate field with the updated value record.Is this a bug in sp6 or I guess i am going wrong somewhere.I want to update a particular field in the qualified table and i am using a import file which has values for qualified field on the main table and the values for the qualified table itself.
    MDM should not behave in this way. I thing there is an issue with the Matching Field you have choosen.
    I think you have choosen all the FIeld as the Matching Field ( Tab) while IMporting.
    Hence any change in any value, creates another dupliacte record( which we do not want)
    Please select any Field with unique values ( like the Material ID, Customer ID etc) which will ensure that the particular records are updated with the new Values coming in.
    You will find the new value getting updated for the records which are already present. It will not create a duplicate record
    Hope it helps.
    *Please reward points if helpful
    Thanks and Regards
    Nitin Jain

  • Message Mapping Field Name

    Hi!  I am trying to get the Field name of the XML element, when I am defining my own function.  Can someone please provide me some help!  Example:
    In the Graphical Editor, let's just say we drop the following fields:
    Source                                     Target
    City                 to                    City
    How can I grab the XML field name "City"?
    Thanks,
    Rob

    Hi Robert,
    In the Message Mapping, there is a button named 'Text Preview', just below the Tab names 'Design - Test - Messages'. If you click that, it displays the complete mapping in a text area. It conatins full paths of all mapped fields, similar to the XPath, which you can use in your function.
    If this helps you, please remember to award the points and close the post.
    Good luck,
    Bhanu

  • OCI Mapping field/table

    Hi Gurus,
    This is regarding an issue that I am facing with some materials in punchout catalog used with SRM5.0
    For some particular items, I get an error "Incomplete items in catalog, only complete items were transferred" on transferring the data from catalog to shopping cart. I checked the slg1 log and found that the error message shows "00001 E BBPWS Unit of measure D97 is not an ISO code. Item will not be transferred D97".
    For this item, the catalog shows the unit of measure as Pallets. In the CUNI transaction, the SRM system has D97 and PF having the same descirption 'Pallet'. In the 'Unit of measure' tab, the Pallet unit is maintained as 'PAL' with ISO code as 'PF'. But, I am unable to understand how the D97 UoM is picked by the SRM system while transferring data from the catalog.
    Can someone tell me where to look for the mapping fields? I mean where is the data mapping between catalogs and SC saved?
    I referred SAP note 395312 which says that  "check the mapping of the catalog attributes on the OCI fields in the SAP CartEditor (Logon to the ECManager: Administration --> Configuration -> Shopping Cart)." Can someone guide me as to where to look for this link? What does ECManager logon mean? I am unable to find this link in the web login of SRM. Please help me to find a solution to this.
    Thanks n Regards,
    Ancy

    Hi Masa,
    Thanks for the inputs. I checked the slg1 log for catalog interface log and it helped us reach into the program saplbbp_ws_api.
    My ABAP consultant tells me that this program is in-turn calling some function modules to read the data. But, he can only conclude that D97 is coming from function module BBP_WS_MAP_OCI_TO_SC and the comment on this call is 'Map from OCI or XML to the SC structure'.
    But, then again I am back to my original question: How do I see the mapping rules from OCI?
    Thanks n Regards,
    Ancy

  • I can not map field after changing data source location

    Hi
    I have a small problem that I got a report file and database from my customer, after that I setup database, open the file and change data source to my setting. but some filed can not map. The field mapping widonw does not display all field in the table. Of course I have checked the missing fields are existing in the table.
    OS:Windows7
    DB:Oracle11
    CR:XI Release 2
    Does anyone have an idea?

    hi,
    In Map Fields window, there is an option "Match Type".
    Please Unchek that option, so that you will be able to see all the fields from that table.
    Also, while mapping please verify the datatypes of source and target fields.
    Regards,
    Vamsee

  • How to set/get the values thru Wedbynpro coding for User mapping fields

    Hi All
    In system object we have the user mapping fields like District,city,plant,Salesmanager.
    now we want to set/get the values of these usermapping fields of system object thru webdynpro coding...
    if anybody have sample codes of the same then it would be great help to me
    Thanks in advance
    Thanks
    Trisha Rani

    Hi Kavitha
    Thanks for your reply
    My requirement is exactly as follows.
    1) i have created one portal system object in system administration and also i created usermapping fields in the system object from the usermanagement  in system object.
    i created the user mapping fields like Plant,SalesManager,District etc.
    i also created the system alias name for the same system object
    2)  Now i came to persoanlize link and mapped the system object to the portal user.
    while mapping to the system object we need to enter Mapping userId, Password , once we enter these values and we can also enter the values of usermapping fields which we defined while creating the system object ( for example District,Salesmanager,Plant etc)
    once we enter all the values and click on save then these usermapping  values to be mapped to the portal user.
    3) Now my requirement is , i  want to control the usermapping field values thru webdynpro coding for setting/getting the values.
    I need sample code of the same.
    Please let me know if u need more details on the same.
    Thanks
    Trisha Rani

  • I need to run a map against a particular dataset  - how can i do it in OWB

    Hello again :)
    I need to run a map against table on a particular dataset (WHERE clause) - how can i do it in OWB?
    The map is loading data from table A into table B (doing all sorts of wierd and wonderful things in between). Now table A had more (a lot more) data added which i have to load into table B.
    How can i modify my map so that it only runs agains this newly added data (normally i would do a where clause).
    i cannot find how to do it in OWB :(
    The map i am runnig is fairy complex so i didn't really want have to create another table/view of the data i need then remap in all etc.
    Any ideas would be greatly appreciated.
    thank you very much
    Kind Regards
    Vix

    Hello AP
    Well that is the thing - records are constantly added to table A all the time and then undergo tramsformations and loaded into table B. What i want to do is somehow indicate in the the map to only run agains records that have beed added (colmn2 = 'value').
    At the moment i created a view for the desired dataset (colm2 = 'value') and remapped everything. But it is a bit of a pain:
    1) there are a lot of functions and each takes a number of columns (i have some functions taking up to 6 diff columns)
    2) i have data loaded to table A all the time and i need to then transform and load it to table B. so i try to aviod doing the whole re-mapping thing all the time.
    In TOAD it would be a simple statment 'where colm2 = 'value' and all my functions will be run agains those records that satisfy the condition. How can i do it in OWB?
    If i use filter - i would have to use 'mid' table where filtered records will be loaded and from that use 'mid' table as table A in the map. does this make sense?
    the main disadvantage is the performance - moving data from one table to 'mid' table etc.
    I tried using conditional load filter and it still doesn't do what i want.
    After trying diff options i decided to ask people here about it. The only thing i have left to try is to ask Oracle support. I am sure it would be a 'user knowledge' as i am sure this functionality exist i just can't find any references to it.
    Thank you very much for all your help. In fact this forum helped me a lot with a number of other issues :)
    i just feel like a lemon coz it is very simple thing and i can't find how to do it...
    Kind Regards

  • In LabVIEW6i, is there a way to make particular elements of an array invisible while the others stay visible (without losing any element's info.)?

    I have an array of clusters. Each cluster pertains to a certain oscilloscope I am controlling. There is another control which specifies which oscilloscopes I have "on".
    If a particular oscilloscope is "on" I want its cluster to be VISIBLE in the array. If a particular oscilloscope is "off" I want its cluster to be INVISIBLE in the array.
    How can I implement this in my program without losing ANY of the info. in my array?

    I suggest to use two arrays; one for user interface holding the ON clusters,
    and one for internal use holding all clusters. The diagram periodically
    updates the internal array with user interface array data.
    By INVISIBLE do you mean "skipped from the array" or displayed as an empty
    placeholder? To hide an OFF cluster you could put in the cluster a flat
    button boolean that is small and transparent when ON and large enough to
    cover the whole cluster area (and other controls) when OFF.
    Jean-Pierre Drolet
    Scientech R&D
    "mcmastal" a écrit dans le message news:
    [email protected]..
    > In LabVIEW6i, is there a way to make particular elements of an array
    > invisible while the others stay visible (without losing any element's
    > info.)?
    >
    > I have an array of clusters. Each cluster pertains to a certain
    > oscilloscope I am controlling. There is another control which
    > specifies which oscilloscopes I have "on".
    > If a particular oscilloscope is "on" I want its cluster to be VISIBLE
    > in the array. If a particular oscilloscope is "off" I want its
    > cluster to be INVISIBLE in the array.
    > How can I implement this in my program without losing ANY of the
    > info. in my array?
    LabVIEW, C'est LabVIEW

  • Getting Error in java mapping: Parsing empty source. Root element expected!

    Hi Experts,
       I am using java mapping for schema validation of input message. I have followed all the standard procedures and implemented the java class in the interface mapping.
    My interface mapping is like this:
    OrderData --->Java Class ---SchemaValidate
                         Mesg Map ---OrderData_to_BAP --->BAPI Msg
    So first I want to validate the schema of the input message. If the input message is invalid then XI should throw an exception. Then I use the actual message mapping to map the input order data to the BAPI input parameters.
    In the java code I am using xerces parser.
    The java code works fine when I run it as a standalone application.
    The interface mapping also works fine if I don't include the java mapping. Ofcourse schema validation does not happen.
    But when I test the interface mapping by including the java mapping then I am getting the error:
    Call method execute of the application Java mapping SchemaValidate
    Java mapping SchemaValidate completed. (execute() of SchemaValidate
    com.sap.aii.utilxi.misc.api.BaseRuntimeException: Parsing an empty source. Root element expected!
    What am I doing wrong? Why it is not getting the root element?
    My Java code is as follows:
    import com.sap.aii.mapping.api.StreamTransformation;
    import com.sap.aii.mapping.api.StreamTransformationConstants;
    import com.sap.aii.mapping.api.StreamTransformationException;
    import java.io.*;
    import java.util.Map;
    import javax.xml.parsers.*;
    import org.xml.sax.helpers.*;
    import org.xml.sax.*;
    import org.apache.xerces.jaxp.*;
    Sample mapper for SAP-XI
    @author Gopal
    public class SchemaValidate implements StreamTransformation {
        //Constants when using XML Schema for SAX parsing.
         static final String JAXP_SCHEMA_LANGUAGE =
         "http://java.sun.com/xml/jaxp/properties/schemaLanguage";
         static final String W3C_XML_SCHEMA =
         "http://www.w3.org/2001/XMLSchema";
         static final String JAXP_SCHEMA_SOURCE =
         "http://java.sun.com/xml/jaxp/properties/schemaSource";
    Injection of mapping parameters
    from integration engine
    @param map Map with configuration data
        public void setParameter(Map map) {
    Mapping implementation
    @param inputStream Input data from integration engine
    @param outputStream Output data to integration engine
        public void execute(InputStream inputStream,
                            OutputStream outputStream)
          throws StreamTransformationException {
            try {
                  // obtain an object of class javax.xml.parsers.SAXParser,
                  SAXParserFactory spf = SAXParserFactoryImpl.newInstance();
                  spf.setNamespaceAware(true);
                  spf.setValidating(true);
                  SAXParser sp = spf.newSAXParser();
                  // setup the schema file
                  sp.setProperty(JAXP_SCHEMA_LANGUAGE, W3C_XML_SCHEMA);
                  sp.setProperty(JAXP_SCHEMA_SOURCE, new File("IOReqMsgSchema.xsd"));
                  //parse the input xml using the given schema
                  sp.parse(inputStream, new ParseErrorHandler());
            catch(SAXException se) {
              se.printStackTrace();
            catch ( Exception e ) {
              throw new StreamTransformationException( e.getMessage() );
    My input message is :
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:OrderCreate_request xmlns:ns0="mynamespace">
       <ORDER>HTEST1234567</ORDER>
       <ORDER_TYPE>z001</ORDER_TYPE>
       <ORDER_NAME>Test Order</ORDER_NAME>
       <CO_AREA>INTC</CO_AREA>
       <CCTR_POSTED>1234567890888888888</CCTR_POSTED>
       <CURRENCY>USD</CURRENCY>
       <PERSON_RESP>12345679</PERSON_RESP>
    </ns0:OrderCreate_request>
    Kindly help! please this is urgent!!!!!!
    Thanks
    Gopal
    Edited by: gopalkrishna baliga on Feb 28, 2008 9:34 AM

    Hi Stefan,
       I did the code changes to return output stream and the java code works perfectly in standalone mode in my PC.
       But when I use the same in the Java mapping with XI then It throws an error "Getting Error in java mapping: Parsing empty source. Root element expected!".
    My XI J2EE server has JDK1.4.3.11.
    Is there any limitation of using SAX parser in XI? If Yes, then which parser should be used for schema validation in XI?
    I have included the XSD file for schema validation along with class files in the .jar file. This jar file is then imported in XI repository. Is the XI engine not able to read the XSD file?
    Do I have to handle reading XSD file differently? Any suggession how?
    Is this parser error due to some security access?
    Kindly help me! I have been struggling with this problem since 2 weeks. I will be greatfull to you if you can help me.
    Thanks
    Gopal

  • How to create an array in one field and have another field display certain elements from that array?

    I am making a form in Acrobat XI pro.
    In one text field, I created an array of several elements. I want other text fields to display certain elements from that array. For instance, one field should display the 3rd element, another field should display the 13th element, etc.
    The Javascript for making the array is very long, and so I don't want to have to re-calculate the array every single time (in order to reduce rendering time when I open the form on an iPad). This is why I'd like to only have to create the array once, and simply refer to it throughout the form.

    What code are you using to update the array currently? Are you completely rebuiding it when an element changes, or just changing specific elements for certain fields? I'm still not sure what exactly you are trying to do, but something like this in a document level script will create your array:
    var myArray;
    // Call 'updateArray' to initialize array
    updateArray();
    function updateArray() {
         // Code here to create/update array
         myArray = new Array();
         myArray[0] = "Value 1";
         myArray[1] = "Value 2";
         myArray[2] = "Value 3";
    Then, for each field that needs to update this array, you can add a call to 'updateArray()' in the appropriate event. This will rebuild the array completely; if you just want to update specific elements, then you can access them directly.

  • Table name in Oracle for the User Mapping field?

    Does anyone know the table name for the user Mapping field in EP6.0?
    Thanks

    Hi Alan,
    why do you want to access the DB directly?! You can access the information via the Java API, which is in general the most secure way for the DB scheme is always "subject to change without notice"...
    Best regards
    Detlev

  • What is "Mapping Field" / Field for Remarks or Comments in ELM

    Hi Experts,
    I have a Remarks/Comments Field in my flat file but i didn't find any relevant MAPPING FIELD / FIELD to map in External List Management.
    Example:
    In flat file i have the following fields
    -Organization-CityPhone No.----Comments
    -AngelbrosLA-545-849-7857--Excellent customer
    I can map Organization to ORG_NAME1 ( MAPPING FIELD),
    City to ORG_CITY
    Phone No. to ORG_TELEPHONE
    Comments to ?????
    Do you have any idea to which Mapping Field can be mapped Remarks/Comments.
    Can we create our own Mapping Field?
    I found the the following link for Mapping Fields.
    http://help.sap.com/saphelp_crm50/helpdata/en/1c/11b37d0f6c1347b90e00888fb55a20/content.htm
    Thx n Reg
    Shiven

    Hi Dipesh,
    I am very glad the way you explained, your solution perfectly suits if the Attribute values are Like "Eaaaaaaaa", "Gbbbbb" & "Fddddddddddddd".
    I should have been more clear in my question.
    But the Remarks Value in Flat File is more than a word and not same anywhere. Say.....
    Remarks
    BP1)----
    This customer need some samples before he can discuss something.
    BP2)----
    Would like to meet in the next quarter.
    BP3)----
    Because of festival they may release order early.
    LIke this there are around 500 Remarks differently. Its like a Notes kind of thing.
    Dipesh, How can we create for these types of Attribute Values ?
    Thanks in Advance.
    Best Regards
    Shiven

  • Additional user mapping fields

    Hi,
    I am trying to add some additioanl fields of a system to user mapping screen.
    so, i created a system based on com.sap.portal.howtos.webapp.par that i downloaded from SDN
    2. added a property "department" to that par file and defined in usermapping fields tag of par file.
    3. now i created an iview for system based on this par file and under "user management" cateogry, I selected "additional user mapping fields" and specified " {mech,chem,comp,elec}Department "
    4. everything is fine and this dropdown box appears in user mapping iview
    but my concern is that i want to send 0 for mech, 1 for chem, 2-comp etc... to an url iview. i just want to know.. how to store name-value pairs in that dropdown listbox of user mapping iview?
    any clues?
    thanks

    Hi Daniel,
      Thank you for your reply..it was helpful for me for other issues, but didnt help me for the question of this thread. may be i was not clear in explaining my question. In simple.
    1. I create a system par file with one additional field dept.
    2. i create an alias
    3. now the user wants to do usermapping..so he goes to user administration --> user mapping and select a user
    4. then he selects the alias of a sytem in the dropdown list box, so two fields appear, i.e. username and pwd, but i want an extra field named dept with a list box of values (computers, mechanical, electronics)
    5. i was able to achieve this, by setting {computers,mechanical,electronics}dept" in the property, "Additional User Mapping Fields" of the System object created from the par.
    6. now when the user selects that system alias in the user mapping screen.. he will be able to see three fields.. username, pwd and dept(with a listbox) and he can map the user to the respective department.
    7. the listbox that is created has value and title the same like,<otpion value = "computers">computers</option> but i want it as <option value="1">computers</option>.
    Could you please help me in achieving this. please let me know if you need any further information.
    Thank you.
    P.S: eventhough, i specify the field dept in portalapp.xml like you mentioned, it will appear as a list box in the system object created from the par, but in the user mapping screen it appears as a text box.  so we must specify the "dept" in the property "Additional UserMapping fields" of the system object created from par.

Maybe you are looking for

  • Aperture: How to burn images to optical media -- DVD, CD

    Howdy, Aperture: How to burn images to optical media Here: http://docs.info.apple.com/article.html?artnum=305041 Thanks victor

  • MacBookPro 3.1 display is negative mode, Apple Studio Display is positive

    When I have the laptop hooked up to the Apple Studio Display 17", all of a sudden, the 'polarity' switched on the display. That is to say it displayed the opposite color mode from the laptop. I can switch back and forth from positive(regular) to nega

  • Read file with nio and flush with servlet

    Can I read file, by using java.nio (for example by FileInputStream.getChannel()) and then flush the file content thru the servlet? I kwow about reading without java.nio, get a byte array and then flush it by httpservletresponse writer or outputstream

  • Error 1004, 1013,

    i am using iphone 4 (GSM)(FACTORY UNLOCKED). I was using IOS 4.2.1 but i updated it to 4.3.2 but in end some error 1004 came and my phone stuck in dfu mode.. so i google about solution... and i found tinyumbrella software.. i used it for exit dfu mod

  • Pearl 8130 vs hotmail and outlook 2007

    I'm sure i 'm not the only one with theese probleme but i'm not able to got my hotmail via my bb. i've used outlook 2007 and sync is perfect buté....still no email any isu to forward my hotmail to naother acount or simply gt my hotmail on my bb?? i v