How can I select 2 options in Interactive reports

Hi Friends
I have a doubt about Interactive reports/ ALV interactive reports. Is there any option to select multiple selections in interactive reports. If I am displaying in a screen CustNo, Name, Country.
I want to see order details of that customer in another screen using AT Line-Selection. Can I select multiple customer nos at a time and also can I see those order details whom I selected over in first list.
Please send me reply ASAP if there is any option with suitable example.
Thanks
Praveen.

Check out this sample.  It uses two ALV grids.  On the first one you can do multiple selection, hit the continue buttons and it will throw another ALV with those material/plant records.  Implement the following program.  Create screen 100 and 200.  One each screen create a custom container called ALV_CONTAINER(screen 100) and ALV_CONTAINER2(screen 200).  Create the gui status for both.  Don't forget to create a "CONTINUE" button on the gui-status 100.
report zrich_0006.
tables: mara.
type-pools: slis, icon.
* Internal Tables
data: begin of ialv occurs 0,
      matnr type mara-matnr,
      maktx type makt-maktx,
      end of ialv .
data: begin of ialv2 occurs 0,
      matnr type mara-matnr,
      werks type marc-werks,
      end of ialv2.
* Miscellanous Variables
data: index_rows type lvc_t_row,
      index like line of index_rows.
data: alv_container type ref to cl_gui_custom_container,
      alv_container2 type ref to cl_gui_custom_container,
      alv_grid type ref to cl_gui_alv_grid,
      alv_grid2 type ref to cl_gui_alv_grid,
      row_table type lvc_t_row with header line,
      ok_code like sy-ucomm,
      layout  type lvc_s_layo,
      fieldcat type lvc_t_fcat,
      fieldcat2 type lvc_t_fcat.
select-options: s_matnr for mara-matnr.
start-of-selection.
  select mara~matnr makt~maktx
             into corresponding fields of table ialv
                 from mara
                      inner join makt
                         on mara~matnr = makt~matnr
                                where mara~matnr in s_matnr
                                  and makt~spras = sy-langu.
  sort ialv ascending by matnr.
  call screen 100.
*      Module  status_0100  OUTPUT
module status_0100 output.
  set pf-status '0100'.
  set titlebar '0100'.
  data: lt_exclude type ui_functions.
* Create Controls
  create object alv_container
         exporting container_name = 'ALV_CONTAINER'.
  create object alv_grid
         exporting  i_parent =  alv_container.
*  Populate Field Catalog
  perform get_fieldcatalog.
* Optionally restrict generic functions to 'change only'.
* (The user shall not be able to add new lines).
  perform exclude_tb_functions changing lt_exclude.
* Set selection mode to "D"  --  Multiple Lines
  layout-sel_mode = 'D'.
  call method alv_grid->set_table_for_first_display
      exporting
           is_layout              = layout
           it_toolbar_excluding   = lt_exclude
           i_structure_name       = 'IALV'
      changing
           it_outtab       = ialv[]
           it_fieldcatalog = fieldcat[].
endmodule.
*      Module  USER_COMMAND_0100  INPUT
module user_command_0100 input.
  case sy-ucomm.
    when 'BACK' or 'CANC'.
      perform free_containers.
      if sy-subrc = 0.
        set screen 0.
        leave screen.
      else.
        leave program.
      endif.
    when 'EXIT'.
      perform free_containers.
      leave program.
    when 'CONTINUE'.
* Retrieve selected rows from ALV grid
  clear index_rows.  refresh index_rows.
  call method alv_grid->get_selected_rows
           importing
                 et_index_rows = index_rows.
* Do something with those selected rows here
      loop at index_rows into index.
        read table ialv index index-index.
        if sy-subrc = 0.
          select * appending corresponding fields of table ialv2
                       from marc
                           where matnr = ialv-matnr.
        endif.
      endloop.
      perform free_containers.
      leave to screen 200.
  endcase.
