To make a field in non editable mode

hi all,
I have a requirement. In which i want a field to be in display mode.
i want the user to select the data into the field only from the f4 option and not to entre manually.
How can i code this. this is a report and not a module pool program.
when i tried at selection screen even and loop at screen and input = 0 then i cant pass the value from f4 into the field.
Kindly suggest.
Regards & thanks
vidhya

Hi VIdya,
use AT SELECTION-SCREEN ON VALUE-REQUEST Event.
in the CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
  EXPORTING
*   DDIC_STRUCTURE         = ' '      " Pass remaining Values as usual !
    retfield               = retfield
*   PVALKEY                = ' '
*   DYNPPROG               = ' '
*   DYNPNR                 = ' '
*   DYNPROFIELD            = ' '
*   STEPL                  = 0
*   WINDOW_TITLE           = WINDOW_TITLE
*   VALUE                  = ' '
*   VALUE_ORG              = 'S'
*   MULTIPLE_CHOICE        = ' '
   DISPLAY                = ' F'  " Here Passing F forces the F4 Help for Display Field.
*   CALLBACK_PROGRAM       = ' '
*   CALLBACK_FORM          = ' '
*   MARK_TAB               = MARK_TAB
* IMPORTING
*   USER_RESET             = USER_RESET
  TABLES
    value_tab              = value_tab
*   FIELD_TAB              = FIELD_TAB
*   RETURN_TAB             = RETURN_TAB
*   DYNPFLD_MAPPING        = DYNPFLD_MAPPING
* EXCEPTIONS
*   PARAMETER_ERROR        = 1
*   NO_VALUES_FOUND        = 2
*   OTHERS                 = 3
Hope this simple advice solves your problem
Cheerz
Ram

