Grey out screen Fields after entering input using F4 help without an enter code

Hi Experts,
We have a requirement where we want the Input field on a dialog box screen to be greyed Out as soon as the user enters an
input in the respective field using F4 help without processing an ok code in PAI .
Hence we want to achieve a secured input feature that prevents user from altering the values coming from check table.
Regards
Kunal

Hello Kunal,
Try below code, it works for me.
TABLES : MARA.
DATA: BEGIN OF IT_MARA OCCURS 0,
MATNR LIKE MARA-MATNR,
END OF IT_MARA.
DATA : IT_RETURN TYPE STANDARD TABLE OF DDSHRETVAL WITH HEADER LINE.
PARAMETERS: p_matnr LIKE mara-matnr.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_matnr.
  SELECT MATNR FROM MARA UP TO 10 ROWS INTO TABLE IT_MARA.
  SORT IT_MARA BY MATNR.
  DELETE ADJACENT DUPLICATES FROM IT_MARA COMPARING MATNR.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      RETFIELD      = 'MATNR'
      DYNPPROG      = SY-REPID
      DYNPNR        = '1000'
      DYNPROFIELD    = 'P_MATNR'
      VALUE_ORG      = 'S'
    TABLES
      VALUE_TAB      = IT_MARA
      RETURN_TAB    = IT_RETURN
    EXCEPTIONS
      PARAMETER_ERROR = 1
      NO_VALUES_FOUND = 2
      OTHERS        = 3.
  IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  LOOP AT SCREEN.
    IF SCREEN-NAME EQ 'P_MATNR'.
    SCREEN-INPUT = '0'.
    MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
Regards,
Thanga

