Disabling a screen field

Hi,
iam having a two fields on the selection screen.
if any value has been entered on the first field then the second field shoud be disabled and vice versa. can anyone tell me how to do this.
Regards,
phyrose.

Hi
THE SCREEN CHANGES WILL BE APPLIED ONLY AFTER PRESSING ENTER BUTTON THE SCREEN
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETER : P_WERKS LIKE MARC-WERKS MODIF ID S1.
SELECT-OPTIONS : S_EBELN FOR EKKO-EBELN NO INTERVALS MODIF ID S2.
SELECTION-SCREEN END OF BLOCK B1.
******END OF SELECTION SCREEN DESIGN****************
***********SCREEN MODIFICATIONS*******************
AT SELECTION-SCREEN OUTPUT .
LOOP AT SCREEN .
IF SCREEN-GROUP1 EQ 'S2'.
SCREEN-INPUT = 0.
SCREEN-REQUIRED = 1.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 EQ 'S1'.
SCREEN-INPUT = 0.
SCREEN-REQUIRED = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
<b>REWARD IF USEFULL</b>

Similar Messages

  • Disabling single Screen field

    Hi Friends,
    Plz help me how to disable single Screen field in Module pool.
    I have a scenario where One of the field is drop down box,in that options if i select 1 option the next Input/outputfield and Group of radio buttons(2buttons) should be disable.
    PlZ help me with the solution

    hi
    it may help u.
    in drop down box each option should have function code.
    now in pai
    use
    case ok_code.
    when 'option 1'
    loop at screen.
    if screen name = 'group1' or screen name = ' input field name'.
    screen input = 0.
    modify screen.
    endif.
    endloop.
    endcase.
    or
    if ok_code = 'option1'.
    loop at screen.
    if screen name = 'group1' or screen name = ' input field name'.
    screen input = 0.
    modify screen.
    endif.
    endloop.
    regards
    anil

  • Disable IT0001 screen fields through PA40

    Hi experts,
    When I am running an action through PA40, after updating IT0000 it calls IT0001 after that 9001 and so on. For It0001 fields like position, employee subgroup, Org. Key and administrator fields are editable.
    I want to disable all other It0001 screen fields except adminstrator fields for that particular action type. Please help me out how to solve this issue. I have tried to insert the code in user exit (PADU02) but i don't find any means to access the screen of IT0001.
    Full reward points guaranteed for better solution
    thanks and regards,
    Murali

    Hi Murali,
          I am sure did you check T588M (Infotype Screen Control), where you can set your own settings for the infotypes (fields, hide, disable, Required)
       However I got confoused with your requirement, you want the screen to be changed only for that action, does that means if he go to 0001 through PA30 user should have access to all the fields?
       -- In that case, you can set the feature P0001 and can use RPCADD00 program. (RPCADD00 might give a chance of accessing 0001 infotype - Not sure)
    Regards
    Mahesh

  • Disable the Screen Field

    Hello Abappers,
    I have two radio buttons and two text box.
    The text box refers to data dictionary and named as
       ZIXHR_S_APPROVAL-APPUSER
    ZIXHR_S_APPROVAL-APPORG
    When i click on a radio button the first text box should be disable and similar with the secon one.
    How to disable the text box from the screen?
    Please reply soon.
    Regards,
    Rahul

    Hi,
    Try the code given below.
    Regards,
    Wajid Hussain P.
    if rb1 = 'X'.
    loop at screen.
    if screen-name cs 'ZIXHR_S_APPROVAL-APPUSER'.
      screen-input = 0.
      modify screen.
    elseif screen-name cs 'ZIXHR_S_APPROVAL-APPORG'.
      screen-input = 1.
      modify screen.
    endif.
    endloop.
    else.
    loop at screen.
    if screen-name cs 'ZIXHR_S_APPROVAL-APPORG'.
      screen-input = 0.
      modify screen.
    elseif screen-name cs 'ZIXHR_S_APPROVAL-APPUSER'.
      screen-input = 1.
      modify screen.
    endif.
    endloop.
    endif.

  • Disable the screen field of  quantity field

    This User Exit is required for Validation check for Partial Delivery in reservation
    Using T.Code MB22 the quantity in reservation once created and partial issue has been completed then it should not be allowed to change the qty. Quantity change can take place till an issue is made. which should be done in the migo tcode for
    posting

    my requirement is to print the cheque to my requirement in that i want to print date , vendor name ,ammount and ammount in words in a cheque which will be put into the printer
    so i have modified the standard layout  F110_PRENUM_CHCK  in Z_F110_PRENUM_CHCK  and also the print program ZRFFOUS_C every thing i have done sucessuffuly and my cheque dimention is in width is 207 mm and height  is 94 mm. for which i  have created an output device in spad tcode  and i have design in portrait form .
    and my printer is of HP laser jet and the device type is HPLJ5.
    the problem  is when i am putting a physical cheque horrizontally into the printer the cheque is going into the printer
    and getting printed into the required blocks of a cheque . but it is not comming out of the printer i have to manually open the catrig and have to take out the cheque , can any one give the
    solution how to bring the cheque out of the printer automatacally when it is printer , its urgent.
    Regards
    sarfaraz

  • Disabling I/O Screen Field in Cost center Screen Enhancement

    Hi all,
         I am doing screen exit for Cost center master. While using KS03 transaction, I have to disable the newly added I/O screen fields. So, I added the following code in PBO module.
    *** PBO
         MODULE modify_screen_input.
    *** Include program of PBO
         MODULE modify_screen_input OUTPUT.
           IF sy-tcode EQ 'KS03'.
             LOOP AT SCREEN.
               IF screen-group1 eq 'CO'.
                 screen-input = 0.
                 MODIFY SCREEN.
               ENDIF.
             ENDLOOP.
           ENDIF.
         ENDMODULE. 
    But, screen fields with that group are not getting disabled. Is there any way to disable those screen fields?
    Thank You.

    Hello Shrilatha,
    Please try with below code
    IF sy-tcode EQ 'KS03'.
             LOOP AT SCREEN.
               IF screen-name = 'CI_CSKS-ZFIELD'  ->changeit to field name
                 screen-input = 0.
                 MODIFY SCREEN.
               ENDIF.
             ENDLOOP.
           ENDIF.
         ENDMODULE.
    Thanks

  • QA32 UD - Disable screen fields UD code and Quality score in QA12 screen

    Hi,
    This is regarding the QM module , QA32 transaction , UD subscreen under Characteristics tab.
    I need to disable the UD Code and Quality score  screen field in QA12  in cases where the inspection lot  stocks are completly posted.
    How can I achieve this? Can some one plz suggest me the relevant User exit for this ?
    Also how do i disable the screen field in QA12 ?
    Regards,
    P.S.Chitra

    Hi,
    Did u get any solution ???
    Regards
    Bharath

  • In the component overview screen of CO01 I want  to disable all  the field in  screen of table control.I want to make it as output screen only.

    Hi all
      In the component overview screen of CO01 I want  to disable all  the field in  screen of table control.I want to make it as output screen only.
    Thanks & Regards,
    Rajib.

    Isn't that just exactly what transaction CO02 does? CO01 is for creating production orders so what sense does it make to have it display mode only?
    Maybe your goal is to stop then end user changing the component assignment that is automatically  detected by the system. If so, personally I think a better starting point would be PP configuration or user authorizations rather than looking to change the screen by whatever method. As we don't know what you are trying to achieve it's hard to offer much more advice maybe all you need is to change transaction to CO02

  • Disable a selection screen field

    Hi All,
    I have 2 selection screen fields if enter any value in field 1 another field should be disabled with out pressing enter on the selection screen. am able to do disable by pressing enter onc i give the value in field 1.
    Please do needful.
    Thanks in advance.
    Thanks,
    Ramu.

    Hi Ramu,
    As far as i know its not possible without pressing enter/Execute or any action on selection screen.
    This is because report programming is event driven. So without any event i don't think we can achieve this.
    Probably u can search in SDN/Google as well. If u r lucky enough some one has found some thing for you. But at the same time don't forget to update this thread if u find some thing:-)
    Thanks,
    Vinod.

  • Disabling Screen field

    Hi,
    I have a program where i have designed the selection screen. This program is used by different programs.
    My requirement now is i have to add a new field and disable another field if the new field has any value and viceversa.
    I cannot go and directly add a new field and disable the old field on the properties of that screen in se51. Since the same screen is used by different programs.
    Now if I copy the selection screen program and use it exclusively for my new report, it will take huge number of changes and there are many programs involved in calling this selection screen program. So then I'll have to copy most of the programs and change their corresponding program names as well and I have to add these new program names wherever the old one is used, which doesn't look like a good idea to me.
    i am thinking of making a copy of the report program alone and use a select option over there to add a new field. But the old field has been designed on the se51 window. Can anyone tell me what i have to do in the report program to disable the old one if new one has some value and vice versa.
    Regards,
    Phyrose.

    Hi ,
    Try this.
    At selection-screen output.
      LOOP AT SCREEN.
        IF screen-name = 'Field name to be disabled'.
          screen-input = '0'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    Hope this solves your problem.
    Regards,
    Bharat.
    Reward points if helpful.

  • How ti disable screen fields in Module pool

    hi
    How to change screen fields to DISPLAY MODE aftr clicking on a particular pushbutton in Module pool  prg .
    regards
    chetan
    Edited by: chetan teli on Jul 29, 2008 1:04 PM

    hiiii
    use following code for disabling field
    IF p_rad2 IS INITIAL .
        LOOP AT SCREEN.
          IF screen-name CS 'p_docno'.
            screen-active = 0.
            MODIFY SCREEN.
          ENDIF.                           " IF screen-name CS 'p_docno'.
        ENDLOOP.                           " LOOP AT SCREEN.
      ELSE.
        LOOP AT SCREEN .
          IF screen-name CS 'p_docno'.
            screen-active = 1.
            screen-input = 1.
            MODIFY SCREEN.
          ENDIF.                           " IF screen-name CS 'p_docno'.
        ENDLOOP.                           " LOOP AT SCREEN .
      ENDIF.                               " IF p_rad2 IS INITIAL .
    regards
    twinkal

  • Disable Serial Number Field in MIGO Screen

    Hi all,
      I want Disable Serial Number  field in MIGO Screen how do i disable ?
    is there any user exit or enhancement ?
    Anybody please tell me.
    Thanks
    Regards,
    S.Muthu.

    S. Muthu
    Apply Transaction Variant and Screen Variant through transaction SHD0 for MIGO. Hope it will solve your problem.
    Otherwise, discuss this requirement with MM Functional Consultant. In SPRO, it may have some setting to make it display...
    Thanks & regards
    Amol Lohade

  • Disable screen fields

    I required help to disable screen fields when User command runs in PBI not in case of PBO. Pl. help.
    vikas

    Hi,
    PBI? assuming PAI...
    u can disable filed useing :
    loop at screen.
    if screen-name = '<ur_fld_name>'.
    screen-input = 1. "or may be 0
    modify screen.
    endif.
    endloop.
    Jogdand M B

  • Hiding Screen fields in a Report selection screen

    Hi Experts,
    I have a requirement to hide/disable  screen fields in a report selection screen when the user clicks on some radio buttons .
    Here is the scenario,
    1) There are 4 radio buttons four radiobuttons in one group on the selection screen:--  
    Block no:1
    PARAMETER: r_not  TYPE c RADIOBUTTON GROUP a1 DEFAULT 'X'.
    PARAMETER: r_prgs TYPE c RADIOBUTTON GROUP a1.
    PARAMETER: r_remv TYPE c RADIOBUTTON GROUP a1.
    PARAMETER: r_noresp TYPE c RADIOBUTTON GROUP a1.
    2) Based on the user clicking/selecting the radio buttons no.2,3 nad 4 i need to hide some fields in the other selection block
    in the selection screen.The parameters are as follows:
    Block no:2( These fields need to be hidden/disabled)
    PARAMETER: r_occ(3) TYPE c OBLIGATORY DEFAULT '1'.
    PARAMETER: r_and TYPE c RADIOBUTTON GROUP g1.
    PARAMETER: r_or  TYPE c RADIOBUTTON GROUP g1.
    PARAMETER: r_days(3) TYPE c OBLIGATORY DEFAULT '1'.
    Thanks

    Contd.....
    AT SELECTION-SCREEN.
      CASE SSCRFIELDS-UCOMM.   
          "When Customer button is clicked set flag 1
        WHEN 'FC01'.
          L_FLAG = '1'.
          "When Sales Order button is clicked set flag 2
        WHEN 'FC02'. "Sales order
          L_FLAG = '2'.
          "When Execute button is clicked set flag 4
        WHEN OTHERS.
          L_FLAG = '4'.
      ENDCASE.
    AT SELECTION-SCREEN OUTPUT.
    CASE L_FLAG.
        WHEN '1'.  "When Customer button is clicked
          LOOP AT SCREEN.
            "Set the Production and Customer Block as inactive
            IF  SCREEN-GROUP1 = 'BL1' OR SCREEN-GROUP1 = 'BL3'.
              SCREEN-ACTIVE = '0'.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
        WHEN '2'. "When Sales Order button is clicked
          LOOP AT SCREEN.
            "Set the Production and Customer Block as inactive
            IF  SCREEN-GROUP1 = 'BL1' OR SCREEN-GROUP1 = 'BL2'.
              SCREEN-ACTIVE = '0'.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
        WHEN '3'.   "When Refresh button is clicked
          LOOP AT SCREEN.
            "Set the all Blocks as active
           IF  SCREEN-GROUP1 = 'BL2' OR SCREEN-GROUP1 = 'BL3' OR SCREEN-GROUP1 = 'BL1'.
              SCREEN-ACTIVE = '1'.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
        WHEN OTHERS."When Execute button is clicked
          "Set the Sales order and Customer Block as inactive
          LOOP AT SCREEN.
            IF  SCREEN-GROUP1 = 'BL2' OR SCREEN-GROUP1 = 'BL3'.
              SCREEN-ACTIVE = '0'.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
      ENDCASE.
    ENDFORM.      

  • Disabling of Batch field in MIGO

    hi all,
                     I added one tab in MIGO at item details. i created one program and designed one screen. here i am calculating batch code based upon screen fields and i updated batch field that is in different tab. Here i need to disable batch field that is in different tab(Btach tab) . How can i disable the field dynamically.
    Please suggest.
    Regards,
    Rami Reddy

    hi ,
        Use this include LMIGOKS4 and method    Method Screen_modify_line..........  Endmethod.
       It will be useful to you.
    Regards,
    Rami Reddy