endmodule.
*      Form  FREE_CONTAINERS
form free_containers.
  if not alv_container is initial.
    call method alv_container->free.
    clear: alv_container.
    free : alv_container.
  endif.
  if not alv_container2 is initial.
    call method alv_container2->free.
    clear: alv_container2.
    free : alv_container2.
  endif.
endform.
*      Form  Get_Fieldcatalog - Set Up Columns/Headers
form get_fieldcatalog.
  data: ls_fcat type lvc_s_fcat.
  data: columnno(3) type n value '0'.
  refresh: fieldcat.
  clear: ls_fcat.
  ls_fcat-reptext    = 'Material Number'.
  ls_fcat-coltext    = 'Material Number'.
  ls_fcat-fieldname  = 'MATNR'.
  ls_fcat-ref_table  = 'IALV'.
  ls_fcat-outputlen  = '18'.
  ls_fcat-col_pos    = 1.
  append ls_fcat to fieldcat.
  clear: ls_fcat.
  ls_fcat-reptext    = 'Material Description'.
  ls_fcat-coltext    = 'Material Description'.
  ls_fcat-fieldname  = 'MATKX'.
  ls_fcat-ref_table  = 'IALV'.
  ls_fcat-outputlen  = '40'.
  ls_fcat-col_pos    = 2.
  append ls_fcat to fieldcat.
endform.
*      Form  Get_Fieldcatalog2 - Set Up Columns/Headers
form get_fieldcatalog2.
  data: ls_fcat type lvc_s_fcat.
  data: columnno(3) type n value '0'.
  refresh: fieldcat2.
  clear: ls_fcat.
  ls_fcat-reptext    = 'Material Number'.
  ls_fcat-coltext    = 'Material Number'.
  ls_fcat-fieldname  = 'MATNR'.
  ls_fcat-ref_table  = 'IALV2'.
  ls_fcat-outputlen  = '18'.
  ls_fcat-col_pos    = 1.
  append ls_fcat to fieldcat2.
  clear: ls_fcat.
  ls_fcat-reptext    = 'Plant'.
  ls_fcat-coltext    = 'Plant'.
  ls_fcat-fieldname  = 'WERKS'.
  ls_fcat-ref_table  = 'IALV2'.
  ls_fcat-outputlen  = '4'.
  ls_fcat-col_pos    = 2.
  append ls_fcat to fieldcat2.
endform.
*      Form  EXCLUDE_TB_FUNCTIONS
form exclude_tb_functions changing pt_exclude type ui_functions.
* Only allow to change data not to create new entries (exclude
* generic functions).
  data ls_exclude type ui_func.
  ls_exclude = cl_gui_alv_grid=>mc_fc_loc_copy_row.
  append ls_exclude to pt_exclude.
  ls_exclude = cl_gui_alv_grid=>mc_fc_loc_delete_row.
  append ls_exclude to pt_exclude.
  ls_exclude = cl_gui_alv_grid=>mc_fc_loc_append_row.
  append ls_exclude to pt_exclude.
  ls_exclude = cl_gui_alv_grid=>mc_fc_loc_insert_row.
  append ls_exclude to pt_exclude.
  ls_exclude = cl_gui_alv_grid=>mc_fc_loc_move_row.
  append ls_exclude to pt_exclude.
endform.
*      Module  status_0200  OUTPUT
module status_0200 output.
  set pf-status '0200'.
  set titlebar '0200'.
* Create Controls
  create object alv_container2
         exporting container_name = 'ALV_CONTAINER2'.
  create object alv_grid2
         exporting  i_parent =  alv_container2.
*  Populate Field Catalog
  perform get_fieldcatalog2.
  call method alv_grid2->set_table_for_first_display
      changing
           it_outtab       = ialv2[]
           it_fieldcatalog = fieldcat2[].
