Disabling fields(Make the field as non-editable)  in webdynpro ALV

HI All,
I have a requirement in the ABAP webdynpro where I have to disable(Make the field as non-editable) the field(or that ALV cell alone)  in the ALV after the user has inputed in that field.
Is it possible, if yes, could you please give me some sample code , or links to which I can refer to.
Thanks for your help.
Regards,
Subash M

Hi,
Use the following approach :
1. Create an ALV and create an inputfield cell editor for the column that you want to make editable/disable.Refer this tutorial for creating an [Editable ALV|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3133474a-0801-0010-d692-81827814a5a1]
2. Now under the same node create an attribute EDITABLE type boolean and bind this to the readonly property of the input field. Include the following code while creating Input field for binding.
lr_input_field->set_read_only_fieldname( 'EDITABLE' ).
3. Now implement the onDataCheck event or OnCellAction event and pass abap_true to this attibute to make the cell readonly/disable.Refer this tutorial for [Events in ALV|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/bd28494a-0801-0010-45a3-fc359d82d3e8]
Hope this helps.
Regards,
Radhika.

Similar Messages

  • Signing pdf dokuments with the Microsoft Surface pen. How to make the signature a non-editable part of the file?

    Hi!
    I have purchased a Microsoft Surface PRO 3. One main reason for the purchase is to sign pdf´s with the Surface-pen on the screen, save the file and avoid paper-printing the documents. Problem is however that the signature doesnt become a solid part of the document when saving it. This makes the signatures randomly not visible on some apple-produkcts, some printers etc.
    I use only a free-download-version of the Adobe reader.My question is if a pro-version allow me to save the documents with the electronic signatures as a fixed part of the document - like the rest of the pdf-content?
    Regards Trygve Wedset 

    Hi vward26,
    You can use Acrobat to make only part of a PDF document editable.
    Kindly refer this FAQ:http://tv.adobe.com/watch/acrobat-x-tips-tricks/how-to-convert-just-part-of-a-pdf-file/
    Regards,
    Florence

  • How to make a field in non Editable mode

    Hi All:
    Now i created one form through wizard method this consists of following details
    Table name:T1
    Fields:No,Name
    here my requirement is how to make this "No" field in non editable mode after the insertion of the first record.

    You can make it a display item, you can disable the item, or you can set the update property to No. See the set_item_property in the Help documentation.

  • How to made Qty field as non editable in MIRO

    Hi SAP Gurus,
    While Post a Goods Receipt (MIRO) for Receive the Material from Job
    Worker, the Qty of Raw Material which needs to Issue or consume from
    Stock will propose as per PO BOM. The Qty field of Raw Material is in
    Editable Mode. Business wants that Qty Field to be Non-editable and not
    to allow user to Change the Proposed Qty. As per PO BOM and based on
    Material Received from Job Worker, Raw Material has to Issue or Consume
    from Stock. If any Under Consumption or Over Consumption will be
    adjusted thru MB04.
    Pls let me know is there any setting to make Raw Material Qty field as
    non editable.
    Thanks & Regards
    Sathish
    Ph:9940518715

    Hi,
    There is no field selection in MIRO.
    USE SHD0 and create a screen variant
    Thanks & regards,
    Kiran

  • Need to do one field as non editable once a document is moved to 'executed' phase.

    Hi All,
    I have a field called 'comment' in Contract document. And once the document is moved to Executed phase all the fileds becomes non editable. And since 'Comment' is free text my user wants to do it as editable even when the document is in executed phase.The phases include
    1.Draft
    2.Budget Owner Approval
    3.Financial Approval
    4.Procurement Approval
    5.Approved
    6.Digital Signature
    7.Executed
    I tried this both in post phase script as well as pre phase script and found it's not working. Please suggest your ideas. Is there any other place I need to add code.
    Postphase
    if (phase.equals("Executed"))
    logMsg.setLogMessage(" Executed START ");
    Logger.info(logMsg);
    //Changes done by me
    comments = doc.getExtensionField("NON_DIGSIG_COMMENT").get();
    logMsg.setLogMessage(" Comments are " + comments);
    Logger.info(logMsg);
    IapiDocumentLockManager.unlockField(session,doc,"NON_DIGSIG_COMMENT");
    //Changes ended
    parent = doc.getParentIBean();
    if (hasValue(parent))
    // get associated vlv value for phase
    ValueListValueIBeanHomeIfc vlvHome = IBeanHomeLocator.lookup(session, ValueListValueIBeanHomeIfc.sHOME_NAME);
    if (classinfo == 1004)
    {// parent is Master Agreement
    vlvBean = vlvHome.findUniqueByNameType("Executed Agreement",10);
    } // end if classinfo == 1004
    else
    vlvBean = vlvHome.findUniqueByNameType("Executed Agreement",1);
    } // end else
    if (hasValue(vlvBean))
    vlvLocalizedRef = vlvBean.getLocalizedObjectReference();
    // set parent status
    parObjRef = doc.getParentIBean().getObjectReference();
    parentHome = IBeanHomeLocator.lookup(session, parObjRef);
    parentHome.upgradeToEdit(doc.getParentIBean());
    doc.getParentIBean().setStatusRef(vlvLocalizedRef);
    logMsg.setLogMessage(" Parent Status updated to " + vlvLocalizedRef.getDisplayName() + " ");
    Logger.info(logMsg);
    parentHome.save(doc.getParentIBean());
    logMsg.setLogMessage(" Parent saved ");
    Logger.info(logMsg);
    } // end if hasValue(parent)
    logMsg.setLogMessage(" Executive Summary Approval END ");
    Logger.info(logMsg);
    Prephase
    if (hasValue(other_phase) && hasValue(phase) && phase.equals("Approved") && other_phase.equals("Executed"))
            logMsg.setLogMessage("Entering comment block");
            Logger.info(logMsg);
            //Changes by Lakshmi
            comments = doc.getExtensionField("NON_DIGSIG_COMMENT").get();
        logMsg.setLogMessage(" Comments are " + comments);
        Logger.info(logMsg);
        IapiDocumentLockManager.unlockField(session, doc, "NON_DIGSIG_COMMENT");
            if (!bypassCheck)
            ae.chainAtEnd(doc.createApplicationException("NON_DIGSIG", "zclm.contractdocument.advancetoexecutedfromapproved"));
        } // end if (hasValue(other_phase) && hasValue(phase) && phase.equals("Approved") && other_phase.equals("Executed"))
    //Block added my me
        if (hasValue(other_phase) && hasValue(phase) && phase.equals("Digital Signature") && other_phase.equals("Executed"))
            logMsg.setLogMessage("Entering comment block");
            Logger.info(logMsg);
            comments = doc.getExtensionField("NON_DIGSIG_COMMENT").get();
        logMsg.setLogMessage(" Comments are " + comments);
        Logger.info(logMsg);
        IapiDocumentLockManager.unlockField(session, doc, "NON_DIGSIG_COMMENT");

    I agree with the definition of a position - that it's an occurrence of a job in an Organization. And I also couldn't agree with you more: that defintion shouldn't preclude you from moving the position around the company with re-orgs etc.
    Sadly that's a limitation of Oracle HRMS and there is no way to change the Organization of a position. You'll just have to streamline your processes to clone positions instead. Here, Position Copy is your friend:
    *HRMS Manager > Work Structures > Position > Position Copy
    There are also other tools that may help. Check out:
    Need To Change the Organization Associated with a Position [ID 375483.1]
    Does that help?

  • Feature request: make the "transform" dialogs non-modal

    Currently, the transformation dialogs accessible at Object>Transform are modal. I'm talking about "Move…", "Rotate…", "Reflect…", and so forth. These dialogs, when open, lock the user out of any interaction with the artboard other than the "preview" button, until the dialog is closed.
    Even more problematically, they lock the scroll and zoom factor of the current user view, so that there's no way to inspect how a precise numeric adjustment affects a part of the layout outside the current window (or within the current window but very small inside it) without committing the change, inspecting it, and then later undoing if necessary. This creates cycles of tedious user adjustments (especially on small monitors) that really should be possible in one user step, by toggling the preview button on and off, and zooming/scrolling.
    This is contrary to most modern UI design principles, which suggest avoiding modes unless they are truly and meaningfully necessary. I don't think this is one of those cases. Photoshop made dialogs for adjustment layers non-modal with CS4, and while there are issues with the newer interface (see John Nack's Configurator workaround), I think it's a win overall. Illustrator needs to catch up in this regard. I realize there is some pretty serious refactoring involved to do this, but it has to be do-able.
    In the words of Larry Tesler's immortal Subaru license plate: "NO MODES"!

    ...make the "transform" dialogs non-modal...
    What, and bring Illustrator out of the 1980s?! Are you mad, man?
    Just so you know you're not alone; I've been complaining about AI's archaic dependency upon modal dialogs for many years.
    ...I'm fully aware of the Transform panel...observing that there's another way to do it...doesn't really address any of my points here...
    But it's not "another way to do it," because the functionality is not the same. The modal dialogs include crucial functionality that cannot be done in the Transform palette. For example, moving something in terms of distance and direction (diagonally), instead of merely by lame X and Y factors. Or transforming about an off-object center of transformation, rather than merely by the 9-point proxy.
    ...the "preview" isn't updated on keyboard entry, and the "preview" checkbox need to be manually toggled on and off...
    But the preview does refresh (and does not have to be toggled) in response to keyboard entry if that keyboard entry is by the arrow keys. For example: Select something, doubleClick the Scale tool, click your cursor in the Uniform value field, and tap the up/down arrow keys (or press and hold them). The value will increment and the preview will update with each key tap. (Be sure to teach that to your students.)
    That does not, of course, negate the complaint, but it does ameleorate it somewhat. The increments are preset; there are no preference settings for them. (Don't even get me started on preferences that should be doc-specific settings, and vice-versa).
    Nor does the valid point that problematic dialogs abound beyond just those associated with the transform tools, but I do agree with it. For just one of many examples, it's nothing short of idiotic that the Scale fields of Transform Each do not have a uniform scaling lock, and that only percentage fields are provided and no explicit dimension fields. Illustrator is quite saturated with such inconsistencies and half-baked implementations.
    But...you're often arguing with the emotionally attached Illustrator devoted here. So I wouldn't recommend holding your breath. It would probably be more effective teaching Illustrator's shortcomings to your beginning students. Probably one of the easiest ways to explain the problem of modal dialogs is to point out that you can't change the current selection with the dialog open.
    JET

  • Can i make the whole page as editable region

    Hi
    can i make the whole page as editable region to avoid the warning messages appears when a code generated outside te html tag?
    thanks in advance.

    If you make the whole page editable, there would be no reason to use the DW template feature  :-)
    Message was edited by: Murray *ACE*

  • Can i make the database passwords non case-sensitive ??

    Can i make the database passwords non case-sensitive ??

    Yes: set instance parameter SEC_CASE_SENSITIVE_LOGON to FALSE ( http://download.oracle.com/docs/cd/E11882_01/server.112/e17110/initparams220.htm#I1010299).

  • How to make all the rows editable in webdynpro alv output

    Hi,
    How to make all the rows editable in webdynpro alv output.
    Thanks
    Rakshar

    Hi Rakshar,
    Check this wiki:
    http://wiki.sdn.sap.com/wiki/display/WDABAP/HowtoeditconditionallyrowofaALVtableinWebDynprofor+ABAP
    Regards

  • How to make the field as non editable?

    Hi Gurus,
    I have created the WD leave applications which will trigger the BAPI(which returns half of the work structure allocated to the employee leave sickness)value  will be freezed in the input UI element.
    Right now am getting the above said value but UI element is in still editable mode.
    My requirement is once we freezed the value UI element has to be non editable.
    any useful clues will be higly appreciated with higher points...............
    Thanks in Advance,
    Dharani

    hai dharani,
    1.create a context attribute o type boolean and bind it to the ui elements enable property.
    2.use the following code to set the enable to false.
    3.wdContext.currentContextElement().setEnabled(false);
    Any issues let me know.
    Thanks n Regards
    Sharanya.R

  • Making a header field as non editable while creating PO using ME21n

    Hi Friends,
    Could any one tell me the BADI or screen exit to make a header field (for eg: EKGRP - Purchasing Group) as non editable after giving default value to it?
    Thanks in advance,
    Ram

    Hi Ram,
    goto se80 t-code and give 'ME' package, and now see the enhancements available.
    You l get a relavent one, if you go through all those.
    Hope this helps
    Regards,
    Sujatha

  • Fields become non-editable when forwarding X11 session to Windows in Java 7

    I have found what I believe could be a bug in Java 7, and Swing specifically. The scenario in which it occurs is pretty rare, so it's not surprising that I couldn't find anyone posting about experiencing this issue, but it's an issue that happens consistently for our product and our users.
    Steps to reproduce:
    1) Download any Swing-based Java application (for instance, IntelliJ IDEA or SoapUI) on a Linux machine.
    2) SSH into this host machine from a Windows SSH client, using X11 forwarding (you can use this guide to set it up using PuTTy and Xming - http://blog.nth-design.com/2010/05/19/x11-putty-xming/ )
    3) Run the application, and make sure the application is running with JRE7.
    4) Try to edit some different text fields.
    When doing this, certain text fields that are supposed to be editable suddenly become non-editable. This issue does not occur if you repeat the above procedure with JRE6.
    If you need any further assistance in reproducing this issue, let us know.
    Regards,
    Arian Jafari

    pd**** wrote:
    I have the same issue and I can't believe that this isn't the number one topic on every Java forum. GUI applications simply DO NOT WORK on Java 1.7. Absolutely incredible that this bug that will render millions of Java applications unusable has not been fixed.The OP describes a somewhat rare use case (X11 session forwarding), and you turned it into "millions of GUI applications don't work"? I'm confused here.

  • Table control : Need to change Single field as non editable

    Hi Experts,
                    Plz help me out. In a table control there r 7 fields and only one field is editable. When i change the status of a record as delete in tat table control, only the deleted record (all fields)should become non-editable. Is it possible? Pls suggest.
    Regards,
    J. Sriram.

    Hi,
    In PBO of your screen
    you should be using a step loop like this :
    CONTROLS control1 TYPE TABLEVIEW USING SCREEN 100.
    LOOP AT itab WITH CONTROL control1.
    ENDLOOP.
    Where the control1 is the tableview control defined in your program
    and placed on your screen.
    Put a second loop on screen inside this loop ant set the related attribute :
    LOOP AT itab WITH CONTROL control1.
    LOOP AT SCREEN.
    IF SCREEN-NAME = 'COLUMN1'.
    SCREEN-INPUT = 0.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    ENDLOOP.
    So you can set cells editable or non-editable
    and you can filter it which record & which field..

  • Item field to non-editable mode(display mode) in Purchase Order(ME22n).

    Hi SDN,
    Based on the Comany code i need to modify the item level fields like <b>Item, Account Assignment, Material</b> to non-editable mode(display mode) in Purchase Order(ME22n).
    So i modifed in the method MODIFY_SCREEN_TC_LINE of class CL_TABLE_VIEW_MM and set the value L_FIELD_STATUS = *  for the screen filed MEPO1211-EBELP. When i execute, the whole column changed to display mode and the empty rows filled with 0(zero). But i want only grey mode for the line items that are present for that PO but not for the whole column. So can any one guide me to do so. I am using 4.6c.
    Thanks in Advance
    Regards
    Basha

    Hi Ramesh,
    Normally you can change the currency field, after entering information in Data base's table, go to Detail's table and change the rate as you want, then directly choose your PO number.
    so the system accept the rate entered aven though the PO had another rate.
    Regards.

  • Is there a way to make the current row not editable

    Hi, I'm using JDev 11.1.1.2
    In my usecase I have a Form , navigateable with next/previous , and for every row a I have a calculation which makes the row editable or not.
    For now I made it with disabled property on every input component set to some bean property which is calculated every time.
    My question is if there is some general way to make an Entity not updateable ?
    I tried with doDML() ... but the problem there is that this method is not called when switching the current row but rather when commiting. So the user can modified several rows and when pressing commit it will prevent some of the to be committed which would be confusing.
    Is there a method in the ViewObject that i can overwrite which is called every time the current row is changed? So I can see if the row was modified or not.
    Thanks, agruev

    Yes, there is always isAttributeUpdateable() in the ViewRowImpl, which you can override and enable/disable your attributes based on an enabling/disabling condition.
    Here is an example:
    public boolean isAttributeUpdateable(int i) {
    boolean updateable = false; /disable by default all arguments
    // enable, if your condition is met
    if ( meets_your_condition )
    updateable = super.isAttributeUpdateable(i); // let the framework decide based on your declarative settings
    return updateable; // return true/false indicator
    Nick

Maybe you are looking for

  • Incompletion procedure -Sales order Item level.

    Hi I want to add the field "MATERIAL SALES TEXT" in Incompletion procedure -Sales order Item level. The Table that i need to enter in procedure is VBAP. But what should be the "Field Name" and  Screen for creating missing data? Plz Help.... Regards S

  • Splitting photos without creating multiple events.

    Is this possible? I have one event in iPhoto which covers three days. I would like all my photos from this event together but I want each day sectioned off in the same event, not split into multiple events. Highlighting the photos from each day and c

  • PDF forms on Mac machines

    From perusing this forum it appears that PDFs created with FormsCentral will not work correctly using the native Mac viewer. Is there any way to design a PDF form which forces the Mac to open it in Adobe Reader? My users are not very tech savvy and w

  • Transferring Messages and associating with Contact...

    My old phone is a Nokia N70 and I've had my new N95 for about 2 weeks now. I'm trying to transfer the text and multimedia messages from my old phone to my new one, but I am having limited success. If I backup the old phone's messages using PC Suite a

  • Will a WRE54G repeater work with a WRT160N router?

    I'm using a WRT160N router and only getting 2 bars out of 5; fair signal. A friend has offered to sell me a WRE54G range expander. Will a G repeater work with an N router?