Select and deselect all in ALV

Hi,
I have created an ALV that has a Check box as the first field as the first field of the row.
Now when I press SELECT ALL nothing gets selected.How can i correct it,
Thnx in advance

Hi chirantan,
1. To get a taste of it,
   just copy paste this program.
2. It will display alv (t001)
  and DOUBLE-CLICK ON any row.
   It will TICK ALL THE CHECKBOXES.
(Instead of double-click, u can check for the user-command
of select all button )
3.
REPORT abc.
TYPE-POOLS : slis.
Data
DATA : BEGIN OF itab OCCURS 0.
        INCLUDE STRUCTURE t001.
DATA : flag tyPE c,
       END OF itab.
DATA : alvfc TYPE slis_t_fieldcat_alv.
DATA : alvly TYPE slis_layout_alv.
Select Data
SELECT * FROM t001 INTO TABLE itab.
*------- Field Catalogue
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
  EXPORTING
    i_program_name         = sy-repid
    i_internal_tabname     = 'ITAB'
    i_inclname             = sy-repid
  CHANGING
    ct_fieldcat            = alvfc
  EXCEPTIONS
    inconsistent_interface = 1
    program_error          = 2
    OTHERS                 = 3.
Display
alvly-box_fieldname = 'FLAG'.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
  EXPORTING
    it_fieldcat             = alvfc
    i_callback_program      = sy-repid "<-------Important
    i_callback_user_command = 'ITAB_USER_COMMAND' "<------ Important
    is_layout               = alvly
  TABLES
    t_outtab                = itab
  EXCEPTIONS
    program_error           = 1
    OTHERS                  = 2.
CALL BACK FORM
FORM itab_user_command USING whatcomm TYPE sy-ucomm whatrow TYPE
slis_selfield.
  LOOP AT itab.
    itab-flag = 'X'.
    MODIFY itab.
  ENDLOOP.
IMPORTANT.
WHATROW-REFRESH = 'X'.
ENDFORM. "ITAB_user_command
regards,
amit m.

