Input disabled check box

how to display input disabled check box in selection screen.
plz give me sample code.i think we have to use at selection-screen output. so using it how we have to build code

Below is the code we can use:
REPORT zrjntrial_tree LINE-COUNT 65
LINE-SIZE 80
NO STANDARD PAGE
HEADING.
TABLES : vbrk.
PARAMETERS : p_radio AS CHECKBOX USER-COMMAND opt1.
SELECT-OPTIONS : s_vbeln FOR vbrk-vbeln,
                 s_fkdat FOR vbrk-fkdat.
AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF screen-name = 'P_RADIO'.
        screen-input = 0.
        screen-output = 1.
        MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
Regards,
Himanshu

Similar Messages

  • Disabling Check Box

    HI Experts,
                   I have Selection screen where in 1st Block I have 3 Radio Button & respective input fields. In 2nd Block I have 2 Radio button & Respective Check Boxes. I used Loop At Screen for Disabling Input Fields in 1st Block whose Radio Button is not clicked. I need to do the same Functionality for 2nd Block so that I can Disable Check Box whose Radio Button is not Clicked.
    I have allready writen  USER-COMMAND ABC in 1sr Block.
    And it wont allow me to write another USER-COMMAND for 2nd block. What Would I Do.
    Plz Help. Urgent.
    Thanks.
    Khan.

    Hi,
    Refer to the following code:
    selection-screen begin of screen 100 title title.
    selection-screen begin of block b1 with frame title text-t01.
    parameter:rad1 radiobutton group rad user-command frad1 default 'X',
              rad2 radiobutton group rad .
    selection-screen end of block b1.
    selection-screen begin of block b2 with frame title text-t02.
    parameter: mtr as checkbox modif id g3 user-command chk1,
               p_matnr type eban-matnr modif id g1,
               sloc as checkbox modif id g3 user-command chk2,
               str_loc type eban-lgort modif id g4.
    selection-screen end of block b2.
    selection-screen begin of block b3 with frame title text-t03.
    select-options: matnr1 for eban-matnr modif id g2.
    selection-screen end of block b3.
    selection-screen pushbutton /20(10) name user-command ucom.
    selection-screen end of screen 100.
    name = 'FETCH'.
    title = 'Test Report'.
    call selection-screen '100'.
    type-pools slis.
    declaration of internal tables and work areas to be used
    data: begin of it_pr occurs 0,
          banfn type eban-banfn,
          bnfpo type eban-bnfpo,
          loekz type eban-loekz,
          statu type eban-statu,
          ekgrp type eban-ekgrp,
          matnr type eban-matnr,
          werks type eban-werks,
          lgort type eban-lgort,
          preis type eban-preis,
          peinh type eban-peinh,
          end of it_pr.
    data: begin of it_mat occurs 0,
          matnr type eban-matnr,
          end of it_mat.
    *DATA:BEGIN OF ITAB1 OCCURS 0,
      data: l_answer.
    data: it_fieldcat type slis_t_fieldcat_alv,
          wa_fieldcat like line of it_fieldcat,
          it_event type slis_t_event,
          wa_event type slis_alv_event.
    declaration of variables to be used
    data: r_ucomm type sy-ucomm,
          mat_no type eban-matnr,
          len type i value 1,
          count type i value is initial,
          iflag type i value is initial,
          iflag1 type i value 0.
    data :pr_id type sy-repid,
    rt_extab type slis_t_extab.
    at selection-screen output.
      if rad1 = 'X'.
        loop at screen.
          if screen-group1 = 'G1' or screen-group1 = 'G4'.
            screen-active = '1'.
            screen-input = 0.
          elseif screen-group1 = 'G2'.
            screen-active = '0'.
          endif.
          modify screen.
        endloop.
      elseif rad2 = 'X'.
        loop at screen.
          if screen-group1 = 'G1'  or screen-group1 = 'G4' or screen-group1 = 'G3' or screen-group1 = 'G5'.
            screen-active = '0'.
          elseif screen-group1 = 'G2'.
            screen-active = '1'.
          endif.
          modify screen.
        endloop.
      endif.
      if mtr = 'X'.
        loop at screen.
          if screen-group1 = 'G1'.
            screen-input = 1 .
          endif.
          modify screen.
        endloop.
      endif.
      if sloc = 'X'.
        loop at screen.
          if screen-group1 = 'G4'.
            screen-input = 1 .
          endif.
          modify screen.
        endloop.
      endif.
    clear sy-ucomm.
    This will surely sort your prob
    Regards
    Gaurav

  • Input control -Check Box Problem in webi4 over Bex query

    Hi All
    i am in webi4 over bex query
    my customer requirement is to have the option to select multiple values from object (e.g Document class) with out the need of presenting the field(e.g document class) in the report
    when I use the input control check box or list box i have the following problem
    if I select from the input control all values I see the report ok
    if I select 2 values from the list I receive #UNAVAILABLE , but if i add the field to the report ( the document class) it works fine.
    the problem is that  if I don't have the field in the report i get the #UNAVAILABLE
    any assistance is appreciated
    Thanks

    Hi,
    this question has been asked many times before on this forum, so do please search first.
    Here's some steers : http://forums.sdn.sap.com/thread.jspa?messageID=10852102#10852102
    and : http://forums.sdn.sap.com/thread.jspa?messageID=10838993#10838993
    Also, do search the knowledge base articles over here in the cross-search: www.service.sap.com/xsearch
    you keywords would be "4.0 webi #UNAVAILABLE"    (there are 12 sap notes about this)
    Finally, make sure you use all the latest Patches (Patch2.11,  2.12 next week) to include corrections.
    Regards,
    H

  • Disable Check box in tabular form

    Hi,
    I am working on apex4.1. I have created a tabular form.There is 2 columns Approve and Cancel. if I tick on cancel check box then Approve check box column should disable and vice versa.
    How can i do this ?
    Thanks & Regards
    Vedant

    hi,
    this thread maybe help you
    Tabular Form: Enable/Disable a field based on the status of a check box
    regards,

  • How to disable check box (row selector) in a tabular APEX report

    I have a tabular report with check boxes that gets populated by a SQL query.  For certain rows, I want to disable (or not render) the check box, depending on the value of one of the columns for that particular row (if the value of a column defined as Date is less than sysdate, I don't want to display the check box for that row).  I tried using the Conditional Display in the Column Attribute section of the check box, but I am unable to access this Date column which is being selected from a view in the source SQL.  I used variable such as :name-of_column, V(':name-of_column'), but always get a NULL value for this Date column in the SQL that I am trying to code in the Conditional Display section.  For this reason, my condition does not work correctly.
    What am I doing wrong?  Is my approach above correct?

    Hi Ajay,
    I don't think you can handle this with a conditional display, as that works on column level rather than row level.
    The way I see it, there are two things you can do:
    1) an sql approach, where youo render the checkbox as part of your query using apex_item.checkbox, check the oracle docs for detailed info on the usage APEX_ITEM
    You'll end up with a query like
    select case when YOUR_DATE_COLUMN < sysdate
                      then null
                      else  apex_item.checkbox2( p_idx => 1
                                                               , p_value => YOUR_DATE_COLUMN
    ,      <rest of your query here>
    from YOUR_TABLE
    2) an JavaScript approach in which you create a dynamic action that check your tabular form date column and, when necessary hides and disables the checkbox for that row.
    First option is more robust, but will require a bit more work. Second option is faster to develop, but might have different effect across various browsers and browser versions.
    Regads,
    Vincent
    http://vincentdeelen.blogspot.com

  • Disable check box in report

    Hi All,
    I have created check box in a report using APEX_ITEM.CHECKBOX
    select apex_item.checkbox(1, emp_id) , emp_id,ename,manager,skills,salary,services from employee
    In employee table each employee would have 2 records one is for Engineering and another for Research services.
    If the user selects one of the records using the check box ,lets say engineering service for emp_id 100, corresponding Research service record for the employee 100 should be disabled( or the check box in the Research service record should be disabled) and on the other hand it should be enabled when the user unselects it.
    Please help me to resolve this.
    Application Express 4.1.1.00.23
    Glass-fish server
    Thanks and Regards,
    Sasi

    This is from one of my examples:
    SELECT apex_item.checkbox (1,
                               '#ROWNUM#',
                               CASE
                                  WHEN status = 'N'
                                     THEN 'disabled=disabled;'
                                  ELSE NULL
                               END,
                               DECODE (status, 'Y', '#ROWNUM#'),
                               'f01_' || '#ROWNUM#'
                              ) check_box
      FROM employees_checkboxIt will show the checkboxes disabled if status is 'N' and enabled if stauts is 'Y'. Is this similar to your requirement?
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Disabling Check box via SPEL

    I have a requirement where in a Message Check Box needs to be disabled. When navigated to this page the checkbox is already set.
    a. Can this be achived via Personalization?
    b. I have set the item's Required property to SPEL with the following value ${oa.AppraisalVO.disableCheckBox} but it errors?
    Please help!
    Thanks,
    Hari

    Set FND: Diagnostics profile to yes to get the complete error stack.
    --Shiv                                                                                                                                                                                   

  • Programatically enable-disable check box"play user interface sound effects"

    Hello All,
    I have been Working on something where i need to disable the "play user interface sound effects" check box ( Under System preferences under sound panel ) for few seconds and then enable the same programically without any user interface appearing on the screen. I know something related using the Applescript however there is a user interface appearing there which doesn't serve the purpose please help with some solution.If you could provide the exact location of the plist file which holds this information then that could help as well.

    Hi !
    I too have been working with the sounds ( Which i think is relates to @mit's query ) in an application and the problem is that when ever that application moves something to trash there is a sound which comes the sound of "throwing things in the trash". This is very annoying and i want to do something so that I can suppress that sound atleast for the time this application is on. Now is there some way where I can do this Programically . It would even be fine if I could turn off the user interface sounds completely for sometime and then bring them back on.
    Thanks In Advance !
    Looking Forward To Some response soon !
    iMAC G4   Mac OS X (10.4)   Power PC 256 MB RAM

  • How to enable/disable check boxes in a table.

    hi Gurus,
    i am new to webdynpro for abap.
    the problem i have is.
    i have a table with two columns. first one is a check box column and the second one is a value field. the table is populated with data(second field only) upon pressing some button.
    while populating data i want to make check box field/row ticked and disabled when second field row value is 'X' . if not leave the check box row/field enabled and unticked ( if i want i can tick the check box later). hope you guys me. this is sort of urgent. please reply with some code.
    thanks in advance.
    Sree

    Hi
    Issue what i am facing is,i want to display column of CHECKBOXes in my ALV.
    for that i declare atrribute of type CHECKBOX.
    And i write the following code.
    lr_column_settings ?= l_value.
    lt_columns = lr_column_settings->get_columns( ).
    loop over table - in each loop another column can be modified
    LOOP AT lt_columns INTO ls_column.
    IF ls_column-id = 'CHK_BOX'.
    CREATE OBJECT lr_chk_box
    EXPORTING
    checked_fieldname = ls_column-id.
    lr_chk_box->set_read_only( ABAP_FALSE ).
    lr_chk_box->set_read_only_fieldname( 'ALV_FINAL_STATUS' ).
    ls_column-r_column->set_cell_editor( lr_chk_box ).
    even i cant able to get checkbox in my ALV.
    IT is displaying as general field.
    Regards,
    Ravi

  • Check box hidden/visible

    Hi there...
    I have been reading a lot of posts about enabling/disabling check box and so far I have not found what I need to do.  It is a very simple action and I just can't figure out what to do:
    I have a check box and a text box.
    Initially, the text box is hidden (style"visibility"hiddent").
    UNTIL When the check box is checked, text box should appear to be filled in.
    Otherwise, text box stays hidden.
    I used the style attribute because "Disabling" the text box didn't work.  One can still type in something even if the check box was not filled in.
    I was wondering if this could happen on the client side?
    Please advise.
    Thanks,
    Karla

    This might help for a textarea
    http://www.w3schools.com/TAGS/att_textarea_readonly.asp
    For an input
    http://www.w3schools.com/TAGS/att_input_readonly.asp
    readonly is the attribute you are looking for I believe.
    Byron Mann
    [email protected]
    [email protected]
    Software Architect
    hosting.com | hostmysite.com
    http://www.hostmysite.com/?utm_source=bb

  • How to capture check box click in ALV

    Hi,
    I have requirement in which after displaying the ALV out put, immediately when the check box is checked i need to capture it and proceed with further coding with that input.
    Check box click is not getting captured in "USER COMMAND or LINE SELECTION"
    Could you please suggest a way.
    Regards
    venkatesh.

    Venkatesh,
    If you are using cl_gui_alv_grid you need to register "change" event to catch the checkbox change.
    you do so with this method of cl_gui_alv_grid class :
    register_edit_event( i_event_id = cl_gui_alv_grid=>mc_evt_modified ).
    event handler class
    class lcl_event_receiver definition.
      public section.
        methods:
        user_command for event user_command of cl_gui_alv_grid
        importing e_ucomm,                                      "#EC NEEDED
        data_changed for event data_changed of cl_gui_alv_grid
        importing er_data_changed e_onf4 e_onf4_before e_onf4_after e_ucomm,"#EC NEEDED
    endclass.
    global data
    data: o_event_receiver      type ref to lcl_event_receiver.
    data: goo_grid type ref to cl_gui_alv_grid.
    At the displaying of your grid / register the change event and set handlers
    goo_grid->register_edit_event( i_event_id = cl_gui_alv_grid=>mc_evt_modified ).
        set handler:
          o_event_receiver->user_command for goo_grid,
          o_event_receiver->data_changed for goo_grid.
    hope this helps...
    regards

  • Check Box Tree.

    Hi All,,
    Unfortunately, I knew that the Check box Tree was removed from the final release of Apex, but I have a problem and I do need to implement this functionality in my application. What I have tried so far is :
    1- I tried to use Apex_Item.Check Box in the ICON parameter of the tree query, but nothing happened.
    2- I tried to concatenate Apex_Item.Check Box in the Text parameter of the tree query, but it displayed as a normal text and the browser doesn't interpret the html text <input type="check box".....>.
    Does anybody now any solution or work around for this problem?
    Any help will be appreciated.
    Thanks in Advance,,
    Ola

    Hi,
    Not sure if this hack will get the checkboxes to work for you (may be worth a shot):
    {message:id=4549167}
    {message:id=8313970}
    Ta,
    Trent

  • Using Javascript to disable a check box

    Friends,
    I am stuck on what should be a simple requirement and I am hoping you can help.
    I need to disable a form region checkbox if a field on the same form region has anything entered.
    What I have done so far is:
    1) On the item that determines whether the check box should be disabled I have added a call to my Javascript function "onChange="disableDefaultDisplay();" in the "HTML Form Element Attributes"
    2) My javascript funcion is: (this is the basic version, all I am trying to do is disable the check box at this point)
    function disableDefaultDisplay()
    alert("Start of the function");
    var defaultDisplay = document.getElementById("P13_DEFAULT_DISPLAY");
    *defaultDisplay.enabled = false;*
    alert("End of the function");
    Using a combination of firebug and the alert messages I can see that function is called at the correct time (i.e. when the user changes and then leaves the field) and that the values of the variable, defaultDate are set but my attempts to disable the checkbox have yet to work!
    When I look at the type of the checkbox (through the source of the page or firebug) I see the checkbox has the following "fieldset#P13_DEFAULT_DISPLAY.checkbox_group" Do I need to do anything different to disable this type of object?
    Any help would be very much appreciated!

    Hi Andy,
    I was returning to this thread to update it with how I resolved it, so thanks for the detailed response.
    In a nutshell, the solution I used was a loop through the field set(of which there is only one item in it) and disabling it.
    Where you say:
    Secondly, checkboxes are, as you have seen, wrapped within a fieldset tag. The fieldset tag has an ID of the page item name. Each checkbox within that tag has its own ID value, which will be the fieldset ID plus "_n" (where n is a sequential number starting from 0) - thus, the first checkbox will be, for example, "P1_CHECKBOX_0", the second will be "P1_CHECKBOX_1" and so on.From my searching for a solution I had expected to see something like that. But the source for the item I was trying to disable is shown below and I can't see any numbers after it.
    Do you know why? Is it because it is the only item?
    &lt;fieldset id="P13_DEFAULT_DISPLAY" class="checkbox_group"&gt;
    &lt;input type="checkbox" name="p_v18" value="Y" id="P13_DEFAULT_DISPLAY" /&gt;&lt;/fieldset&gt;
    Regards
    Ian
    Edited by: IanC2 on Feb 8, 2009 8:07 PM
    Edited by: IanC2 on Feb 8, 2009 8:08 PM

  • Check box disabling

    hi ,
    i have one requirement that , two check boxes are there if i check one check box then one parameter should come and another check box should be disable. i.e. should not give permission to check that. So how can i do please guide me.
    thank you,
    regards
    raghu

    Try this code:
    Parameters:
      chk1 as checkbox user-command com,
      chk2 as checkbox,
      Char1(5) type c,
      char2(5) type c.
    At selection-screen output.
      if chk1 eq 'X'.
        loop at screen.
          if screen-name CS 'CHK2'.
          screen-input = 0.
          modify screen.
          endif.
        endloop.
      elseif chk2 eq 'X'.
          loop at screen.
          if screen-name CS 'CHK1'.
          screen-input = 0.
          modify screen.
          endif.
        endloop.
      endif.
    With luck,
    Pritam.

  • Preventing disabling of check box - item okay in MIGO

    Dear all,
    In the MIGO transaction - during goods receipt for subcontractor material, when the item (incoming) is checked as item okay - automatically the child material (Material sent to subcontractor) is also activated thereby to enable 543 movement.
    Unfortunately some of the users are disabling the check box (for the material sent to the subcontractor). This prevents depletion of stock from the subcontractor but inflates the stock of the incoming material.
    Is there any way - either by authorisation check to prevent users disabling the check box or other methods?
    Experts suggestion is required in this regard.
    Thanks in advance.
    Regards,
    M.M

    Hi Magesh,
    it is possible. use Badi enhancement
    MB_MIGO_BADI goto
    IF_EX_MB_MIGO_BADI~POST_DOCUMENT
    tell your abaper to put the logic like
    parent ID and subcomponent ID need to select
    if either of two is not selected
    then error message will prompt not to save the GR doc since subcomponent is unselected.
    reference field EKPO check PSTYP
    hope this help you.
    regards,
    Maia
    Edited by: Maia on Apr 18, 2008 3:07 PM

