RE: Pbm in alv for copying and inserting the record....

Hi,
   I am developing alv gird  report...............what my issue is:
  while selecting a record...........he should copy the record and insert a new record
  below on which he selected....
  Regarding this if anybody helps me that will be appreciable...
Regards,
Naveen M.

hai Do like This:
at user command
FORM PICK USING COMMAND LIKE SY-UCOMM SELFIELD TYPE SLIS_SELFIELD. "Pick is name  given in REUSE_ALV_GRID
READ TABLE idata INTO wa_data INDEX SELFIELD-TABINDEX.
CASE COMMAND.
WHEN '&IC1'.
Select second data according to your requirement in Another internal  table.
newdata[] = idata[]. "Move ur first table display data to one new internal tabe.
clear idata[].
append wa_data to idata.
now move data which was selected in select statement to idata table and append data. "it will add new data in idata table
after this get previous data in idata
READ TABLE newdata INTO wa_data INDEX SELFIELD-TABINDEX.
clear wa_data.
modify newdata index sy-tabix.
delete newdata where "it is initial.
loop at newdata.
idata = newdata.
append idata.
endloop.
after this call reuse_alv_grid_display.
endcase
endform.

Similar Messages

  • How to update and insert the records without using Table_comparison and Map_operation?

    How to update and insert the records without using Table_comparison and Map_operation?

    Use either join or MERGE see this Inserting, Updating, and Deleting Data by Using MERGE

  • How to copy and paste the graphics from illustrator to MS word. What I tried is exporting in png with highest resolution and then inserting in to word. This loses a bit of resolution in comparison to direct copy and paste as EMF.  But if I do a copy and p

    How to copy and paste the graphics from illustrator to MS word. What I tried is exporting in png with highest resolution and then inserting in to word. This loses a bit of resolution in comparison to direct copy and paste as EMF.  But if I do a copy and paste, and then take a print of the document, all the graphs and text is printed upside down, flipped back.

    Use the Pencil Tool
    alex
    adrian stock wrote:
    > How to copy and paste a single pixel
    >
    > I want to copy a single pixel and then paste it in the
    position of
    > another pixel in the same image.
    >
    > (This is in effect changing the colour of the target
    pixel, isn't it.
    > But in my case copying an existing pixel seems simpler
    than selecting a
    > colour from the swatch or using the colour picker.)
    >
    > What is the most efficient way of doing this?
    >
    > I tried to select one pixel with the marquee tool. Then
    copied it with
    > control-C, but then how do I select the target pixel and
    paste with
    > control-V?
    >
    > Thanks for your help.
    >
    > Adrian
    >

  • Images I move from one folder into another are disappearing, at first it was occurring immediately if I did not copy and paste the images. Today however I found out that images I had been using for days just up and vanished from their new location.

    Images I move from one folder into another are disappearing, at first it was occurring immediately and only if I did not copy and paste the images. Today however I found out that images I had been using for days just up and vanished from their new location. A few of these images had copies in another folder that remained and the ones I couldn't find may or may not have ever had copies. I had backed up my system with time machine recently as well, so I went into the backup to retreive the lost images. When I searched and found the backup copies I got the error "the file alias cannot be opened because the original cannot be located". The crazy thing is that the images that remained on my computer did not give me the same error and opened like they should.
    In short images that I am creating, saving, and using are disapearing so epically that even time machine versions are affected when retrieval is attempted. Any suggestions as to what I could be doing wrong without realizing it? Or perhaps other people have had similar bugs that are software related and have a solution?

    Hi Kevin,
    I understand what you tried to do but it doesn't work that way. Swapping drive names will just mess things up.
    You should be able to reconnect the files though: in the Locate Referenced Files dialog make sure you click the Show Reconnect Options button — this will give you access to all the connected drives. Locate one of the files and hit Reconnect All. Should do the trick.
    Best

  • Tcode for copying and pasting cofiles and data.

    Hi,
         i doing transport manually means going in se09 in qa and released and copied  and pasted the cofiles and data request numbers from qa to prod then i imported the request number. but is it possible for doing copying and pasting  cofiles and data through tcode rather than doing maually.help me plz.

    Hi Raj
    If you want transport tp requests manually.
    you just login your quality system
    and go to command prompt
    then use this commends
    add to buffer all qid pf=your profile path of your qa system
    if you want single import
    tpimport requestnumber targetsid clientnumber pf=targetprofile path
    if you want mass import
    tpimport all targetsid clientnumber pf =target profile path
    Regards
    Bandla

  • Just got my Mac air and i would like to make a file to store some web addresses for my new business with rodan and fields and I can't do it. Made the file but i cant copy and paste the web addresses in the file to save them. Please help and thank you.

    Just got my Mac air and i would like to make a file to store some web addresses for my new business with rodan and fields and I can't do it. Made the file but i cant copy and paste the web addresses in the file to save them. Please help and thank you.

    Yes - well you have to make the file in a word processing Application.
    You could use TextEdit (it's free) Pages (words only), or Numbers (data base) (they are part of iWorks - and may or may not be free (included) on your machine.  You could use MS Office (it is not free) You could use any Open source word processor that plays well with Office (NeoOffice, StarOffice) they are free.
    That's how you create content and copy/paste URLS. Then you save the file to the desktop. If you are going to make more than one file... you make a folder on the desktop and save, or drag the file(s) into it.
    You attach it to your e-mail client which will compress it and e-mail it. An excellent reference is to use Help, from the menu bar, also from inside any application. From your library or book store the OS X for Dummies has a lot of useful information (you don't read it cover to cover but look up chapters about what you'd like to do)
    You can also make appointments at your local Apple store for individualized help (if a store is nearby)

  • How do I change my mouse to right click for copy and paste

    How do I change my mouse to right click for copy and paste?

    OK, what mouse are you using?  Brand, model?  Your right click should register as a right click unless that has been overridden by a preference pane.  If your Mouse preference pane looks like this, your right click should be the equivalent of a control-left-click on a Mac.

  • TS1702 On my Page Tool Bar I don't get the icons for info and insert. Please help

    When I open my Pages Program I don't get the icons for 'info' and 'insert'. Please help

    I'm having the exact same issue.  Any help is appreciated!
    Thanks!

  • [b]HOW TO:[/b]  Copy and Paste THE Filename AND its PATH from Finder

    HOW TO DO THIS: Copy and Paste THE selected Filename AND its entire PATH from Finder to another application as in document footer reference, or document database which has a path field to aid in locating the file later.
    Finder, Spotlight and File Info (can be used to display Path) or using Command F, command I, etc. but user is not allowed to copy the path to clipboard.
    This is rudimentary, yet the word Path, is unknown to Mac Help.
    Message was edited by: jbov

    AJ,
    Isn't it amazing....There is no Command Key for this action? Apple Care was confounded too. And thanx, it'll be a help....
    Jim
    its tedious, but this should work:
    open a terminal window.
    Drag and drop the icon for the file in the terminal
    window.
    This will put the full path including the filename on
    the command line.
    Copy the path from the command line, and paste
    (wherever).
    Close the terminal window.

  • Not able to retrieve and insert the value to Home_country filed in MDM

    Hi All,
    I am new to the JAVA API,
    I have creted one application in webdynpro using the JAVA API. I am able to search the data based on "Firstname" "Lastname" and "Email address".
    I need to basically two functionalities
    1) Search
    2) Insertion of new records
    *1) Search*__
    But searching based on the Country is not able to do it.
    we have two tables .
    1) Country table> Contains all the list of the country codes and County name.
    2) People table > Contains the country filed. So for this filed lookup table is country. also this country filed is drop down  not have opton edit in the MDM.
    I am sending the following used for searching the records based on the First Name and country.
    But based on the first name it is working fine but Country it is giving some code like "R100" "R12". It is not givng the actual name of the country.
    FieldSearchDimension sd1 = new FieldSearchDimension(fields[2].getId());
                   TextSearchConstraint sc1 = new TextSearchConstraint(First_Name,TextSearchConstraint.EQUALS);
                   sch.addSearchItem(sd1,sc1);          
    FieldSearchDimension sd4 = new FieldSearchDimension(fields[9].getId());
                   TextSearchConstraint sc4 = new TextSearchConstraint(Home_Country,TextSearchConstraint.EQUALS);
    //               TextSearchConstraint sc4 = new TextSearchConstraint("IN",TextSearchConstraint.EQUALS);
                   sch.addSearchItem(sd4,sc4);
    cmd = new RetrieveLimitedRecordsCommand(connections);
                   cmd.setResultDefinition(rdPeople);
                   cmd.setSearch(sch);
                   cmd.setSession(sessionId);
    try
                        cmd.execute();
                        catch(CommandException e)
                             e.printStackTrace();
                        recs = cmd.getRecords();
                        wdContext.nodeResult_Table().invalidate();
    //retreiving the Data from the resultset
    if(recs.getCount()!=0)
      for(int i=0;i<recs.getCount();i++)
           //First Name
         IResult_TableElement resEle=wdContext.nodeResult_Table().createResult_TableElement();
         if(!(recs.getRecord(i).getFieldValue(fields[0].getId()).isNull()))
         //wdComponentAPI.getMessageManager().reportSuccess("Network Id-->"+recs.getRecord(i).getFieldValue(fields[0].getId()).toString());
         resEle.setNetwork_ID(recs.getRecord(i).getFieldValue(fields[0].getId()).toString());
           //Country
          if(!(recs.getRecord(i).getFieldValue(fields[9].getId()).isNull()))
         resEle.setDisplay_Name(recs.getRecord(i).getFieldValue(fields[9].getId()).toString());
         wdContext.nodeResult_Table().addElement(i,resEle);
    By the above field is not giving the respective country name is avilable. it is giving some value"R100" rather giving of India.
    _ 2)  For creating the record in the  "people" table._
    I am able to insert the data all the information "firstname" "Last name", "email" except "Country" entered by the user by using the following code.
    //Insert
    First_Name=wdContext.currentPersonal_DetailsElement().getAttributeAsText("First_Name");
         Last_Name=wdContext.currentPersonal_DetailsElement().getAttributeAsText("Last_Name");
         Middle_Name_or_Initial=wdContext.currentPersonal_DetailsElement().getAttributeAsText("Middle_Name_or_Initial");
         Home_Country=wdContext.currentPersonal_DetailsElement().getAttributeAsText("Home_Country");
    CreateRecordCommand createRecordCommand =new CreateRecordCommand(connections);
         Record r1 = RecordFactory.createEmptyRecord(tables[0].getId());     
         try
    //               Retrieve Lookup Field Properties, when Field Properties is given as input.
    //           LookupFieldProperties lookupField = (LookupFieldProperties) fields[9];          
    ////     Retrieve Lookup Field Properties, when Field Properties is given as input.
    //           LookupFieldProperties lookupFieldSer = (LookupFieldProperties) fieldProp;
    //          //setting the values for firstname and lastname
            r1.setFieldValue(fields[0].getId(),new StringValue(Network_ID));
            r1.setFieldValue(fields[2].getId(),new StringValue(First_Name));
            r1.setFieldValue(fields[3].getId(),new StringValue(Last_Name));
    r1.serFieldValue(FieldValue(fields[9].getId(), new Stringvalue(Home_country));
            createRecordCommand.setSession(sessionId);
            createRecordCommand.setRecord(r1);
         try {
              createRecordCommand.execute();
          } catch (CommandException e2) {
    Let me know what are the changes need to be done for inserting the country information in people table.

    Hi Greg,
    Thanks for the reply,
    Actually,I  was doing the same thing what  you suggested. I am sending the piece of code . Can look it it .Is any thing wrong.
              //inserting the Country lookup filed to record object.
    *       if(Home_Country.length()!=0)*
    *     /when pass the int position number for the country by retreiving from the country table it is working fine. But we      cannot depend on position. Because People table internally refering the other db table while inserting the country      filed in the People table./     *
    *          r1.setFieldValue(fields[9].getId(),new LookupValue(new RecordId(12)));*
    *     //When i PAss the String to the following function i am getting the unsupportedFormat Exception          *
    *          r1.setFieldValue(fields[9].getId(),new LookupValue(new RecordId("Australia")));*
    InCountry . They have defined only two columns called.
    1) ISO-2 Code
    2) Country Name.
    Sample data
    ISO-2 Code  |   Country Name
    US                    United StatesOf America
    AU                    Australia
    Ar                     Argentina
    Like the above data we have 250 country names
    So , I displaying all the country list in my interface and holding in the Array.
    Ex: When the user chooses the Australia.  When I pass directly as an "Australia" to
    r1.setFieldValue(fields[9].getId(),new LookupValue(new RecordId("Australia"))).  it is giving me error.
    Then i try to pass the postion of the"Australia" in country table. Like if the Austrila is an 2 record. I am looping through my array and find the record position as "2".
    I am passing as
    r1.setFieldValue(fields[9].getId(),new LookupValue(new RecordId(2)));
    It is inserting into the people database. But not an Australia. It is inserting as "Argentina".
    When the record inserting in people table refering some table at the database level , that table called "A2i_16_TEXT" This contains three columns.
    A2i_16_TEXT(columns)
    1) Id
    2) LangId
    2) Field Id
    4) TextField
    Example Data
    Id  |  LangId  |  Textfield
    3       0            Australia
    2       0            Argentina
    4       0            United States Of America
    As i am showing the above table for "Argentina" Id is "2". When i pass the 2 for inserting the country filed.Instead of inserting "Australia". It is inserting the "Argentina" by refering this table.
    Through MDM API we are not able to access this " A2i_16_TEXT"  table. Because it is maintaining at the db level to find the perticular id for the respective country before inserting in to the people table.
    So kindly suggest me how to solve this problem. What i am doing in the code is correct or not.
    Regards
    Vijay

  • How do I create a 1d array that takes a single calculation and insert the result into the first row and then the next calculation the next time the loop passes that point and puts the results in thsecond row and so on until the loop is exited.

    The attached file is work inprogress, with some dummy data sp that I can test it out without having to connect to equipment.
    The second tab is the one that I am having the problem with. the output array from the replace element appears to be starting at the index position of 1 rather than 0 but that is ok it is still show that the new data is placed in incrementing element locations. However the main array that I am trying to build that is suppose to take each new calculation and place it in the next index(row) does not ap
    pear to be working or at least I am not getting any indication on the inidcator.
    Basically what I am attempting to do is is gather some pulses from adevice for a minute, place the results for a calculation, so that it displays then do the same again the next minute, but put these result in the next row and so on until the specifiied time has expired and the loop exits. I need to have all results displayed and keep building the array(display until, the end of the test)Eventually I will have to include a min max section that displays the min and max values calculated, but that should be easy with the min max function.Actually I thought this should have been easy but, I gues I can not see the forest through the trees. Can any one help to slear this up for me.
    Attachments:
    regulation_tester_7_loops.vi ‏244 KB

    I didn't really have time to dig in and understand your program in depth,
    but I have a few tips for you that might things a bit easier:
    - You use local variables excessively which really complicates things. Try
    not to use them and it will make your life easier.
    - If you flowchart the design (very similar to a dataflow diagram, keep in
    mind!) you want to gather data, calculate a value from that data, store the
    calculation in an array, and loop while the time is in a certain range. So
    theres really not much need for a sequence as long as you get rid of the
    local variables (sequences also complicate things)
    - You loop again if timepassed+1 is still less than some constant. Rather
    than messing with locals it seems so much easier to use a shiftregister (if
    absolutely necessary) or in this case base it upon the number of iterations
    of the loop. In this case it looks like "time passed" is the same thing as
    the number of loop iterations, but I didn't check closely. There's an i
    terminal in your whileloop to read for the number of iterations.
    - After having simplified your design by eliminating unnecessary sequence
    and local variables, you should be able to draw out the labview diagram.
    Don't try to use the "insert into array" vis since theres no need. Each
    iteration of your loop calculates a number which goes into the next position
    of the array right? Pass your result outside the loop, and enable indexing
    on the terminal so Labview automatically generates the array for you. If
    your calculation is a function of previous data, then use a shift register
    to keep previous values around.
    I wish you luck. Post again if you have any questions. Without a more
    detailed understanding of your task at hand it's kind of hard to post actual
    code suggestions for you.
    -joey
    "nelsons" wrote in message
    news:[email protected]...
    > how do I create a 1d array that takes a single calculation and insert
    > the result into the first row and then the next calculation the next
    > time the loop passes that point and puts the results in thsecond row
    > and so on until the loop is exited.
    >
    > The attached file is work inprogress, with some dummy data sp that I
    > can test it out without having to connect to equipment.
    > The second tab is the one that I am having the problem with. the
    > output array from the replace element appears to be starting at the
    > index position of 1 rather than 0 but that is ok it is still show that
    > the new data is placed in incrementing element locations. However the
    > main array that I am trying to build that is suppose to take each new
    > calculation and place it in the next index(row) does not appear to be
    > working or at least I am not getting any indication on the inidcator.
    >
    > Basically what I am attempting to do is is gather some pulses from
    > adevice for a minute, place the results for a calculation, so that it
    > displays then do the same again the next minute, but put these result
    > in the next row and so on until the specifiied time has expired and
    > the loop exits. I need to have all results displayed and keep building
    > the array(display until, the end of the test)Eventually I will have to
    > include a min max section that displays the min and max values
    > calculated, but that should be easy with the min max function.Actually
    > I thought this should have been easy but, I gues I can not see the
    > forest through the trees. Can any one help to slear this up for me.

  • Can I simply copy and paste an existing library file from XP to a Mac and then copy and paste the music files themselves? Of course, the music files will be in a different location...

    Hello Gurus,
    I have an aged XP machine with a large music library in ITunes. iTunes will not run any longer (tried uninstalling and reinstalling etc to no avail) but the music files are backed up onto an external drive so all safe. I have purchased a Mac which of course already has iTunes installed and I can copy the music files onto the Mac, but can I simply copy and paste the iTunes library files from the XP machine to the Mac so that all of the playlists, tags, ratings etc transfer, or do I have to start again?
    Thanks for the advice.

    Sounds like you have a split library. Ideally you would make this portable before attempting to move it to the Mac. See make a split library portable for details.
    Perhaps you can get iTunes running on the old box long enough to sort things out...
    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    You will also want to deauthorize the XP system once everything is working properly on the Mac.
    tt2

  • To retrieve the PRT document (a PDF file) and insert the doc in PM order

    Hello guys,
    I have a challenging task in from printing as follows,
    By using TC: IW3D we get print preview of PM Order Set (PM Print Program: YIPRJT01), currently the PRT document number prints in the PM Order. Now we have to insert the PRT documents (a PDF file) into the PM Order set rather than printing the PRT document number ( By using TC: IW33 by going OPERTIONAL TAB we will get the PRT document(a PDF file))
    The requirement is to retrieve the PRT document (a PDF file) and insert the document in PM  order set with out navigating separately by using the TC: IW33.
    If you run the script in the print preview we can able to see PM the order set along with the PRT document (a PDF file).
    Thanks & Regards
    Vishnu

    I'm also trying to print PRT document with shop papers and still not able to do so. I selected "P" for print on the control key and it should print but still didn't print.
    If I understand it right, I think you are trying to do the same.
    Have you resolved this issue ?
    Thank you,
    Sam

  • Hi Experts , I am currently facing problems while running restricted version copy .. The log says 0 location products copied and that the process has has timed out. the error message is /SAPAPO/MVM_INT_SVC_CO_VER_LCW reported exception in task DP00014, th

    Hi Experts , I am currently facing problems while running restricted version copy in sap apo .. The log says 0 location products copied and that the process has timed out. the error message is " /SAPAPO/MVM_INT_SVC_CO_VER_LCW reported exception in task DP00014 " , then ending in time limit exceeded. could anyone explain why this happens. please note even if the log says 0 location products copied , in reality they have have been partially copied.
    Regards
    Jerel

    Hi, thank you for your replies, I found out few things about my servlet, and its portability
    and i have few questions, although i marked this topic as answered i guess its ok to post
    I am using javax.servlet.context.tempdir to store my files in that servletcontext temporary directory. But i dont know how to give hyperlink
    of the modified files to the user for them to download the modified files.
    What i am using to get the tempdir i will paste
    File baseurl = (File)this.getServletContext().getAttribute("javax.servlet.context.tempdir");
    System.out.println(baseurl);
    baseurl = new File(baseurl.getAbsolutePath()+File.separator+"temp"+File.separator+"files");
    baseurl.mkdirs();so i am storing my files in that temp/files folder and the servlet processes them and modifies them, then how to present them as
    links to the user for download ?
    and as the servlet is multithreaded by nature, if my servlet gets 2 different requests with same file names, i guess one of them will be overwritten
    And i want to create unique directory for each request made to the servlet , so file names dont clash.
    one another thing is that i want my servlet to be executed by my <form action> only, I dont want the user to simply type url and trigger the servlet
    Reply A.S.A.P. please..
    Thanks and regards,
    Mihir Pandya

  • Receiver JDBC: Error while doing the Deleting and Inserting new records

    Hi All,
              I am doing Idoc to JDBC scenario. In this I am collecting & bundling different type of Idocs and then sending to the JDBC receiver. My requirement is to delete the existing records in the database and insert the new records. I have configures as mentioned in the link
    Re: Combining DELETE and INSERT statements in JDBC receiver
    In the above link its shows for single mapping. In my scenario I am using multi mapping for collecting idocs in BPM. If I configured for normal mapping then it is working fine(Deleting existing records and Inserting new record). Whenever I am using multi mapping then I am getting following error in the receiver JDBC communication channel u201CError while parsing or executing XML-SQL document: Error processing request in sax parser: No 'action' attribute found in XML document (attribute "action" missing or wrong XML structure)u201D . Can you please tell me what might be the problem.
    Thanks & Regards,
    T.Purushotham

    Hi !
    check this out:
    JDBC - No 'action' attribute found in XML document - error
    JDBC receiver adapter: No 'action' attribute found in XML document
    It appears that the inbound payload (the one that is going from XI to the JDBC adapter) does not have the requiered tag to specify which SQL action to execute in the receiver system. Maybe the multimapping is not creating the desired output message format.
    Regards,
    Matias.

