Mapping issue in Data Services

Hello, Experts!
I'm just starting to learn DS. Can anybody help me with the following question:
I have a table, for example:
id  Curr value
1  USD  100
2  JPY  200
3  USD  300
4  JPY  400
5  EUR  500
And the issue is to map it so as to check the condition of belonging "Curr" to the sets (JPY, USD) and (EUR, USD), and the following table would be obtained:
id Code Curr Value
1  AAA  USD  100
2  AAA  JPY  200
3  AAA  USD  300
4  AAA  JPY  400
4  BBB   USD  100
5  BBB   USD  300
6  BBB   EUR  500
The main difficulty lies in putting the checking parameters into an additional table, so user can vary the members and quantity of combinations
The mapping should exist in Query transform
BR, Alexey
Edited by: Alexey Veselov on Dec 12, 2011 2:20 PM

Hi Alexey,
Could you elaborate on the requirement? It is still not clear to me what you want to achieve.
What I do understand is that the users should be able to make adjustments to the mapping/lookup entries.
If that is the case, what exactly is going to be maintained in the 'additional table' and how are you suggesting end users are going to maintain this?
Ideally, your query transformation should not change when parameter values change, so you have to think about what logic you put where.
My suggestion would be to use a file or a table which can be maintained by users. In your query transformation you can then use the lookup or lookup_ext function.
Especially with lookup_ext you can make it as complicated as you want. The function is well documented but if you need help then just reply and explain in a bit more detail what you're trying to do.
If you do think the 'hard-coded' option would suit you better, you can look into the 'decoce' function. Again, it is well documented in the technical manual.
Jan.

