How to copy records from 2 file (one file depending from other file)

In fact I have 2 files orders (1 heading, 1 detail):
- COM_COMMANDES = heading,
- COM_COMMANDES_LIGNES = D2TAIL,
COM_COMMANDES_LIGNES depends on COM_COMMANDES.
When I make an INSERT INTO in COM_COMMANDES, it makes me creation well.
On the other hand, when I make an INSERT INTO in COM_COMMANDES_LIGNES, it creates me a recording BUT not with the identifying good (that created in COM_COMMANDES).
Result: I have well the order copied but without the lines.
Thank you to help me because I do not manage to regulate this problem.

Hi,
I have developed a example form and tested, and its works as your requirement.
i have created a table with three three fields and the same data as u mentioned in post.
I the button just paste the code and hope it will work.
declare
     cursor c_test is select name,city,group_no from TEST_EXAMPLE;
begin
     go_block('XXNEXTBLK');
for C_test_rec in C_test
loop
     :XXNEXTBLK.NAME := C_test_rec.name;
     :XXNEXTBLK.CITY := C_test_rec.city;
     :XXNEXTBLK.GROUP_NO :=C_test_rec.group_no;
     next_Record;
end loop;
FIRST_RECORD;
--go_block('LC_REQ_BLK');
Exception
     when too_many_rows then
     null;
     when others then
     null;
end ;
declare
cursor c_test1 is select name,city,group_no from TEST_EXAMPLE;     
begin
     go_block('XXNEXTBLK');
if :XXNEXTBLK.GROUP_NO =1 then
     last_record;
     create_record;
          for C_test1_rec in C_test1
loop
     :XXNEXTBLK.NAME := C_test1_rec.name;
     :XXNEXTBLK.CITY := C_test1_rec.city;
     :XXNEXTBLK.GROUP_NO :=C_test1_rec.group_no+1;
     next_Record;
end loop;
FIRST_RECORD;
end if;
end;
Check it, if any issue just send a mail to [email protected], ill forward the fmd to you.
Thanks & Regards
Srikkanth.M

