Lcr.set_values('NEW',lcr.get_values('NEW')) behaviour during Update

Hello,
I have a table t1 :
Column A : Primary Key
Column B
Column C
On the Source database i launched :
Update t1 set c=1 where a=3;
On the Target Database i received this LCR :
OLD column A : 3
OLD Column C : 2
NEW Column C : 1
=> No new column for A (This is normal).
I would like to insert a record containing OLD_A and NEW_C into the target database.
More generally, In fact i would like to insert ALL NEW values as well as OLD values for all NEW empty values.
I tried this :
lcr.set_values('NEW',lcr.get_values('NEW')); and i get exactly what I want !
So it looks like
that lcr.set_values('NEW',lcr.get_values('NEW')) populates the NEW values based on the OLD values and replaces OLD values with NEW VALUES that are non empty.
In this way you'll get the same updated record as the one on the Source database.
Question :
Can i rely on lcr.set_values('NEW',lcr.get_values('NEW')), is it normal it works in this way and produced (OLD_A,NEW_C) record ?
Or should i write my own procedure to do the job ? (Creates the (OLD_A,NEW_C) record)
Thanks
Bertrand

Sorry, forget my post here is the answer :
MEMBER FUNCTION GET_VALUES(
value_type IN VARCHAR2,
use_old IN VARCHAR2 DEFAULT 'Y')
RETURN SYS.LCR$_ROW_LIST;
value_type
The type of values to return. Specify old to return a list of old values. Specify new to return a list of new values.
use_old
If Y and value_type is new, then the function returns a list of all new values in the LCR. If a new value does not exist in the list, then the function returns the corresponding old value. Therefore, the returned list contains all existing new values and old values for the new values that do not exist.
If N and value_type is new, then the function returns a list of all new values in the LCR without returning any old values.
If value_type is old or if the command_type of the row LCR is not UPDATE, then the function ignores the value of the use_old parameter.
NULL is not a valid specification for the use_old parameter.

