How can I disable input on the ALV gridview?

Hi everybody,
I'm developing an application and would like for my users to be able to view the data in the ALV grid. Actually the only thing they may be able to do are delete rows from the ALV.
I set the ALV grid to editmode so you can insert and delete rows. But  how can I disable the Insert functionality without losing the delete functionality?
Is is possible to just remove or hide the 'add row' button in the toolbar?
Thanks in advance
Regards,
Wouter

Wouter,
It is possible to EXCLUDE buttons from the ALV GRID tool bar.  You didn't mention if you were using OO or not, therefore I will assume you are not.
* In Global Data
data:
  g_exclude                  TYPE slis_t_extab.
* somewhere before you call the FM to display ALV
  PERFORM exclude_icons.
*  You will need to find out the FCODE of your Add Row Icon in the GUI Status being used.
*      Form  exclude_icons
FORM exclude_icons.
  APPEND '&ETA' TO g_exclude.     "Details
*  APPEND '&OUP' TO g_exclude.     "Sort Up
*  APPEND '&ODN' TO g_exclude.     "Sort Down
  APPEND '&ILT' TO g_exclude.     "Set Filter
  APPEND '&UMC' TO g_exclude.     "Sum
*  APPEND '&RNT_PREV' TO g_exclude.     "Print preview
*  APPEND '&VEXCEL' TO g_exclude.     "Excel
*  APPEND '&RNT_PREV' TO g_exclude.     "Word processing
*  APPEND '%PC' TO g_exclude.     "Local File
*  APPEND '%SL' TO g_exclude.     "Mail recepient
  APPEND '&ABC' TO g_exclude.     "ABC Analysis
  APPEND '&GRAPH' TO g_exclude.     "Graphic
*  APPEND '&OL0' TO g_exclude.     "Change layout
*  APPEND '&OAD' TO g_exclude.     "Select layout
*  APPEND '&AVE' TO g_exclude.     "Save Layout
  APPEND '&INFO' TO g_exclude.  "Information
ENDFORM.                    " exclude_icons
* When you execute the FM to display...
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
            i_callback_program = g_repid
            is_layout          = g_layout
            it_sort            = g_sort[]
            it_events          = g_events[]
            it_fieldcat        = g_fieldcat[]
            i_save             = g_save
            it_excluding       = g_exclude  "<== Need this parameter defined to pass
       TABLES
            t_outtab           = it_out
       EXCEPTIONS
            program_error      = 1
            OTHERS             = 2.

