Mapping for simple Update

Hi ,
I have the following qurey and i want to design a simple mapping of it.. I dont want the code to generate MERGE statement. I want to do it by generateing a simple Update statement.
Update
select
a.customer_id tgt_customer_id,
a.customer_name tgt_customer_name ,
a.customer_address1 tgt_customer_address1 ,
a.customer_address2 tgt_customer_address2 ,
a.customer_address3 tgt_customer_address3 ,
b.customer_id src_customer_id,
b.customer_name src_customer_name ,
b.customer_address1 src_customer_address1 ,
b.customer_address2 src_customer_address2 ,
b.customer_address3 tgt_customer_address3
from customer_table1 a , customer_table2 b
where a.customer_id = b.customer_id
) set tgt_customer_name = src_customer_name,
tgt_customer_address1 = src_customer_address1 ,
tgt_customer_address2 = src_customer_address2 ,
tgt_customer_address3 = tgt_customer_address3
Thanks,
R-

Hi,
If you have set the lang as plsql, I dont think its possible to have a code with just update statement. In your case, I don't think merge statement will have any problem. Infact it will give you better performance.
Hardeep

Similar Messages

  • Should I use dynamic SQL for simple updates?

    Please tell me, out of the two options given below, which option should i use to update columns in a table and why?
    what will be the performance difference between the two approaches?
    Please note: The options given below is just for an example
    procedure proc1(var1 varchar2)
    is
    begin
    update tab1 set col1 = var1;
    commit;
    end;
    procedure proc1(var1 varchar2)
    is
    sqlstr varchar2(1000);
    begin
    sqlstr := 'update tab1 set col1 = :v1';
    execute immediate sqlstr using var1;
    commit;
    end;
    Thanks
    Arun

    Arun G Nath wrote:.
    Should I use dynamic SQL for simple updates? No way, not a chance.
    Performance is not the issue (as long as you are using bind variables).
    But with dynamic SQL, you loose compile time checking; you do not know until runtime if the SQL is valid.
    You also loose the dependency between proc1 and tab1, which can be found only if you search user_source.
    (And in either case, you probably want to remove the commit)
    Regards
    Peter

  • Use RFC Lookup in Graphical Mapping for Database Update

    Hello,
    I am wondering whether the RFC Lookup function in graphical mapping provides the same functionality as a general RFC function call.
    In detail I would like to update a database table using a RFC which just takes some input parameters but does not use any output parameters. Would this work too as the name "lookup" implies that it might just be possible to read something?

    HI,
    Refer these links:
    RFC Lookup by michal
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1b439
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/8e7daa90-0201-0010-9499-cd347ffbbf72
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0/content.htm
    DB lookup - /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    Regards,
    Nithiyanandam

  • Purchasing cube designing, update rule mapping for 0calday

    Hi All,
       Iam designing cube for Purchasing module in BW. Iam having doubt in mapping for 0calday in update rules, is it with document date or scheduline date. I have searched in SAP cube 0PUR_C01, it is mapped with 0SCHED_DATE( schedule line date). How the difference comes when we choose document date and schedule line date.
      FYI, we are using only schedule line data source, which is giving relevant information.
    Thanks,
    Ram

    Hi Ram,
    Please note:
    0SCHED_DATE: The schedule line date is the day on which the scheduled quantity of the material is to be delivered.
    0DOC_DATE: The date on which document has been craeted.
    Use the first one for purchasing.
    Thanks...
    Shambhu

  • Best Practices to update Cascading Picklist mapping for Account record type

    1. Most of the existing picklist values name in parent and related picklist has been modified in external app master list, so the same needs to be updated in CRMOD.
    2. If we need to update picklist value, do we need to DISABLE the existing value and CREATE a new picklist.
    3. Is there any Best Practices to avoid doing Manual Cascading picklist mapping for Account record type? because we have around 500 picklist values to be mapped with parent and related picklist.
    Thanks!

    Mahesh, I would recommend disabling the existing values and create new ones. This means manually remapping the cascading picklists.

  • Need a simple  UPDATE statement for updating areas of the polygons

    Hi,
    I need a simple UPDATE SQL statement for updating areas of the polygons in a table shema.table (geom) with sdo_area function.
    Dejan

    Dejan,
    Maybe I don't understand your question but I will offer this:
    update SOME_TABLE t set t.areasqft = SDO_GEOM.SDO_AREA(GEOM, 0.005) where t.geom.GET_GTYPE() = 3
    This assumes a "feet" based SRID.
    r,
    dennis
    Edited by: user633187 on Dec 1, 2008 9:04 AM

  • Trying to update Garmin Communicator, to install new maps for my gps unit. Am told that this is not compatible with Firefox 6. Can we expect an upgrade to rectify this situation. I just upgraded to Firefox 6. Help!

    I am tring to install new maps for my Garmin Nuvi. I am told by Garmin that I have to update Garmin Communicator, but Firefox 6 tells me that it is not compatible. When is a fix for this to be made available?

    I am tring to install new maps for my Garmin Nuvi. I am told by Garmin that I have to update Garmin Communicator, but Firefox 6 tells me that it is not compatible. When is a fix for this to be made available?

  • When will nokia maps v2 update maps for serbia???

    When will nokia maps v2 update maps for serbia any idea ?

    Nokia Maps uses Navteq maps for Serbia. Navteq is a specialist mapping company. I suggest contacting Navteq for more information on mapping updates. Navteq website is
    www.navteq.com

  • Hi I'm trying to find a simple bit of freeware that I can use to image map for creating hotspots on a website.  Any ideas?

    Hi
    I'm wanting to create a pretty complicated image map for a web page so it'll be lot's of polygons.  Does anyone know of a good bit of freeware I can use that will help me work out the coordinates for the image maps?
    Thanks
    Neil

    You could do this in any text or html editor.t I imaging you want a click and drag capability when selecting the areas of the image map. Try looking at some of these. https://www.google.com/search?q=image+map+create+apple+mac

  • UDF or Mapping for removing more items

    Hi
    I'm in a need to implement a data validation using UDF or Graphical Mapping
    File has the data like ONE header record (5 fileds) and ONE item record (8 fields) as follows
    header:field1field2 field3 field4 field5
    item:field1field2 field3 field4 field5 field6 field7 field8
    header:field1field2 field3 field4 field5
    item:field1field2 field3 field4 field5 field6 field7 field8
    header:field1field2 field3 field4 field5
    item:field1field2 field3 field4 field5 field6 field7 field8
    and so on.
    Here my requirement is one header should have only one item. Sometimes either header or items are repeating more than one time .. in that case lastest header or item should be updated in target fields.
    To say clearly ... one header and one item & one header and one item and so on to be updated.
    In case any header has two items then first item to be deleted and second item to be updated.
    Kindly advise me how to go about this requirement.
    Thanks.

    Do the mapping as
    Direct assignment of Source header to Target Header and same for fields inside the Header.
    create a UDF (choose context).very simple UDF with a single statement.
    result.addValue(a[a.length-1]);
    Item Node mapping and Its Fields
    Item------>UDF------>Item(Target)
    field1(Change the context to Header)------->UDF----->field1(under Target Item)
    Do the same mapping for remaining fields Under Item as you  do for field1
    I have tested the above UDF and the mapping..It is working according to your requirement.

  • Network Drive Mapping for users who have Port 445 (possibly others) Blocked by their ISP to a Server 2008 system

    Nice to see my original posts are still up.  I was hoping that in the ensuing time someone had found a solution.  At least I can now see many other posting the same problems.  :)  Thought I was losing it for a while.
    We have 100% proven that the problem (in our case) is from the ISP blocking port 445 (possibly others but 445 for SURE) with the reasoning that it prevents the spread of some Internet "worms".  It also just happens to prevent people who work
    from home from being able to map to their network drives at work.
    What I was hoping was that eventually someone would comer up with a solution for this short of having to load a server using a different OS from Windows.  The SMB protocol is the one needing port 445 as far as I can tell.  Not all ISP block
    port 445 and the laptops that use those ISP's  have no problem.  Unless they travel.  Then it is "hit or miss" as to whether the ISP for the Hotel they stay at blocks it.
    I have run multiple tests to prove that this was in FACT the problem.  Even the particular ISP in question which is a very large national ISP company freely admits they do this supposedly to prevent the spread of an unnamed Internet Worm.  It also
    happens to prevent Business use of their Internet by Home Subscribers at they cannot map to their Business Servers which also need port 445 to map.
    I have used WebDAV successfully to get around this but at a huge loss of speed and performance.  Cloud services all do essentially the same thing and all have pretty much the same loss of speed.
    If anyone has come across a method of allowing a drive mapping to be rerouted to any other port, that is the only hope I have short of changing to an alternate OS for the Office Server and even then I cant be sure until I try if it would help.  I read
    somewhere about the possibility of routing through a proxy but again, the problem would still be that the requests for mapping are expected on port 445 on the server and they will not get through even to the proxy since the originating ISP is the one blocking
    the port from the User's system. 
    Any help or suggestions would be greatly appreciated  I have posted this question now for several years with no one yet providing a working solution.  Hope burns Eternal though :)

    Yes, OwnCloud is an option as well as many others.  Even self hosted Cloud services such as the WD MyCloud all work.  The problem is speed.  JungleDisk is the best I have found so far.  I am not sure exactly what they use to allow the
    drive mapping but it seems to work faster that anything else I have found.
    VPN's don't work.  At least none of them I have tried.   I can connect a VPN with no problem.  But still cannot map a drive over it.   Actually, there are some issues with the VPN as well but these are just a matter of methodology. 
    Mapping to the FQDN works for some people while others require the public IP.  Some users on some ISP's can map using the FQDN, others have to map to the IP.  That in itself was a bit odd.
    I have tried every trick I could find including adding  the IP and/or FQDN to the Windows Hosts file on the server as well as on the client systems.  This actually did help to get the VPN to connect in some cases.  However, it still would
    not allow me to map a drive letter.
    I can create a Network Place,  This also works.  But it will not allow me to MAP that "network place" to a drive letter.  I have tried multiple utilities that allow mapping of Drive letters to almost anything but they wont work to map to a
    Network Place.
    The software that needs the mapped drive is a SQL database which runs on port 2004.  The program itself has no problems at all connecting to the server to run the database.  Even on systems which cannot map to the needed drive letter for the documents
    referred to in the database.    Users can run it and look up all kinds of material but it it is only a half-solution since the database refers to files stored in a "common-mapped" drive letter.  Which I cannot Map.
    I have tried every possible configuration of the VPN setup I could find, I have even tried a "Test System" with the NIC connected directly to the T1 Modem.  With all firewalls off and no AV software.  Even if that had worked,  there is no
    way I could run like that.  But it didn't.  Same issues.  All this did was put the blame squarely on the User's ISP which was the only reason I did it.  I had to rule out even the slightest chance that it was something in our equipment.
    This was already almost a certain fact since the same user could take their laptop to a WiFi Hotspot at a fast food restaurant and connect as well as map the drive.  As soon as they went back home, no drive.  On the ones I could convince to pay
    the extra charges, if they switched to a business connection from their ISP, No Problems.
    On most MiFi or other Cellular Internet devices, No Problem,  Although that had a habit of changing.  We had a few that worked for a while, then they got a software update for their MiFi which immediately blocked the ability to map.  Others
    it would be that some models of Cellular HotSpot units worked while other would not work even if both came from the same carrier.
    Coincidentally, we had none of these problems before two other events occurred: 
    One was the release of Server 2008 R2, (which was a kid of "surprise" change for all of us used to Server 2008 R1.  Welcomed changes, but not expected with a simple SP release. 
    The other was IPV6 finally became a reality:  June of 2012.
    This left us with much head scratching as to what was the real cause of the problem.  It took months to narrow it down to port blocking by the Outside ISP's with a 100% certainty.  Even tried reloading a system with Server 2008 R1 just to rule
    that out.  As well as disabling IPV6 on every network device.  The problem stayed with the User when Outside and which ISP they were connected to.
    Currently we are using a mix of normal VPNs for those who can run them, and CLOUD access for those who can't.  Even this is problematic since we have to keep both the local copy and the cloud copy in constant sync so that everyone sees the same versions
    of the same files on each one.
    Sorry to make this so long but I wanted to cover everything to show that we tried it all.  The only thing left short of getting the ISP's to remove the port blocks would be to find a way to route the SMB file requests around port 445 in some way. 
    I have been told that this is easy enough if using a file system other than Windows but that is not an option even if true. 
    Thanks for the updates and ideas.  I keep hoping that eventually there will be some secure method for mapping a drive letter that does not depend on having port 445.

  • How to use Value Mappings for simple translations?

    Hello,
    I want to use Value Mappings for simple translations in mappings, e.g. from IDoc to Inhouse structures.
    For example unit of quantity:
    IDOC    -->    INHOUSE
    PCE               P
    ABC               A
    How can I use Value Mapping for this? What should be used as Agency, what should be used for Scheme? What about groups? I tried the following: I created a new Value Mapping in Integration Directory:
    - Source Agency: DELVRY05
    - Source Scheme: MENEE (IDoc field name)
    - Target Acency: INHOUSE_DESADV (Name of structure)
    - Target scheme: UNIT (Name of field)
    Then, in the table, I added several lines for translating PCE to P and ABC to A and so on. But I have to define a group name for each line. I used INHOUSE. But than I get one INHOUSE group for each line.
    This seems very complicated for simple translations from A to B. I don't want to use FixValue in Message mappings.
    Any help appreciated.
    Thanks,
    Christoph

    Hello,
    @pavan kumar: Thanks, but I know all Blogs about Value Mappings. That does not help me. And I refer to PI 7.1.
    Lets get it very simple: I want to have exactly the same functionality of "FixValues" as ValueMappings. In 7.1, I need to define a Group for every row / line in the conversion table (e.g. for units of measurement conversion between IDoc and FlatFile). That does not make sense for me, as the Group is always the same, e.g. "Unit of measurement". So I will get dozens of same groups called "Unit of measurement".
    I don't really understand the concept of Groups. Maybe this is just not appropiate for my intenses? Maybe the Group has to be defined as one specific value of Unit of measurement, e.g. "pieces"?
    CHRISTOPH

  • Different maps for every month in FDQM for a single location/Entity

    Hi,
    Is it possible to have different account maps for each and every month in FDQM for a single entity/location.
    The requirement is,client needs to change accounts map each and every month,for eg; if in Jan ,account 1 is mapped to X, in feb same account 1 is mapped to y.
    Could any one tell me if this is possible in FDQM,if yes..how can we maintain different account maps for each period for one specific entity.
    Regards

    This is possible with the appropriate business process. FDM will apply the current map that exists to the current dataset. It will not retroactively change prior periods unless you specifically reprocess the maps (wither by reimporting data or by selecting Process Logic/Maps) for historical data.
    So as a map is updated monthly, the historical data is maintained and the current data uses the "new" map. If for some reason the prior period does need to be reprocessed with the "old" map, you can use the restore function to bring the map back to what it was during that period.

  • My mac book pro does not boot up correctly anymore after doing some updates. I did have my ipod charging to my mac book. I ran the simple updates and never go to the maverick update and now my computer will not boot correctly. Help!

    Please help my computer is not repsonding after doing some simple updates. I follow the instructions and which is simply click for the update to take place. I did what I was instructed to do. I did not do the new update for the Mavericks yet. I just did simple updates. The computer shutted down and restarted but would never get pass the grey screen with the spinning wheel and the booting bar that would not go past a certain point befor shutting off again. The computer is practically brand new. I purchased the computer from best by 2012 and the warrenty just ended the past October. I hardly use the computer maybe 4 times since I have had it because I have another main computer that I uses. However, I don't want to do a hard rest becuase I do have the entire adobe suits software that I paid for and don't want to loose. I have an appointment with apple today to see what they say but I hope that my computer that I hardly every use is not defected after doing a updated pushed by Apple. Any thoughts or suggestions???? Thanks in advance Apple Family :-)

    Well, I was at Apple for sometime on that day. I got a Genius that did not want to work. She basically jumped to the money to tell me that my hard drive was no good and that I was out of warranty (October 2013). I began to explain to her that I had only used the computer 5 times and that I don't use this computer as my main computer because I also have a Toshiba that is less expensive that I have had for several years and not one issue out of it. The rep told me that I could by a new hard drive for $161.00 and that I would loose all of my software and photos that I have on this computer. However, I told her that it's bazaar that it happens right after my warranty goes out and had I used it more often when in warranty before October then I would have been covered. Keeping in mind that I would still be very disappointed with the product because I would loose all of my information and it would not make sense to me why the hard drive fails on a very gently used computer. So I asked for a manager and it took her some time to get one. In the mean time I watched how the other Geniuses interacted with the other customers and seen that they were very engaging with convo and very help. I guess I just I got another lemon when I got my rep. When the manager finally came. I went from A-Z with the issues and that I felt that something could or should be done because the rep said that she did tests on my machine and it read to her that my hard drive was bad and there was nothing that could be done. I explained that I was not looking forward to paying for services to have my new computer repaired. The manager offered to give me 25% off the cost but I still didn't feel that it was effective. After he left and the rep wrote the notes in the system, I told her that I didn't think that all options had been exhausted and that there was something else that could be done. I told her to erase the machine and see if the updates could be installed and if the system would continue to do the same thing. The rep was hesitant and said that I would loose everything which we already know that we were at conclusion from the beginning. She assured me that I would happen again and that I would need a new hard drive. I just told her to erase the machine and get me another manager because I was just getting tired of her unhelpfulness and negative perspective. The new manager came and was very pleasant and I explained everything once again from A-Z. I informed him that I had the machine erased and that I need his help with options because I don't feel that the rep or the last manager was resourceful or helpful. He apologies for the actions of the reps and proceed to tell me that they will run all the updates in the store and that if it booted correctly that I should continue to use the machine with out adding the adobe software back on just incase that it crashes again and I'm out of money once again. However, if it does happen again and it is a hard drive issues that he would work with me to resolve the issues. As my computer went through the process of rebooting from out of the box stage another rep approached me because he could tell that I was upset and not happy. I told he what had happen and he said I think I can help you a little more. He said that I just want to run further testing on you computer for different components to make sure that everything would work properly and pin point any issues. I was delighted with that option. Anything would help at this time especially someone who is willing to help. The first test that he ran was to for the hard drive and he said that since it failed the test the first time could be because the software update glitch and did update correctly which would make the test faulty and be negative. As I sit with finger crossed the test came back as a pass test that my hard drive was not the issue and that the update was the cause and that I did not have to buy a new hard drive. I was happy that the computer was ok but I lost information. All of the updates were done in the store and everything works fine now. If I was not persistent about my gut feeling then I would had left out thinking that I had to pay for a new hard drive that I really didn't needed. Now I can invest that money in a external hard drive to start backing up my information. Lesson learned by I'm still on the fence about things but I hope all is well. I really went through a lot. No help or no service was not an option that I was taken.  I hope that it helps.

  • Problem in OWB map for source change capture

    The problem is as follows:-
    Our OWB map between two different databases, captures change in data at source and populates them in target. It is a one to one map. The map is failing to process some rows from source database though it gives no:of errors as 0 in the audit view thus we infer that the map is running successfully.
    In our case, we have a composite key ( Instance_id, Version_number) at source as well as target. One instance_id can has more than one version number. We have observed that the view is picking up all the version_number for a particular instance_id but the map is unable to populate the last version_number to the target table.
    But when this map was executed in another environment and it is successfully populating all the data in the target.
    The brief description of the map is as follows:-
    The map has a view which captures all the changes in data (insert and update) .From this view we filter the rows which were already processed in previous map run (with help of watermark). Then we sort the rows based on DML type and watermark . These rows are then mapped to a target table. The loading type of the map is INSERT/UPDATE.

    Hi Nagesh,
    When we are doing I18N for that Application. Go to Navigator Tab
    Here Select Particular Projects--à src-àPackages-àsap-àvijay
    To internationalize the Web Dynpro application, copy the automatically generated *.xlf files and save them under a new name in the same directory.
    The new name must meet the following convention:
    u2022 .xlf
    For example, if you are creating *.xlf files for German,
    Use the language key de.
    Here Click on OK
    After that we can edit and translate these new *.xlf files in the S2X Editor.
    ApplyTemFirstView.wdview_de.xlf-àClick on Resource Text Tab
    Select Particular Text and Change the language to German-àClick on EDIT Button
    Here Enter German Lang-àClick on OK
    Now Go to Web Dynpro Explorer Tab
    Select Project-àRC Click on Rebuild Project
    Select Project-àRC Click on Reload
    Then Deploye the Application
    How to Check in Explorer. It is converting to German Language or not
    Open Internet Explorer
    Tool-àInternet Options -àClick on Languages Button-àClick on ADD Button
    Select German Language--àClick on OK
    Now We will Check in Portal
    Created Web Dynpro iView in Portal. That iView assign to the particular WorkSet-àAssign to Role
    Select that user Can Change Language
    Regards
    Vijay Kalluri

