How to copy a record into a new one

I would like to copy a whole record into a new one. Duplicate_Record doesn't help, because I do not necessarily want to copy the last record, but any record.
The user should be able to open a record and then call "copy" and the current record is beeing copied into a new one. The user can also choose "new record" and nothing will be copied into the new record.
So, if I want to copy the record, it's always the last one that has been opened.
Should I save the values from the last record in globals and pack them into the new record?

Sorry, the data is very complex, so I can't give an example. But to say it in a simpler way: I would like to copy any record, opened by the user. But not the last record in the database -> therefore I can't use duplicate_record.
Hope it is clearer this time?still you have not given the data and output which you want.
But not the last record in the database
what did you mean here...
oracle doesnt have a track of the records which were inserted to the db.

Similar Messages

  • How to copy last record to a new record ?

    Hello,
    i have a question pls.
    i want to copy last record to every new record
    say,
    multirecord forms has : Tank_no Last_measured Lab_Denisty
    record1 : 1009aw 1532.94 .5796
    what i want to do next record is copying last record (record1 ) as
    record2 : 1009aw 1532.94 .5796
    so the user may change the Last_measured only and not to have to rewrite the Tank_no and the Lab_Denisty cause it doesn't change.
    May i do this ? if yessss, but How..?
    Regards,
    Abdetu..

    Hello poelger
    i check it then found the following code :
    DUPLICATE_RECORD Examples /*
    ** Built-in: DUPLICATE_RECORD;
    ** Example: Make a copy of the current record and increment
    ** the "line_sequence" item by one.
    DECLARE
    n NUMBER;
    BEGIN
    ** Remember the value of the 'line_sequence' from the
    ** current record
    n := :my_block.line_sequence;
    ** Create a new record, and copy all the values from the
    ** previous record into it.
    Create_Record;
    Duplicate_Record;
    ** Set the new record's 'line_sequence' to one more than
    ** the last record's.
    :my_block.line_sequence := n + 1;
    END; but then which trigger best fit the procedure should i use
    w-c-r or w-n-r-i Triggers
    and what is meant by line_sequence pls. ?
    Regards,
    Abdetu..

  • How to copy exitsitng extracter into another new extracter?

    Hello,
    Please some one can tel me how to copy the existing  extracter into another new extracter.
    I have requirment as below
    Currect me if i am wrong ,need to enhance the existing extracter and add some new fields,and need to include some masterdata filds also to it.
    For master data i am going to do write routines at Transfermation so that no need to include in my exter for those filds to extracter.
    Please some one guide me in this scenario.
    Chrs

    Hi,
    you do not have to copy the extractor, you can enhance it with fields and fill them via enhancement coding --> rsa6.
    If you want to copy it, you need to check what kind of extractor you have. Is it a function module or just a table extractor.
    for fm: copy the function module via se37 and copy the extract structure via se11. Add your enhancements in the copied structures and coding. Create a new datasource with rso2.
    for table extractor: create a view adding the additionally needed fields. create a new ds with rso2. Surely you need to add some coding in the relevant enhancement.
    regards
    Siggi

  • HR ABAP-How to copy a PERNR into another new PERNR?

    Hi All,
            How can we copy all the Infotype details related to a Personnel Number into another new Personnel number?
    Thanks in Advance,
       Anjaly

    Hi anjaly,
    1. There is no method/concept of Copying, w.r.t Personnel number.
    2. A new pernr,
        has to be hired in the system FIRST,
        via pa30/pa40 (hiring action),
    3. ONLY THEN,
    4. A new pernr is created in the sytem,
    5. ONLY AFTER THAT,
       we can put other data realted to pernr in the system using pa30 or anything else.
    regards,
    amit m.

  • Euh..... Sorry How to copy a Recordset into a other one

    Sorry for the last one (clone a recordset),
    In fact I want to copy values from a recordset to a other one (in order to make a comparison of field).
    Can someone help me, please ?

    When you ask about a "recordset", are you asking about a ResultSet from the java.sql package? If so, perhaps you could clarify your question because it really doesn't make much sense. If not, then it must be a class from some proprietary package; could you provide details?

  • How to map 2 tables together into a new one, like an Union?

    Hi.
    I am new in Oracle Data Warehouse Builder and what I'm wanting to do could be simple.
    My question is: How to map 2 tables into a new one? That is, what I need is to do a Union.
    See the following tables:
    What I have is:
    ---------------+ ---------------+
    | A | B | | A | B |
    |--------------- |---------------
    | 10 | 34 | | 13 | 39 |
    ---------------+ ---------------+
    Table 1 Table 2
    What I wish is:
    ---------------+ ----------------------+
    | A | B | Original table |
    |--------------- ----------------------+
    | 10 | 34 | 1 |
    |--------------- ----------------------+
    | 13 | 39 | 2 |
    |--------------- ----------------------+
    Then, I need put all data together into a new table and this new table should has a new column showing the original source of data to each record.
    Can I do such thing?
    I'm using the Oracle Warehouse Builder and trying to do a map in this way.
    Any hint will be very helpful. I also will appreciate an indication of some document which can show how to do it.
    Thanks .
    Rodrigo Pimenta.
    Brazil.

    Use the SET OPERATOR. That should help i guess.

  • I have a rather old iMac 20" (mid 2007) and I want to upgrade the Hard drive. How do I change it? How do I transfer all my applications? May I just copy the old hd into the new one? Thanks.

    I have a rather old iMac 20" (mid 2007) and I want to upgrade the Hard drive. How do I change it? How do I transfer all my applications? May I just copy the old hd into the new one? Thanks.

    There are many online tutorials on how to change out the HD on a mid 2007 iMac. One of the originals is from 2007 and is Upgrade your iMac 20" or iMac 24" aluminum (mid 2007) to 1TB Hard Drive and 4 GB RAM - DIY Guide. As far as migrating your system Apple helps out with that in Setup Assistant which automatically starts when you turn on a new Mac for the first time. After you have installed the new HD you will have to format the new HD to Mac OS Extended (Journaled) and then you will have to install OS X. The first time you turn it on Setup Assistant will start. Follow the directions and you will be fine. In order to restore your information you will need to backup what is on the current internal HD first. I'd recommend using Time Machine (Assuming you are using Leopard or later) AND also creating a bootable clone using either SuperDuper or Carbon Copy Cloner.
    Please complete your profile so at the very least we know what version of OS X your machine has installed.

  • I had to do a re-install of Thunderbird after a crash. How do I get my old address book into my new one?

    I had to do a re-install of Thunderbird after a crash. How do I get my old address book into my new one? There are only a few of the contacts I had, so there must be a location where the rest are, but not sure where to look. And once I find them (with your help), how do I get them into the address book?

    If you copy abook.mab or history.mab into a profile folder, they will show up as Personal Address Book and Collected Addresses. But if the mab files have names other than abook or history, they can only be imported to TB with the use of [https://nic-nac-project.org/~kaosmos/morecols-en.html MoreFunctionsForAddressBook].

  • Copy messages in template folder into a new one

    Hello all,
    i get a new phone N97 and i need to copy the message templates i created before from the old phone into the new one
    the old one belong to E-Series ( E50 )
    how to do that please
    using Nokia PC Suite or IR or what ?
    thanks for help

    Hello Impish,
    if there are no blue rectangles, there are two reasons for that:
    1. You have inserted a rectangular shape, not a textbox.
    2. You have inserted a textbox as an inline object.
    If it is the second reason - what I think it is - show the wrap inspector (the third button) while the textbox is selected and activate the second radio button at the top titled "Fixed on Page". Now you will see the blue rectangles. A double-click into it will create a new textbox with the same size of the first and containing the text that was covered by the borders of the first textbox.
    You can connect/link two existing textboxes by dragging from the right bottom blue handle of one textbox to the left top blue handle of a next textbox (or vice versa).
    Have in mind that every object will be inserted as an inline object when you can see the text cursor in the page, independent if the text cursor is placed inside the page text area or in a shape.
    If you want to insert fix positioned objects, be sure the text cursor is not visible before insertion.
    Frank.

  • How to copy actual data into current forecast period

    Hi gurus.
    I need your guidance on how to copy actual data into current forecast period.
    This is my case. Let's say I have the following figures for my actuals:
    January 2007 Actual = $110,000.
    February 2007 Actual = $120,000.
    March 2007 Actual = $80,000.
    April 2007 Actual = $100,000.
    Now, my user want to choose any month as the basis for her forecast for the remaining periods. Let's say, she wanted to choose April 2007 Actual as the basis for the remaining forecast periods, so I should be able to display the following figures in my planning folder:
    May 2007 Forecast = $100,000.
    June 2007 Forecast = $100,000.
    July 2007 Forecast = $100,000.
    August 2007 Forecast = $100,000.
    September 2007 Forecast = $100,000.
    October 2007 Forecast = $100,000.
    November 2007 Forecast = $100,000.
    December 2007 Forecast = $100,000.
    Can someone guide me on how to do that?
    Points will be given to good and best answers.
    Thanks.

    Hi Fulham,
    Technical answer:
    First, you need to allow your user to indicate wich month is the reference for the copy. I suggest you to add a new key figure in your actual layout (a 'customizing' layout) that your user will use as a flag:
    January 2007 Actual = $110,000
    January 2007 Flag = 0
    February 2007 Actual = $120,000
    February 2007 Flag = 0
    March 2007 Actual = $80,000
    March 2007 Flag = 0
    April 2007 Actual = $100,000
    April 2007 <b>Flag = 1</b>
    <i>(Help to a fox or an abap exit you can check that only one month is 'flagged')</i>
    Then, in the corresponding level for the data input, you use a function exit in Abap, which will:
    - read the previous customizing layout help to API_SEMBPS_GETDATA so you can get the flagged month and its actual amount ($100,000)
    - generate the news rows into the table XTH_DATA which will be automatically posted in the level with the actual amount
    Is that clear?
    Regards,

  • How can I create a new behance account and migrate the content of the old behance account into the new one?

    I can't change the url of my old behance account so I need to start afresh with a new behance account... how can i migrate all content from the old url into the new one? thanks

    If you have a login questions - please contact Behance support directly. Behance is transitioning all logins to Adobe IDs this Spring 2014. If you signed up for Behance post April 10, 2014, your Behance login matches your Adobe ID exactly. If you signed up before this and are having trouble logging in, visit this section for more help, or contact Behance support. Please do not comment on this forum with login questions, as we're able to provide much faster, one-on-one support elsewhere.

  • How to connect my guitar into my new 13'' macbook pro using headphone's port?

    how to connect my guitar into my new 13'' macbook pro using headphone's port?

    you need a standard guitar cable and a 1/4 inch to 1/8 inch adapter such as this http://www.amazon.com/Recoton-CW1521-4-Inch-8-Inch-Adapter/dp/B00006HOIW

  • I have 2 laptops and both have itune liberies,how can I transfer the music from old laptop into the new one.this prevents me to sync. my music due to having 2 liberies,when this happens I cant get all the music I've downloaded

    I have 2 laptops and both have liberies,how can I transfer the music from my 1st account (laptop) into the newer one which I made a new account for.My Iclassic has music fro both liberies, but once I purchase a new song and try to sync, it into my iclassic it doesn't allow me todue to having both liberies.Can u plesae help

    See Recover your iTunes library from your iPod or iOS device.
    tt2

  • How to insert a query into a NEW workbook ?

    Hi Friends,
    Could some one tell me how to insert a query into a new workbook? i am trying to run query in NW2004S BEx Query Designer, which always open the query on web when executed. i want to run the query in NW2004S BEx Query Designer and want it to open the result in Excell.
    If i am not wrong then to do the same, i need to embed the query into workbook. Correct me if i am wrong. If i am right then plzz tell me the steps to insert the query into workbook.
    Ur help will be rewarded in terms of points.
    Thanks,

    Hello,
    If you open the BEx Query Designer from the desktop, you cannot execute the query directly to the BEx Analyzer for an Excel view. You can only execute it directly to the Web. This is true for the SAP BW 3.x version as well as the SAP NetWeaver 2004s version.
    If you open the BEx Query Designer from within BEx Analyzer, once you select (or create) your query, you will have a green check mark icon that will then allow you to deploy the query directly to the BEx Analyzer for the Excel view.
    However, this would only make sense if you are creating or modifying the query. If not, you would simply open BEx Analyzer and use the Open Query option in this tool to see your query in an Excel format, as has been previously suggested by the other respondents to this posting.
    Regards,
    Katie Beavers
    SAP NetWeaver Product Management

  • How to copy a report into my namespace

    how to copy a report into my namespace as said in this blog....
    /people/michal.krawczyk2/blog/2005/11/09/xi-restarting-successfully-processed-messages

    how to copy it my namespace
    I didn't get what exactly you mean?
    If you run any interface you will find its details in SXMB_MONI.
    This report will pickup the data from Moni and resend the message. So its not Interface specific.
    You copy the report from SE38 and try.
    Gaurav Jain
    Reward Points if answer is helpful

Maybe you are looking for

  • Multiple users/devices on one PC

    We have three devices in our household, all identified by the same apple user id and password. (probably the first mistake.) The PC recognizes the three separate devices, but I cannot sync my device (iphone 4s) without getting all of my husband's app

  • Bandwidth usage with homesharing

    I have recently found my bandwidth being used while streaming from Macbook Pro to Apple TV whilst using Home Sharing. Watching a 1.2 GB movie streamed from iTunes to Apple TV uses 1.2 GB of bandwidth! I have reset my Apple TV but the problem continue

  • Embed fonts when saving as eps

    Hi When saving a file as an illustrator eps I would like the default option to NOT embed fonts. Does anyone know if this is achievable and, if so, how to do it? Cheers Wayne

  • How to change the db_name of the database in oracle 9i

    Please Tell me How to change the db_name of the database in oracle 9i regards

  • FM for Material Determination

    Hi, Anybody know if there is a function module that will return material determination information for a material, as defined in transaction VB11? BR, Tony.