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.

Similar Messages

  • 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

  • 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

  • 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

  • Number of transactions in the current batch input session ...

    Hi,
    How to control a Number of transactions in the current batch input session ...
    for LSMW.
    Pls help. I'm new to LSMW
    Thanks
    Ram

    > Main idea is to get an idea about the DB
    >
    > currently in the PRD DB auditing is disabled.
    > Im thinking of enabling the DB auditing.
    > Therefore i'm looking to get rough idea about, number of transactions that will occur in the DB
    >
    > audit_sys_operations                 boolean     FALSE
    > audit_trail                                    string      NONE
    >
    > Will enabling auditing, make additional overhead to the database.!
    I see.
    Just my two cents on this:
    - you enable auditing, when there is a requirement for it (business/legal wise), so it isn't really about the technical overhead
    - and of course there is overhead. It's just the question whether or not your users will see a increased response time because of that.
    > how can i check these stats in DB level. (table/view)
    Check V$SYSSTAT and V$SYSMETRIC on Oracle level.
    These should contain the information you like to see.
    (btw: in my first reply I referred to how easy it is to create these statistic information on DB kernel level )
    regards,
    Lars

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

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

  • 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

  • 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

  • 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

  • Grey Out Language Field

    Dear All,
    Is there a way to grey out (disable) the language field in SAPGUI?
    I don't want users to choose there language. I want them to connect whith the language I have set by default for them.
    Many thanks for your help.
    Best Regards
    Edited by: David BROSSEAU on Apr 6, 2010 10:26 AM

    Hi David,
    Sorry, I can´t solve your problem, but maybe you can help me:
    I am looking for a possibility to change exactly this language of the SAP-Gui. We are using the NetWeaver SAPSetup Deployment Tool. Do you have a hint how to set this language?
    kind regards from Austria,
    Andreas Tösch

  • I want the table fields name for the screen fields of transactions lm59

    Hi all
      I am enhancing transactions LM58,LM59and  LM 60
      But in that transactions underthe lable of storage bin , there are 3 input fields . I want to know the exact table fields for those 3 input screen fields .

    Ravi,
    OK.
    You can look to tables EKPO, EKKO for PO-related fields.
    Look to SE84 under   ABAP Dictionary > Fields > Table Fields   - This is search tool for existing names.  Or can create custom Y-   and  Z- fields, data elements, domains to meet your needs.
    Please reward points.

  • I need to grey out the field at 2 locations?

    Hello
    I have page1 and page3 in my_form. Page1 has field with caption 'COUNTRY', Page3 also has the same field (Caption is COUNTRY's NAME), and BINDed with same data source, and the NAME is same in BINDING tab, in both fields NAME is UR_COUNTRY in BINDING tab, fine.
    Requirement is to make it grey out (at 2 locations, its Page 1 and Page 3) and ReadOnly as well, so, i am wring the below Java Script in my_form's docReady event
    my_form.Page1.Address.COUNTRY.access = "readOnly"
    xfa.resolveNode("my_form.Page1.Address.COUNTRY.ui.#textEdit.border.fill.color").value = "192,192,192";
    Its greying out in Page1's COUNTRY field, but NOT greyinh out the Page'3 COUNTRY's NAME field!! not sure why?
    Pls. let me know How can i do it WITH OUT code redenncy (code redenency is not accepting against standards here)?  I do not want to repeate the code again in Page3's COUNTRY's NAME field initialization event
    Thank you

    Hi,
    In your script you are only referencing the object on Page1. If you also want to change the appearance of the object on Page3, then you will need to duplicate the lines and reference that object specifically.
    Also, you can make the fill color script a bit leaner/generic:
    COUNTRY.ui.oneOfChild.border.fill.color.value = "192,192,192";
    Hope that helps,
    Niall

Maybe you are looking for

  • My ipad and iphone doesn't sync google calendar when my mac does

    Hi, since december or so I have been having trouble with my iCalendar. I sync several calendars, one of them is google calendar. This calendar is not visible on my iPad and my iPhone, but it is visible on my Mac. I checked several times if it is mark

  • Apple Mac mini g4 with Apple Pro Keyboard shift key stuck on

    Hey guys, My mac mini g4 with Apple Pro keyboard has it's shift key stuck on and will not disable, this happened after I cleaned the keys with a "magic eraser" and is probably water damage, but when it is plugged into a PC the shift key is off and ca

  • Why don't I get rings around the numbers on my iPod?

    The image on the left is something I pulled off the web, the one on the right from my iPod 5G.  Where are the circles on mine? Is there a way to enable them? I have only seen the circles three times since updating to iOS7.

  • Detailed monitor specs required for lenovo 300 g410

    I've got a Lenovo 300 G410, and I need the monitor specificiations, namely the ranges for the horizontal sync frequency and vertical refresh rate. On a different note, is the Intel Celeron a 32-bit or 64-bit processor?

  • Help req. for IS-T

    Hi all,          My new assignment is come under IS-T (Telecommunication).  I am working as a MM consultant. Can any body give me some idea about IS-T customization path or Tcode or useful link. This there any special setting required for IS-T.