Similar Messages

  • Select all and deselect all in table control

    Hi experts,
        I want to make the select all and deselect all options in my table control.
    But i can't able to do that one. Kindly suggest me how to do that one.
    one more thing, if i select some rows in the table control, and press save it should be saved in some other table. how can i implement that one.
    Waiting for ur reply.
    Regards...
    Arun.

    Hi Arun,
    In the context node that you bind to the table, set the cardinality as 0..n and selection as 0..n. In the UI element Table, set the property selectionMode as 'multi'. Then a toggle button for select/deselect all will appear automatically in your table. You can see it in the top left corner.
    For your second question, after selecting the elemets and pressing 'save', in your event handler, do a get_selected_elements( ) on your node. This will return you a set of context elements. Loop through each element and do a get_static_attributes to get the rows. Then you can append these rows to another internal table and bind it to the context. Bind your second table to this node. If the two tables are in different views, the context nodes need to be present in the component controller and mapped to the views.
    Hope this helps.
    Regards
    Nithya

  • JList Select and Deselect

    well, i set my JList to be multiple selection mode,
    say i made two selection on my jlist
    and how could i deselect of them !
    thx in advance!
    Sam

    You can use CTRL+click with your mouse in the interface to select and deselect things in multi-mode.
    If you want to select/deselect things from inside your code, try using the setSelectedIndices(int[] indices) method which you can find in JList. It should remove whatever selections were made and instead select those items that you specified in the array.

  • Applet select and deselect by JCRE

    Hi,
    I wonder why, in term of technical design, applet should have "select" and "deselect" method. This implies that the applet can select/ deselect by its self. (invoking these methods inside another method)
    However, the JCRE is the one who perform applet selection. Therefore, the right location to define select and deselect should be in the JCRE implementation.
    Do you have the same idea or there are advantages by defining select, deselect in each applet to be considered?
    thanks,
    Hoang Long

    Some secure Java Card platforms check that the caller's context is the JCRE, hence making the (de)select() un-invokable by anything else than the JCRE.
    You shouldn't do anything critical in the deselect() method, as you have no guarantee that it will be invoked, in particular when a power loss occurs.
    For more information, you should read the JCRE specification, there are some chapters on process()/select()/deselect() methods.

  • AA6 - Move To Beginning/Ending Of A Selection And Deselect

    Hello...
    In AA3- you could make a selection, then click at the beginning/ending of the selection.  It would deselect the selection and move the play head to that position.
    In AA5.5 you had to use the left/right arrows to do the same task.
    In AA6, neither work.  If you left/right arrow, the play head moves but it moves down/up the timeline (not to the beginning/ending) and it doesn't deselect.  Ctrl+left/right arrow does move the play head to the appropriate places (as well as other places) but it doesn't deselect.
    Is there a way to do this with AA6?
    I used it a lot when doing track breaks for cd (home, shift+click at 5:00, f8, right arrow, shift+click at 10:00, f8, etc...).  I also used it where I wanted to have only 0.5 seconds of extra silence at the beginning/ending of some audio (click at the beginning of the audio, drag backwards 0.5 seconds, left arrow, shift+home, delete).
    JJ

    Since you're doing this for CD, I think I have a method that would be faster for you.
    1. Home, Shift+M (This sets the playhead to the start and places a CD Track Marker at the playhead).
    2. Click where you want this track to end and the next to start and again press Shift+M.
    3. Continue placing single point CD Track Markers at each location where you want the last track to end and the new one to start (including adding one to the very end).
    4. When all markers have been added, open the Markers Panel and select all the markers.
    5. Press the icon in the Markers Panel for "Merge selected markers".
    Now if you want to burn the CD, just go to "File > Export > Burn Audio to CD..." and we will burn a CD with track markers where you hae defined them.
    --Ron

  • Problem selecting and deselecting photos

    My mind is confused.  Last night I was carefully selecting photos from about 900 in the browse view.  I held down the command key continually and then left clicked one image I wanted after another.  Sometimes after chosing 45 images, sometimes after only 10, Aperture 3 would on its own start all over.  The count at the bottom of the view would reset to 1.  All the images I had just selected were deselected.  I did this seveal times, always being very careful to click only in the images and no where else.  The thumbnails were large, so accuracy was not an issue.  I would scroll down using the wheel, always holding down the command key.  It seemed to have a mind of its own.  i'm well familiar with the Finder interface, so it wasn't me being clunky.  I repeated this behavior a number of times...baffling behavior.  Besides Aperture 3 being beastly slow on my imac, this was extremely irritating and buggy.  Am I the only one who has experienced?  What say you Apple?  Thank you collective.

    Thanks Mark, but you answered what I already included within my question. I wrote "So it's that, or disabling the hyperlink, move the object normally, and putting the hyperlink on again"
    With that, to "Uncheck the "Make hyperlinks active" you need to first select the object, and you end up back to the first and second problem I wrote.

  • ITunes has unselected all of my songs in my Music Library. How do I make iTunes SELECT and CHECK all the songs in my Music Library?

    I've just upgraded iTunes and iOS 5.1. Suddenly iTunes has UNSELECTED every song in my music library.  When I pick "Select All" from the drop-down menu, all the songs are HIGHLIGHTED, but none of them are CHECKED. I can't manually check every song in my library. How do I get iTunes to SELECT and CHECK songs in my Music Library?

    thanks! got it. it's the command key. hold it down while checking one of the boxes and the rest of them will be checked.

  • How to create a part selection and a part list ALV in the same screen

    Hello,
    I will want to realize in a screen a part lists ALV and a part selection for the list.
    I have created a container with  a splitter , but I do not know how to carry out the selection part.
    Thank you for your assistance.
    Regards

    Hello
    If you want to have the selections and the ALV list displayed on the same dynrpo then create a dynpro that contains in the upper part the selection/input fields and in the lower part place a custom container for the ALV grid.
    If you want to be more flexible then you could use a subscreen for the selection/input fields.
    There is no point in using a splitter container because we cannot place normal input fields into a container but only controls.
    Regards
      Uwe

  • Selecting and Deselecting Images in Aperture

    Is there anyway to select images in Aperture and keep them selected until you deselect them? For example if I close Aperture I would like to be able to comeback and the images are still selected.

    No, Aperture won't remember your selection after quitting.
    You can get around this by creating a new album from selection, or a assigning a temporary keyword 'selected' which you can then filter for when relaunching aperture to select the same images again.

  • How do I select and move all elements on the stage?

    I know this is probably easy to someone but I have spent too
    much time on it so I give up. Can someone tell me how to select all
    the elements in every frame on the stage and simply move it up?
    Appreciate any feedback!

    Try this: lock the layers you don't want to move. Then click
    that little square under your timeline that says "edit multiple
    frames". Move the markers at the top of the timeline (looks like
    onion skin markers) to your beg & end points that you wish to
    move, then choose, SELECT ALL from your pull down menu, you will
    now see your desired frames highlighted, and move everything at
    once. It's great I've used it several times.
    If you would've moved the layer like suggested above it would
    only place your items higher in the heirarchy which is not what I
    think you were asking. Good luck.

  • How to select and edit all frames in an animation?

    I created a short animation for the first time yesterday, and I ended up drawing a few frames ouside the parameters of the stage. Now I want to adjust the position of the whole composition so that it all fits on the stage. Is there a way, like in photoshop with seperate layers, to select every frame and move them all simultaneously? Thanks.

    Hi
    try to look under the time line u will find some icons
    one of them call
    Edit Multiple Frames
    rollover them and the name will show up

  • Question concerning Selecting and Deselecting Toggle Buttons

    Hello Everyone,
    I am still relatively new to the adobe web suite (still in the trial period in fact). I am working on creating a mock-up of a main web page design to demonstrate and discuss with management. The decision associated with such would determine if we go forward with purchasing adobe products, continuing a redesign of our website among many other things.
    The big issue that I am running into at the moment is creating a series of interactive thumbnails.
    I have the following set up on the page:
    - A section for the actual image (full sized) complete with a title and description provided at the side for one of potentially many topics.
    - Below the topic/image section is a series of thumbnails, which the first one is set for full opacity and marked as selected. (All of these thumbnails are in a Custom Component and break down into a Toggle Button component each, if the image is unselected it remains set at a low opacity)
    - When selecting one of the other thumbnails, I need it to change the image (this part works), select/set the thumbnail to full opacity (this part works as well, given it is a toggle button feature), and lastly unselect the previous thumbnail (causing it to go to a lower opacity, I cannot figure out a way to accomplish this one)
    - In the future I intend to design side bars (left and right) for both thumbnails and the section above (effectively changing the topic to a new one)
    The ultimate idea is to create articles, provided with thumbnails associated to the article at the bottom and to allow clean alternation between the thumbnails, and likewise be able to switch to a new article (with a new set of thumbnails associated to the new article) as well.
    Any help would be greatly appreciated.
    -Steven

    I think I found the solution of my own question. I share it in the hope that it’ll be useful to other people. Remind that I use Cp 6.1.0.319. I modified the project as follows: 1) I unchecked “Visible in output” for the button “Audio Play” (Bt_play) 2) I  modified the AA associated to the audio on/off buttons as descrived below: Action Name: Play Assign cpCmndMute with 0 Show Bt_Stop Enable Bt_Stop Hide Bt_Play Disable    Bt_Play Action Name: Stop Assign cpCmndMute with 1 Show Bt_Play  Enable Bt_Play  Hide Bt_Stop Disable Bt_Stop In this way the two buttons in the same location work well as a real toggle button! Greetings Elena

  • V04 on *EVERY* demand selection and naff all excep...

    I am stunned! The "Overseas Support" inbetween coughing fits was as much use as a chocolate firegaurd.
    To date I have.
    1) Rebooted the BT Vision box 4 times .
    2) Reset the router twice to default original settings
    3) Substituted the direct connection LAN cable from the Box to he Hub.
    4) Rebooted the PC, Hub and Box again
    and *STILL* the same error message on evry selection.
    Try a preview of a film, title says £3.99, try preview and V04.
    Repeat until my finger aches from pressing the remote.
    It's no wonder Virgin are collecting ex BT unhappy customers in droves.
    Recent exchange "Upgrade" has completely FUBARRED the system. Up to that point at least I could get the documentaries on the animals and such like. Since then NOTHING!
    Been with BT for aeons, and now, just when you need to use what you've been paying for since Noah released the animals it don't work !
    Time to move to Virgin, and fast !

    Welcome to the forum we can if you are patient help you get this sorted.
    http://bt.custhelp.com/app/answers/detail/a_id/10662/~/error-message%3A-v01,-v03-or-v04
    I take it you have tried everything suggested here?
    This could be a phone line fault.
    Have you spoken to the technical support team rather than just the call centre?
    If all else fails : [email protected]
    email them with a link to this thread and give them your name and account details and they WILL get it sorted for you.
    Life | 1967 Plus Radio | 1000 Classical Hits | Kafka's World
    Someone Solved Your Question?
    Please let other members know by clicking on ’Mark as Accepted Solution’
    Helpful Post?
    If a post has been helpful, say thanks by clicking the ratings star.

  • Selecting and deselecting desktop background images

    Can I select which Apple photos to use when setting desktop background to Change Picture? Put another way, can I deselect pictures I don't want to see? I hoped the "-" box at the bottom of the list would let me deselect folders or even specific images within folders, but it doesn't. I would like to have only the nature pictures in the Change Picture rotation.

    You would have to create your own folder or album with select photos for this type control.
    Use the + sign to add your album.

  • Is there a keyboard shortcut to select and deselect items?

    Using the mouse or trackpad to position the cursor over the checkbox to select dozens of tracks in my library is tedious. Is there a keyboard shortcut that will allow me to use the arrow keys to move up or down to select items?

    Jon,
    On Windows, it's the "/" key. Try Googling "lightroom keyboard shortcuts" and going to the Victoria Bampton site. She has a .pdf file with a complete list.
    Hal

Maybe you are looking for