Need to process the records that are selected using checkbox in an ALV

Hi ..
I am displaying some data in an ALV using the Parent-child relation, the parent records has a check box which is input enabled.
On click of a button on the toolbar, i need the checked records to be fetched and processed.
Please help me on how to fetch the records that are checked..
Thanks,
Derek

Hello Derek,
Is ALV created using OOPS or using conventional FM?
If you are making use of OOPS technique, then call this method:
CALL METHOD <grid_name>->get_selected_rows.
BR,
Vishal.

Similar Messages

  • How to display all the files that are selected using JFile chooser

    please hepl me i m posting my code here.
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import javax.swing.*;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.util.zip.Deflater;
    import java.util.zip.ZipEntry;
    import java.util.zip.ZipOutputStream;
    public class browser extends JFrame
    String curDir;
    JLabel statusbar;
    public browser()
    super("File Chooser Test Frame");
    setSize(1050,600);
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    curDir = System.getProperty("user.dir") + File.separator;
    statusbar = new JLabel("Output of your button choice goes here!");
    Container c = getContentPane();
    c.setLayout( null );
    JButton openButton = new JButton("Browse file");
    JButton dirButton = new JButton("Pick Dir");
    JButton resetButton = new JButton("Reset");
    JButton submitButton = new JButton("Submit");
    final JTextArea tf = new JTextArea(100,50);
    final JList l1 = new JList("list");
    tf.setEditable(true);
    // add the open FILE chooser
    openButton.addActionListener(new ActionListener()
         public void actionPerformed(ActionEvent ae)
         JFileChooser chooser = new JFileChooser(curDir);
         chooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
         chooser.setMultiSelectionEnabled(true);
    //Java 1.6 can use FileNameExtensionFilter class
    // FileFilter filter=new FileNameExtensionFilter("HTML file","htm","html")
    // chooser.addChoosableFileFilter(filter);
    //Prior versions must use external extension of FileFilter class (ie ExtFilter)
    //ExtFilter requires separate compile to enable choosable selection
         String[] html = new String[] {"htm","html","xhtml"};
         int option = chooser.showOpenDialog(browser.this);
         if (option == JFileChooser.APPROVE_OPTION)
         File[] sf = chooser.getSelectedFiles();
         String filelist = "nothing";
         try
         if (sf.length > 0) filelist = sf[0].getCanonicalPath();
         for (int i = 1; i < sf.length; i++)
         {filelist += ", " + sf[i].getCanonicalPath();
    tf.setText("our choices" + filelist);
         catch (IOException evt) {System.out.println("Exception: "+evt);}
    statusbar.setText("Your choices: " + filelist );
    // String[] text = new String[100];
    //getChars(0,100,text[],0);
    l1.setText("your choices \n" + filelist);
         else {statusbar.setText("You cancelled!");}
    // add the open DIRECTORY chooser
    dirButton.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    JFileChooser chooser = new JFileChooser(curDir);
    chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
         chooser.setMultiSelectionEnabled(false);
    int option = chooser.showOpenDialog(browser.this);
    if (option == JFileChooser.APPROVE_OPTION)
    File[] sf = chooser.getSelectedFiles();
    String filelist = "nothing";
    try
    if (sf.length > 0) filelist = sf[0].getCanonicalPath();
    for (int i = 1; i < sf.length; i++)
              {filelist += ", " + sf[i].getCanonicalPath();}
         catch (IOException evt) {System.out.println("Exception: "+evt);}
    statusbar.setText("You chose " + filelist);
         else {statusbar.setText("You cancelled!");}
    System.out.println("Example of ZIP file creation.");
    // Specify files to be zipped
    String[] filesToZip = new String[1];
    filesToZip[0] = "filelist";
    byte[] buffer = new byte[18024];
    // Specify zip file name
    String zipFileName = "example.zip";
    try {
    ZipOutputStream out =
    new ZipOutputStream(new FileOutputStream(zipFileName));
    // Set the compression ratio
    out.setLevel(Deflater.DEFAULT_COMPRESSION);
    // iterate through the array of files, adding each to the zip file
    for (int i = 0; i < filesToZip.length; i++) {
    System.out.println(i);
    // Associate a file input stream for the current file
    FileInputStream in = new FileInputStream(filesToZip);
    // Add ZIP entry to output stream.
    out.putNextEntry(new ZipEntry(filesToZip[i]));
    // Transfer bytes from the current file to the ZIP file
    //out.write(buffer, 0, in.read(buffer));
    int len;
    while ((len = in.read(buffer)) > 0)
    out.write(buffer, 0, len);
    // Close the current entry
    out.closeEntry();
    // Close the current file input stream
    in.close();
    // Close the ZipOutPutStream
    out.close();
    catch (IllegalArgumentException iae) {
    iae.printStackTrace();
    catch (FileNotFoundException fnfe) {
    fnfe.printStackTrace();
    catch (IOException ioe)
    ioe.printStackTrace();
    c.add(openButton);
    c.add(dirButton);
    c.add(statusbar);
    c.add(resetButton);
    c.add(submitButton);
    //c.add(tf);
    c.add(l1);
    Insets insets = c.getInsets();
    Dimension size = openButton.getPreferredSize();
    openButton.setBounds(745 + insets.left,115 + insets.top, size.width, size.height);
    size = dirButton.getPreferredSize();
    dirButton.setBounds(755 + insets.left,165 + insets.top, size.width, size.height);
    size = statusbar.getPreferredSize();
    statusbar.setBounds(755 + insets.left,215 + insets.top, size.width, size.height);
    size = resetButton.getPreferredSize();
    resetButton.setBounds(755 + insets.left,265 + insets.top, size.width, size.height);
    size = submitButton.getPreferredSize();
    submitButton.setBounds(755 + insets.left,465 + insets.top, size.width, size.height);
    size = tf.getPreferredSize();
    tf.setBounds(25 + insets.left,5 + insets.top, size.width + 150, size.height + 430);
    size = l1.getPreferredSize();
    l1.setBounds(25 + insets.left,5 + insets.top, size.width + 150, size.height + 430);
    setSize(1000,800);
    setVisible(true);
    public static void main(String[] args)
    new browser();

    Start by defining "display". Then continue by reading this:
    http://forum.java.sun.com/help.jspa?sec=formatting

  • Deleting the Records that are in odd position

    Hi,
       How to delete the records that are in the odd position.
    This is my program. Plz correct me. Iam not able to delete the records.
    REPORT  ZMTSHPRG19                              .
    TYPES:
    BEGIN OF TY_EMP,
    EMPID(4) TYPE N,
    ENAME(30) TYPE C,
    DEPT(4) TYPE C,
    SALARY TYPE I,
    END OF TY_EMP.
    DATA:
    FS_EMP TYPE TY_EMP,
    IT_EMP TYPE TABLE OF TY_EMP.
    FS_EMP-EMPID = '1009'.
    FS_EMP-ENAME = 'XX'.
    FS_EMP-DEPT = 'D100'.
    FS_EMP-SALARY = 10000.
    APPEND FS_EMP TO IT_EMP.
    FS_EMP-EMPID = '1007'.
    FS_EMP-ENAME = 'YY'.
    FS_EMP-DEPT = 'D100'.
    FS_EMP-SALARY = '11000'.
    APPEND FS_EMP TO IT_EMP.
    FS_EMP-EMPID = 1008.
    FS_EMP-ENAME = 'ZZ'.
    FS_EMP-DEPT = 'D200'.
    FS_EMP-SALARY = 12000.
    APPEND FS_EMP TO IT_EMP.
    FS_EMP-EMPID = 1001.
    FS_EMP-ENAME = 'XY'.
    FS_EMP-DEPT = 'D200'.
    FS_EMP-SALARY = 10000.
    APPEND FS_EMP TO IT_EMP.
    FS_EMP-EMPID = 1003.
    FS_EMP-ENAME = 'XZ'.
    FS_EMP-DEPT = 'D300'.
    FS_EMP-SALARY = 8000.
    APPEND FS_EMP TO IT_EMP.
    FS_EMP-EMPID = 1002.
    FS_EMP-ENAME = 'YX'.
    FS_EMP-DEPT = 'D300'.
    FS_EMP-SALARY = 9500.
    APPEND FS_EMP TO IT_EMP.
    FS_EMP-EMPID = 1004.
    FS_EMP-ENAME = 'YZ'.
    FS_EMP-DEPT = 'D300'.
    FS_EMP-SALARY = 9500.
    APPEND FS_EMP TO IT_EMP.
    FS_EMP-EMPID = 1005.
    FS_EMP-ENAME = 'AA'.
    FS_EMP-DEPT = 'D100'.
    FS_EMP-SALARY = 10500.
    APPEND FS_EMP TO IT_EMP.
    FS_EMP-EMPID = 1006.
    FS_EMP-ENAME = 'BB'.
    FS_EMP-DEPT = 'D200'.
    FS_EMP-SALARY = 12000.
    APPEND FS_EMP TO IT_EMP.
    FS_EMP-EMPID = 1010.
    FS_EMP-ENAME = 'CC'.
    FS_EMP-DEPT = 'D100'.
    FS_EMP-SALARY = 15000.
    APPEND FS_EMP TO IT_EMP.
    LOOP AT IT_EMP INTO FS_EMP.
    WRITE:/ FS_EMP-EMPID,FS_EMP-ENAME,FS_EMP-DEPT,FS_EMP-SALARY.
    ENDLOOP.
    ULINE.
    DATA:
    LINE_COUNT TYPE I,
    W_REM TYPE I.
    W_REM = LINE_COUNT MOD 2.
    DESCRIBE TABLE IT_EMP LINES LINE_COUNT.
    SORT IT_EMP BY EMPID.
    IF W_REM = 0.
    LOOP AT IT_EMP INTO FS_EMP.
    WRITE:/ FS_EMP-EMPID,FS_EMP-ENAME,FS_EMP-DEPT,FS_EMP-SALARY..
    ENDLOOP.
    ENDIF.
    Thanks.

    TYPES:
    BEGIN OF TY_EMP,
    EMPID(4) TYPE N,
    ENAME(30) TYPE C,
    DEPT(4) TYPE C,
    SALARY TYPE I,
    END OF TY_EMP.
    DATA:
    FS_EMP TYPE TY_EMP,
    IT_EMP TYPE TABLE OF TY_EMP.
    FS_EMP-EMPID = '1009'.
    FS_EMP-ENAME = 'XX'.
    FS_EMP-DEPT = 'D100'.
    FS_EMP-SALARY = 10000.
    APPEND FS_EMP TO IT_EMP.
    FS_EMP-EMPID = '1007'.
    FS_EMP-ENAME = 'YY'.
    FS_EMP-DEPT = 'D100'.
    FS_EMP-SALARY = '11000'.
    APPEND FS_EMP TO IT_EMP.
    FS_EMP-EMPID = 1008.
    FS_EMP-ENAME = 'ZZ'.
    FS_EMP-DEPT = 'D200'.
    FS_EMP-SALARY = 12000.
    APPEND FS_EMP TO IT_EMP.
    FS_EMP-EMPID = 1001.
    FS_EMP-ENAME = 'XY'.
    FS_EMP-DEPT = 'D200'.
    FS_EMP-SALARY = 10000.
    APPEND FS_EMP TO IT_EMP.
    FS_EMP-EMPID = 1003.
    FS_EMP-ENAME = 'XZ'.
    FS_EMP-DEPT = 'D300'.
    FS_EMP-SALARY = 8000.
    APPEND FS_EMP TO IT_EMP.
    FS_EMP-EMPID = 1002.
    FS_EMP-ENAME = 'YX'.
    FS_EMP-DEPT = 'D300'.
    FS_EMP-SALARY = 9500.
    APPEND FS_EMP TO IT_EMP.
    FS_EMP-EMPID = 1004.
    FS_EMP-ENAME = 'YZ'.
    FS_EMP-DEPT = 'D300'.
    FS_EMP-SALARY = 9500.
    APPEND FS_EMP TO IT_EMP.
    FS_EMP-EMPID = 1005.
    FS_EMP-ENAME = 'AA'.
    FS_EMP-DEPT = 'D100'.
    FS_EMP-SALARY = 10500.
    APPEND FS_EMP TO IT_EMP.
    FS_EMP-EMPID = 1006.
    FS_EMP-ENAME = 'BB'.
    FS_EMP-DEPT = 'D200'.
    FS_EMP-SALARY = 12000.
    APPEND FS_EMP TO IT_EMP.
    FS_EMP-EMPID = 1010.
    FS_EMP-ENAME = 'CC'.
    FS_EMP-DEPT = 'D100'.
    FS_EMP-SALARY = 15000.
    APPEND FS_EMP TO IT_EMP.
    LOOP AT IT_EMP INTO FS_EMP.
    WRITE:/ FS_EMP-EMPID,FS_EMP-ENAME,FS_EMP-DEPT,FS_EMP-SALARY.
    ENDLOOP.
    ULINE.
    DATA:
    LINE_COUNT TYPE I,
    W_REM TYPE I,
    n type i value 1.
    DESCRIBE TABLE IT_EMP LINES LINE_COUNT.
    SORT IT_EMP BY EMPID.
    LOOP AT IT_EMP INTO FS_EMP.
    w_rem = n mod 2 .
    if w_rem = 0 .
    WRITE:/ FS_EMP-EMPID,FS_EMP-ENAME,FS_EMP-DEPT,FS_EMP-SALARY.
    endif.
    n = n + 1.
    ENDLOOP.
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Apr 11, 2008 4:34 PM

  • How to create an XSD for file adaptor which will ignore the records that are not required.

    Hi All,
       I have a requirement, the Fixed Length file contains
    30013742387462382938742      82347023984623087   
    30037348237  983743  9837423098  98347 
    10108472398   98034702398409238 9838472398   09823409238
    300163527 387462398746 38746293874693746324763
    101037642873643 37438724683746837648 873648736
    200138743986493874398
    2002738469837246
    10003784629837469283746937463987469387
    I need to select only the records that startswith 3001 and 3003 which are of different types and ignore the remaining records like 1010,2001,2002,1000.
    Can any one help me on this.

    You can make use of "conditionValue" or "startsWith" attributes while designing you native XSD.
    Check this example - Native Format Builder Wizard - 11g Release 1 (11.1.1.6.3) for better understanding.

  • Tzupdater.How it reflects the users that are not using the new USA DST rule

    If I update the JRE with tzupdater or just replace it with newer JRE will the time change according to the time zone I live in because I think that the changes in USA DST will not apply for the most of the other countries.

    Hi,
    You can do this directly in OAM, with option "a" (using auxiliary object class). You configure OAM to use the main person object class (inetorgperson) and then you can associate extra auxiliary object classes to it - and header variables can be set from any of the attributes that are in the user's profile, both main and auxiliary.
    Regards,
    Colin

  • Cannot upload because all the playlists that are selected..

    Can someone please help me!! What does it mean when i plug my ipod in.. and it says "Cannot update because all of the playlists selected for updating no longer exisit..? Even though I have all my playlists on the side and everything?
    I DONT GET IT ..! RESPOND ASAP!! please please

    If you have deleted a playlist, it will still try to update it untill you tell it not to. In iTunes, go to iTunes>Preferences and click on the iPod tab. There, you should be able to uncheck the playlist that it's trying to update.

  • HT1725 i recently have downloaded a few new albums from iTunes.  However, now that i have listened to the albums, there are some "blank spots" on the recording that are interrupting the songs.... what can i do to "re-download" the album without paying aga

    I recently have downloaded a few new albums from iTunes.  However, after I have listened to them, I realize there are some "blank spots" in the recordings...  not sure why.  Can I "re-download" the album/music again with paying again?
    Thanks!

    The advice you provided me helped download songs from the album that failed to download the first time.  However, there are songs that I originally downloaded that have blank spots in the song...  How can I re-download songs that have already been downloaded so they are "clean" .. i.e. the play straight through without blank spots in them.  Can I do this without re-paying?
    Thank You

  • Problem in Highlighting the menus that are selected in 11g

    Hi,
    While creating a Menu Hierarchy(created using Navigation Panes and NavigationItems) I want the menus to be highlighted, for the one which I select.
    I set the "Selected" property for the NavigationItems to "True". But always the first one in Menu and submenu is selected on PageLoad and also when I select others.
    Thanks

    Try something like this:
    <af:navigationPane>
      <af:commandNavigationItem text="commandNavigationItem 1"
          selected="#{pageFlowScope.selected=='first'}">
        <af:setPropertyListener type="action" from="first"
            to="#{pageFlowScope.selected}"/>
      </af:commandNavigationItem>
      <af:commandNavigationItem text="commandNavigationItem 2"
          selected="#{pageFlowScope.selected=='second' or pageFlowScope.selected==null}">
        <af:setPropertyListener type="action" from="second"
            to="#{pageFlowScope.selected}"/>
      </af:commandNavigationItem>
      <af:commandNavigationItem text="commandNavigationItem 3"
          selected="#{pageFlowScope.selected=='third'}">
        <af:setPropertyListener type="action" from="third"
            to="#{pageFlowScope.selected}"/>
      </af:commandNavigationItem>
    </af:navigationPane>
    {code}
    Notice:  *pageFlowScope.selected==null* - when you first time enter the page, this tab will be selected and change your nick (user617801).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to get the complete path of the file that is selected using FormFile

    i m working on struts..
    i hv used FormFile like
    <html:file property="xsdpath" value="Browse" />
    need to get the whole path that i will select using browse button
    for example d:\foldername\filename.java
    but FormFile Api has a method getFileName(); which returns the filename, for getting the absolute path wat has to be done.
    please reply bak soon
    thanks in advance

    here i use formfile <html:file> just to allow the
    user to select a xml file .
    so i need to get the whole path of the selectedfile
    to parse the xml file.No you dont.
    You would definitely benefit from further reading on
    file upload.
    <html:file> tag renders an HTML <input> element of
    type file.
    When a user uploads a file, this file is sent as a
    stream of data, which a program (jsp/servlet) on the
    server, reads and stores the data back in the form
    of a file on the server.
    Any server program that needs to parse the file,
    should do so on the file stored on the server.
    There's no point in knowing the absolute path of the
    file on the client machine. If a server program can
    parse a file on the client machine, why upload the
    file in first case ? Get the drift ?
    i also want to show my user the path he hadselected.
    If you have such a requirement, then yes.
    But it sounds weird to me. If you see my response
    above, you will realize that the server has a copy of
    the client's file uploaded and then parsed. What if
    the client has changed his file after upload ?
    cheers,
    ram.I also have a requirement to get the whole filepath of the file selected and place this information into a table. From FormFile I can only retreive the absolute filename
    Any suggestions would be helpful.
    Thanks, dam

  • Need to replace the string that contains '|'   character using replaceFirst

    I have the code snippet like this
                   String aaa= "HEY | PRAKASH, HOW ARE YOU";
                   String bbb = aaa.replaceFirst("HEY | PRAKASH", "HI");
                   System.out.println(bbb);
    I want the output as
    HI,HOW ARE YOU
    But the output I am getting is      "HI| PRAKASH, HOW ARE YOU"
    Wat is the issue with '|' symbol, is there any way to achive this......

    String aaa= "HEY | PRAKASH, HOW ARE YOU";
    String bbb = aaa.replaceFirst(java.util.regex.Pattern.quote("HEY | PRAKASH"), "HI");
    System.out.println(bbb);

  • How to store records that are entered in the fields?

    Hi friends can any one help me how to store the records that are given as input.
    Say if Empid - 123456, this 123456 has to be stored in table it will be stored but can any one help me with procedure?
    Thanks

    Hi,
    If the records are from an input file, you will have to first create a structure for the Employee id ....
    then, read the input file data into the internal table you have defined in the earlier step...
    then, loop at the records one after the other and update the records directly into the table....( typically this is a direct update of data and will be done when you were dealing with the data relating to a "Z" table )
    please follow the procedure and let me know how it worked for you or if you are still having issues on this.
    Thanks,
    Vishnu.

  • How to seperate the pulses that are acquired from real world according to their pulse heights in LabVIEW.

    Hi everybody,
    Can any one help in getting out this. Actually I am acquiring gamma rays from proportional counter into the LabVIEW, Coming to the analysis part, I need to seperate the pulses according to their pulse heights. After seperating them I need to digitise the pulses that are seperated. So I request you to sort out this as early as possilbe.
    Thanks in advance.
    A.Giridhar Yadav.

    I am confused about your description. You indicate that you are acquiring the signals but then you want to digitize them later? Any signal processed by LabVIEW has already been digitized because the software only works on numbers, not continuous voltages.
    1. How are you acquiring the data from the proportional counter into LV? What DAQ device are you using? What sample rate?
    2. What is the duration of the pulses? Gamma pulses from PMT and scintillators are usually rather short.
    3. Do you have any log amplifiers or other signal conditioning between the detectors and the DAQ device?
    Lynn

  • Find the cubes that are not being compressed

    Hi,
    Need to find the cubes that are not being compressed.
    Please let me know how to find them? is there any tran codes to figure them?
    Thanks,

    Hi
    E fact tables name >> /BIC/E*
    F Fact tables name >> /BIC/F*
    By comparing the two list
    can we find the uncompressed cubes?
    If this is right  it gives one more solution to your problem...
    Thanks

  • EM monitor indexes that are being used?

    Hello,
    I wonder if with Oracle Enterprise Manager dbconsole, is possible monitor the indexes that are being used during a determine period as in TOAD?
    Thanks

    Hi,
    Index monitoring is started and stopped using the ALTER INDEX syntax shown below.
    ALTER INDEX my_index_i MONITORING USAGE;
    ALTER INDEX my_index_i NOMONITORING USAGE;
    Information about the index usage can be displayed using the $OBJECT_USAGE view.
    Query :-
    SELECT index_name,
    table_name,
    monitoring,
    used,
    start_monitoring,
    end_monitoring
    FROM v$object_usage
    WHERE index_name = 'MY_INDEX_I'
    ORDER BY index_name;
    The V$OBJECT_USAGE view does not contain an OWNER column so you must to log on as the object owner to see the usage data
    Thanks
    Pavan Kumar N.

  • Need to convert music videos that are tagged as "Movies" and re-rag them as "Music Videos" to get them out of my movies library and into the Music Video folder. Likewise, I ha e some educational videos that belong in "Podcasts." Help?

    Need to convert music videos that are tagged as "Movies" and re-rag them as "Music Videos" to get them out of my movies library and into the Music Video folder. Likewise, I have some educational videos that belong in "Podcasts." Help?

    Select/highlight the ones that you want to change in your iTunes library, do Get-Info (control-I) and change their Media Kind on their Options tab to 'Music Video' - and then similarly for the podcasts.

Maybe you are looking for

  • "broken assets" error message when saving project as disc image

    I've seen this question asked before but I've been unable to find a solution that works. I am using iDvd6. After creating my project in iMovie, I shared it with iDvd. I then added a slide show and some music. Before burning to disc I "save as disc im

  • Process chain for a full load failed

    Hi, I have a process chain where load data from an InfoCube to a DSO with the following steps: Begin Load data: Execute an Infopackage with full load. Update from PSA Activate Data: Activate data of DSO. When I execute the process chain, the step of

  • Incoming IDOC clearing customer outstanding

    Hi I am working on automating incoming customer payment, clearing there outstanding. Currently it is manual process business user use F-28 to post. We will be getting the file from bank and want to process the same, after processing it should clear /

  • Final Cut Freezing and giving error messages

    FCPX is slow and unresponsive and when I drag clips into a project I sometimes get a message that the project cannot be saved, but mostly I get what you see below. Before you ask, it's not full, it is available, nothing has moved or changed. Any thou

  • Strange TSV_TNEW_PAGE_ALLOC_FAILED dump...

    Hi guys! I have this weird problem: I have a program that does some updates to standard tables. The program runs ok, but if I comment the "update" lines, the execution ends with this dump: TSV_TNEW_PAGE_ALLOC_FAILED With the UPDATE doesn't cancel, wi