Disable text Box On Selection screen

hello guys,
I am making a selection screen report in which i want to disable the text box , when i am selecting a particular radio button.
Kindly, let me know how to do the same.
Thanks &  regards.
Kirtish

hi kirtish
if u want to disable the text box on the screen, u need to use the screen table. 
see. All fields of the current screen are stored in the system table SCREEN with their attributes.
so when u click on the any element of the screen the sceen table is looped through.
use the following code in at selection screen output .
put the name of the text box in the
ex:
LOOP AT SCREEN.
IF SCREEN-NAME = <FIRST RADIO BUTTON>
(IF p_r1 = 'X'. say p_r1 is your radio button name)
LOOP AT SCREEN.
IF SCREEN-NAME = <text box>
SCREEN-INPUT = OFF.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
in case of query please reply.
award if useful
Varun

Similar Messages

  • Diplay Text in Text Box in selection Screen

    Hi Experts i want to display text in text box in selection screen like
    Personnal Number
    Display in text box and disable................please help me
    Edited by: BFawad26 on Jun 21, 2010 9:46 AM

    Hi,
    You mean to say parameter in selection screen
    Just press F1 on parameter you will get all the option available for the parameter
    for defaulting text just give your text in DEFAULT option for the parametr
    And for disabling this checkbox you can explore the LOOP AT SCREEN concept
    In at selection screen output event you can modify the selection screen.just give one modif id for your
    paramete and use this at selection screen output event , loop at screen and modify screen with the screen input = 0
    for ur parameter.
    Thanx
    Edited by: PawanG on Jun 21, 2010 9:51 AM

  • Regarding text box in selection screen

    Hi all,
    Can i know how we can implement a text with scroll bars so that user can enter a data of about 2000 characters with paragraph indent. also this needs to be done on the selection screen of PNP logical database.
    Please let me know if this can be done.
    Thanks.
    Harshad.

    Hi Harshad,
    [text box in the selection screen|Text box on selection screen]
    Thanks!

  • Parallel text box in selection screen

    Hi all,
    Can anyone please tell me that how can i create parallel text boxes in selection screen?
    Exa : Company code    <Input box>                        Date       <Input box>
             Pers No.              <Input box>                    Cust No. <Input box>
    Regards.

    hi,
    Use COMMENT and POSITION statements in selcection-screen to achieve the same.

  • Disable text box on selecting a checkbox of multiple selection lookup field in infopath 2010

    Hi
    In edit mode of the form,
    We have added one field in infopath which is lookup column and shows multiple selection chekboxes.
    One of the option from that lookup checkbox list is "Other".
    There is one textbox field which will be disabled by default.
    We want to enable this text box on selection of "Other" from lookup field checkbox list.
    Is it possible?
    if yes how can we do this?

    Hi Vyanky, I don't believe that's possible without some major functionality. The problem, as you probably know, is that it's a lookup with checkboxes. If it was added directly in InfoPath, then it wouldn't be an issue. You should consider adding "Other"
    as a separate yes/no field instead. That way you'll be able to add an action rule to it to enable the text box.
    cameron rautmann

  • Long Text box in Selection Screen

    Hi,
    How to create a long text box in the selection screen.
    Is there any example/demo program in standard??
    Regards
    Jiku.

    erm, what do you want to achieve with this?
    should your users be able to search for long texts?
    That will probably fail since there are differences between the input and the long text you are searching for.
    Or do you have users making no faults?

  • Text Box in Selection Screen

    Hi All,
    Is it Possible to provide a text box in the selection screen?
    My requirement is user needs to enter a paragraph in the selection screen and this should be displayed in the form.
    Note : Individual text fields are not required.
    Thanks
    parthi.

    Hi,
    Designe a screen in SE 51 and call that screen in your report program.
    To create a textbox in module pool look at [this|Custom Container in module pool program]
    Thanks,
    Sri.

  • How to disable a field in selection screen based on condition.

    Hi,
    I have 2 radio buttons- p_normd, p_recov  and 2 other controls - like text boxes, say tb1 and tb2. and some mandatory fields below.
    If i choose p_normd, i want one control(tb2) to be disabled and if i choose p_recov, i want the other control(tb1) to be disabled(tb2 should be enabled then.)
    Currently i am using the following code. The 1'st radiobutton is intially checked. But the problem is when i click on the 2'nd radio button, the other control(tb1) is not getting disabled. When i double click, i get an error telling mandatory field to be filled. Only after the other mandatory fields below are filled, and after i double click on the unchecked radiobutton, the other control gets disabled.
    Please suggest what to do..
    The current code below:
      AT SELECTION-SCREEN OUTPUT. "ON RADIOBUTTON GROUP rg01.
      LOOP AT SCREEN.
      IF  p_normd EQ c_x  AND screen-group1 = 'SC2'.
            MOVE 0 TO screen-input.
          MODIFY SCREEN.
      ENDIF.
      IF p_recov EQ c_x AND screen-group1 = 'SC1'. "IF screen-name = 'ERDAT-LOW' OR screen-name = 'ERDAT-HIGH'.
            MOVE 0 TO screen-input.
            MODIFY SCREEN.
      ENDIF.
      ENDLOOP.
    Thanks,
    Ammu

    Hi
    declare your parameter as below:
    parameters: p_x type c radio button group g1 user-command r.
    in at selection screen output event .
    check for the radio button.
    loop at screen.
    if screen group is <desired value>
    then screen-active = 0 or 1. <do whatever you want to do.>
    modify screen.
    endloop.
    see below the sample code.
    <<<<<AT SELECTION SCREEN EVENT>>>>>
    AT SELECTION-SCREEN ON BLOCK B1.
      IF P_LCOST = C_X.
        PERFORM CLEAR_FIELDS.    " Clearing fields before loading the screen
        CALL SELECTION-SCREEN 100 STARTING AT 20 5.
      ELSEIF  P_MCOST = C_X.
        PERFORM CLEAR_FIELDS1.          " Clearing fields before loading the screen
        CALL SELECTION-SCREEN 101 STARTING AT 20 5.
      ENDIF.
      IF SY-SUBRC = 0.
        PERFORM VALIDATION.             " Validating selection screen input
      ELSE.
        LEAVE TO TRANSACTION C_TRAN.
      ENDIF.
    <<<<<<DECLARATION PART>>>>>>
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: P_LCOST RADIOBUTTON GROUP GI DEFAULT 'X',
                P_MCOST RADIOBUTTON GROUP GI.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF SCREEN 100 AS WINDOW TITLE TEXT-002.
    SELECTION-SCREEN BEGIN OF BLOCK B2.
    PARAMETERS: P_COAREA TYPE CSKS-KOKRS OBLIGATORY,         " controlling area
                P_FYR    TYPE COEP-GJAHR OBLIGATORY,         " fiscal year
                P_PERIOD TYPE COEP-PERIO OBLIGATORY.         " fiscal period
    SELECT-OPTIONS: S_CCNTR FOR V_KOSTL OBLIGATORY,       " Cost Center
                    S_COELM FOR V_KSTAR MODIF ID M1,       " Cost element
                    S_PDATE FOR V_BUDAT OBLIGATORY.       " posting date.
    SELECTION-SCREEN END OF BLOCK B2.
    SELECTION-SCREEN END OF SCREEN 100.
    SELECTION-SCREEN BEGIN OF SCREEN 101 AS WINDOW TITLE TEXT-003.
    SELECTION-SCREEN BEGIN OF BLOCK B3.
    PARAMETERS:     P_CCODE  TYPE T001-BUKRS OBLIGATORY,         " Company Code
                    P_FYEAR  TYPE COEP-GJAHR OBLIGATORY.         " fiscal year
    SELECT-OPTIONS:   S_GLACC FOR V_HKONT OBLIGATORY,       " G/L Account
                      S_PCNTR FOR V_PRCTR MODIF ID M2,      " Profit Center
                      S_PODATE FOR V_BUDAT OBLIGATORY.      " posting date.
    SELECTION-SCREEN END OF BLOCK B3.
    SELECTION-SCREEN END OF SCREEN 101.
    thanks
    LG
    Edited by: LalitG on Apr 13, 2011 1:38 PM

  • How to display a percentage sign ( % ) after a text box in a screen

    hi experts,
    Can anybody tell me how to display a percentage sign ( % ) after a text box in a screen.

    Hi Ajay,
    Try to use the  [Position|http://help.sap.com/saphelp_nw04/helpdata/EN/9f/dba7e235c111d1829f0000e829fbfe/frameset.htm] option of selection screen.
    By using this you can place the text as a comment at a desired position on the selection screen.
    The syntax would be like this :
    SELECTION-SCREEN POSITION <pos>.
    Regards,
    Swapna.

  • Adding Standard Text to the Selection Screen obtained using PARAMETERS

    Hi all,
    I have a report program which has the selection screen declared by the key word PARAMETERS.
    Now I need to make the changes to this program such that a Text Editor appears on the Selection Screen and has a Standard text that should be displayed.
    How can I do it?
    I saw the screen number of the Selection Screen and went to screen painter and tried to add the Text Editot..but it did not let me dou2026.Why?
    How should I add a standard text to a selection screen? The standard text should not be on top , but some where on the screen.
    Regards,
    Jessica Sam

    Hi Sam,
    I dont want to create a new screen for this. On the existing screen whihc was built using PARAMETERS key word..i should insert a blokc of text whihc is mpre than 5-6 lines..how should i do it.
    I navigated to Text Elements---->Selection Texts
    it is now asking for Name and Text and i see in Name column the name of the parametsr that they used for Check box, radio button etc and in Text i see the text that is appearing on the screen
    Now i am not sure what is should do next
    My req is..i should display a block of standard text that doesnt change and whihc is of 4-6 lines?
    how should i do it?
    please also help me with what data declartions that i should do in parametrs key word in program?
    Regards,
    Jessica Sam

  • Option ( Radio button  or check box)  on selection - screen , to go to CNR2

    <b>Subject - Option ( Radio button  or check box)  on selection - screen  , to go to Tcode CNR2</b>
    Hi all,
          I have developed  a report   , which  has  a  selection screen  with  one select-option ,  where i enter employee number     and  two radio buttons   ,  one is for all workcentres  and  other one   for active workcentre.   so when i enter  employee number  and  choose  either of the radio button  i wil get the  output  properly.  the output   displays ,  employee no,  employee name ,  work centre  and project  of that employee .   an employee may have  many workcentres   and   a corresponding project  for that work centre.
    Now the  Problem is  ,  from the same   report  i need to add  a option  on the selection -screen ,  ( plz  tell me whether to use  radio button  or check box   and if it is radio button    should  i  use it seperately  or  group it  in the above two buttons.) .
    so that when user selects  the  option   , the control should  go to  transaction code CNR2,  from where  i  can enter workcentre  and   in the next screen i have  HR assigntment tab , after choosing that it will dsplay persons   linked to the workcentre  and there is a delete icon  , from where i can delete the person.
    The only thing is  now to move / Navigate to the screen   or  go to transaction code CNR2   from  the report  or  from the selection screen.
    Your valuable Inputs are awaited, PLz  do lemme know 
    Thanks  in advance ,
    regards,
    Shuja

    Shuja,
    A radio button nor a checkbox should be used for navigation.  I would suggest a COMMAND BUTTON. 
    Something like this:
    Report ZZZZZZ.
    TABLES: sscrfields.
    SELECTION-SCREEN BEGIN OF BLOCK ONE WITH FRAME TITLE TEXT-001.
    selection-screen: PUSHBUTTON /10(20) but1 USER-COMMAND cli1.
    SELECTION-SCREEN END OF BLOCK ONE.
    initialization.
      but1 = 'Button Text Goes Here'.
    AT SELECTION-SCREEN.
      CASE sscrfields.
        WHEN 'CLI1'.
          call transaction 'CNR2'.
    start-of-selection.
    Your code here

  • Gray out or disable text box

    Hi,
         I have a drop down menu called CN_Entry_Initials that has options of a "C" or an "N". I also have a text box called Part_Number to enter a part number into. I want the Part Number text box to be grayed out or disabled until either a "C" or an "N" has been chosen out of the CN_Entry_Initials drop down menu. I have this working, except that I cannot get the Add button to do anything. I think it’s something to do with the way I have the If statement for this disabled text box, or do I have to change the button to a submit button. Does anyone know how to fix this? Below is the javascript and the drop down menu and text box code along with the Add or submit button. There is extra stuff in the Javascript that I have on the page, but I don't need to worry about those things since they are working correctly. I have the disabled text box code at the top of the javascript under the function verify() code. Thanks.
    <SCRIPT LANGUAGE="JavaScript">
    <!-- Original:  Wayne Nolting ([email protected]) -->
    <!-- This script and many more are available free online at -->
    <!-- Begin
    function verify()
    if (document.getElementById('CN_Entry_Initials').value == "C"
    || document.getElementById('CN_Entry_Initials').value == "N")
        document.getElementById('Part_Number').disabled = false;
    else
        document.getElementById('Part_Number').disabled = true;
    var PartNum=document.AddECNumber.Part_Number.value;
    var regularExpression = new RegExp(/[cC][0-9]/); //regular expression to check for a letter C followed by a number
    if(regularExpression.test(PartNum)&& document.AddECNumber.CN_Entry_Initials.value == "N" && document.AddECNumber.Validation_Qty.value == "") { //this will return true if the input passes the regular expression
    alert("Enter a Validation Quantity for this new Custom");
    else if(document.AddECNumber.CN_Entry_Initials.value == "N" && document.AddECNumber.P_Drive_Docs_Initials.value == "i") { //this will return true if the input passes the regular expression
    alert("You cannot select 'i' for docs to be removed for a new part");
    else if(document.AddECNumber.CN_Entry_Initials.value == ""  && document.AddECNumber.SW_Model_Only.value == "0") { //this will return true if the input passes the regular expression
    alert("ECO type required - Select (N)ew or (C)hange for eco line item");
    else if(document.AddECNumber.PNR_BOM_Change_Only.value == "1" && document.AddECNumber.CN_Entry_Initials.value != "C" && (document.AddECNumber.Release_Status_Initials.value == "U"
    || document.AddECNumber.Release_Status_Initials.value == "N")) { //this will return true if the input passes the regular expression
    alert("ECO type required - Select (C)hange for eco line item and Select N for Release Status if PNR/BOM Change Only is yes");
    else if(document.AddECNumber.PNR_BOM_Change_Only.value == "1" && document.AddECNumber.CN_Entry_Initials.value == "C" && document.AddECNumber.Release_Status_Initials.value == "U") { //this will return true if the input passes the regular expression
    alert("ECO type required - Select (C)hange for eco line item and Select N for Release Status if PNR/BOM Change Only is yes");
    else if(document.AddECNumber.Doc_Changes_Only.value == "1" && document.AddECNumber.CN_Entry_Initials.value != "C") { //this will return true if the input passes the regular expression
    alert("ECO type required - Select (C)hange for eco line item since Doc Changes Only is yes");
    <!--- else if (document.AddECNumber.P_Drive_Docs_Initials.value == "i")
    // self.location='eco_search.cfm'; --->
    else
    document.AddECNumber.submit();
    //  End -->
    </script>
    <cfform name="AddECNumber" action="add_new_ec_number_action.cfm" method="post">
    <tr>
    <td class="edit" align="right">Change or new entry:</td>
    <td>
              <select name="CN_Entry_Initials" id="CN_Entry_Initials" onchange="verify();">
                <option value="">Select</option>
    <!--------- POPULATE SELECT BOX WITH P_Drive_Docs_Initials FIELDS --------->
                <CFOUTPUT QUERY="ShowCNEntryInitials">
                <option value="#CN_Entry_Initials#">#CN_Entry_Initials#
                </CFOUTPUT>
              </select>
    </td>
    </tr>
    <tr>
    <td class="edit" align="right" valign="middle">Part Number:<br><h6>(Limit to 25 characters)</h6></td>
    <td><input type="text" name="Part_Number" id="Part_Number" maxlength="25" size="27" disabled="disabled"></td>
    <td><textarea name="Description" cols="30" rows="3"></textarea></td>
    </tr>
    <input type="button" value="Add" onclick="verify();">
    </cfform>
    Thanks.
    Andy

    I don't understand about using the alert box to output the variables. I know that everything was working with alert boxes, etc. before I added the code for the disable text box code. The difference I see is on the disable text box code I use document.getElementById and on the other code I use document.AddECNumber. Could this cause the Add button to not work? If so, how do I change this code to make it work? I tried just changing it be like the document.AddECNumber code, but that didn't work.
    Andy

  • How can we use list box on selection screen

    hi, howe can we use list box on selection screen and how can we populate the dat ainto the list box and how can we retrive data based on list box from ther database.
    thanks in advance
    raju

    Use the VRM_SET_VALUES function module.
    DATA: list              TYPE vrm_values,
          value             LIKE LINE OF list.
               AT SELECTION SCREEN OUTPUT
    AT SELECTION-SCREEN OUTPUT.
      name = 'P_OBJECT'.
      CLEAR list.
      REFRESH list.
      CLEAR value.
      value-key = '1'.
      value-text = 'Development Class'.
      APPEND value TO list.
      CLEAR value.
      value-key = '2'.
      value-text = 'Program'.
      APPEND value TO list.
      CLEAR value.
      value-key = '3'.
      value-text = 'Function Module'.
      APPEND value TO list.
      CLEAR value.
      value-key = '4'.
      value-text = 'Database Table'.
      APPEND value TO list.
      CLEAR value.
      value-key = '5'.
      value-text = 'Structure'.
      APPEND value TO list.
      CLEAR value.
      value-key = '6'.
      value-text = 'View'.
      APPEND value TO list.
      CLEAR value.
      value-key = '7'.
      value-text = 'Data Element'.
      APPEND value TO list.
      CLEAR value.
      value-key = '8'.
      value-text = 'Table Type'.
      APPEND value TO list.
      CLEAR value.
      value-key = '9'.
      value-text = 'Class / Interface'.
      APPEND value TO list.
      CLEAR value.
      value-key = '10'.
      value-text = 'Type Group'.
      APPEND value TO list.
      CLEAR value.
      value-key = '11'.
      value-text = 'Domain'.
      APPEND value TO list.
      CLEAR value.
      value-key = '12'.
      value-text = 'Search Help'.
      APPEND value TO list.
      CLEAR value.
      value-key = '13'.
      value-text = 'Lock Object'.
      APPEND value TO list.
      CALL FUNCTION 'VRM_SET_VALUES'
        EXPORTING
          id              = name
          values          = list
        EXCEPTIONS
          id_illegal_name = 1
          OTHERS          = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.

  • How to write text  on the selection screen of a  report

    Hi all,
    I need to write some user defined text on the selection screen of an ALV GRID Report.
    Please suggest me how can i do this
    Thanks
    Ajay.

    SELECTION-SCREEN BEGIN OF LINE .
    SELECTION-SCREEN COMMENT 12(31) text-024.<-----Goto text elements and add text.
    PARAMETERS:P_FILEN LIKE RLGRAP-FILENAME .
    SELECTION-SCREEN END OF LINE

  • Change of variable text in BEx selection screen

    Hi all,
    in our BW system the key users are allowed to create queries and also create variables. In some cases, especially for often used info objects like 0DATE the number of variables is increasing very quickly. The reason for this is, that 0DATE is used for a big variety of meanings e.g. delivery date, order date, invoice date etc.
    So the users always create new variables only to have a meaningful description in the BEx selection screen, because they do not want only "date" to be displayed here. As result we have many different varianbles with exactly the same technical settings with only different names.
    So my question is: Is it possible to change the diplayed text in the selection screen for each query without having to create a new variable?
    Thanek you and best regards

    Hi Stephan,
    Changing the diplayed text in the selection screen for each query is not possible.You have to create a new variable for each query.
    Rgds,
    Murali

Maybe you are looking for

  • [XI 3.1] Issues during "Clean" install on Windows Server (64-bit) OS

    Started setting-up a SANDBOX yesterday of BOE-XI (Release 3.1) on a "Clean" Windows Server (64-bit) OS. I hit a couple of issues that I think may be related to the DEFAULT "Program Files" location on the OS being... C:\Program Files (x86)\ ...rather

  • Fully qualified table name

    Hi, say I am doing a generic program that must retreive the table/view names and the number rows they hold. I am using the DatabaseMetaData.getTables to grab each table name, along with its schema and catalog. Then, I would send a request "SELECT COU

  • How to see changes in database made by other users

    If few users are connected to one database what should be done that all users could see changes (updates, inserts) made by one of them? I have set conn.setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED); and statement = DatabaseConnection

  • Key commands on a Mac Book Pro

    How do I navigate  the timeline without a Home key and page up and page down command on a Mac Book Pro

  • YUI and Dreamweaver CS4

    I'm considering upgrading to CS4. Is the new version able to render a page based on Yahoo's YUI? According to a post last year on the YUI javascript group, CS3's Design View rendering was based on Opera 9 but it didn't support all of Opera's css rend