Editable and non editable issue in ALV OOPS

Hi All,
After giving the input in selection screen when i execute the report program will display the output in ALV OOOps.
Here i need few fields in Editable and some fields are non editbale mode. I can't use Edit  ='X" in fieldcatalog.
I refered few threads in SDN at last  i found the method cl_gui_alv_grid=>mc_style_enabled. using this method also i am not getting. PLz see below sample code.
    gs_celltab-fieldname = 'Z_MESSAGEID'.
    gs_celltab-style = cl_gui_alv_grid=>mc_style_enabled.
     INSERT gs_celltab INTO TABLE gt_celltab.
      gs_final-celltab = gt_celltab.
      APPEND gs_final TO gt_final.
I am passing GT_FINAL to below mthiod.
    CALL METHOD grid->set_table_for_first_display
      EXPORTING
        i_save               = 'A'
       i_default            = 'X'
        is_layout            = gs_layout
        is_variant           = gs_variant
        it_toolbar_excluding = gt_exclud
      CHANGING
        it_fieldcatalog      = gt_fieldcat[]
        it_outtab            = gt_final[].
still inut all fields are in disply mode. Any body can suggest me how to approach.
Regards,
Maheedhar

Here is the sample code.
DATA :PT_CELLTAB Type LVC_T_STYL,
           LS_CELLTAB TYPE LVC_S_STYL,
           L_MODE type RAW4.
  LS_CELLTAB-fieldname = 'KUNRG'.
  LS_CELLTAB-style = cl_gui_alv_grid=>mc_style_disabled.
  Insert LS_CELLTAB Into Table PT_CELLTAB.
  LS_CELLTAB-fieldname = 'KUNNR_AG'.
  LS_CELLTAB-style = cl_gui_alv_grid=>mc_style_enabled.
  Insert LS_CELLTAB Into Table PT_CELLTAB.
Append X_OUTTAB to TB_OUTTAB.
*---Switch edit mode 0 for No-edit 1 for Edit
  CALL METHOD g_grid->set_ready_for_input
    EXPORTING
      i_ready_for_input = 1.
its recommended to use the below events for editable mode to handle changed data
example
handle_data_changed
       FOR EVENT     data_changed OF cl_gui_alv_grid
           IMPORTING e_onf4
                     e_onf4_before
                     e_onf4_after
                     er_data_changed,
Handle data Change Finished
    handle_data_changed_finished
       FOR EVENT data_changed_finished OF cl_gui_alv_grid
           IMPORTING. ...
Edited by: Ashwin Kumar Chitram on Oct 3, 2011 8:06 PM