Maybe you are looking for

  • Magic Mouse only works with laptop open

    I bought the Magic Mouse so I could wirelessly awaken my laptop while it was closed and connected to the television. It worked for months. Now when I awaken the laptop with the mouse it turns on for one second and then turns off. The mouse works perf

  • So i have a 32gb ipod classic and the usb port is never recognized??

    So my ipod is a 32 gb classic but i can't really use it because the usb port will not connect to my computer or anyone else's. the only reason why it's not completely useless is because i can still charge it using the firewire port but i can't restor

  • F4 Search Help in ALV output

    hi experts,         I have the Batch field as an editable field in ALV list display. I want to Give an F4 for this Field. I have given the reference field and reference table as 'MCHA'. I am getting the F4 values also. But i want like an search help

  • Validating a selection field for meeting the ranges given in the Domain

    Hi Experts, Please let me know the proceedure to  Validating a selection field for meeting the ranges given in the Domain. In my case, i am using the domain 'AUFTYP' Order category which has value range like 01 , 02 .... Which are displyed during F4

  • Error when syncing app. 0xE8000001

    Hello All: I recently purchased Myst through my iPod Touch and it was slow download. So I paused it and started again the next day. Still no go. Then I thought i would just dl through my macbook iTunes which I did just fine. However, when I go to syn