Grey out the input field as soon as check box checks on selection screen!

HI Experts,
In my report selection screen I have input_field1, input_field2, check_box1. Both input fields are mandatory fileds.
My requireemnt is: If user as soon as checks the check_box1, the first input_field1 must go grey out (not allow allow to enter)!
So I have assigned a user command to check box and assigned a modif-ID to the input_field1
and wrote a LOOP AT SCREEN code as below,
PARAMETERS show_all AS CHECKBOX USER-COMMAND flag.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
PARAMETERS: p1 TYPE c LENGTH 10,
            p2 TYPE c LENGTH 10,
            p3 TYPE c LENGTH 10.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.
PARAMETERS: p4 TYPE c LENGTH 10 MODIF ID bl2,
            p5 TYPE c LENGTH 10 MODIF ID bl2,
            p6 TYPE c LENGTH 10 MODIF ID bl2.
SELECTION-SCREEN END OF BLOCK b2.
AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF show_all <> 'X' AND
       screen-group1 = 'BL2'.
       screen-active = '0'.
    ENDIF.
    MODIFY SCREEN.
  ENDLOOP.
But,am getting an error message saying "Enter all required fields"
Pls. let me know how to fix this?
Thank you

I assume P1, P2 and P3 are marked as obligatory.
You cannot achieve that. But here is an alternative to achieve a similar functionality.
AT SELECTION-SCREEN.
  CHECK sy-ucomm EQ 'ONLI' OR sy-ucomm = 'SJOB' OR sy-ucomm = 'PRIN'.
  IF p1 is INITIAL or P2 is INITIAL or P3 is INITIAL.
    MESSAGE 'Enter all required fields' TYPE 'E'.
  ENDIF.
AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF show_all = 'X' AND
       screen-group1 = 'BL2'.
      screen-input = '0'.
    ENDIF.
    MODIFY SCREEN.
  ENDLOOP.

