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.

Similar Messages

  • 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

  • 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

  • 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

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

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

  • Disabling certain fields on the selection screen.

    Hi all,
              I want to disable certain fields on selection screen of my program, also i want to display certain fields on selection screen only if a particular field on the selection screen is checked or selected. Please guide me how this can be achieved via coding in a program.
    Thanks & regards,
    Chetan.

    Hi Chetan,
    try this.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: pa_file TYPE rlgrap-filename MODIF ID abc,
    pa_lifnr TYPE lfa1-lifnr MODIF ID abc,
    pa_vkorg TYPE vbak-vkorg MODIF ID abc.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS: pa_kunnr TYPE vbak-kunnr MODIF ID def.
    SELECT-OPTIONS: s_lifnr FOR gs_lfa1-lifnr MODIF ID def,
    s_date FOR gs_lfa1-erdat MODIF ID def,
    s_augru FOR gs_vbak-augru MODIF ID def,
    s_vbeln FOR gs_vbak-vbeln MODIF ID def.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pa_upd RADIOBUTTON GROUP g1 USER-COMMAND uc01 DEFAULT 'X'."#EC *
    SELECTION-SCREEN COMMENT 3(60) text-004 FOR FIELD pa_upd.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS: pa_rep RADIOBUTTON GROUP g1 ."#EC *
    SELECTION-SCREEN COMMENT 3(60) text-005 FOR FIELD pa_rep.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK b3.
    IF pa_rep EQ gc_x.
    LOOP AT SCREEN.
    IF screen-group1 = gc_abc.
    screen-input = gc_zero_num.
    ELSEIF screen-group1 = gc_def.
    screen-active = gc_one_num.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    ELSEIF pa_upd EQ gc_x.
    *For Reprocessing
    LOOP AT SCREEN.
    IF screen-group1 = gc_def.
    screen-input = gc_zero_num.
    ELSEIF screen-group1 = gc_abc.
    screen-active = gc_one_num.
    ENDIF.
    MODIFY SCREEN.
    CLEAR pa_upd.
    ENDLOOP.
    ENDIF.
    REPORT zrich_001.
    PARAMETERS: p_rad1 RADIOBUTTON GROUP grp1 DEFAULT 'X'
    user-command chk,
    p_rad2 RADIOBUTTON GROUP grp1.
    SELECT-OPTIONS: s_datum1 FOR sy-datum MODIF ID d1,
    s_datum2 FOR sy-datum MODIF ID d2.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
    IF p_rad1 = 'X'
    AND screen-group1 = 'D2'.
    screen-active = '0'.
    ENDIF.
    IF p_rad2 = 'X'
    AND screen-group1 = 'D1'.
    screen-active = '0'.
    ENDIF.
    MODIFY SCREEN.
    ENDLOOP.
    reward if useful.
    regards,
    sravanthi.

  • Disable a field at Item level for SC confirmation Screen

    Dear All ,
    PLEase help me with a step by step instruction on how to disable field at Item level of  confirmation screen of SC .
    I tried in Webdynpro component : Web Dynpro Component:/SAPSRM/WDC_DODC_CONF_IBD in se80 and below is what I get ;
    When I click on Display it asks me for an access key which I dont have ..
    When I click on the enhancement option it asked me to create an implemenation which I did as seen in yellow below and still the enabled field is not getting editable so tha I can uncheck and make the field dissapper .
    Please can some one really help me in understanding what exactly I am doing wrong ?
    Also  Please let me know if the SPRO path related in this to be able to do in any which way ... I tried expanding
    Configure field control .. and it doesnt expand so dont know which other option to use ..
    Thanks for your help in advance .
    Kindly let me know !!
    Regards
    Vinita

    HI Laurent .
    1. Thanks for your input . I wasnt able to open the SPRO path coz I was using SAP 720 and when I installed 730 I was able to use it .
    2. I am still not able to udnerstand how to configure it through Meta data .. What does Final_Entry mean .. I want to disable the field Last del indicator and its flag box and the label as well ..
    3. I tried through component configuration and it worked ..as below :
    I went to the webdynpro component and started the component configiurator :
    Here I made both the field and Label insisible and was able to do this .
    Please can some one help ,me know how to configire this through Meta data concept as well .. I wanted to try that method as well for my understanding ..
    Would appreciate your help and would be closing this post soon ..

  • 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

  • Disabling the field 'Bill-to party' in sales order screen

    Hi friends,
    I need to disable following fields in the partner functions tab of sales order ,while creating/changing a sales order,since they will be automatically populated and user should not be able to modify.
    1.Bill-to party.
    2.Payer.
    I have tried with user exit MV45AFZZ,but program control is not coming there regarding PARTNERS tab,for diabling the screen.
    Can you give me some hints like,any other EXIT or BADI exists for writing the code for this?
    Thanks & Regards
    Seshagiri.

    Hi,
    Your requirement is to identify the bill to based on ship to. if so do the following.
    maintain the partner tab in ship to master record, here you assign the bill to party to whom you have to send the bill.
    Now in partner determination procedure maintain the bill to source as ship to. In partner determination procedure you have all the options from where system has to look for the other partner functions.
    In this processes system first checks with Sold to, finds out a ship to, now from ship to partner tab it automatically finds out the bill to in to the sales order.
    Hope you understood, if not let me know.
    Reward if it helps you.
    Venkat Cheedalla

  • To disable one field of standard sap screen.

    Hi,
    I want to disable one field of standard SAP screen for example
    tran code : MD61
    Field : Version.
    Can Anybody suggest me with simple coding.
    thanks
    naresh

    Naresh,
    I guess this can be done using Transaction Variant SHD0.
    Just try to check the links related to transaction variant.
    1.go to SHD0
    2.give the transaction as MD61     
    3.Transacation variant as zmd61
    4.now press create button
    4.Here you will get to see the initial screen on MD61
    5.Press enter
    6.You will get to see the field attributes in a screen called 'Confirm Screen entries"
    7.There you can make a field as required/invisible/ouputonly.
    Do check other links available in SDN for more info.
    K.Kiran.

  • 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

  • Selection screen field

    Hi,
    A field in the selection screen of the report program should be disabled by default.
    I have written the logic for the same in at selection-screen output.
    If the user enters value in another field in selection screen,the field should be enabled for input.
    When the user executes the program,o/p is displayed.
    When the user clicks back button in the o/p screen,the field is again shown in disabled mode as the event at selection screen o/p is being triggered.
    The field should be enabled when the user cliks back button in the o/p.
    How to achieve this? => by writing the code. And we cannot do that for you.
    Moderator Message:
    Also,
    Total Questions:  141 (102 unresolved)
    suggests that you do not get back to the people who spend time on your issues. Be a responsible forum member by acknowledging people's time and effort.
    Edited by: kishan P on Nov 11, 2010 4:16 PM

    Hi,
    If i understood correctly you requirement you just have to make use of a global variable i.e. gv_enabled, which will be used as flag. Before disable the field in at selection-screen output event, check if gv_enabled is initial. When you enable the field for input, for the first time just move 'X' to gv_enabled.
    Best Regards
    George Zervas

  • Disable certain fields during the creation of SC using "create limit item"

    Hi,
    I have a requirement to disable certain fields from the role "SHOP" associated with the operational purchaser role. I would like to disable the fields "Unlimited check box", "Service Agent", " Invoice Only radio button", "Unknown account assignment radio button" from the screen I get during creation of SC using the option "Create Limit Item". Also i need to disable the option "Good / Service" entry box as we are using only free text items and donu2019t want this option to be seen in the screen when using the operational purchaser role.
    Please advise how can I achieve this.
    Regards
    GGL

    Hi,
    I have a same requirement to disable certain fields from the Shopping Cart Limit Item. I would like to disable the fields  "Service Agent", "Unknown account assignment radio button" from the Detail  screen. during creation of SC using the option  Limit Item .  Also i need to make default Value "Known" and "Invoice Only". But this is in SRM 7.0. Notes You have mentioned supports only Release 5.5, But I am in Release 7.0. Any idea?
    I appreciate your help
    Thanks,
    Monica