endmodule.
*      Module  USER_COMMAND_0200  INPUT
module user_command_0200 input.
  case sy-ucomm.
    when 'BACK' or 'CANC'.
      perform free_containers.
      if sy-subrc = 0.
        set screen 0.
        leave screen.
      else.
        leave program.
      endif.
    when 'EXIT'.
      perform free_containers.
      leave program.
  endcase.
endmodule.
Regards,
Rich Heilman

Similar Messages

  • How can user specify HAVING clause in Interactive Report

    How can user specify HAVING clause in Interactive Report after making the group by selection? Under Actions/Format, the user sees just the Group By-Sort and Group By options.

    Hi ,
    Thanks for your information.
    I am new to the APEX.*i need to show Progress bar while opening the each page* then user can know some process is happening from the backside and i don't know where i need to add and call the below function.could you please provide the steps for the progress bar.
    In my application there are almost 100 pages are there so, i need to show progress bar on each page while opening .could you please provide Global function to call on each page.
    function html_url_Progress(pThis){ 
    $x_Show('AjaxLoading');
    window.setTimeout('$s("AjaxLoading",$x("AjaxLoading").innerHTML)', 100);
    //doSubmit('APPLY_CHANGES');
    redirect(pUrl);
    Regards
    Narender B

  • How can I get all options under edit in iPhoto to appear and revert in red, the only option it gives me is to select multiple

    how can I get all options under edit in iPhoto on my phone to appear it has revert in red on theleft side & done on the right side, the only choice it gives me is select multiple

    The usual cause of that issue is a corrupted or missing font that Firefox replaces by another, in this case a bold, font.
    As a test you can try to disable the default font and choose a few different fonts (Arial, Verdana, Tahoma, Times New Roman) to see if you can identify the culprit.<br />
    you will have to reinstall that corrupted font.

  • I'm trying to install an update to itunes that downloaded but can't complete installation as its trying to install onto D: drive. I don't have a D drive and i'm not given option of selecting the drive to install on. How can i select the drive that i want

    I'm trying to install itunes but can't complete installation as its trying to install onto F: drive. I don't have a F drive and I'm not given option of selecting the drive to install on. How can I select the drive that i want to install on?

    Hi,
    How do you connect the printer to the XP machine ? If USB, you need to make that machine as a Print server. Please try this:
       http://techtips.salon.com/make-windows-computer-pr​int-server-11914.html
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How do I set up a rating scale so that respondents can only select each option one time?

    How do I set up a rating scale so that respondents can only select each option one time?

    hi there,
    in the LV VI, function & how-to help open the item
    Building the front panel -> Front panels controls and indicators -> Array & Cluster controls and indicators -> Arrays -> Tabbing through Elements of an Array or Cluster
    or see attachment
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"
    Attachments:
    TabbingThroughArrays_Help.jpg ‏96 KB

  • 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.

  • How can I select from drop-down list and jumping to selected subform?

    I using LC Designer ES2 vers 9. Developing XDP. How can I Select from a drop-down list the appropriate selected subform (jumping to the selected subform on the page)?
    drop-down list...A (jump to subform1)
                             B (jump to subform2)
                             C (jump to subform3)
    subform1
    subform2
    subform3
    ....end of form

    Hi,
    you cannot set focus on a subform but on a field, as only interactive objects can be focussed.
    From a dropdowns exit event the script will look this way:
    switch (this.rawValue) {
              case "A" : xfa.host.setFocus("form1.page2.field1"); break;
              case "B" : xfa.host.setFocus("form1.page2.field1"); break;

  • How can I change view options for ALL playlists?

    How can I change view options for ALL playlists? With one single click or trick?
    I have a lot playlists and don't want to change every single one of them separatly.
    Thanks for your help. (I use Windows 7)

    There's no FAST way I know of, which is what I think you mean.
    Only the painful SLOW way of one-by-one.
    You could make a new playlist from the main library after you've set the columns up as you like.
    Go to an existing playlist that doesn't have the columns you want, and select all.
    RIght-click > Add to Playlist and send them to the new playlist.
    That's still one-by-one and only works with static playlists, not smart ones.

  • How Can I select an Audio Hardware with AudioQueue ?

    Hello,
    Apple is providing this Demo Code...
    http://developer.apple.com/samplecode/AudioQueueTest/AudioQueueTest.dmg
    but how can I select the Audio Hardware? I want to write an application that should output to 4 different USB Audio Cards. Is that possible?
    I am searching for hours now
    Thanks,
    Klaus

    I confirm your issue as I just tried an audio CD in my XP laptop. "All Files" showed only the 44 byte .cda files and no others. QuickTime couldn't open them (error -2048).
    I also tried "Open File" with version 7 Pro and it couldn't open.
    Odd that I get the option to open using iTunes and it opens and plays just fine. Since iTunes uses the QuickTime engine I would have thought QuickTime could read the files directly.
    The same audio CD inserted in my Mac allowed me to double click any track and it opened directly in QuickTime Player. The files show as .aiff files measured in MB's.
    Windows users could open an audio CD in iTunes and then convert to .aiff (no compression) and then open the .aiff in QuickTime.
    I guess I should have tried myself before getting your hopes up. I apologize.

  • How can I have the option to either open or save each download?

    I would like to be given the option to either Save OR Open a file/document each time I download something. At my laptop it's either/or. I can either set the properties to always save to a particular spot, or not. How can I get both options on downloading?

    Options > General > Downloads > select "Always ask me where to save files". See [https://support.mozilla.com/en-US/kb/Options%20window%20-%20General%20panel Options window - General panel]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • I made a path how can I select it

    i made a path how can I select it

    You'd be better off Googling some proper Pen Tool tutorials rather than learning it in dribs and drabs via this forum.
    Even the Help might be an OK option, but a good tutorial probably makes for a more engaging read.

  • CS3 - Place Word document: How can I select the current preset?

    Hi
    In my Plugin I like to place a word document into a text frame. To do this I want select a defined preset before.
    How can I do that?
    How can I select the current preset for the placement (import)?
    Thanks for the support
    Hans

    Hi,
    I had posted a similar query few days back to place excel file in text frame. And I found out that, it is not possible to specify formatting option for any of microsoft document when using Indesign SDK.
    But we can do this by running script.
    If you are able to specify the formatting option through script, write code to get script object & execute this script through Indesign SDK.
    I was able to specify formatting option, sheet number, range etc through this.
    Hope this helps.
    Rajani

  • How can I provide the option of 2 JRE's in the same InternetExplorer?

    How can I provide the option of 2 JRE's in the same InternetExplorer?
    How it can be done that we have 2 options of JRE available in :
    Tools --> InternetOptions --> Advance.
    As normally we have 1 Java(SUN) and 1 Microsoft VM option present in Tools --> InternetOptions --> Advance.
    Out of the 2 JRE versions, the one which is checked, must be selected for the browser.
    Looking forward for the replies....
    Thanking in advance.
    Nitin Chaudhary

    There's a bug with iPhoto 9.5 and Mavericks in that slideshows from Albums do not play correctly if they are sorted manually.  Only photos that have been sorted by date, keyword, rating or title will play from albums correctly.
    To have a slideshow with photos sorted manually use the slideshow mode in iPhoto.
    Send a bug report to Apple via http://www.apple.com/feedback/iphoto.html.

  • My keyboard is locked with a message that says, "carrier settings update available" but I can't select either option.....please advise

    My keyboard is locked with an update message and I can't select either option....how can I get going again?

    1. Hold the Sleep and Home button down together
    2. For about 10 seconds
    3. Until you see the Apple logo
    4. Ignore the red slider

  • I receive a lot of emails when i start to setup the account . How can i deactivate this option ?

    i receive a lot of emails when i start to setup the account . How can i deactivate this option ?

    I opened settings and selected mail,contacts, calendar option
    but on my iPhone 4 (v 6.1.3) I did not see that option.
    Does anyone else have any ideas how to fix this?  Thanks.

Maybe you are looking for