How can I hide the marker button in an ALV GRID line?

Hi all,
I am switching an old program from ALV LIST to ALV GRID. In the old list, I put a checkbox on each line to abilify the user to mark some lines. However, there are some lines that I don't want the user to select. In the list, I set the field for the box name to "*" (asterisk) and in the list, the checkbox is not input enabled.
Now in the grid, this does not function any more. all lines are markable. How can I deactivate the marker function for some lines?
Greetings
Jörg

Hi,
     use the below snippet in your code
  DATA: ls_celltab TYPE lvc_s_styl.
  REFRESH pt_celltab.
  IF p_mode EQ text-103.
*§2a.Use attribute CL_GUI_ALV_GRID=>MC_STYLE_ENABLED to set a cell
   to status "editable".
    ls_celltab-fieldname = c_character1.
    ls_celltab-style = cl_gui_alv_grid=>mc_style_enabled.
    ls_celltab-style2 = cl_gui_alv_grid=>mc_style_f4.
    INSERT ls_celltab INTO TABLE pt_celltab.
    ls_celltab-fieldname = c_character2.
    ls_celltab-style = cl_gui_alv_grid=>mc_style_enabled.
    ls_celltab-style2 = cl_gui_alv_grid=>mc_style_f4.
    INSERT ls_celltab INTO TABLE pt_celltab.
    ls_celltab-fieldname = c_character3.
    ls_celltab-style = cl_gui_alv_grid=>mc_style_enabled.
    ls_celltab-style2 = cl_gui_alv_grid=>mc_style_f4.
    INSERT ls_celltab INTO TABLE pt_celltab.
    ls_celltab-fieldname = text-107.
    ls_celltab-style = cl_gui_alv_grid=>mc_style_enabled.
    ls_celltab-style2 = cl_gui_alv_grid=>mc_style_f4.
    INSERT ls_celltab INTO TABLE pt_celltab.
    ls_celltab-fieldname = c_selectionid.
    ls_celltab-style = cl_gui_alv_grid=>mc_style_disabled.
    INSERT ls_celltab INTO TABLE pt_celltab.
Regards