Similar Messages

  • How to copy the photo with file name at window 7 and search specific one in iphone 4s?

    How to copy the photo with file name at window 7 and search specific one in iphone 4s?

    Clendenen02 wrote:
    2) It would be equally helpful if there was something that would take the name of the picture file and spotlight comment, copy and paste it to a movie file's comments with the same name but obviously has different extention. For an example
    In a Pictures folder
    Name: Dark Knight, The.jpeg       Comment: (2008) Genre: Action...             <- copy comment
    In a Movie Folder
    Name: Dark Knight, The.m4v       Comment:                                               <- paste 
    and do this for all 700 files
    This Bash script will do it.
    Edit "PicDir" and "MovDir" to the location of your Folders
    (Note: The comment is written to the m4v file using xattr, so the Spotlight comment field appears blank in Finder, but the comment metadata is still indexed by Spotlight (If you add a Spotlight comment from Finder, it is stored both as an extended attribute and in a .DS_Store file)
    #!/bin/bash
    PicDir=$HOME/Desktop/Pictures
    MovDir=$HOME/Desktop/Movies
    for f in $PicDir/*
    do
         if [ ! -d "$f" -a "${f##*.}" == "jpeg" ]; then
              comment=$(mdls -raw -name kMDItemFinderComment "$f")
              if [[ $comment != "(null)" ]]; then
                   picname=${f##*/}
                   movname=${picname%.*}.m4v
                   if [ -e "$MovDir"/$movname ]; then
                         xattr -w com.apple.metadata:kMDItemFinderComment "\"$comment\"" "$MovDir"/$movname
                   fi
              fi
         fi
    done

  • How to append records in a file, through file adapter.

    Hi All,
    How to append records in a file, through file adapter.
    I have to read data from database and need to append all records in a file.
    Thanks in Advance.

    Hi,
    I think you have a while loop to hit the DB in your Process (As you said you have to fetch data from DB 10 times if 1000 rec are there)
    First sopy your DB O/P to one var
    and from second time append to previous data.(Otherwise you can directly use append from starting instead of copy and append)
    When loop completes you can transform to File adapter Var.
    Otherwise you can configure yourFileadapter such that it will aapend current records to previous records.
    You can use 'Append= true' in your file adapter wsdl.
    It will append previous records to current records in the same file.
    Regards
    PavanKumar.M

  • How to copy images from another MC in reversed order??

    Hi everyone,
    I'm new to AS3 and have been fighting and searching for a solution to this problem for a week now, and I'm VERY close!
    I crated a MC holding of a series of images (about 50) and I jump around in it using plenty AS3 scripts (most of which I don't fully understand yet, but I'm working on that to! )
    I had to find a way to "rewind" (= play backwards) the MC. Since there is a stop(); command in almost every frame, prevFrame does not work and if I put that in a loop, it goes WAY to fast (but worked).. So I could think of only one way...
    Create a new (reverserd) MC with the same image sequence ald reverse it manually and play that one.
    This all works fine (very proud of it ).
    Now my question:
    To get this to work for multiple image sequences, I have to load all images twice (once in MC_1 and again in MC_2 and select them and reverse them).
    Not a big one, unless you want to create MANY of those SWF's...
    Is it possible to load the 50 images of the first MC in reverse into the second MC dynamically? JUST the images, noting else.
    extra info: the MC_2 is already in the lib(empty) and placed on the stage.
    something like:
    var pointer:Number=1;
    for (var:i:Number=50;i>=0;i--) {
    get MC_1.picure(var);
    put it in MC_2.frame(pointer);
    pointer = pointer + 1;
    All help is welcome and please take into account that I have little experience and copy most of my scripting from people like you
    T.I.A.
    Melluw

    I tried your advice (thanks for that)
    The event I already have is the mouse leave
    I //-d out the part I removed (what did work)
    The code I ended up with is:
    function Start() {
    stage.addEventListener(Event.MOUSE_LEAVE, cursorHide);
    function cursorHide(evt:Event):void {
    var currFrame = MC_1.currentFrame;
    if (CCW == true) {  //it is true in this case
      movStart = (50 - currFrame);
    else {
      movStart = currFrame;
    if (movStart>25) {
      MC_1.prevFrame();
    // removed swapChildren(MC_1, MC_2); // This is the part I removed
    // removed MC_2.gotoAndPlay(movStart);
    else {
      MC_1.gotoAndPlay (movStart);
    And if I leave the stage on the part where movStart is indeed >25
    Nothing happens,
    So I guess this is not what you meant
    Subject: Action Script 3 how to copy images from another MC in reversed order??
    I cannot direct you in the loading of the images approach, it will be too complicated, and will probably not work anyways... when you move away from a frame that has dynamic content, you lose the content.  So basically, there is nothing practical in taking that approach.
    I do niot understand what the problem will be with the enterFrame/prevFrame approach. If everything you can do with the mouse is already used (which I doubt) by the first mc, then there is nothing else you can do with this file.  You probably just need to rethink your control scheme.  You should search Google for "AS3 slideshow tutorial", and to lighten up your design, add "XML" in that search.
    >

  • Does anyone know to how to copy notes from an ipod to an ipad

    Does anyone know to how to copy notes from an ipod to an ipad

    See iPod: Storing and reading notes to extract the existing notes on the iPod.
    If you only need to view them on the device Dropbox would be one way to go.
    tt2

  • How to copy data from mac to external hard

    how to copy data from mac to external hard

    ok - since you'll be sharing it with a PC - connect it to your windows pc - then format from there - instead of NTFS format - choose exFAT.
    or, you can read the link below on how to do it in dos mode.
    http://answers.microsoft.com/en-us/windows/forum/windows_7-files/how-can-i-forma t-external-drive-in-exfat-not-in/0f6bf19a-19d6-4470-ae05-53ddf26bb476?msgId=1860 eae3-3488-4eea-8326-f87b89d9851b
    once you've formatted it - you can now use it in both your macbook and windows computer.

  • How to copy data from transparent table to our own ceated z table?

    How to copy data from transparent table to our own ceated z table?
    Plz tell me different methods and which one is best?
    Is get data from sflight into table z* is correct?

    Hi Ajay,
    let us consider you have to copy EKKO table to ZEKKO table
    1. In ABAP program define internal table based on EKKO
    <b>     eg: i_ekko</b>
    2. Select the data from EKKO to i_ekko
    <b>     eg: select * from ekko into table i_ekko.</b>
    3. insert into Z-TABLE from the internal table
    <b>     eg: INSERT EKKO FROM TABLE I_EKKO.
               COMMIT WORK.</b>
    <u>To insert in internal table you can use the following:</u>
    1. INSERT [wa INTO|INITIAL LINE INTO] itab [INDEX idx].
    2. INSERT [wa INTO|INITIAL LINE INTO] TABLE itab.
    3. INSERT LINES OF itab1 [FROM idx1] [TO idx2] INTO itab2 [INDEX idx3].
    4. INSERT LINES OF itab1 [FROM idx1] [TO idx2] INTO TABLE itab2.
    <u>To inert in database table, use the following:</u>
    1. INSERT INTO <dbtabname> [CLIENT SPECIFIED] VALUES wa.
    2. INSERT <dbtabname> [CLIENT SPECIFIED] FROM TABLE itab.
    3. INSERT <dbtab> [CLIENT SPECIFIED]. oder
    4. INSERT <dbtabname> [CLIENT SPECIFIED] ... .
    <b>Reward points.. if helpful.
    Cheers !
    Moqeeth.</b>

  • How to copy music from iphone to laptop

    How to copy music from iphone to laptop

    Sync your iphone 5 to iTunes. Once you haev done that, you should be able to copy the music and other files to your iPhone.

  • How to copy photo from camera roll to created photo album or to photo library

    how to copy photo from camera roll to created photo album or to photo library

    I have been trying to figure out a work aroundof this issue too.  It defeats the purpose of photo stream in my eyes.
    You can copy a picture from your photo stream to your camera roll and then crop, etc.  But you can't then file that picture into a folder of your choice!?!?!?!  If I have to file the picture on my computer and then resync to do it then photo stream is mostly pointless!!!

  • How to copy pictures from computer to iphone4 in itunes?

    How to copy pictures from computer to iphone4 in itunes?

    Don't add files (as above).
    Do this...
    Select the iPhone in iTunes,
    Click the Photos tab across top.
    Tick Sync photos and select the albums or folders you want on the iPod.
    See this -> iOS and iPod: Syncing photos using iTunes

  • How i copy music from my laptop to itunes

    How i copy music from my laptop (Asus) to my  itunes.

    Nothing is copied, simply import the media.
    Either drag the folder containing the content into the open iTunes window or via iTunes select File > Import File/Folder and select the folder containing the content.

  • How to copy contacts from iphone 4s to SIM

    I am currently having iphone 4s which i got from one of my friend and used for a while. Meanwhile, I added so many contacts to phone and want to copy them into my SIM card and need to return his phone.
    Please provide how to copy contacts from iphone 4s to SIM card.

    You cannot.
    Iphone stores nothing at all to the SIM

  • HT4623 How to copy contacts from iPhone 3gs to iphone 4.

    How to copy contacts from iPhone 3gs to iphone 4.

    First youll need to back up all your contacts to you computer, then sync your new iphone and be sure to tick the boxes to sync all you contacs. Also if your iphone 3 has icloud, back them up to icloud, and then restore your new iphone from a icloud backup, No computer needed

  • How to update Records from Internal table to u2018Zu2019 table?

    Hi Friends,
    How to update Records from Internal table to u2018Zu2019 table.
    I have records in Internal table , that records want to update on u2018Zmarau2019 Table.
    ( my internal table & u2018 Zu2019 table structures are same.)
    Thanking you.
    Regards,
    Subash

    Hi,
    loop at internal table.
    modify <Z- table > from values < internal table Workarea>.
    if sy-subrc = 0.
      COMMIT work.
    else.
      ROLLBACK waork.
    endif.
    endloop.
    or
    UPDATE <Z- table > from table < internal table Workarea>.
    if sy-subrc = 0.
      COMMIT work.
    else.
      ROLLBACK waork.
    endif.
    Prabhudas

  • How do I record a sound file and send it as an attachment using my 4s?

    How do I record a sound file and send it as an attachment using my 4s?

    Hi,
    The following is the program[Click Here| http://saptechnical .com/Tips/ABAP/email/EmailProgram.txt] which will send any format file. Actual Creator of the program is Amit Bisht.
    Thanks & Regards,
    Rock.

Maybe you are looking for