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.

Similar Messages

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

  • 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

  • Grey out a particular row in ALV based on some condition.

    Hi All,
    How can we grey out the particular row in ALV based on some condition( I am using the function modules and not OOPS).
    Regards
    Ramesh.

    Hello Ramesh
    In this case you need to add a specific field to your structure:
    TYPES: BEGIN OF ty_s_outtab.
    INLCUDE TYPE <my table or structure>.
    TYPES: CELLTAB   TYPE lvc_t_styl.  " name is arbitrary but this one is most frequently used
    TYPES: END OF ty_s_outtab.
    DATA: gt_outtab  TYPE STANDARD TABLE OF ty_s_outtab
                                 WITH DEFAULT KEY.
    You can use the fieldcatalog to make an entire column non-editable (LVC_S_FCAT-EDIT = ' ' ).
    However, in case of rows you need to inactivate all cells of this row. For sample coding please refer to thread:
    How to conditionally set ALV field as hotspot
    Regards
      Uwe

  • 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

  • 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

  • How to disable (grey-out) the ticks of a JSlider?

    Hi everyone,
    In my GUI, I have a JSlider that I want to be disabled (greyed out)
    because it should be only actived on my application next version.
    (It is important though to have it to preserve GUI appearence).
    Problem is that I was unable to greyout the ticks even though
    already managed to grey out the slider and the number labels.
    Right now, it is pretty uggly to have a partial disabled slider,
    because due to ticks not being disabled.
    Questions:
    1) Does anyone have an idea of how to do it?
    A small part of my code is shown below:
    JSlider dynSl = new JSlider();
    dynSl.setMajorTickSpacing(1);
    dynSl.setValue(0); //Default
    dynSl.setMaximum(7);
    dynSl.setMinimum(0);
    dynSl.setPaintLabels(true);
    dynSl.setPaintTicks(true);
    dynSl.setFont(new java.awt.Font("Dialog", 0, 9));
    dynSl.setSnapToTicks(true);
    dynSl.setEnabled(false);
    // small code just to put the numbers of the slider smaller
    Enumeration enum = dynSl.getLabelTable().elements();
    while (enum.hasMoreElements()) {
    JLabel elem = (JLabel)enum.nextElement();
    elem.setFont(new Font("Dialog",0,8));
    elem.setEnabled(false);
    2) If not possible, how do I change the colour of a JSlider (including
    the Ticks)?
    My idea is to change Slider's colour to the same grey colour one used
    to disable it, making at the end the slider look as if it was disabled.
    Thanks in advance,
    Jorge

    Hi again,
    Thanks for the help.
    I was trying to avoid not having the ticks at all but it seems to be
    the best choise because I could not solve the problem of greying out
    them.
    I did some more troubleshooting though and for my surprise, if I use
    the same code alone, i.e, a simple frame with just the slider it works
    fine. I even thought that it was related with having Windows LnF as
    opposed to Metal (Java) LnF, but that was not the problem.
    The only thing it comes to mind, is that there may be some problem by including the slider on a GridBagLayout !?!?!?
    Anyway,
    What has no simple solution, solved is! :-)
    Jorge

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

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

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

  • How to assign the Value to the Particular field-Text field

    Hi all,
    My requirement is to call the Web service with input from the ADF page.
    Steps I have done:
    1. I have created a Web service data control based on the WSDL file.
    2. Just drag and drop the Process, It is automatically created the form with the Input fields and then the Process button
    3. When I entered the values and then process button it will pass the values corretly.the web service is invoked correctly with the values entered.
    4. But when I try to assign the value from the some other field that is not working.
    I am assigning the Value to the field by go to the properties of the Particular field value =”CREATE”
    When I do like this that value is showing in the screen. But it will not pass the value to the web service.
    I think the value is only displaying in the screen. Not stored at bindings level. Kindly guide me in this.
    Thanks in Advance
    C.Karukkuvel

    If you want to have the value that is returned displayed in a field that has binding to another item and not the WS result item then the way to do this would be to override the method that is invoked with the button that calls the web service - you then take the result and assign it to the item you want.
    See the way it is done here:
    http://blogs.oracle.com/shay/2009/07/java_class_data_control_and_ad.html
    While this sample uses a simple method it would be basically the same for a Web service.

  • 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 to find out the  particular   form available language?

    hi ,
    how to find out the  particular   form available language?
    pls could u clirify the dought.
    regards
    eswar

    I guess you wrongly closed the thread without any answer.
    utilities --> version, it will give all the list of languages of SAPScript.
    Or goto SE71,
    Press F4, in place of form name and goto unclassified forms, you will see all form names with available languages.
    Regards,
    Sairam

  • How to find out the manditary fields in an IDOC

    Hi,
    How to find out the manditary fields in an IDOC.
    For example MATMAS05 .
    For this 2 segments I want to find out the manditary fields.
    E1MARA
    E1MAKTM

    Hi,
             go to transaction WE30 and give the corresponding IDoc type and enter. Then you will get all segments for that IDoc type then double click on segment. A popup box will come in that it will show a check box whether it is a mandatory segment or not. And segment editor button will give all the field details.
    Regards

Maybe you are looking for

  • Problem with variable in a for loop in a Chessboard project.

    Hi, im having trouble with a chessboard project. I am trying to get the chessboard to be able to increase and decrease in size when the user enters a number. But it seems as if the program is freezing. Here is my code import java.awt.*; import java.a

  • Two iPhones showing the same message

    We have two iPhones (3GS and a 5) and after we switched carriers sending a message on one shows up on both. iPhone ID issue?

  • Implementing listener in JcomboBox

    I am trying to create JcomboBox in which its item are a)1 b)2 so that when a user click on 1. In a JTextField called "add"the content of textfield should be increased by 1 and when 2 is clicked content of textfield should be increased by 2 thanx

  • Wifi networks keep reappearing in my iCloud Keychain

    I am having a problem with wifi networks that keep reappearing in my iCloud Keychain, and no matter what I have tried, I can't get rid of them. I have an iPhone, an iPad, an iMac and two MacBook Pros.  I have enabled iCloud Keychain on all these devi

  • How to query First Name and Last name of a EBS 11i?

    I am newbie to EBS. I have a need to get First Name, Last name of any active EBS account. Is there any table that I can query or report that I can run to get these? Greatly appreciate it.