How to bring the more than one rows from the table into the script

Hi
I have to bring more than one rows from the table into the Main windows of the script. so plz help me out.
Thanks in Advance
Ananya

Hi Ananya,
   Bring more than one row into main window of script.
   For this you need to do some changes for data which you pass to main window.At a time you need to pass more than one row,so for this you need to define one structure.See below code.
Types:begin of ty_rows,
     include structure (your row_structure),
     include structure (your row_sturcture),
Types:end of ty_rows.
for example....
If i need to pass 2 vendor details at a time to main window then the structure should be like this.
Types:begin of ty_rows,
       vendor1 like lfa1-lifnr,
       vendor1_name like lfa1-name1,
       vendor2 like lfa1-lifnr,
       vendor2_name like lfa1-name1,
      end of ty_rows.
Data:i_main type standard table of ty_rows,
     wa_main type ty_rows.
Based on condition you can pass more than one rows of your actual internal table data to i_main internal table.
Then you can pass i_main internal table to your main window.
    I think this will help you.
Cheers,
Bujji

Similar Messages

  • Fetching more than one row from a table after selecting one value from the dropdown

    Hi Experts,
    How can we fetch more than one row from a table after selecting one value from the dropdown.
    The scenario is that I have some entries in the dropdown like below
      A               B               C        
    11256          VID          911256  
    11256          VID          811256
    11256          SONY      11256
    The 'B' values are there in the dropdown. I have removed the duplicate entries from the dropdown so now the dropdownlist has only two values.for eg- 'VID' and'SONY'. So now, after selecting 'VID' from the dropdown I should get all the 'C' values. After this the "C' values are to be passed to other methods to fetch some data from other tables.
    Request your help on this.
    Thanks,
    Preeetam Narkhede.

    Hi Preetam!
    I hope I understand your request proberly, since this is more about Java and less about WebDynpro, but if I'm wrong, just follow up on this.
    Supposed you have some collection of your original table data stored in variable "origin". Populate a Hashtable using the values from column "B" (let's assume it's Strings) as keys and an ArrayList of whatever "C" is (let's assume String instances, too) as value (there's a lot of ways to iterate over whatever your datasource is, and since we do not know what your datasource is, maybe you'll have to follow another approach to get b and c vaues,but the principle should remain the same):
    // Declare a private variable for your Data at the appropriate place in your code
    private Hashtable temp = new Hashtable<String, ArrayList<String>>();
    // Then, in the method you use to retrieve backend data and populate the dropdown,
    // populate the Hashtable, too
    Iterator<TableData> a = origin.iterator();
    while (a.hasNext()) {
         TableData current = a.next();
         String b = current.getB();
         String c = current.getC();
         ArrayList<String> values = this.temp.get(b);
         if (values == null) {
              values = new ArrayList<String>();
         values.add(c);
         this.temp.put(b, values);
    So after this, you'll have a Hashtable with the B values als keys and collections of C values of this particular B as value:
    VID --> (911256, 811256)
    SONY --> (11256)
    Use
    temp.keySet()
    to populate your dropdown.
    After the user selects an entry from the dropdown (let's say stored in variable selectedB), you will be able to retrieve the collection of c's from your Hashtable
    // In the metod you handle the selection event with, get the c value collection
    //and use it to select from your other table
    ArrayList<String> selectedCs = this.temp.get(selectedB);
    // now iterate over the selectedCs items and use each of these
    //to continue retrieving whatever data you need...
    for (String oneC : selectedCs) {
         // Select Data from backend using oneC in the where-Clause or whatever...
    Hope that helps
    Michael

  • How do you delete more than one row on numbers?

    how do you delete more than one row on numbers?

    Hi operatorcarmax,
    Select the Rows (shift click works for me). Then hover the cursor over any selected Row label to see the upside-down triangle. Click on it to see a Pop-up menu.
    The Numbers User Guide is available for download under the Numbers Help Menu. A good read.
    Regards,
    Ian.

  • How can I select more than one song from the search results?

    I want to create playlists based on certain words in the song title. For example, I may want to create a playlist of all my songs with LOVE in the title.
    Doing the search is easy, but I can't select more than one song at a time. Is there any way in iTunes 12 for Windows to do this? I found an answer in iTunes for Mac, and it basically says to "un-check "Search Entire Library." " but I don't see that option in iTunes for Windows.
    Here is the link to that question: how can i select more than one song from drop down search bar
    I hope some Windows user can help me out.

    Found the "Search Entire Library" option - click on the small (VERY small for my eyesight) down arrow next to the magnifying glass. Also need to select "Filter by: Songs", and then the songs in the main window show the results.
    I'm going to leave this up on the board because 1) in case someone else has this question, and 2) I don't know how to delete it anyway.

  • TS3899 Hi. How do I attach more than one document to an email on the iPad, especially if they come from different apps? When writing an email on the iPad there's no option for attachments.

    Hi. How do I attach more than one document to an email originating from my iPad, especially if the documents come from different apps? When starting an email there's no option for attachments, unless you send the document from inside an app like iBook and then you can only send one at a time.

    How to add, send and open iPad email attachments
    http://www.iskysoft.com/apple-ipad/ipad-email-attachments.html
     Cheers, Tom

  • How do I email more than one photo from my library?

    I can select and email one photo at a time to a contact but I'd like email more than one at a time so that the receiver doesn't receive multiple emails containing just one photo, can I do it and how? Thanks

    Hi. From the Photos App, tap the Arrow in the top tight corner. Select up to 5 photos by tapping, a check mark will appear on selected photos. Tap the Share icon in the top left corner and select "eMail"
    Also, if you need more than 5 photos attached you can use multi-tasking to go back to Photos App, find the additional photo(s) tap and hold for approx2 seconds and select "Copy". Then go back to your email and paste the new image.
    Stedman

  • How to prevent executing more than one client from a machine?

    Hi all,
    Currently I am doing a client server project in java. The client is java swing. There is a requirement to prevent executing more than one client from a machine.
    Now I am relying on socket for this. I listen to a port, say 15000 and when the second session is started it would give an exception at the socket. I know that this a trivial method. Can anybody please suggest a better method. Also is it possible to bring focus to already executing client, if the user tries to execute the client program again in the same machine?
    An early answer to this question is highly appreaciated.
    Thanks in advance
    SSM

    Thanks for the suggestion, but I dont think we can use socket for this. And again if we use file for the same as you described, I think it would sometime create a some serious side effects. Suppose after one client session is invoked, the power goes off. In this case the client shut down is not in the normal sequence and hence we cannot remove the file programaticaly. This creates big problem when the user tries to run client again.
    I am really interested to know, is there any standard way in java which can be used to achieve this. Also is it possible to give focus to already executing client program if the user tries to invoke the client again.
    Thanks
    SSM

  • How can i transfer more than one file from server to client

    Hi,
    our requirement is transfer more than one files from server to client using the
    webutil_file_transfer.as_to_client_with_progress.One file transfer is already working in our system.If anybody know the solution please inform
    regards
    mat

    just an idea ...
    for this purpose let us put aside security concerns and other potential problems....
    -- Get the content of a server directory with Filter and create zip file
    1) create a class that implements java.io.FilenameFilter ...
    2) define accept() method ...
    3) call File.list() with the filter as a parameter. The returned array of strings will have all the names that passed through the accept() filter
    4) use java.util.Zip to create ZIP file on the server side
    -- I think it is better to create this functionality as a separate Java class, put it in required folder and after it
    -- use Forms->Program->"Import Java class" to create pl/sql wrappers, than to create wrappers for all classes and code in pl/sql
    5) use webutil to transfer file on the client
    6) use Java on client side to unzip transferred file
    if you think this is not too complicated, you should try ...
    Regards,
    Vladimir

  • How can i sync more than one folder from My Pictures to my iphone 4?, how can i sync more than one folder from My Pictures to my iphone 4?

    Hi,
    how can I sync more than one folder of pics from My Pictures on my computer to my iphone?

    http://support.apple.com/kb/HT4236

  • How can i select more than one song from drop down search bar

    sometimes to make a playlist i will search my music library for a word & then add all the songs with that word in the title
    the drop down search bar will not allow me to select more than one song
    or
    will it?  & i just can't suss out how... maybe you know?
    if so, please tell me~!!!
    thank you

    hey i tried that before i posted this question... i tried all of the normal ways one would use to select more than one item...
    any click of any kind at all takes you out of the search drop down & into the main itunes window... where you are deposited back into the songs alphabetically... no longer are you seeing the results of the search...
    sigh
    at the risk of sounding like one of those people, the "old" itunes did not have this problem...
    grrrr... it seems to be that pesky drop down menu~ if only you could see the search results in the main list as opposed to only in the drop down thing

  • How can we select more than one item from LOV in Query_Find form?

    Hi,
    I have a requirement i.e i want to select more than one customer number seperated by comma from the customer number lov field in the query_find form.How can we write the code for this requirement?
    and after clicking find it has to display notification form which contains the details of customer which you selected from Custome query_find form.
    Could you please help me out.
    Thanks in Advance,
    Dhana

    Found the "Search Entire Library" option - click on the small (VERY small for my eyesight) down arrow next to the magnifying glass. Also need to select "Filter by: Songs", and then the songs in the main window show the results.
    I'm going to leave this up on the board because 1) in case someone else has this question, and 2) I don't know how to delete it anyway.

  • How can I DISPLAY MORE THAN ONE ROW OF PHOTOS WHEN CREATING A BOOK?

    Can I display more than A SINGLE ROW of ohotos on the right side of the page when I am creating a photo book? I have 500 pics and this single bar is ridiculous.

    Command (right) - click on a photo in the Photo tray and select Small Photo from the contextual menu:
    This will give you two columns of photos.
    To reduce the number of photos to select from one can select only Unplaced Photos to be displayed in the tray.
    Happy Holidays

  • How to show three more than one row as single row

    for example there are two tables employee and department.
    emp id dept_id
    101 1
    101 2
    101 3
    Due to different dept id i am getting three rows for same emp id. Is there anwyay i can show one row and all three departments into one line.
    output like this 101 1/2/3
    Please help!
    Thanks

    864470 wrote:
    However, I am not getting any distinct values for that.Are you sying there are multiple records for same emp_id, dept_id combination? If so:
    SQL> with t as (
      2             select 101 emp_id,1  dept_id from dual union all
      3             select 101,2 from dual union all
      4             select 101,2 from dual union all
      5             select 101,3 from dual
      6            )
      7  -- end of on-the-fly data sample
      8  select  emp_id,
      9          rtrim(xmlagg(xmlelement(d,dept_id,'/').extract('//text()') order by dept_id),'/') dept_list
    10    from  t
    11    group by emp_id
    12  /
        EMP_ID DEPT_LIST
           101 1/2/2/3
    SQL> with t as (
      2             select 101 emp_id,1  dept_id from dual union all
      3             select 101,2 from dual union all
      4             select 101,2 from dual union all
      5             select 101,3 from dual
      6            )
      7  -- end of on-the-fly data sample
      8  select  emp_id,
      9          rtrim(xmlagg(xmlelement(d,dept_id,'/').extract('//text()') order by dept_id),'/') dept_list
    10    from  (
    11           select  emp_id,
    12                   dept_id
    13             from  t
    14             group by emp_id,
    15                      dept_id
    16          )
    17    group by emp_id
    18  /
        EMP_ID DEPT_LIST
           101 1/2/3
    SQL> SY.

  • How do i invite more than one invitee on different days for the same event

    Hi all,
    I basically want to create one event that occurs on several months with a group.  I know how to invite lots of people on one day but not several days.
    Please advise.
    Thanks

    hi Abbey!
    just checking. have you seen these user tips and KB docs yet?
    Natalie Beresford: multiple iPod/iTunes installations
    How to use multiple iPods with one computer
    iTunes: How to share music between different accounts on a single computer
    keep us posted.
    love, b

  • How do I manage more than one Ipod from the same computer?

    I just bought my boyfriend an Ipod and I want to set it up for him before I give it to him. We only have one computer and I'm not sure what to do. Can we both work from one itunes or can I install it twice?

    Just plug it in.
    You do not need to install iTunes twice.
    See this -> How to use multiple iPods on one computer

Maybe you are looking for