Maybe you are looking for

  • Analysis Services failing to Start . File system error: Error occurred during the creation of directory

    Hello All, Posting this problem here and hoping for a solution from the experts in this forum. When i have restarted the Analysis Services , i see that it has been stopped but never started back. It fails with an error "The SQL Server Analysis Servic

  • MacBook Pro and component project

    I have a nice home theater projection system that uses component (with separate plugs for red/green/blue, not composite video) as well as s-video. According to the installers, s-video limits the resolution to 720x480. Both the projector and my Mac Bo

  • Music Editing with Audio Hijack or WireTap

    WireTap Pro vs. Audio Hijack with Fission for one simple editing task I have a collection of about 500 pieces of classical music in iTunes and on my iPod and iPhone. Some recordings come with adequate fade-out or decay time at the end of each piece o

  • Update for PSE 9.0.3 fails repeatedly

    My new Dell Inspiron Laptop came with Printshop Elements 9 preinstalled. I registered the product and now I am trying to update the software. The download was initially large. I keep getting a Patch Cannot be applied  message indicating I should "Con

  • NEED HELP! CONNECTIVITY NOKIA 2228 PC SUITE

    i bought nokia 2228 CDMA several days ago. It said that it could connect to PC suite and it has usb CA-101 for its cable. The issue is i got this error "nokia 2228 connected in a non-compatible usb-mode" I was trying to see another discussions and fo