Similar Messages

  • 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.

  • 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.

  • 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.

  • How to make the field in no edit mode

    Hi Experts,
    In the selection screen with default value I am giving one date field. But user wants it in NO EDIT mode. only display.. how to do this. pl. give me sample code. Thanks & Rewards.

    hi
    in at selection screen o/p event
    in the screen table
    make its input = 0
    tables : mara.
    SELECT-OPTIONS :  s_matnr for mara-matnr MODIF ID m default 1000 to 1002.
    AT SELECTION-SCREEN OUTPUT.
         loop at screen.
          if screen-group1 = 'M'.
            screen-input = 0.
           modify screen.
          endif.
        endloop.
    reward if helpful
    prasanth

  • 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

  • The note field is in non-editable mode in appraisal document

    Hi all,
    In appraisal document,
    the reviewer can give his comment in the status u201CIn Processu201D and in the Sub Status u201CAnnual Review by Addl Managers/Reviewersu201D in an appraisal document. It is editable when I am trying via web but when I try to upload the comment from backend GUI  ( using phap_admin) the note field is in non-editable mode. My client requires it in editable mode at the back end.
    Can any one help me on thisu2026

    Hello Girish,
    Can you please check the appraisal  template, Proper access has been given to use the note column. If still faces problem can look for the BADI  HRHAP00_COL_ACCESS.
    You can look for the following notes also :
    1554467   column access does not work
    Best Regards,
    Deepak..

  • ALV Grid fields from editable to non-editable mode

    Hi,
    I am displaying my data through ALV Grid. In my grid the non-key fields are in editable mode.
    When I edit any of the editable fields and place the cursor on other field the field which I have edited should become disable(non-editable). Again if I want to edit the same field which is now in non-editable mode should again change to editable mode when the cursor is placed on it.
    Thanks & Regards,
    Adithya M.

    Hi Adithya,
    I am confused by your statement "place the cursor on other field the field which I have edited should become disable" -- are you stating that this is the requirement or what is currently happening with your program.  The way the edit fields should work by default is they are editable at all times unless you tell it otherwise. 
    If you are saying your requirement is to change the field to disabled once the field is edited (runtime change), first you want to handle the event on data changed then within your method of handling on data changed, you can disable the field from being edited by using cell styles and changing the value to disabled. 
    If you look at program BCALV_GRID_EDIT,
    You will find code where it disables the field for edit using Cell Style -- this will give you an idea how Cell Style controls editable fields and display fields:
            ls_cell-style  = cl_gui_alv_grid=>mc_style_enabled.
            ls_cell-maxlen = 4.
            ls_cell-fieldname = 'CARRNAME'.
            append ls_cell to gt_sflight-cell.
    This specific code will set the field disabled when the program is first exectued, in your case if you need to do this at run time, after someone edits the field, you need to implement handling the event on data changed, in the same program you will find:
    method handle_data_changed.                 
       perform data_changed using er_data_changed.
    endmethod.                     
    It is within this method that you can disable a field for editing.
    However, once it is disabled you will not get back into the handle_data_changed method.  I'm not sure I understand your statement "Again if I want to edit the same field which is now in non-editable mode should again change to editable mode when the cursor is placed on it."  Why would you want the user to be able to edit something, then show it disabled, then let them click on it and edit it again?  Why not just leave it in edit mode?  Maybe if I understand the requirement better, I can answer this portion of the question. 
    If this is based on security or changing from edit to display for the entire grid, you can run the same program mentioned above and click on the Change/Display button in the top left to see how it enables and disables the entire grid for editing.
    Cheers,
    Bonnie

  • 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

  • Selection screen in Non-EDIT mode

    Hi all,
    I have a selection screen in which the user wants a field to be in Non-EDIT mode. How to do it?
    PARAMETERS : s_vkorg like vbrk-vkorg default '1000'.
    (The above parameter shud be in non-editable mode) 
    select-options : s_vtweg for vbrk-vtweg.
    select-options : s_spart for vbrk-spart.
    Pls reply.
    Thanks in advance.
    Vijay

    Vijay,
    Use the code below.
    REPORT zscreen.
    TABLES: vbrk.
    SELECT-OPTIONS : s_vtweg FOR vbrk-vtweg MODIF ID mo1.
    SELECT-OPTIONS : s_spart FOR vbrk-spart MODIF ID mo1.
    * At selection Screen Output Event
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-group1 = 'MO1'.
          screen-input = 0.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.

  • Appraisal Document opens in non-editable mode

    The Appraisal cycle is as follows: Appraisee-> Appraiser-> Reviewer
    The appraisal document is flowing correctly as per the status flow and the corresponding participants are able to act on it. But when the Appraisal document reaches the Reviewer, i.e. the last stage, it opens in a non-editable mode. Hence the Reviewer is not able to make any changes in the document. The buttons are also in disabled mode.
    Request you to help me with the same.

    Hi,
    Thanks for your response. Problem solved. The Roles and Element access was fine.
    Needed to set the BSP iView parameter MODE = X
    Now its working fine.
    Sheetal

  • FBL5N - Feild selection non editable mode

    Hi All,
    When i execute FBL5N transaction,i am not able to select the feilds as per my desire bcoz the feild display ICON is in non editable mode.
    The only option i have is layout selection and not the feilds selection.
    Can you let me know how to change it to editable mode.
    regards

    Hello,
    You don't have authorization for maintain ALV layouts. Please contact to your Basis department for authorization.
    ALV layout authorization object is S_ALV_LAYO. Please tell your Basis departman to give this object value for '23'.
    Regards,
    Burak

  • Help Needed---Opening Attachments/Templates of a BP in non-editable mode

    Hi...
    I am new to CRM...
    How do we open a document/Template attached to a BP in non-editable mode in web UI?
    Helpful Answers would be rewarded.
    Thanks
    Swapna

    Hi...
    I am new to CRM...
    How do we open a document/Template attached to a BP in non-editable mode in web UI?
    Helpful Answers would be rewarded.
    Thanks
    Swapna

  • 'Choose function drop-down is coming in non editing mode

    Hi,
       I am trying to create RFC iView.I given function Group asBAPI_BILLINGDOC_GETDETAIL and Function Name: as BILLINGDOC.But once i am selecting the button Find  'Choose function drop-down is coming in non editing mode. Please provide the needful.
    Thanks,
    kundan

    Hi,
    Plz ensure the function group name and funciton module name are correct..
    Drop down will be enabled only after clicking on find button provided by proper details of function group and name

  • Project Definition field to be editable mode.

    Hi Experts,
    we have uploaded the open projects with bdc in to production.
    Project Definition field for all the clients are i  editable mode.
    But only in production client,t only project definition field is display mode. rest of all the fields are in editable mode in the same client.
    we have not mentained any controls for the above.
    thanks for sharing in advance, since it is emergency.
    regards,

    Check field control settings fro Proejct defination filed and infulences.
    With Regards
    Nitin P.

Maybe you are looking for