Similar Messages

  • Connection issue between Data service(DQ) to PI through SOAP adapter.

    Hi Guys,
    We are trying to connect the data services(DQ) with SAP PI through SOAP adapter. I provided the wsdl file to data services team and they are trying to send messages to PI. Looks like the messages are showing successful in there system, but not showing up in PI system.
    I tried the same file using xmlspy and PI receiving the messages from XMLSPY. We are wondering whats going wrong?
    Any idea about this data services system? Is there any other better way to receive messages to PI apart from webservices?
    PS: Connection is working fine from PI to DQ thorugh SOAP adapter.
    Thanks
    Deepthi.

    >>>> We are trying to connect the data services(DQ) with SAP PI through SOAP adapter. I provided the wsdl file to data services team and they are trying to send messages to PI. Looks like the messages are showing successful in there system, but not showing up in PI system.
    You are using soap sender  adapter ... Hosting webservices and DQ team is able to access your webservice.  Also using XMLSPY you are able to see pi messages.
    If you are using advance adapter engine, Please check only in the RWB -> adapter engine.
    If you are not using AAE, check in both SXMB_MONI and RWB for the wide range... Something problem with filter query in your checking...
    Note  since XMLSPY testing goes through Pi and able to monitor means you dont need another webservice client tool. 
    Solution:
    use tcp monitor to monitor the soap message ... It is better option
    /people/stefan.grube/blog/2007/03/29/troubleshooting-soap-http-and-mail-adapter-scenarios-with-tcpgateway

  • Persistent cache issue in Data Services

    Hi,
    I have created a Persistent cache Datastore in Data Services and provided C:\cache as the Cache directory. cache is the new dir. that i created in my local C drive. This is the machine where designer has been installed. The job server is in another machine.
    I am loading data from one table into a Persistent cache table in Persistent DS. While running the job, i am getting the below error:
    Cache directory <C:\cache> does not exist for persistent cache table <.....> in data store <.....> for <configuration1> configuration.
    Any views regarding this?
    Thanks!

    Hi,
    Since you are running a job, create the path on application server.Create a folder structure in your application server and then use that path. you will have to create logical path and file name for that.
    Hope it helps
    Godhuli
    Edited by: Godhuli Pandey on Aug 18, 2009 5:53 PM

  • Issue with Data Services.

    <b>Description:</b> There are no any opportunities of submitting web-enable Data Services from client service control(WorkShop 9.2 beta) based on WSDL.
    <b>Step to reproduce:</b>
    1. Create any data service.
    2. Create web-enable data service (http://edocs.bea.com/aldsp/docs21/appdev/wsdlclt.html#wp1056096).
    3. Modify a method “submit” as it was described in (http://edocs.bea.com/aldsp/docs21/appdev/wsdlclt.html (See point: Developing DSP-Enable Read-Write Web Services)).
    4. Generate a client service control(WorkShop 9.2beta) based on WSDL of web-enable data service.
    5. Try to submit any data changes with method “submit”. (There are no any opportunities of submitting).
    Could anybody explain me how I can submit(store) data with
    service control(WorkShop 9.2 beta) based on WSDL of web-enable data service?

    I think if you switch the order of (2) and (3) you'll get what you want.
    If you generate the WSDL before introducing the 'submit' method, your wsdl won't have a submit method.
    "Developing DSP-Enabled Read-Write Web Services
    If your Web service must support submits from Java Web service clients, you first need to modify the JWS file before generating the WSDL, as follows..."

  • Message Mapping Issue with data without namespace

    Hi,
    I have a common xsd imported which has its own target namespace into my SWC namespace. Based on this xsd I have generated a Message Interface and webservice and given the wsdl to third party system for invoking my webservice.
    The problem is I have done the message mapping based on xsd which has namespace but whereas the third party system which is consuming my webservice is sending the xml data without any namespace and because of which my mapping is failing (target structure is not getting generated as expected). I have tested the mapping with namespace and without namespace from IR already. I have explained this below with example.
    I cannot change the xsd as it is a common and even cannot ask the end system to change the data format they are sending as they are sending the same data to some other systems also, which are not complaining.
    How to resolve this issue in XI?
    Actual xml data generated from my imported xsd (with namespace)
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Root xmlns:ns0="http://employee/types">
       <ns0:EmployeeDetails>
          <ns0:EmployeeId>12</ns0:EmployeeId>
            <ns0:EmployeeName>XYZ</ns0:EmployeeName>
    </ns0:EmployeeDetails>
    </ns0:Root>
    Actual Data coming from third party system (without namespace)
    <?xml version="1.0" encoding="UTF-8"?>
    <Root>
       <EmployeeDetails>
          <EmployeeId>12</EmployeeId>
            <EmployeeName>XYZ</EmployeeName>
    </EmployeeDetails>
    </Root>
    Thanks
    Amit

    Just  wild guess:)
    I am not 100% sure but i guess XSLT mapping does not checks the incoming payload against the sender message type.Within XSLT mapping you can add/remove namespace as you would like,use this XSLT mapping before your actual message mapping in interface mapping.
    I am saying this coz recently i was able to generate XSLT mapping(in altova Map Transform) without even specifying any sender or receiver Message type and it worked just fine.
    Thanx
    Aamir

  • Mapping issue in Date Format

    Hi Experts,
    I have a mapping problem in my object.
    I have two filelds coming from the Control record of an IDoc CREDAT and CRETIM. Now, I need to concate them and put them in a target field DateandTimeCreated in the format: YYYYMMDDHHMMSS
    Is their an UDF or message mapping for this. Messge mapping will be better for me.DateTrans will work over here??
    Please reply.
    Thanks and regards,
    Aniruddha

    Sample UDF code:
    Execution Type:  Single Values
    Date UDF
    a)if your input date field declared as string then,
    public String dateValue(String value,  Container container) throws StreamTransformationException{
    String input =value;
    String strDate ="";
    if (input !=null)
    Date date1 = new java.util.Date(Long.parseLong(input));
    SimpleDateFormat  formatter = new SimpleDateFormat("yyyyMMdd");
    strDate = formatter.format(date1);
    return strDate;
    Time UDF
    a) if your input time field declared as string then,
    public String timeValue(String value,  Container container) throws StreamTransformationException{
    String input = value;
    String strTime="";
    if (input !=null)
    Date date = new java.util.Date(Long.parseLong(input));
    SimpleDateFormat  formatter = new SimpleDateFormat("HHmmss");
    strDate = formatter.format(date);
    return strTime;
    Note: include import statement
    import java.text.*
    If you have question, let us know. This code will work for sure.

  • Schema Mapping in Data Service Integrator

    Hi,
    I'm just examining some schema mapping programs like BizTalk, Altova and IBM Rational Data Architect, and now found Oracle Data Service Integrator which might be a similiar tool. Actually I found out about Data Service Integrator via BeQ AquaLogic, which probably had been some schema mapping tool before Oracle acquired it and now offers it as Data Service Integrator.
    My question is, whether Oracle Data Service Integrator is really applicable for schema mapping/matching, such as creating mappings between xml, csv/flat files or database schemas. I already downloaded it and tried it out, but had troubles creating a map. According to a tutorial you create a physical data service if you wanna do something like mapping, but after I did this there was only a "map" with a source schema. There was no way to add a target schema and map it with the source schema.
    So can I create mappings in Data Service Integrator or are there other products which would be more convenient (Oracle Warehourse Builder for instance)? If so, does anyone know whether there is a good tutorial how to map simple schemas such as xml files in Oracle Data Service Integrator?
    Thank you in advance.

    After you create your physical data services, create a logical data service using your target schema as the 'return type'. Then add functions and use the xquery mapper to map your physical data services (csv, database, xml, web service etc) to your target schema. You can also use logical data services as the input to a logical data service.

  • Mapping Objects in Flex Data Services

    Hi My Dear Friends
    This is yogans, i am working in flex for the last 15 days
    and i learned the basic things like syntax, tags, scripts. and i am
    doing
    some data services work now. especially with the help of
    Java Remote objects. I dont know http services and
    webservices(WSDL).
    My doubt here is, I created a user defined object in java
    and i want to send this object through Remote call from flex. how
    can i
    type cast the java object to flex. And i want to add these
    objects to the dataprovider of a datagrid. Please help me in
    acheiving
    this. i will be very thank ful to you in my life. I know
    that i have to create same kind of object in flex. But i dont have
    concrete idea
    please explain me with very simple example step by step . I
    am awaiting in hope that God will send some one to help me.
    Thanks and Regards
    Yogans.s

    Hi,
    If you want to map your actionscript class to your server's
    Java class. You can run a util function
    registerClassAlias("dev.echoservice.Book",Book);
    where "dev.echoservice.Book" is the fully qualify name of
    your java class. Book is your actionscript class.
    Calling this util before you make your remoteobject call. You
    can put this in your actionscript class constructor, it makes this
    call whenever you create your class. However, it seems to be better
    to call it when the class is loaded. To do so you can declare it as
    static
    public static var a:* =
    registerClassAlias("dev.echoservice.Book",Book);
    OR
    You can also declare it as metaData in your class as:
    [RemoteClass(alias="dev.echoservice.Book")]
    However, I found someone saying that it didn't work in sdk
    compilation, but webtier compilation. It might be some
    configuration issue. I haven't tried it yet.
    To display the properties in the dataGrid, you just have to
    either use Array or ArrayCollection. If databinding is involved,
    the datagrid need to know the Collection.Change event. It is better
    to use ArrayCollection, therefore, adding new item to
    arrayCollection the datagrid get repopulate.
    hope it helps!
    William Chan

  • ALDSP , Logical Data service to PhysicalData service mapping

    Hi ,
    Need help to find out the way how to find the mapping between the Logical Dataservice to physical service using config file .
    I have requirement like depend on the Region ( Parameter) need to connect to the database . How do we achive this using an xml file ( means dynamic which out a code change ) .
    for ex:
    Think we have 3 regions names ( DAO ,APJ ,CCC). I have created 3 Physical data services for each region (which will point to 3 diff databases).
    then In the logical service I have logic like this
    If( region =='DAO')
    call the DAO Physical Srvice
    If(region == 'APJ')
    call the APJ Physical Srvice
    If(region == 'CC')
    call the CCC Physical Srvice
    So if I have to point the region 'DAO' to the APJ physical service then it required a code change . how we can avoid this hard coded mapping . Is there any way to define the region and the physical service mapping in the xml file so that if any change is required it will be a change in xml file itself with out a code change .
    Please help me . This is little bit urgent .
    Thanks in advance .
    Thanks & Regards
    Sarath

    It seems that if you are adding more regions and physical data services you will need to modify your dataspace anyway to add the new physical data services.
    Please post your ODSI/ALDSP questions on the ODSI forum - Data Service Integrator

  • Master data services 2012 domain trust issues

    hi,
    we have a Master Data Services 2012 installation within one domain and the users exist within another domain.  This has a selective trust both ways.
    the behaviour that we are seeing in MDS 2012 when adding users to the master data services from the other domain we are getting no exact match found for the users that exists when adding users in;  these users are from the domain that MDS does not reside
    in but there is a trust in place.
    we have given authentication permissions to all users requiring access to the server that MDS resides on.
    the question is what steps are necessary to allow MDS to operate in two domain environment.   We have other applications that function in this manner but MDS is causing issues.
    any help would be appreciated..
    thanks

    I don't have the exact multi domains environment to try it on. But I tried on mutil forest domains. It seems working fine.
    When add the user, the format is like [DomainName\]UserName
    When add the user for another domain, the domain name is required.
    There is a trust between our two domains (which works because I can log into SQL Server effortlessly with SSMS). However, when I try to add a user from the other domain, I get the error
    "No exact match was found for domain\user"
    It seems that MDS really doesn't like trusts.
    MCSE SQL Server 2012 - Please mark posts as answered where appropriate.

  • My iMessage and Facetime won't activate, says waiting for activation. All photos and contacts are restored, using email and wifi only, no service. Only issue is date and time will not automatically set.

    My iMessage and Facetime won't activate, says waiting for activation. All photos and contacts are restored, using email and wifi only, no service. Only issue is date and time will not automatically set.

    Howdy eewebe13,
    So you have no cellular service but are on Wi-Fi yet iMessage and Facetime are waiting for activation.
    Please step through this article for that scenario.
    If you get an error when trying to activate iMessage or FaceTime - Apple Support
    Thank you for visiting Apple Support Communities.
    Nubz

  • Flash Builder 4, Data Services, PHP issue

    I have installed a fresh Galileo + Fb4 plugin + WST for eclipse on my dev server/workstation.
    I have installed a standalone Fb4 on my laptop.
    When I use the shwanky new Data services feature and create a PHP service... I can create the service fine... but there are no methods showing up for the data service/class. The class shows up in the Data/Services list -- and when I right-click -> Refresh (other options are greyed out) I get the following alert Error message:
    java.lang.IllegalArgumentException: protocol = http host = null
    I click OK and procede in my ignorance to scour the internet for a solution...
    I feel like a teenager who was given a brand new Corvette (Fb4)... only.... the key doesn't seem to fit the ignition.  I CANT WAIT to drive it!
    On a side note.... my laptop works fine? Go figure. I can right click and get all the goodies (Configure Return Type, etc.) that I'm suppose to get on that installation...
    I would like to get this working on my dev workstation. Is it something to do with Fb4 as a plugin on top of Zend PDT?
    Does anyone know where to look (maybe a config file or setting) that sets the value for this:
    java.lang.IllegalArgumentException: protocol = http host = null
    I know that I had to edit my shortcut and add:  -vm "C:\Program Files\Java\jre6\bin\javaw" to get the java vm to work correctly and launch Gallileo

    I don't know where else to post  this question ...so apologies if this is not the proper spot
    I have created several classes in Flash 4 Professional and would like to know how do I create custom classes in Flash Builder 4
    this is one such class that i have created and wnat to use in FB 4..below
    package classes.choppingblock.video{
         import flash.events.*;
         import flash.display.*;
         import classes.*;
         public class YouTubeLoaderPlus extends YouTubeLoader {
              public static var PLAYER_READY:String = "playerReady";
              public static var VIDEO_READY:String = "videoReady";
              protected var _count:Number = 0;
              function YouTubeLoaderPlus() {
                   super();
                   this.addEventListener(Event.ENTER_FRAME, checkPlayerReady);
                   this.addEventListener(YouTubeLoaderPlus.PLAYER_READY, ytPlayerReady);
                   this.addEventListener(YouTubeLoaderPlus.VIDEO_READY, ytVideoReady);
              private function ytPlayerReady(e:Event) {
                   this.setSize(450, 370);
              private function ytVideoReady(e:Event) {
                   this.pause();           
              private function checkPlayerReady(e:Event) {
                   _count++;
                   if(_count >= 50){
                        this.removeEventListener(Event.ENTER_FRAME, checkPlayerReady);
                        dispatchEvent(new Event(YouTubeLoaderPlus.PLAYER_READY));
              private function checkVideoReady(e:Event) {
                   if(this.getDuration()){
                        this.removeEventListener(Event.ENTER_FRAME, checkVideoReady);
                        dispatchEvent(new Event(YouTubeLoaderPlus.VIDEO_READY));
              override public function loadVideoById (id:String, startSeconds:Number = 0):void{
                   super.loadVideoById(id, startSeconds);
                   this.addEventListener(Event.ENTER_FRAME, checkVideoReady);
    Where would i develop an analogy of this code in Flash Builder 4 for custom classes?

  • Master Data Services Add-in for Excel Issue

    I am trying to configure MDS in the Production server. I am running into isssues.
    (I was able to do the whole process successfuly in my local system - Versions are same in the local and server - Only difference is local machine is windows 7 server is Windows 2008 R2)
    I have installed SQL server 2012 Enterprise Version SP1. I am able to browse the MDS URL. User has got full permissions. When I try to access the MDS via Excel I get the below error.
    Can any one help me please I have spent days on this withou any joy.
    Error message
    TITLE: Master Data Services Add-in for Excel
    An error occurred while receiving the HTTP response to
    http://MYIPADDRESS/mds/service/service.svc/bhb. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See
    server logs for more details.
    ADDITIONAL INFORMATION:
    The underlying connection was closed: An unexpected error occurred on a receive. (System)
    Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. (System)
    An existing connection was forcibly closed by the remote host (System)
    BUTTONS:
    OK
    Bn

    I have finally found a solution for this problem!  Every time I opened Excel (unless I ran as administrator) I would have to activate the MDS add-in; this was time-consuming and annoying. It seems like there was no solution posted online anywhere! Well
    after much aggravation, I have finally found a solution:
    Fixing the Microsoft MDS Excel Add-In so it Stays Enabled
    Press the Start button (Windows button)
    In the search bar type “REGEDIT”
    Open regedit.exe
    A pop-up will ask permission for the Registry Editor to make changes to the computer, select Yes.
    In the Registry Editor expand HKEY_CURRENT_USER
    In the HKEY_CURRENT_USER folder, expand in the following order:  Software -> Microsoft -> Office -> Excel -> Addins
        Select Microsoft.MasterDataServices.ExcelAddIn
    Double-click on LoadBehavior in the right panel
        In the Edit Value popup, change the value to 
    Press OK
    Exit the Registry Editor
    The excel add-in should now be active anytime you open Excel. If multiple errors occur while using the add-in, the Load Behavior may change back to 0.  If that occurs simply follow these steps so the add-in will be active when Excel starts up.
    I hope this helps some of you avoid the long hours of trying to find a solution to this silly problem.
    Cheers!
    Tony

  • Issue while using views in Data services Jobs

    Hi,
    In Data Services Job, i am trying to pull data from a view to a table. The view is pointing to the table which is in other database.
    The problem is when i import the source view into data services and view the data, i found one row having wrong data. The values in that row are wrong/corrupted while the same row in the source table is having correct values
    I queried the view from TOAD for that record. The values are valid.
    The data is coming wrong only in Data services. Any row in that table gets corrupted, there is no specific row.
    Hence while running the jobs i am getting errors.
    Any idea what can be the reason of getting corrupted data in view while same view when queried from TOAD gives correct values?

    hi,
    There is a possibility of unsupported data type by data service, please share the data service version,  database type and data type of column which got corrupted.
    Regards,
    M Ramesh

  • Data Services Designer Issue with Job Server

    I am on Business Objects Edge Pro using the Data Services Designer.  When I try execute a job I get "The job server you have selected is not working."  In addition to that when I try to make any personal change to the environment I get a BODI-1260016 error.  Finally when you go to the help and about they show both the Job Engine and Job Server not responding. 
    I have opened up my CMC and it shows all servers enabled and functioning.  I do not know where to go from here.
    Thanks
    Cassidy

    Voila. I know I am a bit late to the conversation, but here was my solution. I was running Designer on my local machine. We also have Designer on the server. So I decided to remote to the server and compare settings. When the server desktop came up, good old Windows was there, announcing that BODS had changed since the last time it was run, and would I like to allow it to run (Y/N/Cancel)? Thanks, Windows. I said Yes, then went back to my local workstation, tried again to run a job, and no problem.
    This has happened with other software services (scripted ftp for example) that run on servers. Seems it can happen after a Microsoft Tuesday, or after software is upgraded. Always remember to log on to the server and clear any security dialogs that are preventing your service from running. Not really a BO solution, but it was my solution. YMMV.

Maybe you are looking for

  • How do I get rid of the Facebook blue box on my Firefox pages???

    How do I get rid of - and why is - the little blue box with Facebook asking me to go through Facebook instead of directly to where I want to go??? I do not wish to allow Facebook into my life any more than it is now. Thank you

  • Why I downgraded back to PC Suite 6.86.9

    I use PC Suite extensively to archive SMS text messages from my phones. The best thing about 6.86 is that is takes the original delivery date and time of each message you extract into a Windows folder. In the folder I can order all the messages by ti

  • Problem with large data report

    I tried to run a template I got from release 12 using data from the release we are using (11i). The xml file is about 13,500 kb. when i run it from my desktop. I get the following error (mostly no output is generated sometimes its generated after a l

  • Library font Bitmap text (no anti-alias) Flash CS5

    Ok, in previous version of flash we had this window: But now in Flash CS5 the new font embedding window is changed, and there is no Bitmap text checkbox, so how am I to create dynamic Text Fields with ActionScript, and embed the fonts in them using B

  • Adobe Acrobat Reader DC has premium features that were not premium on my other version of Adobe Reader??

    I am so angry right now because last night I had an older version of Adobe Reader that I was able to fully edit PDF's and use features such as adding a signature to my PDF. Now I've updated it when it prompted me to and now I can't add a signature un