Similar Messages

  • Add new row during update in matrix

    hai to all,
              Iam using matrix on that iam able to do add, delete and update. But  during updation i want to add a new row in the matrix.Iam using usertables to fill the matrix........ Can help me???????
    Its urgent...........

    Sorry Ani
    I guess I missunderstood your question. But with the code snippet I sent you can actually put the desire values on each of the columns automatically.  Say for instance I have a query
            Dim rst As SAPbobsCOM.Recordset
            rst = msboCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
            Dim strSQL As String = "SELECT Field1, Field2, Field3 from Table1"
            rst.DoQuery(strSQL) 'Execute query
    then you can name the columns <b>UniqueIDs </b>  or use the <b>Alias</b> property to put the name of the fieldsas Field1, Field2, and Field3.  Hence when you run the this piece of code
              Dim oColumn As SAPbouiCOM.Column
              Do while Not rst.EOF
                For Each oColumn In oMatrix.Columns
                    If Len(oColumn.DataBind.Alias) > 0 Then sbuForm.DataSources.UserDataSources.Item(oColumn.DataBind.Alias).Value =  rst.Fields.Item(oColumn.DataBind.Alias).Value
                Next
                oMatrix.AddRow(1)
              Loop
    Hope it helps

  • Looking for quick creation of a new contact during activity processing

    We are looking for a quick way to create a new contact during the process of activity management.  Once I have selected my business partner and then I search for a contact, if the contact I need does not exist yet there are several long involved ways to go create the new contact.  Several people from SAP have alluded that there is an add button that should be available on the business partner central search window that comes up when you look for contacts but we have no add button.  Does someone know if the add button becomes available later?  We are on CRM 5.0  - has anyone customized a way to add a contact here without having to go into the account application relationship tab.  We are coming off of Mobile Sales where there is a pop up window to add a contact. We need to replace this functionality.

    Hello Pascale,
    "Follow-up" button is present to enable a quick creation of follow up.
    That is end user can just input those limited fields, and click on this button to create the document without going into the detail.
    And at the same time, standard IC do provides another link to the detailed follow up documents to enable user add more detail.
    The link "Follow-up Details" can realize such purpose and should be the one you are asking for.
    The steps are:
    - select the transaction type in the drop down;
    - click on "Follow-up Details" link, this lead to another page of the detailed activity creating, only at this time the activity is being created;
    - click on the Back button without save, you will return to the previous screen, and get the link in Activity Clipboard for future access;
    Hope I have understood your requirement correctly!
    Hongyan

  • I had to reinstall iTunes cause during update it was shut off by mistake, now it won't come up and says,"The file "iTunes Library .itl" cannot be read because it was created by a newer version of iTunes", what do I do?

    I had to reinstall iTunes cause during update it was shut off by mistake, now it won't come up and says,"The file "iTunes Library .itl" cannot be read because it was created by a newer version of iTunes", what do I do?

    Empty/corrupt library after upgrade/crash
    Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps you shouldn't lose a thing or need to do any further housekeeping. In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.
    See iTunes Folder Watch for a tool to catch up with any changes since the backup file was created.
    When you get it all working make a backup!
    tt2

  • A resource assignment for new task during another task MS Project 2010

    I would like to assing a new task during another task.
    Resource A is assigned Task X from May 12th - May 16th. 5 hours per day.
    I would like to assing new Task Y for May 14th. It will take 7 hours. So I would like to set up in MS Project 2010 as:
    May 12th Task X: 5 hours
    May 13th Task X:7 hours
    May 14th Task Y:7 hours
    May 15th Task X:8 hours
    May 16th Task X:5 hours
    I set up Task X for Resource A as from May 12th - May 16th working hours as 25 hours in gant chart.
    Then I set up Task Y for Resource A as May 14th working hours as 7 hours in gant chart.
    I see Resource is as follows.
    May 12th Task X: 5 hours
    May 13th Task X:5 hours
    May 14th Task X:5 hours Task Y:7 hours  -> Total 12 hours
    May 15th Task X:5 hours
    May 16th Task X:5 hours
    Please let me know how I set up what I would like.

    2 X options:
    1) You may be tracking too granularly.  A task should create something and then hand off to another task.  in this case, you may as well just combine them into a single task for about a week or so.  Most companies don't track hours per day
    that granularly as well.  I'd look to schedule by the week.
    2) Split the tasks into multiple tasks and establish dependencies between them.  Assign the resource to each task at different amounts of work.
    Andrew Lavinsky [MVP] Blog: http://azlav.umtblog.com Twitter: @alavinsky

  • Ockeim getting problem in imovie & iphoto update.my 1st id is bld,i changed my id but during update it is showing my previous id.please help me how should i update my app by new id.

    im getting problem in imovie & iphoto update.my 1st id is blocked,i changed my id but during update it is showing my previous id.please help me how should i update my app with my new id.

    Contact App Store support. There's a link on the right hand side of the App Store Window. They're the only ones who can sort out account issues.

  • Iphoto keeps reimporting all photos on disk though i have selected hide photos already imported. this is new behaviour!

    I am trying to import a few new photos from a 8gb card but Iphoto keeps reloading all the files that I have already downloaded AGAIN! This is new behaviour! I have the box ticked to Hide photos already unloded but it is grayed out so couldn't unselect if I wanted to. I've looked at the directions and they seem to say NOT to select the files on the card and drag them into Iphoto. It is taking hours to reload files that are already there. Any ideas? Cheers.

    If this is new what  has recently changed?
    LN

  • Storing an "indicator" to control behaviour during submit()

    Hello,
    I'm developing a JSF page in which I need to access some data from a database and use the data to control the GUI (components) behaviour as well as behaviour during submit().
    I have a backing bean for my JSF page and bound a number of GUI components to properties on the backing bean. I also have getters and setters for those properties.
    In the getter for one of the properties (bound to a GUI component -- in fact, an HtmlOutputLabel), I did the following:
    -- read data from the database (this is successful)
    -- got the HttpSession object from the FacesContext: session = (HttpSession)FacesContext.getCurrentInstance().getExternalContext().getSession(false);
    -- set an attribute in the session object: session.setAttribute("firstReviewDone", new Boolean(firstReviewComplete));

    I don't see anything obviously wrong in what you posted; however I would make a couple of suggestions.
    First, don't do work in getters. The getters will be invoked a number of times as JSF works through the lifecycle. If you need to initialize something it is generally better to use a @PostConstruct method.
    Second, rather than using the session directly, the JSF approach would be to use a session scoped bean. Make a simple bean that holds your attribute (I'm sure you will add others later) and configure it as a session bean. Then inject it into your original bean. (You might find that in this approach it makes more sense to do the @PostConstruct in the new bean.)
    Incorporate the above or not, but if at the end of that (potentially null) process it still isn't working I would suggest posting the code here and not just snippets and descriptions.

  • And need the new iTunes 11.1 to be able to use my iPhone on iTunes but I need the new mac software update OXS 10.6.8, but my mac doesn't need or have an update what should I do! I'm upset :'(

    and need the new iTunes 11.1 to be able to use my iPhone on iTunes but I need the new mac software update OXS 10.6.8, but my mac doesn't need or have an update what should I do! I'm upset :'(

    The requirements for iTunes:
    Macintosh System Requirements
    Mac computer with an Intel Core processor
    OS X version 10.6.8 or later
    400MB of available disk space
    Broadband Internet connection to use the iTunes Store
    Your Mac must be able to run OSX 10.6.8. If you can run that OSX then you can run iTunes 11.1.
    Which Mac do you have?
    MJ

  • Home sharing does not work with new mountain lion update.

    home sharing does not work with new mountain lion update. Does anyone else have the same issue. Updated all computers in my home, deauthorized and reauthorized each computer. turn off home sharing and turned it back on. don't know what else to do..please help...

    Our Apple TVs continue to lose connection ever since installing Mountain Lion on the host computer. The only thing that fixes them is to quit and relaunch iTunes, which only works unti the ATV goes to sleep. If a movie is paused for more than a few minutes and the ATV goes to sleep, pressing play again on the remote is greeted with "There are no movies on this computer" or "Turn on Home Sharing."
    If we stop a video on one ATV and attempt to resume it in another room, the error begins again. The other ATV can't connect until iTunes is relaunched.
    My guess is that it has something to do with the new [annoying] security settings. But I still haven't found a fix other than restarting iTunes everytime we want to watch something from our downloads. Fail.

  • I've just updated my iPad to iOS 7.02 and I'm not able now to download new apps nor update the version of the existing ones.

    Hi!
    I've just updated my iPad to iOS 7.02 and I'm not able now to download new apps nor update the version of the existing ones. All of them are "waiting"... for ever.Even, when trying to download a new app, a "dratf" icon appears on the ipad, not the app's own icon...
    I've tried to switch off and on the iPad, disconnect and reconnect the itunes id... and nothing works. Even deleting an app, to download it again, doesn't work. It even doesn't ask for my password!!! (Stays with the small square with a circle around, the one that gets "bolder" while downloading... but it doesn't get bolder now. Just stay...).
    Any suggestions? I wouldn't like to reset the iPad, since I've got data in some apps that I wouldn't like lo loose...
    By the way, I can not either delete some apps with thos "draft" icons... even when the alert that appears when trying to do that is shown and select "ok".
    Thank you in advance!
    Best Regards,
    Carlos.

    Hi,
    Thank you, Once_was_lost, but it doesn't work either. I tried it yesterday as an option (I think you're referring to the options of those apps in the settings app).
    The problems are still here... I've been able to update some apps using the PC itunes (connecting the app to it), but all the other apps are still "wating", and I have two new strange things:
    * I cannnot remove the apps that are downloading (at least those that are supposed to be downolading ) . But I could remove one from the PC... and now there is an "empty line" in the "to update apps list".
    * Stranger: though I cannot download new apps or music from the store, I can do in-app purchases!!! In that case, I'm asked for the password and the item downloads. How is it possible?????
    I can download with the same user in the PC, in the iPhone... but not in the iPad .
    I'm getting mad...

  • When we try to buy a new app or update our existing apps, my account settings wont allow me to enter ANY of my credit cards.  It says to contact apple/itunes/support, but when I do, I don't understand how to navigate it to find an answer.  Help!

    when we try to buy a new app or update our existing apps, my account settings wont allow me to enter ANY of my credit cards.  It says to contact apple/itunes/support, but when I do, I don't understand how to navigate it to find an answer.  Help!

    Click here and ask the iTunes Store staff for assistance.
    (108048)

  • Any ideas on how to fix ipad after the new iOS 7 update? My battery will not charge, my ipad is hot to the touch, the iTunes Store won't open, and my messages on Facebook aren't showing up when I chat and pintrest won't pin to my boards.

    Any ideas on how to fix ipad after the new iOS 7 update? My battery will not charge, my ipad is hot to the touch, the iTunes Store won't open, and my messages on Facebook aren't showing up when I chat and pintrest won't pin to my boards.

    If you have all your music on the cmputer then i would connect up my phone uncheck the Sync Music option and apply.
    This should take all the music off your phone .Then you can resync the music back on to it.
    If this doesn't work maybe a restore to factory settings and start from scratch is the way to go

  • I had my Ipod touch 4gen on itunes of computer that crashed. On new computer i updated it, hit the wrong button, and lost everything. How do i get my old songs, apps, and account money back?

    I had my ipod 4gen itunes on a computer that crashed. With the new computer I update it to the lastest version. I hit the wrong transfer button and lost everything. How do I get my old songs, apps, and money back from my old account, if thats possible?

    I cant find any of my recently bought songs or the apps i have purchased. When I was updating my ipod there was a button that asked about transfering purchases and I didnt read it, and I didnt update manually so i think thats why i lost everything. I clicked on the intrustions and clicked on apps and i coulnt find any of my old stuff.

  • What is new from the update 5.0 for Iphone 4 users?

    what is new from the update 5.0 for Iphone 4 users?

    Click......
    what is new from the update 5.0 for iphone 4 users?

Maybe you are looking for

  • ICal 5: day view: how can the list on the left side be hidden?

    hi fellows how can the list on the left side in the day-view of iCal 5 be hidden, so that the computer-screen only shows the graphic-bars (right side)? Thanks a lot for your help Mullika

  • PLUG IN NOT WORKING

    Hi, for some reason my EVB3 Tonewheel organ is not producing any sound, it opens along with the organ files in the library but absolutely no sound is being produced! Could anyone possibly explain this to me and what I can do to sort this out, it work

  • Best way for a thread to wait without busy-waiting

    Hi! I have a thread that has nothing to do but to monitor the status of a variable public static boolean askToClose. This variable is set by other threads to indicate that this thread should stop now. But I don't want the thread to busy-wait like in

  • Nook tablet problem

    Why will my NOOK tablet NOT support Adobe flash player or others?

  • Error in Output Service generatePDFOutput

    Hello, I am trying to create a PDF using generatePDFOutput Folder and I keep getting error [10/5/09 11:00:02:695 EDT] 0000002a PivotHandlerW E org.apache.commons.logging.impl.Jdk14Logger error WSWS3400I : Info: unexpected exception. lava.lang.NullPoi