Maybe you are looking for

  • I am not able to connect my iPad 1 with TV using apple VGA adapter

    Hello, When I connect my iPad 1 with a wide screen TV using the apple VGA connector, there's no display on the TV. But when I do the same thing from iPad 2, the iPad screen is projected on TV. Please help

  • Unable to change data source of any report

    Hello there, I am using the Crystal Reports Eclipse plugin. I added a datasource to Eclipse 3.3 which connects to a Oracle database using JDBC. Now I want to change the data source of a report. I get a popup window which displays the old data source

  • In Lion, Safari 5.1 no longer plays .m3u files

    In Lion, Safari 5.1 no longer plays .m3u files - it just downloads them, and dragging the file back into the browser doesn't do anything. This functionality used to work in 10.6 - the .m3u file would play directly in the browser. The .m3u files still

  • Duration of an Abap Function call from Java using Jco3

    Hi guys! I would like to use this discussion to get some refernces of the duration Timespan of an RFC call from Java to SAP. At the moment, i need at last about 200ms to call the Abap function. I'm just using one simple import and export parameter (s

  • Query regarding remote Portlets

    Let me explain my scenario, I have a WLP 8.1 sp6 portal domain. This domain contain 1 J2ee application, 1 WLP Producer application and 1 WLP Consumer Application. I have a Custom Realm created, which contains a couple of custom Authenticators. All th