Similar Messages

  • How can I get the selected rows from two ALV grids at the same time?

    I have a program that uses two ALV grids in one dialog screen. I'm using the OO ALV model (SALV* classes).
    The user can select any number of rows from each grid. Then, when a toolbar pushbutton is pressed, I'd have to retrieve the selected rows from both grids and start some processing with these rows.
    It is no problem to assign event handlers to both grids, and use the CL_SALV_TABLE->GET_SELECTIONS and CL_SALV_SELECTIONS->GET_SELECTED_ROWS methods to find out which rows were marked by the user. Trouble is, this only works when I raise an event in each grid separately, for instance via an own function that I added to the grid's toolbar. So, I can only see the selected rows of the same grid where such an event was raised.
    If I try to do this in the PBO of the dialog screen (that contains the two grids), the result of CL_SALV_SELECTIONS->GET_SELECTED_ROWS will be empty, as the program does not recognize the marked entries in the grids. Also, an event for grid1 does not see the selected rows from grid2 either.
    As it is right now, I can have an own button in both grid's toolbar, select the rows, click on the extra button in each grid (this will tell me what entries were selected per grid). Then, I'd have to click on a third button (the one in the dialog screen's toolbar), and process the selected rows from both grids.
    How can I select the rows, then click on just one button, and process the marked entries from both grids?
    Is it somehow possible to raise an event belonging to each grid programmatically, so that then the corresponding CL_SALV_SELECTIONS->GET_SELECTED_ROWS will work?
    Thanks.

    Hello Tamas ,
    If I try to do this in the PBO of the dialog screen (that contains the two grids), the result of CL_SALV_SELECTIONS->GET_SELECTED_ROWS will be empty, as the program does not recognize the marked entries in the grids. Also, an event for grid1 does not see the selected rows from grid2 either.--->
    is it possible to  have a check box in each grid  & get the selected lines in PAI of the screen ?
    regards
    prabhu

  • How can you hide a Continue button until all clickboxes are clicked?

    I have seen similar questions to this one, but none seemed to be the exact situation as mine.
    What I have: Several images on a screen.  When a user clicks an image it is replaced with another image.  I am using clickboxes for this task.  I do not wish for them to toggle back and forth. Once they click the original image it should stay changed.
    What I am trying to do: Once a learner clicks all the images (in no particular order) a Continue button appears that allows them to go to the next screen.
    If anyone has some suggestions on this situation please let me know, thanks.

    I cannot log in on the forum for the moment, so will try by answering by
    mail. I was aware of that problem (have presented those solutions so
    often), thought that since you left all images visible once the click box
    was clicked it wouldn't be a problem.
    Two possible solutions:
       1. Easiest one: add a statement in the Always decision that will Hide
       the click box just clicked. It has no sense to click it another time. That
       will mean that you still can do it with a shared action but that shared
       action will have two parameters now, the second one being the click box
       that has to adapted on each application of the shared action.
       2. If you don't want to make the click box hidden (which means at the
       same time disabled), you'll need a user variable for each click box,
       starting with a default value of 0, and toggle it in the Decision 'Always'
       to 1. The second decision will then need a condition that checks the value
       of all the user variables (with AND) and shows the Next button only when
       all variables have the value of 1.
    Sorry, but have to mail, cannot offer a screenshot in that case.
    Lilybiri
    2014-03-13 5:31 GMT+01:00 Joseph_McDonald <[email protected]>:
        Re: How can you hide a Continue button until all clickboxes are
    clicked?  created by Joseph_McDonald<http://forums.adobe.com/people/Joseph_McDonald>in *Advanced
    Adobe Captivate Users* - View the full discussion<http://forums.adobe.com/message/6205043#6205043

  • How can I hide the scroll bar in TextArea?

    How can I hide the scroll bar in TextArea?

    Hi. To remove the horizontal scrollbar you can do this:
    textArea.setWrapText(true);
    To remove the vertical scrollbar you can do this:
    ScrollBar scrollBarv = (ScrollBar)ta.lookup(".scroll-bar:vertical");
    scrollBarv.setDisable(true);  and set the opacity to 0 in the css file:
    //css file
    .text-area .scroll-bar:vertical:disabled {
        -fx-opacity: 0;
    }Here is an example:
    import javafx.application.Application;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.ContextMenu;
    import javafx.scene.control.MenuItem;
    import javafx.scene.control.ScrollBar;
    import javafx.scene.control.TextArea;
    import javafx.scene.input.ContextMenuEvent;
    import javafx.scene.layout.StackPane;
    import javafx.stage.Stage;
    public class TextAreaSample extends Application {
        @Override
        public void start(Stage primaryStage) {
        final TextArea textArea = new TextArea();
            textArea.setWrapText(true);
            StackPane root = new StackPane();
            root.getChildren().add(textArea);
            Scene scene = new Scene(root, 300, 250);
            primaryStage.setScene(scene);
            primaryStage.show();
            scene.getStylesheets().add(getClass().getResource("style.css").toExternalForm());
            ScrollBar scrollBarv = (ScrollBar)textArea.lookup(".scroll-bar:vertical");
            scrollBarv.setDisable(true);
        public static void main(String[] args) {
            launch(args);
    }

  • How can we hide the coloumn in h:datatable

    Hi Friends,
    How can we hide the coloumn in h:datatable. <h:dataTable id="catalogueTable" rows="10" width="100%" binding="#{searchCatalogue.catalogueTable}" value="#{searchCatalogue.screenList}" var="catalogue" >
                                                <h:column >
                                                    <h:selectOneMenu id="searchModes" value="#{catalogue.selectedType}">
                                                        <f:selectItems value="#{catalogue.searchModesList}" />
                                                    </h:selectOneMenu>
                                                </h:column>
                                                <h:column>
                                                    <h:outputLabel value="#{rb.ofthesewords}" />
                                                </h:column>
                                                <h:column>
                                                    <h:inputText id="searchTerm" value="#{catalogue.searchTerm}" style="width:100%" />
                                                </h:column>
                                                <h:column>
                                                    <h:outputLabel value="#{rb.in}" />
                                                </h:column>
                                                <h:column>
                                                    <h:selectOneMenu id="currCustIndx" value="#{catalogue.currCustIndx}" >
                                                        <f:selectItems value="#{catalogue.customIndexList}" />
                                                    </h:selectOneMenu>
                                                </h:column>
                                                <h:column>
                                                    <a4j:commandButton value="+">
                                                        <a4j:support event="onclick" action="#{searchCatalogue.addOneRowAction}" oncomplete="visibleListView()" reRender="catalogueTable,suggMsg" />
                                                    </a4j:commandButton>
                                                </h:column>
                                                <h:column>
                                                    <a4j:commandButton value="-" >
                                                        <a4j:support event="onclick" action="#{searchCatalogue.removeOneRowAction}" oncomplete="visibleListView()" reRender="catalogueTable,suggMsg" />
                                                    </a4j:commandButton>
                                                </h:column>
                                            </h:dataTable> Initially i want to hide the this coloumn
                                                     <h:column>
                                                    <a4j:commandButton value="-" >
                                                        <a4j:support event="onclick" action="#{searchCatalogue.removeOneRowAction}" oncomplete="visibleListView()" reRender="catalogueTable,suggMsg" />
                                                    </a4j:commandButton>
                                                </h:column> so how can i hide this one.
    Edited by: Edukondalu_Avula on Nov 4, 2008 8:33 PM

    at initial time i want to hide that coloumn(+means commandbutton coloumn). when i click + symbol button i want to show the datatable with all the coloumns at this time how can i show the hidden coloumn
    Edited by: Edukondalu_Avula on Nov 5, 2008 12:51 AM

  • How can I hide the class file ??

    Hi !
    I has a question, when i write a program of Java, then use the command "javac" to compiler to class file for other people using, but the class file can be disassembled and convert to source code. How can I hide the class file and let people can not disassemble, or can not see the source code. Thinks

    See these....
    http://www.saffeine.com/
    http://www.jarsafe.com/
    I recently read this. This will help you.
    http://developer.java.sun.com/developer/qow/archive/160/index.jsp
    Enojy....
    Rajesh

  • How can I disable the Voicemail button on an iPhone 4

    How can I disable the Voicemail button on an iPhone 4 or
    if that is not possible can i programme it to dial my own phone rather than my carrier's Voicemail box?

    No, it's not possible to disable that button and no, it's not possible to reprogram it to anything else.

  • How can I remove the Star Button from the Address Bar?

    How can I remove the Star Button from the Address Bar? There's no obvious way of doing it. Is there any about:config value related to it?

    https://addons.mozilla.org/en-US/firefox/addon/no-star-button/

  • How can i hide the menu bar at the bottom of the app in itunes

    how can I hid the bar at the bottom of the App screen in itunes. Where it shows how much audio, app etc space you have left on your device

    Unforrtunately the status bar doesn't make any difference, however I have worked out that the bar does show when I go into full screen. 
    I would have thought it should also work when not in full screen - it certianly used to.

  • How can I hide the password and user name in url???

    Hi experts,
    I'm creating a login page and know I have a problem.
    The Username and password are verified in a Java class, after checking the user and password, the user should be linked to the portal.
    So far everything has worked well.
    But when I call the lin like this
    res.sendRedirect ("/ irj / portal j_user =" + UserN + "& j_password =" + passw);
    then the user name and Pwasswort appears in the url.
    Can someone tell me how can I hide the password and user name???
    It will be very helpful.
    Thank you
    Edited by: Cilvaring on Aug 5, 2011 12:00 PM

    If there is no specific reason that you have to use sendredirect...thne you can try request.forward.....
    RequestDispatcher rd = request.getRequestDispatcher("pathToResource");
      rd.forward(request, response);

  • How can I hide the borders and keep it as an option?

    How can I hide the borders and keep it as an option?  I had someone go into the css I believe, and make it so there were no borders visible on the page (I could see the dotted outline while working on it, but when pushed, it wasn't visible (which is what I wanted).  They called it "noborders."  Since I had to reinstall, it went away.  Help?
    I have Dreamweaver CS5.5

    Try this site:  CSS Border
    Add code then type in a zero. Later add border size you want.
    examples:  border: 0px solid black;
    or
    border: 1px 000000;
    or
         border-top-style: solid; 0px 000000;
         border-right-style: dotted; 0px 000000;
         border-bottom-style: solid; 2px 000000;
         border-left-style: dashed; 1px 000000;

  • Answer: to How can I get the reset button to work.

    How can I get the reset button to work?: Answer
    Thanks to everyone who helped on this. You are awesome. Especially Ned!!  Posted here because I was unable to add more to the existing post.
    Here is the question:
    When you click on the reset button, this error below comes up. If you can't find the button it is the navy colored rectangular thing in the lower left corner of page.
    ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.
        at flash.display::DisplayObjectContainer/removeChild()
        at AddATree2/onReset()
    When you click on the reset button, this error below comes up. If you can't find the button it is the navy colored rectangular thing in the lower left corner of page.
      Here is the answer:
    //when you click the reset button everything is removed from the stage
        //except the star, baclground, and reset button (trees and greeting REMOVED)
        public function onClear(Event:MouseEvent):void
                if (tree3) removeChild(tree3);
                if (tree2) removeChild(tree2);
                if (webText) removeChild(webText);
                if (tree) removeChild(tree);
                clickCount = 0;

    This is the answer to what to put in the onclear function.

  • How can I hide the recipients of a group text message?

    How can I hide the recipients of a group text message?

    This is Illustrator, no matter which version you are using.
    It doesn't work like in other programmes and Illustrator's behaviour is often undesired.
    There is no good trick that I'm aware of to mimic Draw's or Freehand's way to do it.

  • How can I hide the por:8080 on the broswer

    http://www.mydotcom.com:8080/examples/.....jsp
    How can I hide the port 8080, cause this is what shows on the URL.
    thanks

    I have no problem running with tomcat that contain chinese, but when I run the apache which is the same code as the tomcat are running, it cause error 500. I debug it , and found out that it was the chinese that cause the problem. once I took out the chinese, then it works find. Can any one tell me why?
    thanks

  • How can I hide the preview content of the text on ios 5?

    How can I hide the preview content of the text on ios 5?

    one complement. I want to hide it in the popup window.

Maybe you are looking for