Maybe you are looking for

  • Enhancements in Program SAPMV60A

    Hi! We' re running SAP R/3 4.7 Enterprise and would like to place some custom coding in program SAPMV60A after a new invoice has been persisted in tables VBRK and VBFA, which is done within function module RV_INVOICE_DOCUMENT_ADD via call of FM RV_IN

  • RAISE EVENT usage in real world

    Hi, I wonder what is the advantage of the statement RAISE EVENT in contrast to a normal call to a class method. Given the following example coding: METHOD pai_0100.   CASE ok_code.     WHEN 'START'.       RAISE EVENT read_sflight_data_event EXPORTING

  • HT1687 My iphone is disabled and says conncet with itunes but it say cant help you untill you put in the password?

    My iphone is disabled and says conncet with itunes but it say cant help you untill you put in the password?

  • 1TB HDD in 13" MacBook Pro

    Looking to upgrade my MBPs internal hard drive. Will a late 2009 13" Macbook Pro (Snow Leopard) recognize all of a 1TB internal hard drive? If not, what's the Max size I can go to without wasted space?

  • How to add JMenuBar to a JApplet?

    I have created a MenuApplet.java class which extends JApplet. I am tring to drag and drop JMenuBar on to the form but the menu bar is not visible. The menu bar is only visible when I try to check the preview. But the auto generated code shows that JM