Make parameter non editable

Hi All,
I have a requirement to make the parameters field non editable as i am displaying default values for that. can any one please help me.
Moderator message : Not enough re-search before posting. Thread locked.
Edited by: Vinod Kumar on Aug 3, 2011 11:42 AM

If you have to make any field non editable
1) you have to disable it either by $FLEX$
2) you have to make it non display
So it will not going to help.
I get your requirement, you want to display some default value and you do not want any user to change it.
Fortunately there is solution to this as follows
First,define one independent valueset with the value you want to display.
Second,add this valueset for that parameter in concurrent program window and give default value as same value.
Now run that program if user will try to change the value he will not be able to do so as there is only one value in independent valueset.
I hope this solves your problem.

Similar Messages

  • How to make fields Non Editable in Web ADI

    Hi All,
    Can you please let me know how we can make fields Non Editable in Web ADI?
    Thanks,
    Anil

    Hi,
    Are you trying to make required parameters readonly and does this variable have different values for each row. If not then I would suggest you use a wrapper for the API and get only parameters that you need from the excel sheet and the use the wrapper to send the other read only values.
    Thanks

  • How to grey out ( make it non editable ) one line in ALV

    hi i am working on a report which is ALV o/p report .the report has some editable and some non editable fields. based on the value of 1 column field i need to make the full line non editable . how is this possible.
    please guide me.
    Thanks,
    Shiva.
    Edited by: Alvaro Tejada Galindo on Mar 19, 2008 5:07 PM

    Hi,
        Try using the structure LVC_S_STYLE.
    Declare a field of type LVC_S_STYLE in ur internal table,
    Now,in ur new PERFORM chk this code:
    ls_stylerow type LVC_S_STYLE.
    LOOP AT it_itab INTO wa_itab.
    IF wa_itab-field1(this will be the field by which u will validate) =  'X'.
    ls_stylerow-fieldname = 'FIELD2' .   "Field which you want to grey
    ls_stylerow-style = cl_gui_alv_grid=>mc_style_disabled.  "set field to disabled
    APPEND ls_stylerow TO wa_itab-field_style.
    MODIFY it_itab FROM wa_itab.
    ENDIF.
    ENDLOOP.

  • When printing a PDF to PDF to make it non editable, it doesn't convert all the pages.

    I have a user who routinely prints PDF's to PDF to make make the document non-editable. The issue is, when we print documents to PDF it will start "converting" the pages and about 5 seconds later a notification comes up saying that it's done. The document then comes up but only a couple of pages are converted.
    The PDF's are typically large and usually contain a mix of landscape pages with stamps and comments. Would flattening the document serve the same purpose as printing a PDF to PDF?
    Thank you

    Thank you for your response. So I navigated to Advanced > Print Production and I see Flattener Preview. When I click on it I get a menu, I select all pages, hit "Ok", it then tells me that it cant be revearsed, I hit "Ok" and nothing happens. Document stays open, no message that it's complete, nothing. Is that how you flatten a document?
    Thanks again.

  • Interaction Record : How to make it non editable based on user status = Complete and on click of  Save

    Hi Guys
    We have a requirement ,where we need to make the interaction record "not editable " when we set the user status to "Complete" and after "Save" button is pressed.
    Please note that we can't make use of status profile settings as we have to enter some information after the status is complete , that means
    after user selects status "Complete" he has to select the value from another drop down and then Save.
    Standard offers such that once the Complete is chosen in dropdown the whole screen is frozen.
    Once he saves it , the document should be locked(read only/non editable)
    Any pointers ?
    We tried "Set_view_Group_Context" and Order_Save BADI and we are not preferring disabling at attribute level as we might add few more attributes later.
    Regards
    Vinayak

    Hello,
    We had a similar requirement.
    The best way we found was to implement the enhancement spot in the beginning of method LOCK_ORDERS of class CL_CRM_METHODS_BTIL. Here, you can prevent the user from editing a business transaction. Be aware this method is called for any BT, so you need to adjust your custom development accordingly.
    Hope this helps.
    Best regards,
    Sylvain AGUETTAZ

  • JTable cannot make cell non-editable

    I have create a JTable using the DefaultTablemodel. I want to make the cells non editable. I have overwritten the method isCellEditable with that shown below but when I double click any cell it still let me edit the cell. Someone please show me what is wrong.
    public boolean isCellEditable(int cellrow, int cellcol)
    return(false);
    // if (cellcol == 0)
    // return(false);
    // else
    // return(true);
    Regards
    pslloo

    Look at the tutorial! This sample works.
    Hope this help.
    import javax.swing.JTable;
    import javax.swing.table.AbstractTableModel;
    import javax.swing.JScrollPane;
    import javax.swing.JFrame;
    import javax.swing.SwingUtilities;
    import javax.swing.JOptionPane;
    import java.awt.*;
    import java.awt.event.*;
    public class TableDemo extends JFrame {
        private boolean DEBUG = true;
        public TableDemo() {
            super("TableDemo");
            MyTableModel myModel = new MyTableModel();
            JTable table = new JTable(myModel);
            table.setPreferredScrollableViewportSize(new Dimension(500, 70));
            //Create the scroll pane and add the table to it.
            JScrollPane scrollPane = new JScrollPane(table);
            //Add the scroll pane to this window.
            getContentPane().add(scrollPane, BorderLayout.CENTER);
            addWindowListener(new WindowAdapter() {
                public void windowClosing(WindowEvent e) {
                    System.exit(0);
        class MyTableModel extends AbstractTableModel {
            final String[] columnNames = {"First Name",
                                          "Last Name",
                                          "Sport",
                                          "# of Years",
                                          "Vegetarian",
                                          "essai"};
            final Object[][] data = {
                {"Mary", "Campione",
                 "Snowboarding", new Integer(5), new Boolean(false), new Integer(3)},
                {"Alison", "Huml",
                 "Rowing", new Integer(3), new Boolean(true), new Integer(3)},
                {"Kathy", "Walrath",
                 "Chasing toddlers", new Integer(2), new Boolean(false), new Integer(3)},
                {"Sharon", "Zakhour",
                 "Speed reading", new Integer(20), new Boolean(true), new Integer(3)},
                {"Angela", "Lih",
                 "Teaching high school", new Integer(4), new Boolean(false), new Integer(3)}
            public int getColumnCount() {
                return columnNames.length;
            public int getRowCount() {
                return data.length;
            public String getColumnName(int col) {
                return columnNames[col];
            public Object getValueAt(int row, int col) {
                return data[row][col];
             * JTable uses this method to determine the default renderer/
             * editor for each cell.  If we didn't implement this method,
             * then the last column would contain text ("true"/"false"),
             * rather than a check box.
            public Class getColumnClass(int c) {
                return getValueAt(0, c).getClass();
             * Don't need to implement this method unless your table's
             * editable.
            public boolean isCellEditable(int row, int col) {
                //Note that the data/cell address is constant,
                //no matter where the cell appears onscreen.
                if (col < 2) {
                    return false;
                } else {
                    return true;
             * Don't need to implement this method unless your table's
             * data can change.
            public void setValueAt(Object value, int row, int col) {
                if (DEBUG) {
                    System.out.println("Setting value at " + row + "," + col
                                       + " to " + value
                                       + " (an instance of "
                                       + value.getClass() + ")");
                if (data[0][col] instanceof Integer                       
                        && !(value instanceof Integer)) {                 
                    //With JFC/Swing 1.1 and JDK 1.2, we need to create   
                    //an Integer from the value; otherwise, the column    
                    //switches to contain Strings.  Starting with v 1.3,  
                    //the table automatically converts value to an Integer,
                    //so you only need the code in the 'else' part of this
                    //'if' block.                                         
                    //XXX: See TableEditDemo.java for a better solution!!!
                    try {
                        data[row][col] = new Integer(value.toString());
                        fireTableCellUpdated(row, col);
                    } catch (NumberFormatException e) {
                        JOptionPane.showMessageDialog(TableDemo.this,
                            "The \"" + getColumnName(col)
                            + "\" column accepts only integer values.");
                } else {
                    data[row][col] = value;
                    fireTableCellUpdated(row, col);
                if (DEBUG) {
                    System.out.println("New value of data:");
                    printDebugData();
            private void printDebugData() {
                int numRows = getRowCount();
                int numCols = getColumnCount();
                for (int i=0; i < numRows; i++) {
                    System.out.print("    row " + i + ":");
                    for (int j=0; j < numCols; j++) {
                        System.out.print("  " + data[i][j]);
                    System.out.println();
                System.out.println("--------------------------");
        public static void main(String[] args) {
            TableDemo frame = new TableDemo();
            frame.pack();
            frame.setVisible(true);
    [\code]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How do I flatten a pdf file to make it non editable

    how do I flatten a pdf doc on my imac. I am trying to save and editable PDF doc to a non editable pdf doc

    Go to '''Tools->Options->Application''', search for '''Adobe Acrobat Document''' and choose '''Always ask''' in the '''Action''' column.
    If you wish to reset all the download actions try the instructions in this article
    [http://kb.mozillazine.org/File_types_and_download_actions#Resetting_download_actions File types and download actions]

  • Make field non editable

    HI,
    I have a field on the form which is a database field and the value is populated by a LOV. The user should not be able to edit the value selected or enter his own values in the field. Basically the field should only be populated by the lov and should not be editable.
    I tried using the SET_ITEM_PROPERTY('XX.XX', UPDATE_ALLOWED, PROPERTY_FALSE); but this only disable update against existing value. If a user selects a new value from LOV that can be edited. Let me know how to solve this.

    Hi,
    If you don't want the user not to edit the field at all, then you can set its INSERT_ALLOWED, UPDATE_ALLOWED properties to FALSE at design time or at run time depends upon the requirement.
    SET_ITEM_PROPERTY('<block_name>.<item_name>', INSERT_ALLOWED,  PROPERTY_FALSE);
    SET_ITEM_PROPERTY('<block_name>.<item_name>', UPDATE_ALLOWED, PROPERTY_FALSE);Or you can set the item as Display Item.
    Regards,
    Manu.
    If my response or the response of another was helpful or Correct, please mark it accordingly

  • How to make fields non editable in MM02

    My user wishes to have access to change only the Bin Location field in MM02. How can we achieve this? or in other words how can we deliver MM02 to user with only the Bin Location field editable.
    My basis guy sees a possibility if we can some how provide the authorization objects of all the fields of MM02.Shall that be a practical approach. if yes, what is the way of finding the authorization objects?
    Regards,
    Alok.

    Create a transaction variant for MM02 --- Tcode to do this is SHDO or SHDS..
    While creating the variant u can check the screen fields of the transaction as Invisible that you want to HIDE ...
    Then Link ur Varient to a new t-code and ask ur users to0 use the Alternate T-code For EX: ZMM02
    I Hope this helps u
    Deepak

  • How to make pdf non editable?

    Hi all,
    I need help of yours for solving the problem.
    My problem is:-
    1.I have used the oledb connection for populating data in the editable form. For one Instance that form needs to be editable and for another instance or another time that form need to be read only. I don't know for doing this is possible or not.
    2. I have used the oledb connection for connection SQL SERVER database. When I open the pdf file after saving from livecycle it shows the message "Connection failed due to Environment is not trusted".
    How to solve this problem??
    Any help and suggestions is appreciable.
    Thank You

    Here is a function that will lock all fields on the form for you. Simply put it in a scripting object and call it (passing in the root node of your form and it will lock everything).
    If you create a script object called myScriptObject then calling this woudl be like this:
    myScriptObject.LockAllFields(form1);
    Function: LockAllFields
    Description: This function will lock all fields.
    IN: The parent subform. It could also be an element that contains subform like form1
    OUT : nothing
    function LockAllFields(myParentObject){
    var allChildElements;
    var intNumElements;
    var currentElement;
    var j;
    //Get all the child nodes of the parent element
    allChildElements = myParentObject.nodes;
    //Total number of element in the object
    intNumElements = allChildElements.length;
    //Loop through all the child elements
    for(j=0; j< intNumElements;j++){
    currentElement = allChildElements.item(j);
    //If the element is another subform we'll recusively call the function again
    if(allChildElements.item(j).className == "subform"){
    LockAllFields(currentElement);
    //If the objects are fields and they are set to mandatory (validate.nullTest) then we will set the border.fill.color - dependant on object type
    else if(currentElement.className == "field"){
    currentElement.access = "readOnly";
    //Check for exclusion groups - Radio Buttons
    else if(currentElement.className == "exclGroup"){
    for(k=0; k< currentElement.nodes.length;k++){
    if(currentElement.nodes.item(k).className == "field"){
    //set the access for the radio buttons individually
    currentElement.access = "readOnly";
    }//end function

  • How To make parameter no edit

    I have a main program that the user selects a collective# and a master Requisition and those two field are passed to my program using a submit with. What I want is on the called selecion screen I don't want the parameters passed in editable but display only.
    Can someone explain how I could do this.
    Will award points as always.
    Thanks
    Richard

    > I have a main program that the user selects a
    > collective# and a master Requisition and those two
    > field are passed to my program using a submit with.
    > What I want is on the called selecion screen I don't
    > want the parameters passed in editable but display
    > only.
    Sorry I may have jumped the gun here, you have a program A which has collective# and a master Requisition as its parameters. Once they enter and press excute, they call another program B to which these two values are passed. This is where I am little confused. Are you or are you not showing the selection screen of the program B? Do you want to show the selection screen B, but want the values to be display only, <b>yet editable</b>?
    Please clarify with example.
    Thanks,
    Srinivas

  • Make Fields Non Editable on Debugger

    Hi..
    Well I have a program which deal with some sensitive data and passwords, I need to restrict users with debugging access from changing field content at runtime (in debugger). Is this possible?
    and also I have a password field, can I make it a password field at debugger? I do not want to show password on debugger.
    Thank you in Advance.
    Isuru

    As already mentioned you can always write the code inside a macro & prevent the developer from debugging it. But the flip side of using macro is "YOU CAN'T DEBUG !!!". Hence no troubleshooting
    Anyways back to your question. You can direct your query to your basis team if they can provide "no change" authorisation while debugging this particular program. Hope you get my point.
    BR,
    Suhas

  • Make Item level field Non-Editable in VA01

    Dear Experts,
            I have a requirment to make ITEM Category field in item level of VA01
            make Non-editable based on the value of Sale order Type in the main screen
      i am using Program MV45AFZZ to make necessary changes i am able change any thing on the header level but i am not geting the control of item level Please suggest me how to change or make fields non-editable in Item level.

    Hi,
    Try writing code in FORM userexit_field_modification.
    *** Lock field pricing date in SO if delivery occured
      IF   screen-name = 'VBAP-PSTYV'  AND
           sy-tcode NE 'VA01' AND l VBAK-AUART EQ 'your document type'.
          screen-input = 0.
      ENDIF.
    ENDFORM.                    "USEREXIT_FIELD_MODIFICATION
    KR Jaideep,

  • Make a filed Non-Editable for specific Users

    Hi Experts
    Any Idea How can I make fields of any Table non-editable for a specific Group of Users.
    My Requirement
    I have 4 fields namely, Customer Name, Address, Pincode,City which at time of creation is open to user but once updated and customer is created,  I need to make it non-editable for a specific Group of user.
    Please advice.
    Regards
    Prashant

    Hello Neethu,
    I just wanted to confirm one of the sentence in the above post.
    I feel that the option 2 can also be achieved (Once record is approved and gone through all processes of WF and saved in MDM.Specific users should not modify the record.)
    For this we need to create validation where we need to mention the User
    Just create a Status field and write an expression as
    IF(STATUS FIELD [RECORD]=STATUS[DONE] AND UPDATED BY="USER NAME",FALSE,TRUE)
    for this the automatic execution type property should be set to error.
    Only difficulty is that we need to mention all the users for whome we want to remove the write access once the record is saved.
    Rgds,
    Prasad.

  • How to make Date fields Editable or Non-Editable based on Call Staus

    Hi,
    We are using CRM2007 Web GUI for Service call creation. We are using date profile to populate the dates. Here my requirement is if call status is 'Call created' then some set of date fields to be appeared in display mode(Non Editable) and some set of date fields to be appeared in change mode(Editable). How to achieve this. Kindly suggest me.
    Regards,
    Steve

    Hello,
    Kindly check the following thread which is giving many solutions for your requirement:
    Re: how to make field non-editable (display mode)
    Kind regards,
    Nicolas Busson.

Maybe you are looking for

  • How do you improve quality of QuickTime movie exported from Flash?

    Hi I have designed a Flash animation for a client who has asked me to also provide it in a format which can be used in a film he wants to produce in Apple Final Cut Pro.  I assumed the best format would be QuickTime but whenever I export the Flash fi

  • Error while opening the Visual composer

    I have downloaded and installed the  following version from sdn. SAPNWCE71TrialSP1Preview_CompEnvServer . When i am trying to open the VC in browser. it is giving the following error while opening. Failed to open the workspace due to the following er

  • Office 2004 could not be opend because you do not have sufficient access...

    I just created a second user acount on my imac. I went to go and open microsoft word. On the folder there was a little red circle with a line it it. I clicked on the folder and got this message. The folder "Microsoft Office 2004" could not be opened

  • Date Problem in CSV 2.0 Format in CCM

    Hii Gurus, I am new to CCM.Here we are using CSV2.0 Format to upload the catalog files.The supplier part no 10-01 becomes 1-Oct when I save my file.There are like 10 supplier part no in the file all are changing to date format.Right now, we are chang

  • Line feed char in Transfer

    Hello, I am opening dataset in text mode and transfering few fields by concatenating with '~', but my next line is added at the end of the first line. I found that the class CL_ABAP_CHAR_UTILITIES is not existing in my system. I tried to add single s