Similar Messages

  • Greyed out screen field in transaction but modifiable by batch input

    Hi Gurus,
    I have a requirement where a custom screen field in a transaction (FK01/FK02/XK01/XK02) has to be greyed out when a user access these transactions. However, these fields will have to be modifiable when LSMW/batch input is being done.
    I hope someone can advise how I can do this.
    I'll definitely reward points for helpful answers.
    Thanks so much.
    Rgds,
    Joyie

    Declare on your layout input is 0. Or the field cannot be filled by value.
    After you have done that, create some code like this:
    Loop at screen.
         IF sy-batch is not initial or sy-binpt is not initial.
                if screen-group1 = 'ANL'
                   screen-input = '1'.
                endif.
            endif.
    endloop.
    Hope it helps solve your problem.

  • How do you grey out/disable fields under a radio button if another radio button is selected in Adobe Acrobat XI Pro?

    How do you grey out/disable fields under a radio button if another radio button is selected in Adobe Acrobat XI Pro?
    I’m creating a form where the user has three options to make a payment.
    1. charge to my credit card
    2. charge associated costs to bank account
    3. By cheque or money order
    My Problem is, under each option, there are required fields that has to be filled out. So if the user picks the first option, charge to my credit card, they would fill out the required fields (credit card number, expiration date etc.). But when they click submit button to submit the form, it won’t let them, because there are required fields under the second option. Also, I have the radio buttons for the three options setup so that if the user holds the shift key and clicks a radio button, it unchecks it. So what I'm trying to do is this: If the user selects the radio button for option 1, the other two options are greyed out/disabled. And if the user holds down the shift key and clicks radio button for option one again, it unchecks the radio button and the other two options are available again. Is there a way to grey out or disable the two other payment options when the other one is picked. I’m assuming I will have to use javascript, but what would the coding be and which field do I write it under?
    Thanks in advance guys

    You will have to use custom JavaScript to access the various properties of the field object.
    The radio button group has a value. When no button is selected that value is "Off". When an individual button has been selected the value for the group will be the option or export value for that individual button.
    Once you have determined the button selected, then you will know the form fields that need to be made required. You use JavaScript to access those fields and change the "read only" property to false, and set the "required" property to true. For the fields associated with the other options, those fields should be reset, made read only, and have the "required" property set to false.
    Disabling (graying-out) Form Fields
    >> Also, I have the radio buttons for the three options setup so that if the user holds the shift key and clicks a radio button, it unchecks it.
    Radio button in a PDF do not work that way. Only check boxes can be unchecked by clicking on one that has been checked.
    If you plan the coding for the Mouse UP action to test for all possible options and code for each of those options you should have what you want.
    If you want actual code you need to provide a lot more details.
    It is even possible to perform some credit card and bank routing number validations with JavaScript and some check digit formulas.

  • Grey Out a Field only when Creating a New Campaign

    Hi ,
    I Have a requirement to Grey out the  Language Field   when Creating a new Campaign.
    The same field should be in editable mode when we go  and edit an existing  Campaign.
    Method GET_I_LANGU.
    if parent_entity->is_changeable( ) = abap_true.
        rv_disabled = 'FALSE'.
      else.
        rv_disabled = 'TRUE'.
      endif.
    endmethod.
    I tried changing the rv_disabled =  'TRUE'.
    But it will grey out  the field even when editing an existing Campaign also.
    Any Suggestions.
    Regards,
    sijo

    Hi,
    At the Left handside there will be Runtime Repository tree u can see the Campaign in the Root Nodes , under go to the relations and u will get the CPGDescriptionRel (Description) as the relation . Get the attribute EXTERNAL_ID from the parent_entity variable in the GET_I_LANGU method.
    data lv_campaign type CRM_MKTPL_CAMPAIGNID.
      CALL METHOD PARENT_ENTITY->IF_BOL_BO_PROPERTY_ACCESS~GET_PROPERTY_AS_VALUE
        EXPORTING
          IV_ATTR_NAME = 'EXTERNAL_ID'
       IMPORTING
    EV_RESULT    =  lv_campaign.
    now make use of the  lv_campaign .

  • ICloud, Settings greyed out - screen that says 'Account not Verified'

    Hello, I upgraded my iPhone with latest OS and didn't setup my iCloud upon activation.  Now when I go to my Settings and go to iCloud, I get a greyed out screen that says 'Account not Verified' 'Check your email for instructions', but none come???  Can someone tell me how to get it activated any other way?

    Hi LindaMurray,
    Thanks for visiting Apple Support Communities.
    You may find this method helpful for verifying your email address:
    Associating and verifying email addresses with your Apple ID
    http://support.apple.com/kb/HE68
    How to verify the primary email address for your Apple ID
    When you first create an Apple ID (using your email address) a verification email will be sent to that address. If you sign in to your Apple ID from the link in that email, the email address will be verified as the primary email address for your Apple ID. You can also resend the email verification if the email address is not verified:
    1. Sign in to My Apple ID to manage your account information.
    2. Click Resend under Primary Email Address.
    3. Verify your changes by following the link in the email you will receive from Apple and signing back in to your account.
    Cheers,
    Jeremy

  • Suppress/Grey out Currency Field in all FI Transactions

    Hello Gurus, My client has all transactions in INR. I need to default INR and suppress/grey out Currency field and translation rate field for all users? I can go to 'Editing Options' and then click 'Documents in Local currency' but then I have to all 900 users which is tedious. Any ideas are welcome
    Ykc

    Hi,
    Hide Currecy field in all FSGs.
    Srinivasa Chary

  • I forgot my passcode.  The Ipod touch is disbled. When I connect to Itune, it asks tp put the passcode but the screen is locked  no inputs.  Any help?

    I forgot my passcode.  The Ipod touch is disbled. When I connect to Itune, it asks tp put the passcode but the screen is locked  no inputs.  Any help?

    You must restore it with iTunes.
    Try placing the iPod Touch into recovery mode.
    http://support.apple.com/kb/HT1808

  • Grey out one field

    Hello Experts,
    I need help and its not urjent,
    i am working on dilog programming i have one screen and on that screen one table cotrol is there and when ever the user scan article all description show on another screen , user scan so may articels in one day but some time it happend user over write on same articel so perviuos article has not showing the details it means it is overwritting prob in screen which user do not want ,
    so pls help me how to grey that field when ever user enter articel number s .
    Thanx in advence.
    Edited by: Rob Burbank on Oct 31, 2009 3:28 PM

    Hi,
    You can Grey out like below.
    <li>Define Columns table based on table control
    CONTROLS TABC TYPE TABLEVIEW USING SCREEN 100.
    DATA: COLS LIKE LINE OF TABC-COLS.
    <li>Write the below code in the PBO of the screen to hide certain fields
    "At runtime as TABC is deep structure which has COLS table
    "inside we have to do the following.
    "Write condition when the articel number should be Grey out.
    IF ITAB-ART_NO = 'S'.
      LOOP AT TABC-COLS INTO COLS.
        IF COLS-SCREEN-NAME = 'ITAB-ART_NO'. &quot;Which is to be hidden
          COLS-SCREEN-INPUT = '0'.
          MODIFY TABC-COLS FROM COLS INDEX SY-TABIX.
        ENDIF.
      ENDLOOP.
    ENDIF.
    <li>Write the above LOOP-ENDLOOP in the pbo of the screen flow.
    Thanks
    Venkat.O

  • Why do I have a grey logon screen now after downloading Yosemite ?

    Hi, sorry if this sounds daft but please could anyone tell me why I no longer have my regular login/start up screen when I turn my macbook pro on ? I used to get a small flower icon with my name underneath it that I just had to enter my password into, now, after installing Yosemite, I am presented with a grey/white screen with a torso silhouette and then my name underneath and then space to enter my password.  If I enter my password it oddly starts a bar system loading with an apple icon above it, it then mostly goes to my desktop ( eventually ) but sometimes goes to the original logon screen where I have to enter my password again ???
    I am not certain that Yosemite has installed correctly? if I click the apple logo and "about this mac" - it says I am running OS X Yosemite 10.10 but in my app store account, the download is not listing as done or even waiting to be done ?
    Does anyone have any ideas please ?
    Many thanks

    Hello Armando
    Check out the article below for troubleshooting your issue with the display. There are a few things that can be done, like changing the resolution of the display and also to reset the NVRAM to see if that resolves that for you.
    Apple computers: Troubleshooting issues with video on internal or external displays
    http://support.apple.com/kb/ht1573
    Regards,
    -Norm G.

  • Grey out custom field in VA02 line item

    Hi,
    We have this custom field in sales line item which we want to grey out after billing is done. I tried many things but it didn't wrk. I wrote simple code w/o checking any billing condition like
             if screen-name = 'VBAP-ZZFIELD'.
                 screen-input = 0.
              endif.
             modify screen.
    but even this didn't wrk. Is there anything due to which the dynamic chging of screen fields attr has no effect ? Like if we set some attribute on screen field or ny thing else.
    Thx.

    You did put the code in MV45AFZZ include, form USEREXIT_FIELD_MODIFICATION?
    For example...
      if sy-tcode eq 'VA01' or
         sy-tcode eq 'VA02'.
      if sy-dynnr = my_screen_no.  "four digit screen no.
    loop at screen.
    case screen-name.
      when 'TABLE-FIELDNAME'   "exactly as it appears on that screen
        screen-input = '0'.
      modify screen.
    endcase.
    endloop.
    endif.
    endif.

  • How to Grey out the field "tracking number" during change mode in the order

    HI Expert,
    How to grey out the Tracking number (AFVGD-BEDNR) at Order -> Operation tab -> external tab ->tracking number.
    during creation IW31 = not grey out and allow entry.
    for change mode IW32 = grey out
    if i set grey out at config OIOPD, it will grey out even during creation mode.
    Please advise
    Thanks
    Regards

    Hi
    I think Using field selection it is not possible to make as display ,kindly check with screen or transaction variant -SHD0
    regards
    thyagarajan

  • Apply and OK buttons greyed out in console after updating custom lists

    Service Manager 2010 SP1
    I updated some custom lists that are used in our incidents and now the OK and Apply buttons are greyed out in the console. It's been years since I built this out and I'm hazy on how it all works. I tried putting everything back the way it was but the buttons
    are still greyed out. Any new incidents created AFTER I made the changes to the lists are working OK.
    Any ideas what happened here?
    Any help appreciated, thanks,
    Dan

    yes, that's usually the reason but as far as I can tell, all of the required fields are filled out and I've even changed each of the fields to see if that would help but it doesn't.
    This only seems to be happening with 20-30 tickets that were created before I changed my lists. Newly created tickets are OK.

  • Grey out / Display  fields in BBPIV02 transaction

    Hi,
    What is best option to grey out/display some fields on Invoice BBPIV02 ?
    Some of fields are from
    1. Header level
    2. Item overview
    3. Item details
    4. Search criteria screen  etc
    Any suggestions???
    Regards,
    Rahul Mandale

    Hi,
       This is the sample code for Bid invitation screen fields:
    *To make the TYPE OF PUBLICATION field under BASIC DATA tab in BI screen as display only
      IF iv_fieldname = 'BBPS_BID_UI_HEADER-BID_TYPE'.
        cv_input_ready = c_space.
      ENDIF.
    *To make the responsible Purchasing organisation field display only
      IF iv_fieldname = 'BBPS_BID_UI_HEADER-PROC_ORG'.
        cv_input_ready = c_space.
      ENDIF.
    *To make the responsible Purchasing Group field display only
      IF iv_fieldname = 'BBPS_BID_UI_HEADER-PROC_GROUP'.
        cv_input_ready = c_space.
      ENDIF.
    *To hide the links for WEIGHTING and ANALYSES
      IF iv_fieldname = 'SB_HWEIGHT'.
        cv_invisible = c_mark.
      ENDIF.
    HTH.
    You can debug at runtime  and see the structures and names for the fields/buttons as per the INVOICE screen.
    BR,
    Disha.
    Pls reward points for useful answers.

  • Select option greyed out for fields of custom DataSource (rso2, rsa6)

    Hi
    Why are several fields, in my custom DataSource (created in rso2) not available for select?
    I do not think this is a permission issue, since several fields are selectable, but not all fields.
    It is not the data type, since I see other custom DataSources that have the same data type, and it is selectable as a select option.
    This is not a DataSource that was provided by SAP, it is completely custom, and uses a custom data definition (defined as a structure via se11), and a custom function.
    I have read the responses to similar questions, but have not found an answer that explains how to make the field selectable for select.
    What determines which fields can be selected for selection, and which fields have this option greyed out (not selectable)?
    I have come across multiple answers, for similar questions, that suggest an abap program to directly update table roosfield.
    Is this safe?
    IF I choose this route will I need to run the update program on production, or will the change it makes to my dataSource transport with my transport?
    (I can test this).
    What I most need to know is If this suggestion is safe, or if it has side effects?
    Thank you

    Hi Eileen,
    In Least case to enable the selection for the fields with the below program:
    Below code is for your reference which will use to unhide objects in RSO2 or RSA6 for Data source( in code for BELNR, KUNNR, VBELN, BUDAT fields are unhiding for 0fi_ar_4 data source selection option) . Still need any clarifications let me know.
    SE38: Create a program for ref below code.
    REPORT ZNP_SELE_DS.
    tables: ROOSFIELD.
    UPDATE ROOSFIELD SET SELECTION = 'P'
    WHERE OLTPSOURCE = '0FI_AR_4' AND   OBJVERS = 'A' AND FIELD = 'BELNR'.
    UPDATE ROOSFIELD SET SELECTION = 'P'
    WHERE OLTPSOURCE = '0FI_AR_4' AND OBJVERS = 'A' AND FIELD = 'KUNNR'.
    UPDATE ROOSFIELD SET SELECTION = 'P'
    WHERE OLTPSOURCE = '0FI_AR_4' AND OBJVERS = 'A' AND FIELD = 'VBELN'.
    UPDATE ROOSFIELD SET SELECTION = 'P'
    WHERE OLTPSOURCE = '0FI_AR_4' AND OBJVERS = 'A' AND FIELD = 'BUDAT'.
    Thanks & Regards,
    Srinu.Rapolu

  • How to Read the Screen Fields after a Transaction ?

    Hi all,
    I am working on the Transaction 'O4K_LICENSE'. After the transaction is run, it generates an Internal License number which is displayed on the screen. I tried using 'GET PARAMETER', but as the CALL TRANSACTION is called within a loop, the SAP Global memory is not getting refreshed and iam getting the same value for every loop for the Internal License Number.
    Is there any function Module other than DYNP_VALUES_READ to get the screen field values? I tried using the above function module, but in vain and it is not getting any values.
    Warm Regards,
    Vijay.

    Well .... let me explain this very clearly.
    The table OIHL has a composite primary key which is the combination of "External License Number" and "Internal License Number". The latter is generated after running the O4K_LICENSE transaction.
    Moreover, iam attaching every record with a record generated in the program. Now, the same User(ERNAM) can create records having the same External License Number.
    For example:
    If i created a record yesterday with an external License Number 123, then say an internal lic no of 3 is assigned to it.
    If i Create another record today with the same external lic no of 123, and an internal no of say 20 is attached to it, then i donot have any criterion to select the one which i have created today, as it fetches both the records.
    To add to the worst, there is no timestamp field also.
    Message was edited by: Vijay Sai

Maybe you are looking for