Similar Messages

  • How can i disable '+' icon in the toolbar

    Hi,
    I have one requirement i.e i want to disable '+' button[File-->New] in the toolbar.This button creates a record when i click on this.
    My block(Updatable block) should allows updations and insertions so i can't make insert_allowed and update_allowed property to "NO".I tried with
    APP_SPECIAL2.ENABLE('FILE.NEW',PROPERTY_OFF); but the + icon is still enabled when i write above code.
    How can i disable '+' icon in the toolbar
    Thanks in advance,

    This is eBusiness-related, maybe ask your question in the EBusiness-forum, maybe here OA Framework

  • HT201304 how can i disable or remove the private browsing in safari on my childs iphone

    how can i disable or remove the private browsing in safari on my childs iphone

    By voiding your warranty and hacking it. There may be other fixes though. Try resetting network settings in settings>general>reset. If that doesn't work try a hard reset. If that doesn't work then backup, restore as new, then from backup

  • How can I disable (not hide) the Boomarks Toolbar?

    I have installed the "Multirow Bookmarks Toolbar Plus 1.2" extension. In the Firefox customize toolbars box I dragged the Firefox bookmarks toolbar to the right of my home button instead of where it normally is. I then Right-clicked on the toolbar and unticked "Bookmarks Toolbar".
    However whenever I restart Firefox the toolbar re-appears. How can I disable it from appearing?

    My extensions don't work on Firefox 12 so that doesn't help me.
    I should also point out that if I format my hard drive and re-install Windows and Firefox 5 then I don't get this problem but that's a lot of hassle.
    I only get this problem when I install a new version of Firefox when I already have a previous version installed.
    So before installing the new version I uninstalled Firefox and selected the option to delete my settings. I then checked my profile folder to make sure nothing was there. I then reinstalled Firefox again and all the same extensions with the same settings as before and I still get this problem.
    So it's quite disturbing that I deleted all traces of Firefox yet I get this problem again which makes me think that not everything was deleted.

  • How can I disable or remove the meebo bar in safari5.1.7

    How can disable or remove the meebo bar in safari 5.1.7?

    The information in this thread may help:
    https://discussions.apple.com/message/15348397#15348397

  • How can I disable or enable the keyboard and fix mouse's position with LaBVIEW?

    Hi,
    1. I'ld like to disable or enable the keyboard with LabVIEW.
    2. I'ld like to fix the mouse's position with LabVIEW.
    How can I do it?
    Please advise.
    Regards
    Hork

    For the keyboard, you could create a filtering event and discard the key change.
    What do you mean by "fix the mouse position"? Warping or stalling the mouse is very bad UI form., the operator should always be in control of the cursor position. Could you explain what you want to do?
    LabVIEW Champion . Do more with less code and in less time .

  • How can I Disable or Remove the entire Bookmarks Toolbar Feature?

    I really LOVE Firefox. With over thirty years into the desktop computing industry, I can honestly say it's one of the most impressive development efforts I've seen. Thank you, seriously, all of you, everyone who has worked toward creating, maintaining and enabling the presence of this truly wonderful application!
    I have never sought specific help with this one thing, and was just reminded a moment ago, how much better Firefox would be (for me) if I could completely disable/ uninstall the entire Bookmarks Toolbar _feature_. By the time this feature appeared, I had already developed and established my own system for filing bookmarks into a preset folder hierarchy. This works -much- better (for me) and I have no use for the Bookmarks Toolbar. It's always in my way, takes up screen space, and just really annoys the fecal-stuffin's out of me. Kinda reminds me of the -worst- things I remember of M$.
    Once the feature is (somehow) killed, I'd like to then...
    ...Remove that folder from Bookmarks (menu, folder, etc -- all of it), and preferably, prevent it ever reappearing (setting 'lock'?).
    I realize this -might- be something not currently 'doable' by standard means. If that should be the case, can someone forward this message into the 'feature request' queue for me? I truly would appreciate that.
    Thank you in advance, and THANK YOU for Firefox!!!

    Wow, cor-el... Did you -intend- your reply to be inane, inappropriate and completely inapplicable?
    How would that possibly do what I asked?
    You -might- consider '''''reading''''' the question, -=before=- you reply. And it's really okay to NOT REPLY if you just don't know. Just an idea.
    Feel better, real soon.

  • How can I disable software update in the settings of our company iPad?

    Hi, Just need your help guys. How can I disable or hide the software update settings in our company's iPad? Our company don't want to update all the iPad fixed asset to our employee. Thanks.

    There are two files that ought to change when you set your preference:
    "/Users/yourname/Library/Preferences/com.apple.systempreferences.plist"
    "/Users/yourname/Library/Preferences/com.apple.scheduler.plist"
    Try moving both of them out of the prefs folder. Then launch System Preferences and reset your preference to whatever you want (or uncheck the box altogether). See if that works. If it it does you will have to also reset your other System Prefs, since all will be returned to the default. If it doesn't do the trick, you can put the originals back and thus avoid the resetting.
    Francine
    Francine
    Schwieder

  • How can I disable the event sound played when a new window is opened?

    When Firefox starts, or when a new window is opened there is an annoying click.
    How can I disable this?
    The only way I have been able to stop it is by disabling all event sounds from the control panel but I'd rather just disable this particular sound.

    No, it's Windows XP. Hmmm, I don't know! I only started noticing it recently and as far as I remember, the only new add on is NoScript. I found the event that was being triggered (Start Connection) and disabled the sound in Windows. So the problem is solved in that I don't have the annoying sound ... but don't know why it started and hope nothing sinister is going on.

  • HT204053 Hello I found someone using My Apple ID for face time how can I disable it

    Hello I found someone using My Apple ID for face time how can I disable it

    Welcome to the Apple community.
    Change your password..

  • HT3529 How can I deactivate Imessage without the device?

    I recently switched from Iphone to Android.  I cannot receive messages from iphone users because it still send to imessage.  How can I disable Imessage without the device

    Try this:
    Go to: https://supportprofile.apple.com/MySupportProfile.do
    Log in if not already logged in.
    Click on "Edit Products"
    Click on the "X" to the right of the product.
    Click "Unregister"

  • How can I disable the annoying orange outline while I tap a link or a input area?

    i'm a user of Firefox for android. i've found a problem since I update to 16.0.2 and above. every time i tap a link or a input text in the web page, there always shows an annoying orange rectangle outline around the focused link or input area. Moreover, this outline would keep showing while I drag the page and start browsing other parts of the same page. how can I disable the annoying feature?

    This is the default feature of the browser to indicate which element are you on, if you are actually on focus with the input or tapping on the right link.
    Since this is a default feature of the browser, it now depends on the website's developer to override this feature with custom focus styles. Normally, in a browser, you can override this with user styles/scripts but as far as I know, Firefox Android does not support such features.
    However, I found [https://support.mozilla.org/en-US/questions/929362 an article] that states that there is a [https://addons.mozilla.org/en-US/firefox/addon/stylish/ plugin] that is compatible with Firefox Android that handles user styles.

  • How can I disable Firefox from automatically opening on system startup on my Mac - unchecking the "open at login" does not work?

    We have Firefox 10.o on our Macbook Pro OS X 10.5.8. I prefer using Firefox as my browser but my husband prefers Safari for now because of a long history of bookmarks and saved information he doesn't have time to re-do. He is tired of Firefox automatically opening when we start up the laptop, and even when we uncheck the "open at login" it still opens at login every time. He is about to uninstall it because of this. How can we disable? It does NOT show up in our account on the Mac OS as an application that starts at login, so we can't disable it there.

    For those of you running Windows, I found this on another site. (Unfortunately, not before getting totally disgusted and switching to chrome.)
    1. click start (or the windows flag button at the bottom left) 2. in the "search programs and files" or the RUN dialog box, enter "msconfig.exe" or "msconfig". 3. That should open the system configuration program. 4. click the "Startup" tab at the top of the opened program. 5. Under the "startup item" column, look for Mozilla firefox. 6. uncheck that one. 7. Click OK or apply. 8. click "exit without restart". 9. you're good to go.

  • The windows of the Windows bar are already a form of tabs, so I don't need them in Firefox. How can I disable them completely from Firefox 23?

    RE: TABS ARE WINDOWS!
    The Windows bar already functions as a tab bar. Those tabs are called "windows." So, I find Firefox tab windows superfluous. How can I disable them completely from Firefox 23? I don't need what is essentially TWO windows bars covering up the entire width of my widescreen monitor's image! I already have a Windows bar at the bottom of my screen and, if I really wanted to, I could change ITS position to the top of the screen, so that it would LOOK like the Firefox tab windows bar. Firefox TABS are, essentially, a superfluous SECOND WINDOWS BAR.
    Here are my reasons for why I'd rather use Mozilla's Firefox, than Microsoft's Internet Explorer or Google's Chrome. I love and admire Firefox for Mozilla's intent on good security, for Firefox's Personas add-on, and for Firefox's free use of the Ad-Block add-on which, as you know, has the distinct virtue of reducing screen clutter--the last of which is my motive for wanting to get rid of the SUPERFLUOUS Firefox tabs "windows" bar. I am dreadfully sick of companies forcing miscellaneous bars (mostly representing marketing campaigns trying to sell me something) into my browser (and down my throat) every time I download something. (In case you haven't guessed, I am deliberately referring to your Firefox tabs bar as a "Firefox tabs 'windows' bar," because TABS are WINDOWS!)

    Let me clarify even more. The Firefox add-on you mention does not remove "tabs" windows. It only HIDES the "tabs" bar when there is only one "tab" in that window. It DOES NOT end "tabs." It does not turn "tabs" off.
    I know this, because, even with the add-on you recommend, the "tabs" bar often re-appears when I open a link, which--for some unknown reason--Firefox defaults to opening in a second "tab" within the same window, rather than putting it in a new Windows bar window. This, of course, disregards what I want to happen.
    I want to use my Windows bar to control my windows. I do not want my Firefox browser controlling my windows--which it calls "tabs." Can you tell me how to shut off "tabs?"

  • How can I POST data within the same page if I have a A HREF -tag as input?

    How can I POST data within the same page if I have a <A HREF>-tag as input? I want the user to click on a line of text (from a database) and then some data should be posted.

    you can use like this or call javascript fuction and submit the form
    <form method=post action="/mypage">
    cnmsdesign.doc     
    </form>