Similar Messages

  • By default one field should be greyed out( not input field)

    hi all,
    My requirement is
    By default one field should be greyed out( not input field)
    when i click on a check box and press enter this field should be open to put input values.
    can some somebody please give me sample code for both PBO and PAI

    Hi Ram
    In flow logic.
    PBO
    module screen_modify.
    IN main program
    module screen_modify.
    loop at screen.
    if p_cb = space.
    if screen-name = <Name of your screen field>.
    screen-input = 0.
    screen-output = 0.
    modify screen.
    endif.
    endif.
    endloop.
    endmodule.
    P_cb is the checkbox.

  • Greying out the particular field of active group

    hi guru's
    we have requirement of greying out a particular field of active screen group
    say for eg:
    LOOP AT SCREEN.
        if screen-group1 EQ 'PUR' OR screen-group1 EQ 'SAL' OR screen-group1 EQ 'FIN'.
          screen-input = 0.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    AT SELECTION-SCREEN OUTPUT.
      if rb_md EQ 'X'.
        LOOP AT SCREEN.
          if screen-group1 EQ 'PUR' OR screen-group1 EQ 'SAL' OR screen-group1 EQ 'FIN'.
            screen-input = 0.
          ELSEIF screen-group1 EQ 'MAS'.
            screen-input = 1.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ELSEIF rb_td EQ 'X'.
        LOOP AT SCREEN.
          If screen-group1 EQ 'MAS'.
            screen-input = 0.
          Endif.
          MODIFY SCREEN.
        ENDLOOP.
        if rb_pur EQ 'X'.
          LOOP AT SCREEN.
            if screen-group1 EQ 'SAL' OR screen-group1 EQ 'FIN'.
              screen-input = 0.
            ELSEIF screen-group1 EQ 'PUR'.
              screen-input = 1.
            ENDIF.
            MODIFY SCREEN.
          ENDLOOP.
        ELSEif rb_sal EQ 'X'.
          LOOP AT SCREEN.
            if screen-group1 EQ 'PUR' OR screen-group1 EQ 'FIN'.
              screen-input = 0.
            ELSEIF screen-group1 EQ 'SAL'.
              screen-input = 1.
            ENDIF.
            MODIFY SCREEN.
          ENDLOOP.
        ELSEif rb_fin EQ 'X'.
          LOOP AT SCREEN.
            if screen-group1 EQ 'SAL' OR screen-group1 EQ 'PUR'.
              screen-input = 0.
            ELSEIF screen-group1 EQ 'FIN'.
              screen-input = 1.
            ENDIF.
            MODIFY SCREEN.
          ENDLOOP.
        ENDIF.
      ENDIF.
    in the above code
    say for eg: the active group is 'SAL' in which i want to grey out one field say as parameter p_doc as invisible always
    what i need to do
    with regards
    s.janagar

    hi
    may be this code can help you:
    selection-screen begin of block b1 with frame title text-001.
    parameters : p1  radiobutton group r1 default 'X' user-command ac,
                         p2  radiobutton group r1,
    selection-screen end of block b1 .
    selection-screen begin of block b2 with frame title text-002.
    select-options : p_eg for mara-matnr modif id SAL
    parameters : p_doc  like mara-matnr modif id PUR.
    selection-screen end of block b2.
    at selection-screen output.
      if p1 = 'X'.
        loop at screen.
          if screen-group1    = 'SAL'.
            screen-input     = '0'.
            screen-invisible = '1'.
            modify screen.
          endif.
        endloop.
      elseif p2 = 'X'.
        loop at screen.
          if screen-group1    = 'PUR.
            screen-input     = '0'.
            screen-invisible = '1'.
            modify screen.
          endif.
        endloop.
      endif.

  • Grey out the Time field in date assignment block

    Hi All,
        In my project we need to create a date profile in which i need a date rule to get today date and the time should be greyed out. i tried all day event but not working out for Zdate type.  I tried different date types but Time field is not greyed out ( changing time to 00:00 is possible but client needs time to be empty)
    With regards,
    Selvam T

    Hi Selvam,
    as far I understand you want to define a certain date type as read only. There are several different ways to achieve your requirement:
    date profile customizing: you can set the date as read only
    I did not get your requirement of the time field, you can however play around with the following display customizing:
    use BAdI CRM_APPOINTMENT_BADI to influence the appointment set
    enhance the UI component, using the I-getter you can change a field to read only on UI level
    I hope this helps.
    best regards,
    Johannes

  • To find the input fields for the given technichal names .

    Hi ,
    This is for the transaction SU01.
    I have some technichal names for some fields in this transaction,
    CODVN
    BCODE
    GUIFLAG
    LIC_TYPE
    REF_USER.
    I want to find out the input fields in this transaction which correspond to the respective technichal names mentioned above.
    How should i do it?

    Hi,
    Go to SU01 Tcode and press F1 on the fields you get the Pop-up and then click on the Technical Information...you can find the details of the fields,.....

  • 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

  • Grey out the purchase group fields in SRM 7.0 ?

    Hi Experts,
    We have a requirement where in we need to grey out the purchasing group field in the item section of shopping cart screen . we are using SRM 7.0 portal. So that users cannot change the defualt pruchasing group.
    Is there a way where we can make this invisible without making any changes to the standard code.
    We have checked the below path, we are not getting the correct field for purchasing group in that.
    SRM -> SRM Server -> Cross-Application Basic settings -> Extension and Field Control (Personalization) -> Control Actions -> Display Standard Metadata for Actions on Substructure Level Regards
    Any Help in this regard will be highly appreciated.
    Regards
    Venkatesh P

    Hi ,
    Below are the details :
    General Information About the Application and Component
    Application: /SAPSRM/WDA_L_FPM_GAF
    Web Dynpro Component: /SAPSRM/WDC_DODC_SC_I_BD
    Window Information: IV_L_FPC_CA_DETAILS
    View Information: V_DODC_SC_I_BD
    Configuration ID: /SAPSRM/WDCC_FPM_DODC_SC_I_BD_WI
    Information on Field
    Field ID: PURCHASING_GROUP_DROPDOWN
    Type of UI Element: DROPDOWN_BY_IDX
    UI Element Library: STANDARD
    But this field i dint find in that path.
    Regards
    Venkatesh P

  • Clearing the data buffer from the input fields

    Hi,
    I am using an user exit CONFPP02 for the Tcode: co11n. I have written a program such that the confirmation numbers having the status CNF will not be allowed to be processed. The whole confirmation is terminated when the system checks the confirmation number and its status as CNF. If the status of the confirmation number is PCNF, the program allows the further processing of the Tcode Co11n.
    The problem starts when the user enters the PCNF status confirmation number and enters, the system stores the values in the various input fields. Now without exiting the initial confirmation screen, if the user replaces the Confirmation number of the PCNF status to the Confirmation number of the CNF status , the system issues a warning message:"  Confirmation no. or order/sequence/operation has been changed
    However, the input fields still contain default values from thepreceding confirmation". if the user says yes, the program written is bypassed , thus allowing the reconfirmation of the CNF confirmation number  into PCNF confirmation number .
    Can anybody suggest a suitable method to clear the data stored defultly in the input fields so that the program can be made to work.
    With regards,
    Avinash.S
    Mobile no:09996192456

    Hi Gilad,
    I never use Preview and did not use Preview at all before sending the document over to my most recent client either.
    I only opened Preview up this morning after I discovered that all of the form data had disappeared on his end! And the only reason I opened up Preview was because I already knew it looked fine in Acrobat so wanted so wanted to view the form in a different application.
    My client would not even have notified me about it had he not sent the signed form back to me and I saw there was no data there! I then called him and asked him about the missing data and he said that he thought I had simply sent over the form purposely with blank fields:(
    I have just emailed him to ask him what application he opened it up in. My understanding is that he is on Windows because ne mentioned to me his company was using Windows when we last spoke. Perhaps he has a personal Macbook where he opened it? I just don't know and can hopefully soon find out:)
    But THANK YOU for letting me know about that script! I appreciate it:) I have now downloaded and installed it and will just have to use it on ALL of my forms before sending them out:)

  • Grey out the past / greying out the past

    reposted from http://richardmcgregor.wordpress.com/tag/ical/
    "I’m surprised that iCal doesn’t grey out days in the past (or at least give you an option to do this – if there is one I can’t find it!) The typical use case for a calendar is to see what events are coming up in the future, and i don’t think marking today in a different colour is enough. I want to be able to see at a very quick glance where the past ends and where the future begins, and I think greying out past days would be perfect.
    I seem to remember a while back Google Calendar started greying out past events, although I think they should go further and grey out the past days, or at least provide that as an option."

    Dear shahin11,
    Now I wanna achieve the goal with BAdI, but I really have no idea why it couldn't be greyed out in ME51N.
    method IF_EX_ME_PROCESS_REQ_CUST~PROCESS_ITEM.
    INCLUDE MM_MESSAGES_MAC.
    DATA: I_ACT_ITEMS TYPE MEREQ_ITEM.
    FIELD-SYMBOLS :<fs_sakto> type ANY.
    DATA: STR TYPE STRING.
    if I_ACT_ITEMS-MATKL ne 6299 AND SY-TCODE = 'ME51N' AND i_act_items-KNTTP = 'K'.
    STR = '(SAPLMEACCTVI)MEACCT1100-SAKTO'.
    ASSIGN (STR) TO <fs_sakto>.
    IF SY-SUBRC = 0.
    LOOP AT SCREEN.
    IF SCREEN-NAME = <fs_sakto>.
    SCREEN-INPUT = 0.   " grey out field - sakto
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    ENDIF.
    endif.
    endmethod.
    Can you give me a hand?
    Thanks a lot.

  • Want to grey out (Non-editable)  field in Additional Tab in Header of ME21N

    Hi all,
    i've got a requirement to grey out the field(Non Editable) of header tab in ME21N.
    Can anybody tel me the solutions.
    Rgds,
    Spandan

    Question asked again, and again, and again, and again. Search for "grey out" (and please read forum rules as it seems you didn't)

  • How to make the input field of an uplaod button to readonly

    Hi all,
              I have to upload an excel file using upload button.But the problem here is i want the user to use only browse button to upload a file..but he should not enter mannulally in the input field.Is it possible to gray out the input filed but the browse button should be in active state.
    Regards
    Padma N

    Hi,
    I dont think you can make the readonly only for the inputfield which is part of the FileUpload UI.
    I guess your issue is related with user entering invalid urls and system hangs.
    Regards
    Ayyapparaj

  • How to read the input field value into ABAP variable?

    Hi All,
    i need a read the value of an input field into an ABAP variable,and i am doing this in the following way
    lstring = request->get_form_field('myFlag').
    here 'myFlag' is the input field name,but this is not returning me any value into lstring.
    I have gone through the SDN and tried to do this.
    could you please help me out to resolve this issue.
    Thanks in Advance,
    Praveena

    Dear Praveena
    In which event are you putting this code. Place it in oninputprocessing event(Page with flow logic Model of coding). Then it will surely work.
    Regards
    Vijay.M

  • How do i synch my pdf/books to my library. I was able to synch my ipod touch purchases by transferring them but can't figure out how to do my pdfs. Also why is my ipod picture greyed out-the one that lets my move the icons around.

    How do i synch my pdf/books to my Itunes  library. I was able to synch my ipod touch app purchases by transferring them but can't figure out how to do my pdfs. Also why is my ipod picture greyed out-the one that lets my move the icons around.
    I am afraid if i don't get the pdfs into my book library, i will lose them when i update to IOS 5-is that true?

    thank you-i have to check into the authorization and the account-i gave my husband my old ipod when i updated last year so both at one time have been on this computer but as it stands, it only comes up with my device when i plug into Itunes.
    i don't think i have any restrictions for installing apps although my normal way of doing it is to download from the ipod touch. i did find that all i had to do was right click on my device name and got the message to transfer my apps and then they showed up in my library. Also when i clicked the synch checkbox i was able to view the ipod touch picture without it being greyed out. after all that i was able toupdate to IOS 5 successfully except my videos and podcast, and pdfs  did not come over. This confuses me since i had dragged them over to my library to make sure that i had everything in my library and on my device. Not a big problem, since i just dragged them in itunes from my library to my device but sometimes i wonder if i understand the big picture:)

  • How can I grey out the 'Next' button until a user clicks 'Submit'?

    Hi guys,
    despite how I say it or display it in slides, users don't read the instructions before the quiz. This results in them doing the quiz and then asking me why they scored zero when they answered all the questions. So my question is, how can I disable/deactivate/grey-out the Next button until a user clicks Submit after answering the question?
    I've got Captivate 6.1 on a Windows platform.
    Advice appreciated.
    Carl

    Hello Rod,
    thanks for your answer - I should think more laterally in future.
    In my testing, another question has arisen - how do I get the Next button behind the Clear button? It sounds stupid but I can't get the Next button behind the Clear. I go in to the Master Slide, click on Next to highlight it, and then move it either by the mouse or with the arrow button so that it sits under the Clear button. While Next is still highlighted I click on the button in the toolbar 'Send selected objects backward' to be sure, so that I see 'Clear'. When I go back to the Filmstrip, all I see is 'Next' and when I preview the slides all I see is 'Next' - what am I missing here? What have I failed to do? What am I not understanding?
    Advice appreciated.
    Thanks

  • How can we change the input field on a view stop showing zeros

    Hello,
           To make screen look consistent with other character input field. How can we change the input field on the view stop displaying zeros even though the data type is NUMC and data type should not be change?
    Edited by: sap_learner on Mar 25, 2010 5:44 PM
    Edited by: sap_learner on Mar 25, 2010 5:49 PM
    Edited by: sap_learner on Mar 25, 2010 5:55 PM

    hello Manas Dua,
                           Thanks for your help. I am able to resolve my problem.
    My code will help  the future comers to resolve this kind of issues.
    *The code is applied to method WDDOINIT of the default view.
      DATA lo_nd_terms_input    TYPE REF TO if_wd_context_node.
      DATA lo_nd_terms_input_i TYPE REF TO if_wd_context_node_info.
      DATA lv_zeros             TYPE wdy_attribute_format_prop.
      lv_zeros-null_as_blank = 'X'.
      lo_nd_terms_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
      lo_nd_terms_input_i = lo_nd_terms_input->get_node_info( ).
      lo_nd_terms_input_i->set_attribute_format_props(
        EXPORTING
          name              = `ENTER THE ATTRIBUTE NAME`
          format_properties = lv_zeros     ).
    Edited by: sap_learner on Mar 26, 2010 5:02 PM

Maybe you are looking for

  • Restricted KF

    Dear All, I need to create a report and req is like this: b.     Purchase Value (MTD)     c.     Purchase Value (YTD) d.     Purchase Value Lyear (MTD) e.     Purchase Value Lyear (YTD)  f.     Avg. Purchase Price  (Month)    Value / Qty g.     Avg.

  • Why does my MacBook Pro turn off by itself?

    I bought my MacBook Pro 13" on August 26th 2011. Later that day while I was using it, the screen went off and it was silent. I moved the cursor because I thought maybe it went to sleep mode, but it stayed off. I waited a while and then hit a key to t

  • Why FormBuilder add one digit in the Maximum Length of number items...????

    Hi, Why does Form Builder add one digit to the Maximum Length property of number data base block items...???? For example , if a db column is of datatype number(2)... then this item is represented by 3 digits- not 2- in the Maximum Length....This is

  • HT203167 i bought anastacia's "cowboy's & kisses" video from iTunes and now has disappeared off my music library! where did it go?-i paid good money for it!

    i bought anastacia's "cowboy's & kisses" video from itunes and now it is gone, erased from my music library! it's not on the imac, or my ipad! where is it? i paid good money for it! these are tough times i want it back! i'm not going to pay for it ag

  • Intranet with MacBook Pro and iPads

    Hi, I'm not sure if this is the right forum or not, but here is my issue.  I'm trying to set up a simple intranet network hosted on my MacBook Pro running Mountain Lion 10.8.5.  I have created a local web site hosted in the Apache server on the MBP,