Similar Messages

  • Sold to party field should be editable and non-Editable for diff sales org

    Hi,
        in creation of SO,i want SP field should be editable for Domestic sales org and Non Editable for Export sales org.
    please help on this.

    Dear Mohanty,
    In sales order, for domestic sles SP is editable - It is Normal process.
    Non Editable for Export sales org.
    In this how user will enter the sold to party while creating sales order.
    And did you create export customer classification in Sales org rather Distribution channel.
    Regards,
    Mani

  • How can we make edit and non edit of rows on particular conditions in alv

    hi experts,
                   i am very new to web dynpro for abap.i have one query regarding alv.
    in one view i have alv table with two line items,and line each line item having foue editable fields and remaining are non editable.
    now i am navigating to another view and make some action.here i have generated one value  and updated this value to one field ofselected  line items of alv table in the previous view.now i am coming back to previous view .now i want to display the row of alv table which contain value which is generated in second view as completely non editable and remaining rows are as it is .
    hi guys please look into this and suggests me.

    Hi babu,
    You can do this in one view it self.
    create a one attribute of type wdy_boolean.. in view context.
    Bind these attribute to read only property of table.. and  initially set the value to abap_true in wddoinit method.
    Then create one button say "EDIT" in view and create action for edit button.. in that action set the above attribute value to
    abap_false.
    so now, initially table will be in display mode, when you click on edit mode...it will become editable mode...
    Hope you got some idea.
    Regards
    Srinvias

  • Make editable and non-editable some cells in ALV OO

    Hello Experts, i have a table like this:
    KUNNR DATE VALUE1
    And a search button that obtains data, and then display the information in the ALV, like this
    KUNNR DATE       VALUE1
    1000     1.1.2009    A
    1001     2.2.2009    B
    Also i have a button that append  an empty line to the ALV
    I want that the kunnr retrieved in the search be non-editable
    But i want that the kunnr cell in the appended line be editable
    How can i do this?
    THANKS!
    Edited by: Mariano Gallicchio on Jun 26, 2009 3:45 PM

    when (sy-ucomm for New row)
    LOOP AT <fcat> into <workarea>
       CASE <workarea>-fieldname.
          WHEN 'KUNNR'.
    * Making a column as Editable
            <workarea>-edit = 'X'.
        ENDCASE.
      ENDLOOP.
    Kanagaraja L
    Edited by: Kanagaraja  Lokanathan on Jun 26, 2009 4:01 PM
    Edited by: Kanagaraja  Lokanathan on Jun 26, 2009 4:02 PM

  • Can a PDF template be created with editable and non-editable areas?

    Hi
    Sorry - probably a bit of a newbie question but i can't find an answer to this anywhere. Hope i'm also posting in the most relevant forum - apologies if i'm not.
    I have been asked by a client if i can create (from an existing illustrator CS4 file) a PDF template with restricted editable areas - two to handle text for email and physical address and one to allow logos to be swapped. All other items and text need to be locked. Is it feasible to create this from the Illustrator file (or InDesign, Acrobat Pro etc) and if so how? and what software would the client need in order to do the edits and then save as a final version for print?
    Hope that makes sense and that someone can help.
    thanks in advance, Tom

    Thanks for the reply Niall.
    I ended up chanigng the numeric field to a decimal field instead, and added the following display pattern: num{zzzz9.99'%'}
    So although the user can't enter a % symbol into the field, a % symbol automaticaly populates when the user enters a number.
    My criteria involved ensuring that a user could not enter a number with more than two numbers after the decimal, so I also set a trailing digits max of 2 (in the Obect > Field settings)
    This is the FormCalc formula I used in the "calculate" event to calculate the salary increase amount request: (DecimalField1 * NumericField2) *.01 + NumericField2
    This formula is meant to calculate the salary amount a manager is requesting their employee's salary be increased to.

  • Editable and Non editable portion in JTextArea

    hi all
    i have following problem:
    in my application i m using JTextArea and JButton when button is clicked some text is added as follows with append method
    textarea.append("darshan");
    textarea.append("\n\n");
    textarea.append("gajjar");
    now i want the text in textarea noneditable (ie 'darshan','gajjar') while other portion is editable (ie '\n\n')
    it means i can enter or change text between two texts 'darshan' and 'gajjar' but i can not edit 'darshan' and 'gajjar'.
    and finally i want to save thest text in a file
    please help me
    thanks
    darshan

    Hi,
    You have to use JEditorPane and linkit with extended HTMLDocument.
    this methods override HTMLDocument methods and make the content between
    to tags (in this example between tag<template>) not editable. There are some bugs to fix here but i hope that this will help.
    kit object is HTMLEditorKit instance of current JEditorPane editor kit.
    public void insertString(int offs, String str, AttributeSet a) throws
          BadLocationException {
        if (kit == null) {
          super.insertString(offs, str, a);
          return;
        if (!canEditTemplate) {
          Element curTag = kit.getCharacterAttributeRun();
          Element parent = curTag.getParentElement();
          try {
            int i = 0;
            for (; i < parent.getElementCount(); i++) {
              if (parent.getElement(i).equals(curTag)) {
                break;
            if (i != 0) {
              Element prev = parent.getElement(i - 1);
              Element next = parent.getElement(i + 1);
              if (prev.getName().equalsIgnoreCase("template") &&
                  next.getName().equalsIgnoreCase("template")) {
                System.out.println("Tempate element not editable");
                return;
          catch (ArrayIndexOutOfBoundsException exxx) {}
          catch (NullPointerException exe) {
            System.out.println("nullPointer in template insert");
        super.insertString(offs, str, a);
      public void remove(int offs,
                         int len) throws BadLocationException {
        if (!canEditTemplate) {
          if (kit == null) {
            super.remove(offs, len);
            return;
          Element curTag = kit.getCharacterAttributeRun();
          Element parent = curTag.getParentElement();
          try {
            int i = 0;
            for (; i < parent.getElementCount(); i++) {
              if (parent.getElement(i).equals(curTag)) {
                break;
            if (i != 0) {
              Element prev = parent.getElement(i - 1);
              Element next = parent.getElement(i + 1);
              if (prev.getName().equalsIgnoreCase("template") &&
                  next.getName().equalsIgnoreCase("template")) {
                System.out.println("Tempate element not editable");
                return;
          catch (ArrayIndexOutOfBoundsException exxx) {}
          catch (NullPointerException exe) {
            System.out.println("nullPointer in template remove");
            return;
        super.remove(offs, len);

  • Size differences between editable and non-ediatble combo boxes

    Hi
    There seem to be some differences between the sizes of editable and non-editable JComboBox.
    I have two combos one editable and one non-editable.Even though all the constraints(except [x, y], of course) are same for both in gridbaglayout, they are displayed in different sizes.
    Why is it so? and what should I do to display them in same size. I dont want to do trial and error.
    Another related question is, how do I set two editable comboboxes to always have same sizes irrespective of the values are added into it. I am asking this question bcos I have observed that sizes differ between combos when values are added during initialization and when values are added at a later time.
    TIA,
    CA

    Maybe something like this:
    myCombo.addItemListener( new ItemListener() {
    public void itemStateChanged( ItemEvent ie )
        JComboBox combo = (JComboBox)ie.getSource();
        ComboValue selection = (ComboValue)combo.getSelectedItem();
        if( combo.getSelectedItem().equals("edit") )
            combo.setEditable( true );
        else
            combo.setEditable( false );
    }}):(untested code)

  • How to make an checkbox editable and uneditable within a single alv output.

    Hi,
    How to make an checkbox editable and uneditable within a single alv output depending on condition.
    I have used Reuse_alv_grid_display.
    In my output every checkbox is editable. i have used edit = 'X'.
    I want editable checkbox for correct value and uneditable checkbox for incorrect value in a single alv

    >
    Mukilansap wrote:
    > I want editable checkbox for correct value and uneditable checkbox for incorrect value in a single alv
    Use alv styles to achieve this, set the style for each record before displaying the ALV. Structure LVC_S_STYL.
    Take a look at the example BCALV_EDIT_02, it is OOPS based, but check how the style table is filled.
    regards,
    Advait

  • Ship to party should be editable and Non-Edutable for Diff sales org.

    Hi,
    When i create SO with Refto QT then i want Sold to Party Field should be Edtable for Domestic sales org and non-editable for Export Sales org.
    so pls help me on the same.

    Hi,
    Hi,
    Go to SE16N >> Put table TPAER
    Tick mark to Maintain entry ( If it is display mode put command &SAP_EDIT and enter)
    Maintain sales document procedure TA and partner function SP and execute
    Then remove X from not changeable column and save
    Note : After this you have to block VOPA - Partner determination other wise some one run this t-code then X indicator is reset automatically as it is defaulted by program.
    Kapil

  • Insert Edit and Overwrite Edit Crashes This One Premiere Project

    Hi All,
    I'm working off of many premiere projects, and one crashes when I use the insert edit and override edit button. At first it was only if I used the keyboard command, but now it happens when using the mouse. I'm afraid the project file is corrupted.
    Has anyone come across this issue? The workarounds I have tried include copying and pasting sequences to a new project, copying contents of a sequence into a new sequence, and importing an XML to a new project (which I thought would work, but I got an error message: Premiere experienced a generic message).
    Any thoughts? I'm kind of stumped and don't want to lose a  few days rebuilding the project file.

    Thanks for the response, Mark. And giving the version makes sense...an obvious oversight on my part
    Anyway, I was running 2014 and I actually ended up uninstalling and then reinstalling. Guessing that I was at 2014.0.0, but now I have 2014.0.1.  Since doing that, I haven't experienced the crashes. And, yes, it was with merged clips.
    HOWEVER, I still can't target audio only and insert/overwrite merged clips without jumping through a couple hoops. Works fine if I'm targeting video only with merged clips, or if I'm targeting audio only with any kind of clip (merged or non-merged). But audio only with merged? No deal.
    In order to make that work, I have to go to the merged clip in the project window, select Modify, and then futz with the the audio channels. See screen shot below. Audio tracks 1 and 2 are from my DSLR. Tracks 3 and 4 are my "good" audio. Is this something that I should need to do for each merged clip to make them work?

  • Difference between Productive edition and Developer edition

    Hi,
    what is the difference between SAP NW CE 7.1 installed in Developer edition and Productive Edition.
    1)If we are planning for a three system landscape like SAP ERP instances with dev-qas and prd which edition
    should we be going ahead with ?
    2) In productive edition, can't we install sap nw developer studio like we can do in developer edition.
    3) In a 3 tier landscape can we have a mix of editions ie DEV with developer edition and PRD in production edition..
    Please reply.
    Regards,
    Sandeep

    Hi,
    The difference is mainly that the productive edition is compliant to the usual SAP system layout(sapmnt/saploc shares, users, groups, etc.) while in the development edition these are skipped. From the functional perspective they should be identical.
    In addition I AFAIK 32 bit windows is generally not supported for production (because of memory management issues) while 64-bit is not supported for development (IDE).
    On your questions:
    1) I guess development for developers, production for the rest.
    2) I don't think the dev studio is supported on 64-bit.
    3) No problem here. However if you're about to need system copy (for example to clone productive system data into dev/qa environment) it will not work for development edition. Have this in mind when you plan your landscape.
    Hope this helps !
    Best regards, dido

  • A series of video files (0001.MTS to 0005.MTS) were imported into premiere, when moved to timeline premiere combined them and made them look like one long clip nmed 0001.MTS. Multiple motion edits and opacity edits were made. When project manager moved th

    A series of video files (0001.MTS to 0005.MTS) were imported into premiere, when moved to timeline premiere combined them and made them look like one long clip named 0001.MTS. Multiple motion edits and opacity edits were made. When project manager moved the project, the actual video content of 0002.MTS to 0005.MTS was missing(source clips are still there but they were playing and working as part of that 0001.MTS timeline clip before). Those parts of the 0001.MTS clip in the timeline were Danger Striped and can be relinked but now have no edits anymore. The edits are apparently only linked with the original 0001.MTS source clip but extend beyond the actual range of the actual source clip. At the time I thought it was weird that premiere displayed the whole string of clips as one (with one name and no breaks) but it all works in the original project file but cannot be transferred to another location without multiple clips showing Danger Stripes.I need to move it and preserve the dozens of motion and opacity edits linked to the apparently oversized timeline clip. HELP!! any ideas?
    I did not nest any clips or sequences, premiere just seemed to combine the clips under one name when I moved them to timeline.
    I am using CS5.

    A series of video files (0001.MTS to 0005.MTS) were imported into premiere, when moved to timeline premiere combined them and made them look like one long clip named 0001.MTS. Multiple motion edits and opacity edits were made. When project manager moved the project, the actual video content of 0002.MTS to 0005.MTS was missing(source clips are still there but they were playing and working as part of that 0001.MTS timeline clip before). Those parts of the 0001.MTS clip in the timeline were Danger Striped and can be relinked but now have no edits anymore. The edits are apparently only linked with the original 0001.MTS source clip but extend beyond the actual range of the actual source clip. At the time I thought it was weird that premiere displayed the whole string of clips as one (with one name and no breaks) but it all works in the original project file but cannot be transferred to another location without multiple clips showing Danger Stripes.I need to move it and preserve the dozens of motion and opacity edits linked to the apparently oversized timeline clip. HELP!! any ideas?
    I did not nest any clips or sequences, premiere just seemed to combine the clips under one name when I moved them to timeline.
    I am using CS5.

  • Difference between standard edition and enterprise edition?

    Is there any document describing the feature differences between Oracle 9i standard edition and enterprise edition?
    Specifically is Oracle Text bundled with the standard edition?
    Thanks a lot
    James

    Hi,
    Check this document:
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=112591.1
    Apart from the features that are present in E.E. and not in S.E., there is little difference (except the license price...).
    Note that some seperately purchased options are only available with E.E., not S.E. (e.g. Partitioning, Enterprise Manager Packs).
    MB

  • What is the difference between 9i standard edition and enterprise edition

    hi,
    who can tell me what is the difference between ora 9i standard edition and enterprise edition?? relevant http links are also appreciated. thank you!
    regards,
    iron teung.

    If your 'professor' really said that then I think you need to find a new college!I agree. 11g is a superset of 9i. In fact,you can tell 11g to run in 9i compatibility mode.
    >
    I firmly believe that you would do well starting with
    9i and then going through the new features with each
    release to 11g.Since 9i is officially about to start it's second year in 'Extended Support' (which, due to the surcharge in support fee, will likely see a drop-off in adoption) I would encourage anyone studying Oracle database to start with 10g.
    But the idea of starting at 9i is not bad.
    >
    'Client' is the software required to
    access/interact/maintain an Oracle database remotely
    from a client machine. Different features become
    available as you progress from Personal to Standard
    to Enterprise editions. They are cost related to
    whichever license you buy in a production environment.One point of confusion is that Personal Edition really is targeted for the Developer and therefore includes all capabilities, features and options of Enterprise Edition turned on and included in the license. (Except RAC and OEM packs) When I draw a picture, I put Personal Edition at the top as most capable.

  • Personal Edition and Enterprise Edition

    What's the difference between personal edition and enterprise Edition? Is there any limitation,especially connection limitation, for the personal edition?
    Of course, price is one of the differences :). But I'm wonderring the difference making the price difference :).
    Thanks

    The differences are explained in this white paper
    http://www.oracle.com/technology/products/database/oracle10g/pdf/twp_general_10gdb_product_family_0104.pdf

Maybe you are looking for