Maybe you are looking for

  • Open file in PSE 9

    I using Window XP, Microsoft office 2010 and Adobe Photoshop Element 9. The procedure I used: 1 The images made by JPG format loaded from camera to My Picture  - it working fine 2. When i will open same image by Adobe  Photoshop Element 9 appear Note

  • Java.rmi.ConnectException: Connection refuse

    Hi all, I have built a simple RMI client server application.I can run client & server fine locally. However if I test this appplication over the internet, I get this exception on the client: java.rmi.ConnectException: Connection refused to host: 169.

  • Different colors while printing a PDF

    I have a problem while printing my pdf document, that was generated by a mPDF library (php). When printing it in Сhrome browser the colours differ from ones i get from adobe viewer. Can anyone advice on this issue, please? Left is Adobe, right is chr

  • Photo streaming into Aperture

    Hi I have acquired an iphone 5. I have set it up to wirelessly transfer iphone photos to "photostream" in  A3. However I notice that photos I download from my regular camera via a card reader also go through to the Photostream. How can I prevent this

  • Sharing a Skype video call recording via Skype

    [Topic title updated by moderator to be more descriptive. Original topic title was: "video"] While searching the various forums; I was not able to locate an answer to this question:  Can I create a 10 minute video on Skype (classroom prep demo) and t