REG changing field to Read only

Hi All
   In CO12 screen and goods movement page,I want to change the batch Number field of O/P item with 101 mvt type to Read only.How can i Do that.Please help.
Regards,
PradeepM.
Moderator message: please do some research before asking.
Edited by: Thomas Zloch on Feb 24, 2011 2:10 PM

Hello Asad,
The exporting parameter et_field_attribute contains the information about the attributes of the fields (read-only, hidden, ...) linked to the object key on your sales order.
Field property can be :
A     Not Changeable
B     Not Relevant
C     Mandatory Field
D     No Value Help (F4)
Regards,
frederic

Similar Messages

  • Change field from read only and override calculation based on radio button

    Hi,
    I have a form in which one of the fields has a simple sum calculation and is set to read only so the user can't change it as it sets a print amount as well.
    But if one of the radio buttons is ticked there is a chance that the print amount needs changing but it can be different based on a few other options so I have managed to set the field so the user can edit it depending on an option but the calculation that sets the value overrides what the user enters. I would like to know if it is possible to change this?
    I use
    this.getField("Quantity_Boxes").readonly = false;
    So the user can edit the field when they select the radio button 'yes' under Mesh_b
    and
    this.getField("Quantity_Boxes").readonly = true;
    So the field goes back to read only when the user selects the 'no' under Mesh_b
    and in the Quantity_Boxes field I use:
    Quantity_Curtains / csn
    Just as a simplified division sum with the decimal places set to 0 so a whole number appears.
    csn is just a hidden field that has an amount set depending on the size of curtain.
    Thanks,
    Bruce

    I have found a solution but caused another problem (well more of an irritation than a problem)
    I have made it so the can field throws a dialogue box asking how many of the item fit into a box, the only problem is that the dialogue box will appear more then once.
    For example I have made a new size know as bespoke and when I select that size and hit return the dialogue box pops up which is fine but when the amount of the product is changed it throws the dialogue box again. I guess this is because the calculation has to be run again but is there anyway of stopping this?
    Here is the code I use in the can field which defines how many curtains are in the box and is used to calculate how many labels need printing out.
    if(this.getField("SizeDrop").value=='LG'){
    event.value = "5"
    } else if (this.getField("SizeDrop").value=='ST'){
    event.value = "8"
    } else if (this.getField("SizeDrop").value=='ME'){
    event.value = "10"
    } else if (this.getField("SizeDrop").value=='SM'){
    event.value = "15"
    } else if (this.getField("SizeDrop").value=='BE'){
    var resp = +app.response("Enter the amount of curtains in a box","","1");
    event.value = resp
    } else {
    event.value = " "
    Thanks,
    Bruce
    EDIT:
    I have found that the dialogue box will appear every time something is changed on the form (even while in the editor as well)

  • How to change report region fields in read only mode?

    How to change report region fields in read only mode?
    skud.

    add the following javascript fuction to page header(or Javascript function and variables section)
    function disableItems(pRegionStaticId,pDisableFlag) {
      $('#'+pRegionStaticId).find('[name^=f]').each( function(){ /* matches fxx */
        if( $(this).attr('name').match(/f[0-9][0-9]/) ){
          return $(this);
      }).attr('disabled',pDisableFlag);
    pRegionStaticId is the region's static Id+
    Note that this code specifically disables only application arrays. Disabled items are not available after submission (and hence are different from readonly) . But any page javascript can modify disabled or readonly items(client side), so you must check at the server side to validate the data.
    You can disable items using
    disableItems('MY_REGION_ID' ,true);and enable them by passing false
    disableItems('MY_REGION_ID' ,false);

  • Changing not possible; field is read-only

    Hello,
    I need update Expected Value in Opportunity.
    Expected Value is bound Opportunity.SalesForecast.ExpectedRevenueAmount.content.
    When I try to update in adsl, "Changing not possible; field is read-only" error appears in frontend to the user.
    Thanks!

    Hi Rodrigo Mathias,Not an answer to your post just to share my problem
    Seems Opportunity has a lot of problems. As in my case i am trying to code in BeforeSave method that when ever the opportunity gets create by code i have to poppulate my CUSTOM Invonved Party ( i have created custom party role ).
    And i have passed partykey.partyId.content and RoleCode but when i click on save it gives me the error about Role Category!
    now when debugged that all Parties ( i debugged and checked whole collection) had the Role category every party from that collection had the Role category associated!
    So i tried to add r
    ole category by code! but that is also public write access set as FALSE!
    So finally i again opened the book for clod , and a line is specificaly written that PartyID node will not be used after 1402 there will be separate node PartyNAme where u can pass partyid , name or email!
    but unfortunately that is also not available in the opportunity BO!
    So i am also kind of stuck!
    Btw one thing i would like to mention is when u try to maintain your custom role in opportunity manually it works and data gets saved!
    Regards,
    Dhruvin

  • Fields in read-only mode for BP transaction in upgrade from 4.72 to ECC6.0

    Hello,
    This is regarding the query for BP transaction in upgrade from 4.72 to ECC 6.0.
    While creating BP / Changing BP system is disabling the fields in compnay code & sales area option. There is a SAP not provided 907860; and specified that the proplem is because of the delta customizing.
    All the customization settings are as per the note. And the Synchronization Control is also activated. But still the fields are disabled only.
    I have checked the field settings also in Cross-Application-Components & Logistic-Genral.
    But these are not working for compnay code & sales area data.
    please let me know if anyone has faced this type of problem / found any solution on this.
    Best Regards,
    Shubhada

    SAP IMG  -> Cross Application Components -> Master Data Synchronization  Synchronization Control -> Synchronization Control -> Activate Synchronization options
    This setting allows you to activate synchronization of BP with R/3. Not maintaining the values may result in certain fields being read-only in BP.
    Suggested Values:
    Source Object: BP | Target Object: CUSTOMER | Active Indicator : X
    Source Object: BP | Target Object: VENDOR | Active Indicator : X
    Source Object: CUSTOMER | Target Object: BP | Active Indicator : X
    Source Object: VENDOR | Target Object: BP | Active Indicator : X
    Have you set all of the above settings??
    BHARATH

  • Making a field as read-only using Forms Personalization.

    Hi All,
    I have one requirement.I developed one form which is used to display Customer related Information.Some fields are created under one block and "reason-for-write off amount" field is created under another block.I have created Master-Detail relation for these 2 blocks.If there is any "reason-for-write off amount" is present for queried customers then it shows the "reason-for-write off amount" data.check boxes also created beside customer number field in Master block.If there is no "reason-for-write off amount" for any customer I need to write it and when I click on "submit" button in my form it goes to database.
    Now my requirement is :
    I need to make "reason-for-write off amount" field as read-only and I need to CHECK corresponding Customer "check_box" and make "SUBMIT" button as disable using personalization.
    I wrote code in Personalization as
    Trigger-Event:WHEN-NEW-FORM-INSTANCE
    Condition: :DUMCUST.REASON_FOR_WRITEOFF IS NOT NULL
    Processing mode:BOTH
    Actions:
    object type: ITEM
    Target Object: :DUMCUST.REASON_FOR_WRITEOFF
    Property Name: Enterable
    Value:false
    object type: ITEM
    Target Object:      :XXMCS_CUSTOMER_DETAILS.CUSTOMER_NUMBER_CBX
    Property Name: Value
    Value:1
    object type: ITEM
    Target Object:      :XXMCS_CUSTOMER_DETAILS.SUBMIT
    Property Name: Enabled
    Value:False
    But it is not working..the applied changes are not affected in my form.I tried the above actions with WHEN_NEW_BLOCK_INSTANCE trigger also.I didn't write any validation triggers for these items in my FMB also.
    Could anyone please help me..
    Thanks in Advance.

    in your iterator declare the inputfield with disabled = true .
    p_replacement_bee = cl_htmlb_inputfield=>factory(
                                id        = p_cell_id
                                disabled  = 'true'
                                value     = comments ).
    this will generate the html like below
    <input type="Text"
    class="urEdf2TxtEnbl urEdf2TxtRo urV" autocomplete="off" id="TAB1_1_4" ct="InputField" name="TAB1_1_4" st="r" tp="STRING"
    readonly value="some value" onblur="sapUrMapi_InputField_Blur('TAB1_1_4',event)"
    onkeydown="sapUrMapi_InputField_keydown('TAB1_1_4',event)"
    onkeyup="sapUrMapi_InputField_KeyUp('TAB1_1_4',event)" onfocus="sapUrMapi_InputField_focus('TAB1_1_4',event)">
    now you can use js getElementById as this now has a id attached (TAB1_1_4)

  • Set fields to read-only after addInstance()

    I have this function on my form "add row" which allows user to create a new row to fill in additional fields; when user click submit, the fields of the form will become read-only.
    however after i add another new row into the form, when i click submit that row does not change into read-only.
    this is the code for my add row: Table1.Row1.instanceManager.addInstance();
    and this is the code for my submit button, whereby upon clicking the field becomes read-only
    -----Test.#subform[0].Subform2[1].buttonForm.Submit::click - (JavaScript, client) -----------
    Test.Subform1.IsSubmitted.rawValue = "1"; //submitted ----0 is default
    Test.Subform2.Payee.access = "protected";
    Test.Subform2.Name.access = "protected";
    Test.Subform2.GST.access = "protected";
    Test.Subform2.Amount_GST.access = "protected";
    Test.Subform2.Currency.access = "protected";
    Test.Subform2.Invoice_Date.access = "protected";
    Test.Subform2.Invoice_No.access = "protected";
    Test.Subform2.Company_Code.access = "protected";
    Test.Subform2.Tax_Code.access = "protected";
    Test.Subform2.Payment_Method.access = "protected";
    Test.Subform2.House_Bank.access = "protected";
    Test.Subform2.Description.access = "protected";
    Confirm.presence="visible";
    Edit.presence="visible";
    Submit.presence="invisible";
    Add.presence="invisible";
    Table1.Row1.GL_Account.access = "protected";
    Table1.Row1.DC.access = "protected";
    Table1.Row1.GL_Description.access = "protected";
    Table1.Row1.Amount_exclgst.access = "protected";
    Table1.Row1.Tax_Code.access = "protected";
    Table1.Row1.Fund_Center.access = "protected";
    Table1.Row1.Cost_Center.access = "protected";
    Table1.Row1.Button1.access="protected";
    Test.Subform1.StaticText1.presence="invisible";
    Test.Subform1.Summary.presence="visible";

    Hello,
    Perhaps you could create a trigger for that table that prevents update, delete and even insert of rows before a specified timestamp.
    CREATE OR REPLACE TRIGGER <Triggername>
    BEFORE INSERT OR DELETE OR UPDATE ON <Table>
    FOR EACH ROW
    BEGIN
    IF <RowDate> < <sysdate - <days>> THEN
    Raise_application_error(-20001, 'ROW is in read only range.'
    END;
    null

  • Field is read-only -- Error

    Using ASP vbscript, I created a small query to test one of my
    db connections, requesting three fields from a specified record
    based on URL parameter (this is a different project than my
    previous post) running IIS with an ODBC connection to a local db.
    The ODBC driver is read-only, which is fine, the purpose of this
    project is to display reports, not data entry. Anyway, when I test
    the query in DW CS3, everything is good, I get the results as
    expected. When I upload the page to the remote server and test the
    page I get:
    HTTP 500.100 - Internal Server Error - ASP error
    Internet Information Services
    Technical Information (for support personnel)
    * Error Type:
    Microsoft OLE DB Provider for ODBC Drivers (0x80040E21)
    Field is read-only
    /job_details.asp, line 21
    I am not updating or inserting, so I do not understand this
    error. I also can't find anything on this specific error anywhere.
    Anyone got any ideas about where I should start looking?

    > It is using a DSN. I have never used this particular
    ODBC driver or this
    > type
    > of database before (Omnis), so I don't know if the
    problem was driver
    > specific.
    > All I know is that it works fine if I bypass the
    parameter append.
    >
    > Now if I could just get the connection to work with
    cross-platform
    > servers.
    > In the above example, I put a copy of my datafile on the
    same machine that
    > the
    > web server is running on ... and it's working. But when
    I try to connect
    > to
    > the live db, which resides on a mac osx server I get :
    >
    > Error Type:
    > Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
    > Unable to read disk (bad disk)
    > /job_details.asp, line 16
    >
    > But I can use the same ODBC connection from MSAccess on
    the Windows
    > machine
    > and get query results.
    Normally, I would advise against DSN and recommend an OLEDB
    connection, but
    I've never used that type db, don't know if a string is
    possible.
    www.connectionstrings.com does not show a string for it, so I
    can't help.
    Sorry.

  • Cmp-field is read-only

    Say I have beans A and B where A <- B (unidirectional relationship)
    and A.cmp_A and B.cmr_A point to same db field
    I try this and get exception as below while doing A.setCmp_A()
    javax.ejb.EJBException: When a cmp-field and a cmr-field (relationship) are mapped
    to the same column, the setXXX method for the cmp-field may not be called. The
    cmp-field is read-only.
    the cmp-field and cmr-field are in separate beans.
    F1

    Say I have beans A and B where A <- B (unidirectional relationship)
    and A.cmp_A and B.cmr_A point to same db field
    I try this and get exception as below while doing A.setCmp_A()
    javax.ejb.EJBException: When a cmp-field and a cmr-field (relationship) are mapped
    to the same column, the setXXX method for the cmp-field may not be called. The
    cmp-field is read-only.
    the cmp-field and cmr-field are in separate beans.
    F1

  • Received error message 213:11 upon installation of CS5.1 upgrade in Windows 7, unable to change SLStore to read only as administrator

    Received error message 213:11 upon installation of CS5.1 upgrade from CS2 in Windows 7, unable to change SLStore to read only as administrator as suggested elsewhere. SLSstore reverts to read-only after changing, applying and clicking OK. Same problem after reinstallation.

    Gregconn please see Error "License store does not allow writing" | Install log | CS5, CS5.5 for information on how to resolve error 213:11.

  • How can I have a checkbox that a user checks and populates a field with read only text, then if another checkbox is checked it will allow user text input

    Hi
    How can I have a check box that a user checks and populates a field with read only text, then if another check box is checked it will allow user text input into that same field, her is my javascript
    var a ="Not Applicable"
    if (this.getField("Do").value == "Yes")
    a=""
    if (this.getField("DoNot").value =="Yes")
    a=a + ""
    event.value=a
    say if the "Do" cb is checked, Not Applicable would populate the text field, and if the "DoNot" cb is checked it would allow user input into the same text field, the javascript I have will not allow user input,
    thanks for any help I am new to javascript

    Are these fields mutually exclusive?

  • HOW TO MAKE FIELDS AS READ ONLY IN TABLE MAINTAINANCE

    HI ABAPers,
    HOW TO MAKE SOME FIELDS AS DISPLAY MODE.
    FOR SUPPOSE, THERE ARE 5 FIELDS in SM30.
    AMONG THEM 1 FIELD SHUD BE USED FOR EDITING AND THE OTHER 4 FIELDS SHUD ONLY BE USED FOR DISPLAY PURPOSE
    WHEN EVER I ENTER A VALUE IN THAT 1 PARTICULAR FIELD THEN THE DATA OF THE REMAINING 4 FIELDS SHUD BE DISPLAYED IN THE SAME SCREEN ITSELF.
    HOW CAN IT BE POSSIBLE...
    PLZ HELP.
    THNX IN ADV,
    SP.

    Hello SP,
    You can create a maintenance view for the table & here you can define the maintenance attribute for individual fields.
    For the fields you want to be READ-ONLY pass 'R' to those fields. (It is the 4th column from the left, the one to the immediate left of the Key column).
    Don't change the TMG function group directly. If you regenerate the TMG the changes would be overwritten !
    You can use the Event '01' to fulfill your requirement:
    *&      Form  f_event_01
    *       text
    FORM f_event_01.
      DATA: v_indx TYPE sy-index,
            v_land1 TYPE land1,
            v_name1 TYPE name1.
      FIELD-SYMBOLS: <vendor> TYPE lifnr,
                     <val> TYPE ANY.
      BREAK-POINT.
      "TOTAL contains all data which are read, changed and created in TMG
      LOOP AT total.
        IF <action> = neuer_eintrag " New Entry.
        OR <action> = aendern "Changed entry
        OR <action> = original. "Same as DB
          READ TABLE extract WITH KEY <vim_xtotal_key>.
          IF sy-subrc = 0.
            v_indx = sy-tabix.
          ELSE.
            CLEAR v_indx.
          ENDIF.
          ASSIGN COMPONENT 'LIFNR' OF STRUCTURE total TO <vendor>.
          CHECK sy-subrc = 0.
    *     select data from the LFA1 based on LIFNR
          SELECT SINGLE name1 land1 FROM lfa1
            INTO (v_name1,v_land1)
            WHERE lifnr = <vendor>.
          CHECK sy-subrc = 0.
    *     Populate the hidden fields NAME1 & LAND1
          ASSIGN COMPONENT 'NAME1' OF STRUCTURE total TO <val>.
          CHECK sy-subrc = 0.
          <val> = v_name1.
          ASSIGN COMPONENT 'LAND1' OF STRUCTURE total TO <val>.
          CHECK sy-subrc = 0.
          <val> = v_land1.
          MODIFY total.
          CHECK v_indx GT 0.
          extract = total. "Pass the changes in TOTAL to EXTRACT
          MODIFY extract INDEX v_indx.
        ENDIF.
      ENDLOOP.
      sy-subrc = 0.
    ENDFORM.                                                    "f_event_01
    BR,
    Suhas
    Edited by: Suhas Saha on Aug 16, 2010 11:58 AM

  • How to make the fields dynamic read only in live cycle designer

    hi folks
    I have created a form in Adove livecycle es. Some fields should be read only from the start. So i have set the property .access 'open'. In versions of Adobe 8 this works, but in the latest version  it won't so i think it should be done via another solution. Does anybody know how?
    kind regards,
    Anton Pierhagen

    May be the below code may help.. It loops thru all the pages in the PDF form and make them protected. So the user can not change any value in the form.
    for (var i = 0; i < xfa.host.numPages; i++)
    var oFields = xfa.layout.pageContent(i, "field");
    var nodesLength = oFields.length;
    //set the access type to be protected for all fields
    for (var j = 0; j < nodesLength; j++)
    var oItem = oFields.item(j);
    oItem.access = "protected";
    Thanks
    Srini

  • Resource Initial field is read only

    Hi,
    I'm working with project online/project pro and the (enterprise) user resource initials cannot be changed. It is a read only field for any user in the system.  Any idea on how to set custom initials for enterprise resources???
    Regards,
    Wim 

    Hi Wim,
    Where are you trying to change the user's initials? If you are trying directly in the project resource sheet in MS Project Pro, then it is indeed impossible since it is an enterprise data. It can be changed :
    Either editing the user's information from PWA, server settings, manage users,
    From the resource center, select the resource(s), open it/them in MS Project Pro and update the initials column.
    Note that the second option is more suitable in case you have many users to update.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • How to provide a LINK on normal TEXT field in read only mode

    Hi,
    I have a TEXT item and that is used for only url purpose.
    so a user can enter something like http://www.abc.com in that field.
    So when I am in read only mode for that item, I want a link also on that text..
    how can I do that.
    thanks,
    Deepak

    You could create a pl/sql expression computation on the TEXT item which will convert the value shown for the field to be a HTML link
    '<a href="http:// ' || :PXX_TEXT || '">' || :pXX_TEXT || '</A>';Make the computation conditional using the same condition as is used to render the item as read-only
    varad

Maybe you are looking for