Maybe you are looking for

  • Dynamically Colour Cells in an Interactive Report

    My application requires an interactive report where cells are colour coded and the cell may, or may not have a value, but the value doesn't relate to the colour. The report is based on a view which returns a result set as follows: rn col1_value col1_

  • Filtering elements in an XML based on criteria

    we have an output schema that has some repeating elements. There is some meta-data in the output XML that we are trying to filter out in the final output. Since this transformation is between the same input/output XML, I am trying to achieve this usi

  • W8 CP installed in UEFI from an USB on my x120e - First impressions

    Hi there, Yesterday, as million of people already know, MS released W8 Consumer Preview. I downloaded a copy of W8 CP 64Bit and tested it on my x120e. First of all, installing it in pure UEFI mode from a USB thumb drive, was very easy. This is what I

  • Does Java 7 run on only x64 bit MAC OS X?

    I want to deliver self-contained application packages on Windows, Linux and Mac so I have build my JavaFX application on all three platforms. I will allow my users to download these native bundles from my application's download web page but I have a

  • Renaming during import in LR 3 works, but not in catalogue

    When importing photos from my camera, I always rename my photos. In Lightroom 3, this works well, but now and then, the catalogue stills shows the old name, but isn't able to find the file (as it was renamed by lightroom) Example: Original name on ca