Problem with a UDF in Mapping

I have the following requirement.
At the source side i have:
Employee 1..n                      Employee 1..n
  Type 1..1                                A
  Name 1..1                              abc
  Id 1..1                                    123
If my Type is 'A' then i should get the following output else these fields should be blank
At the target side i have
Employee                                   Employee
Details  1..n                                   Details
   Data                                               abc
                                                     Details
                                                         123
Its something like the node 'Details' should repeat twice with the elements under it if the Type is 'A'.
I have tried using a UDF but 'Details' is repeating as a field and not as a node with 'Data' under it.

Hi Jayalaxmi,
Can you post ur source structure and input file data here.In UDF, u should have two for 'for' loops and according to ur requirement u should change the logic.
reply back with source , target str and iput file data.
Regards,
srinivas

Similar Messages

  • Problems with Initial steps for Mapping with Java in XI 3.0

    Hi,
    I am having problems with a simple java mapping in XI 3.0. I have created another test class in my PC to test it ,and it works.
    But when I use it in a example mapping it does not work.
    I think the reason is because It cannot find the classes used in the XI server.
    What do I have to do to make it work ?
    Do I need to add / change / view something in the XI server?
    Thanks a lot...
    David

    Down by java mapping

  • Synchronous RFC -- SOAP Scenario: problem with SOAP Response/Fault Mapping

    Hi,
    I've a synchronous RFC --> PI --> SOAP Scenario. The problem is that the message structure of the sending RFC doesn't match the Webservice Structure.
    The (SAP standard) RFC has just a Request / Response message structure. Part of the Response Message structure is a exception structure.
    The Webservice has a Request / Response message structure and in case of an error I get a SOAP:Fault.
    Problem now is that I cannot configure that scenario without usage of BPM as I will have to map SOAP:Response or SOAP:Fault to the RFC Response structure.
    Has anybody another idea to do that synchronous scenario (with usage of message mapping) without BPM?
    BR
    Holger

    1)
    you maus define 3 mapping.
    1)request
    2)response
    3)Fault
    in Interface mapping define at response boths (2-3) mapping. its clear??
    2)
    otherwise sometjhing is not clear, why do you want fault?? why dont you  get only response message. we implement this kind of response:
    <response_MT>
    <ID> (error ID)
    <system> (target system) 
    <error> (Error Description)
    </response>
    by this way fault message is not needed. but if you must have it just follow the top of message else, propose second.
    Thanks
    Rodrigo
    Thanks
    Rodrigo
    Edited by: Rodrigo Pertierra on Feb 25, 2008 11:52 AM

  • Problems with loading 3.04 maps

    could someone please explain in simple terms the steps req to install the new free maps[3.04]into a n97mini please,i have tryed several times and get different problems every time i try and do i need to be connected to internet for them to work,first it crashed and now it wont show any roads and states i carnt start navigation from this location, i am in australia,are aussie maps supported in 3.04.
    please help
    Solved!
    Go to Solution.

    Hi suzukir8
    Firstly can you open OVI Maps click "?" bottom left of screen > About and post which version is quoted in top line of screen? Has v3.04 actually installed or still remains on v3.03?
    If v3.04 has failed to install you could try going to Menu > Settings > Application mgr. > Installed apps anduninstall any of these present: Open C LIBSSL,Open C LIBSSL Patch, OVI Maps Wi-Fi/Network Positioning, PIPS Installer, Share Location Agent, Share Location, Share Location Widget, Standard C++ Library Common, Standard C++ Library Patch, Symbian OS Pipes Upgrade, Symbian OS PIPS Upgrade & Upgrade for OpenC LIBZ Support.
    You can download v3.04 directly from here and try installing again:
    http://nds1.nokia.com/phones/files/software/maps_i nstaller_3.04_10wk17_b07_s60_5.0.Nocs.sis 
    There is no problem with map data for Australia being compatible but would suggest that you delete E:\cities and .qf file, run OVI Maps to define folder needed on memory card and re-download your regional maps.
    I f you are having problems locating position, I would suggest go to Menu > Applications > Location > Positioning > Positioning Methods and try disabling WiFi/Network.
    Happy to have helped forum in a small way with a Support Ratio = 37.0

  • Problem with SQL,udfs & procedures

    I have couple of problems with my database. Please suggest solution.
    We are basically a web product With a Quite large Database
    1. I am using functions both User Defined and Built in Functions in
    SQL Statement. I want to optimize the query how do i do it.
    why the usage of function in sql statements suppresses,the
    usage of indexes internally. How to forceable make use of
    the index even though function is used.
    2. Whenver The Client makes a request to the Database server with a
    Sql Query What are the steps we can take at the
    client side to enhance the performance of the Query.
    (i.e the Data Request ). How to optimize the usage of CPU at
    client site?
    3. what is the increase in the performance ration by having
    separate table spaces for user data,system data and indexes.
    4. Why the procedures are getting invalided
    after some time. The procedure is
    not getting executed at the front end.
    Once the procedure is getting invalidated.
    However even though the status of the
    procedure is invalid the same is getting
    executed at the back end.
    Can anybody help me
    Request for reply ASAP.
    Regards
    Koshal
    null

    1. In Oracle 8i, one can create function-based indexes, where instead of indexing a column, one can index upper() of that column.
    2. Optimizing client performance is trickier. One can tune the queries being
    submitted by the client, but if getting the first row back -- which is how response time is generally perceived -- set the OPTIMIZER_MODE parameter in init.ora to FIRST_ROWS.
    3. There is minimal benefit to having data, index, rollback, and temp tablespaces all separated unless all the datafiles for each tablespace reside on different disks (data on disk 1, index on disk 2, etc). It's recommended regardless, but unless the files are on separate volumes, there won't be a great performance benefit.
    4. A procedure is invalidated whenever DDL is issued against any object that that procedure depends upon. For example, if you add a column to a table, any procedures which reference that table will be invalidated. Any procedures which reference views which reference that table will be invalidated, because the view will be invalidated. It's best to run a compile script which looks for and attempts to recompile any invalid objects on a daily basis.
    Adam

  • Problem with email update and Map as well in ios6 though i am using iphone5.., problem with email update and Map as well in ios6 though i am using iphone5..

    Hello.
    I am having problem with my email update. i am not getting my email update in time on my iphone4 since i installed ios6. that was fine with ios5.
    I brought iphone5 but still the same problem. its not shown automatically in my iphone screen whenever i get my email.
    Same having big problem with imap.....
    Riaz

    The problem?  It's actually pretty simple: Microsoft implemented their mail processing in a way that has greatly assisted folks using Microsoft products and Microsoft platforms, and established an "export" mechanism when communicating via mail in heterogeneous computing environments.  Microsoft tools including Microsoft Exchange Server and their systems running Microsoft Windows are a good and very capable mail environment system, with great scale and very well integrated mail, calendar and related processing, and some exceedingly useful tools including SharePoint that have no real analog with OS X, Unix or Linux systems.   But these tools don't necessarily interoperate entirely nicely in heterogeneous environments; with non-Microsoft tools and platforms.
    The winmail.dat mechanism is a part of the whole Microsoft infrastructure, and particularly when the information is being "exported" out from the Microsoft environment, and into a non-Windows and non-Exchange environment.  The determinate here involves the settings chosen by the various senders.  (Possibly also by the defaults chosen by the administrator of the Exchange Server(s) involved, but I haven't checked that.)
    Here's the Microsoft knowledge base article that describes the specificss of the winmail.dat file. 
    There are tools around to read the TNEF-format winmail.dat files on OS X and other platforms, including TNEF's enough for OS X, and likely various other tools.   Or get your senders to reconfigure their settings for you when they're sending messages to you, as described in the Microsoft KB article.

  • Problem with one-to-one mapping

    I must be missing something simple. Everything compiles correctly, but
    when I try to retrieve from the DB, the joined object is null when it
    should not be.
    DB info:
    Table: main_table
    id varcher not null, pkey
    name varchar not null
    tag varchar not null, fkey references sub_table(tag)
    Table: sub_table
    tag varchar not null, pkey
    description varchar
    The value object classes:
    public class MainTableClass
    private String id;
    private String name;
    private SubTableClass tag;
    public class SubTableClass
    private String tag;
    private String description;
    The package.jdo file:
    <jdo>
    <package name="...">
    <class name="MainTableClass"
    identity-type="application"
    objectid-class="MainTableClass$ID"
    requires-extent="true"
    >
    <extension vendor-name="kodo" key="detachable" value="true"/>
    <extension vendor-name="kodo" key="jdbc-class-map" value="base"/>
    <field name="id" primary-key="true">
    <extension vendor-name="kodo" key="jdbc-field-map" value="value"/>
    <extension vendor-name="kodo" key="column" value="ID"/>
    </field>
    <field name="name">
    <extension vendor-name="kodo" key="jdbc-field-map" value="value"/>
    <extension vendor-name="kodo" key="column" value="NAME"/>
    </field>
    <field name="tag">
    <extension vendor-name="kodo" key="jdbc-field-map"
    value="one-one"/>
    <extension vendor-name="kodo" key="column.TAG" value="TAG"/>
    </field>
    </package>
    </jdo>
    Note: tests for SubTableClass on its own pass with flying colours. It's
    only when I attempt the join that I'm having problems...
    When I try to validate the mapping, I get a warning:
    Field "tag" is not a type that is persistent by default. If you want this
    field to be persistent, you have to explicitly add it to your JDO
    metadata...
    But, when I do that, I get more errors. Since the SubTableClass is
    persistent-capable, I should not have to do this, I think.
    Please help!
    Thank you!!

    You said there were other configuration errors? I'm sure I must be making
    a simple mistake somewhere that I'm just not seeing...I don't know; it could be lots of things. You say SubTableClass is PC;
    does it have JDO metadata? Is the metadata in the right place?
    The easiest thing to do would probably be to create a simple standalone
    test case that demonstrates the error, and send it to
    [email protected] We can take a look at all your configuration
    and metadata and code and see what is causing the problem.

  • Problem with a context node mapped

    hi all,      
    i have a problem in a WD application, when i execute a certain RFC, the model node in the controller mapped to that RFC (model), does not fill itself with the data that the RFC suppose to bring as a result. it seems to get lost in some point (the data). i check and all seems to be fine. I bind the node, then i execute it and later i invalidate it. It's not a role problem i've checked already, and the RFC in the backend when i run it, shows me data. Anyone knows what could this be?...       
    Regards, 
    Mariana

    Well my context structure its like this
    + Zbapi_XYZ
      + OutputY
        + ReturnY
        + Table_XYZ (custom structure)
          -attribute_1
          -attribute_n
      + Return_IN ( bapireturn structure)
          -attribute_1
          -attribute_n
      +Table_XYZ_IN (custom structure)
          -attribute_1
          -attribute_n
      - attribute1
    This is a model node, all the attribute are model attribute and both Table_XYZ_IN and Table_XYZ are from the same type of structure.
    The binding is implemented in WdDoInit Method as follow:
    Zbapi_Sd_Consulta_Doc_Serial_Input bapiSdConsultaDocSerial =
                   new Zbapi_Sd_Consulta_Doc_Serial_Input();
              wdContext.nodeZbapi_Sd_Consulta_Doc_Serial_Input().bind(
                   bapiSdConsultaDocSerial);
    and the execution of the RFC is in a custom method call
    public void ejecutarSdConsultaDocSerial( java.lang.String serial )
    inside it has the follow code:
    String nombreFuncion = "ejecutarSdConsultaDocSerial: ";
              String mensaje = "";
              boolean error = false;
              wdContext.currentZbapi_Sd_Consulta_Doc_Serial_InputElement().setPsernr(
                   serial);
              try {
                   wdContext
                        .currentZbapi_Sd_Consulta_Doc_Serial_InputElement()
                        .modelObject()
                        .execute();
                   //Invalidates the output context node
                   //wdContext.nodeOutputSD().invalidate();
                wdContext.nodeZbapi_Sd_Consulta_Doc_Serial_Input().invalidate();   
                   //En la variable "mensaje" se almacena todos los mensajes de error concatenados
                   for (int i = 0; i < wdContext.nodeReturnSD().size(); i = i + 1) {
                        IReturnSDElement retorno =
                             wdContext.nodeReturnSD().getReturnSDElementAt(i);
                        if (retorno.getType().equals("E")) {
                             error = true;
                             mensaje = mensaje + " " + retorno.getMessage();
                   if (error) {
                        wdContext
                             .currentEstatusBAPIElement()
                             .setEstatusSdConsultaDocSerial(
                             0);
                        wdContext.currentEstatusBAPIElement().setMensajeError(
                             nombreFuncion + mensaje);
                   } else {
                        wdContext
                             .currentEstatusBAPIElement()
                             .setEstatusSdConsultaDocSerial(
                             1);
              } catch (Exception ex) {
                   wdContext
                        .currentEstatusBAPIElement()
                        .setEstatusSdConsultaDocSerial(
                        0);
                   wdContext.currentEstatusBAPIElement().setMensajeError(
                        nombreFuncion + ex.getMessage());

  • Strange problem with jars in Java Mapping

    Hi All,
    I'm trying to implement a Java Mapping that uses Xerces. I'm using xercesImpl.jar.
    I put the xercesImpl.jar file in the folder containing the .class file (the Java Mapping program), and zipped the folder.I imported the zip file as an archive and used it in the Interface Mapping.
    My code uses the org.apache.xerces.parsers.<b>SAXParser</b> class.
    However, while trying to execute the Interface Mapping, it gives error: <b>Unable to find resource:'org/apache/xerces/parsers/SAXParser.class'</b>.
    The same method works when I'm using xerces.jar and using classes javax.xml.parsers.<b>DocumentBuilder</b> and
    javax.xml.parsers.DocumentBuilderFactory.
    I can't figure out what the problem is.
    Any ideas?
    Regards,
    Puloma.

    Hi All,
    I tried all the methods suggested. Mow my problem is that I get the following error, when I try to instantiate the SAXParser class:
    Unable to find resource:
    <b>META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration</b>
    The XMLParserConfiguration class is actually in org.apache.xerces.xni.parser. Why does XI try to find it in the wrong sub-directory?
    My code works just fine on standalone.
    Regards,
    Rahul.

  • Problems with Swedish characters in maps on n95

    I upgraded my n95 to the latest firmware, 12.0.0.013 and after that my swedish map shows garbled road and city names, i.e Korsnäsvägen is displayed ad Korsnäsvägen. It looks like an international character issue. I also lost my navigation subscription after the upgrade and cant find any info on how to get it back. I've reinstalled the latest Nokia maps app and redownloaded the swedish map several times without any improvement

    09-Jul-200712:35 PM
    tordolsson wrote:
    Yes, I've reloaded the voice commands
    Hi tordolsson
    1. Start Maps application.
    2. Go to "Options > Extra services"
    3. Select "Add navigation > Accept > Purchase > Select the correct region" (I.e. the region you have earlier purchased the navigation to).
    4. You see a list of licenses with different lengths of time. You don't need to select the correct length, just go directly to "Options > Update".
    5. Allow connection to license server to check purchase & license options by selecting "Yes" and by selecting proper Internet access point (if asked).
    6. A note "xxx-day license activated" is shown where xxx is the amount of days left of your license.
    Happy to have helped forum in a small way with a Support Ratio = 37.0

  • Having problems with find my iphone map

    The basic map appears and but you cannot zoom in or out or change it hybrid or satellite map.  The three buttons bottom right corner are now a bright green.  I am using windows 8 and tried it on both explorer and google chrome.  It used to work great up until about two weeks ago.  Anyone know why this is happening on icloud.com?

    I usually use wifi when I am at home or even out. If I cannot track where my iPhone is, then what use of Find My iPhone invented for? And also the built in Assisted GPS function for the only uses of offline navigation and location service ONLY when with Internet access. Unlike the other phones such as GalaxySII, it can be real-time tracked. Although Apple has many restrictions, but it should improve the safety services.
    iPhone or iPad, with or without cellular data or even wifi sometimes, is always full with fun and functionable. I can deal with my works with many useful apps such as quick office, pages etc. When I am bored, oops, I'm sorry, I won't be bored - I can spend my time with a thousand types of games or watching a series of movies/ dramas downloaded. With iDevices, I will not be living in a dull and meaningless world.

  • JSTL problem with LinkedHashMap changed to Map

    Originally my code worked with a linkedHashMap in java 1.4. Another developer converted it to 1.5 and changed my linkedHashMap to a Map<String, Map<String, List<DateSensitiveDTO>>>
    in the jstl I used to do ${dsMap.value['display']}
    now that code throws the following exception
    Error 500: The "." operator was supplied with an index value of type "java.lang.String" to be applied to a List or array, but that value cannot be converted to an integer.
    any ideas of what would cause this? I've checked and the code is still putting 'display' into the map. I can output ${dsMap} in the jsp and I can see that 'display' exists inside the output.. I can only assume jstl is doing something different because of the data type, but I have no idea how to fix it.. except of course change the declaration back to a linkedHashMap.

    sorry to post this. I just answered my own question.. the exception in the jsp wasn't ocuring where I assumed it was, and had to do with the fact he also changed the structure of the objects being set in the Map... I assumed he tested his code to make sure it worked... guess it was a bad assumption.

  • Performance problem with Informatica Powercenter adapter mapping

    Hi,
    I am having an issue with the JDE adapter SDE_JDE_CustomerLocationDimension mapping.
    The incremental workflow is running for more than 2 hours whereas the full load workflow completes in couple of mins.
    The incremental session has additional change data capture conditions present in the Source Qualifier override query.
    When the SQL override query from this incremental session is executed using the TOAD ide, the query returns results very quickly, however when the same query
    runs in the mapping its takes huge lot of time.
    Is there anything can be done from mapping side to improve the performance?

    check what query is fired from mapping/session. it might be using something else from session. generally we override sql in session for incremental mapping. trace it properly from session properies and also in mapping and then troubleshoot the issue.
    Thanks
    Jay.

  • Problem with RFC LookUp Parametrised Mapping

    Dear All,
    I am using RFC Look function in message mapping and have defied import parameter as xyz of category adapter and type RFC to get a sinle value response from RFC.
    After this, I created operation mapping. Now going for Parameter binding, it is not showing me any value i.e. parameter defined in message mapping is not displaying due to which i am not able to activate operation mapping, it is showing error as "Binding for Message Mapping MM_FILE is not correct. Parameter xyz of Message Mapping MM_FILE is missing"
    I have checked various blogs on SDN but I am not able to figure out the mistake.
    Kindly guide me out.
    Reg,
    NJ

    Hi nishu,
    in operation you need type a name againasi the parameter XYZ.
    XYZ----
    ABC
    and in configuration when you will use this operation mapping in interface determination then it will ask for the value of ABC.
    so
    suppose channel name---CC_TEST
    So in Interface mapping you will assign
    ABC=CC_TEST
    So in Operation mapping you have assigned
    XYZ=ABC
    means XYZ=CC_TEST(beacuse ABC=CC_TEST)
    Simple Math 

  • XSLT Mapping - problem with prefixes when calling template

    Hi all,
    I am having a problem with using an XSLT mapping in XI to combine various fields from 2 input messages of different structures into a single output message.  I understand that XI puts a wrapper around the 2 input messages so the structure of the XML I am mapping is:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns2:Messages xmlns:ns2="http://sap.com/xi/XI/SplitAndMerge">
    <ns2:Message1>
    <ns:(root of first message)>
    </ns:(root of first message)>
    </ns2:Message1>
    <ns2:Message2>
    <ns:(root of second message)>
    </ns: (root of second message)>
    </ns2:Message2>
    </ns2:Messages>
    Currently my XSL looks like the following:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns="http://example.co.uk/example" xmlns:ns2="http://sap.com/xi/XI/SplitAndMerge" xmlns:javamap="java:systemDate.CurrentDate" version="2.0">
    <xsl:output method="xml" version="1.0" encoding="UTF-8"/>
    <xsl:param name="inputparam"/>
    <xsl:template match="ns2:Messages">
    ...<xsl:calltemplate name="FormattingTemplate"/>
    </xsl:template>
    <xsl:template name="FormattingTemplate">
    </xsl:template>
    </xsl:stylesheet>
    When I test the mapping it works fine until it calls the FormattingTemplate.  Then it throws out a "transformer exception" error saying the prefix 'ns2' is not mapped to a namespace.
    If anyone could tell me where I am going wrong I would be very grateful.
    Thanks,
    Mike

    Hi Udo,
    Thanks for your reply.
    When testing the stylesheet locally with XMLSpy, it works fine, but I have just noticed that it adds information in the root tag of the target message as follows:
    <(root of target message) xmlns:javamap="java:systemDate.CurrentDate" xmlns:ns="http://example.co.uk/example" xmlns:ns2="http://sap.com/xi/XI/SplitAndMerge">
    I checked the root tag of the target message in XI and it does not automatically add this information. Thus I added it in my stylesheet so the information above is projected in the target message, but the same error message appears when the call template function is called.  Do you know if I need to somehow add a namespace to templates other than the main one? If so, do you know how I go about doing that?
    Thanks,
    Mike

Maybe you are looking for

  • Just upgraded to new iTunes, downloaded shows, will not play.

    I just upgraded to the newest itunes last night, and today I downloaded three episodes of Lost. They will not play. It says time is elapsing, but there is no sound or video, just a gray screen. Does anyone have any idea why?

  • Suppress default namespace when extracting XML

    How can I avoid that Oracle includes the target namespace of my schema as the default namespace when using the EXTRACT function? E.g., select xmlelement("XmlData", xmlagg(extract(tx.transmission, '/Transmission/Item'))) from transmissions tx returns

  • Can't send audio message

    aafter the recent upgrade, I'm not able to send audio messages from my iPad. Help please. Restarted, several times, turned off and turned on iMessage. Nothing seems to work

  • Flash video problems in http

    Hello, I am having problems publishing flash video in a http server. I am streamming video from a server using a MediaPlayBack component. All works well till this point. When insert the swf in a html file and play it using the "http path" ( http://..

  • Create Subcontracting PO using ME59 Auto PO

    Hello exerts, We have a number of materials that are subcontracted and want to automate the process as much as possible.   We currently create a planned order at originating plant and create the same planned order at the subcontracting plant.   We  w