Query on radio button

Hi All,
For radio buttons in a group , I know by default one radio button will be selected always. If I give Default option for radio button with value "X" then that will be selected in selection screen.
Now my query  : "Is there any way to have both/all radio buttons unselected when the program is executed and let user choose one of the radio buttons on selection screen and carry ahead the exection" ?
Please confirm even if this cannot be done , as I just want to be sure whether this can be done or not in ABAP.
Thanks for your help.
Regards,
Jalpa

Hi,
Its not possible to have without default selection of radio button group in ABAP.
But we can achieve this one through screen design within that screen  design properties we can keep  input  check boxes  unselected.
for that in screen layout take three radio buttons then go to  elementary list>general attribute>input check box unselect
Result is disable radio buttons but all are unselected.
Hence as per my knowledge which your being expected not possible in ABAP.
Regards
Sreenivas

Similar Messages

  • Query regarding Radio Button

    Hi Guys,
                   In my selection screen I am giving 2 radio buttons.
    My requirement is I need a sy-date field beside one radio button.
    Is there any way to do this.
    Thanks in Advance,
    Prasad.

    Hi..use this code:
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETER : ra_1 RADIOBUTTON GROUP g1 DEFAULT 'X' USER-COMMAND abc,
                ra_2 RADIOBUTTON GROUP g1.
    SELECTION-SCREEN COMMENT 7(10) display.
    *SELECTION-SCREEN COMMENT 7(10) display MODIF ID def.
    SELECTION-SCREEN END OF LINE.
    AT SELECTION-SCREEN OUTPUT.
      IF ra_1 = 'X'.
        display = sy-datum.  " you can modify the format of the date
      ELSE.
        display = sy-datum.
      ENDIF.
      MODIFY SCREEN.

  • Query regarding radio buttons

    Suppose i have created a 2 radio buttons say A1, A2. If i click A1 radio button One table which i have created should open, Similarly when i click A2 radio button Another table should Display...an u plz give code for that??

    Hi
    What do you mean by table to be displayed? You mean the data from that table to be displayed in the report output.
    first fetch the data of two tables into two internal tables ITAB1 and ITAB2
    now write the code as
    if v_r1 = 'X'.  (first radiobutton is selected)
    write: ITAB1 fields
    else.
    Write ITAB2 fields
    endif.
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Simple query reg radio button

    Hii All
    In my report i am creating two radio buttons normally when we create radio buttion text comes first then radio button comes
    But i want first radio button comes then corresponding text to my radio button appears
    Helpful Answers will be rewarded
    regards
    Hitesh

    Hi
    see this selection screen design
    TABLES EKKO.
    ********END OF DATA DECLARATIONS*********
    ********SELECTION SCREEN DESIGN ***********
    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.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-004.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : R1 RADIOBUTTON GROUP G1 DEFAULT 'X'.
    SELECTION-SCREEN COMMENT 5(20) TEXT-002 FOR FIELD R1.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS : R2 RADIOBUTTON GROUP G1.
    SELECTION-SCREEN COMMENT 5(20) TEXT-003 FOR FIELD R2.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF BLOCK B2.
    ******END OF SELECTION SCREEN DESIGN****************
    double click that text elements and write what ever you want and activate it
    thats all

  • NEED HELP IN RADIO BUTTON QUERY

    Hi, Friends
    I like to query to extract data from my table with the help of radio button but I am not able to think what I should write to query. Plz help.
    The radio button select jsp page code is-
    <form action="queryservice.jsp" method="post">
    <h3><strong>Services Available</strong></h3>
      <p>
        <label>
          <input type="radio" name="service" value="si"  />
          Institutions</label>
        <br />
        <label>
          <input type="radio" name="service" value="sc" />
          Corporate_Offices</label>
        <br />
        <label>
          <input type="radio" name="service" value="sr" />
          Restaurent_Cafe</label>
        <br />
        <label>
          <input type="radio" name="service" value="sb" />
          Bus_Stop</label>
        <br />
        <label>
          <input type="radio" name="service" value="sa" />
          Apartment</label>
        <br />
        <label>
          <input type="radio" name="service" value="sh" />
          Hotels</label>
        <br />
      </p>
      <label>
        <input type="submit" value="Submit" />
      </label>
    </form>And queryservice.jsp page is
    <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql" %>
    <sql:query var="xyz" scope="request">
       <% String var = request.getParameter("service"); %>
             if(var.equals("si")){ SELECT si FROM serviceTable}
          else if(var.equals("sc")){ SELECT sc FROM serviceTable}
          else if(var.equals("sr")){ SELECT sr FROM serviceTable}
          else if(var.equals("sb")){ SELECT sb FROM serviceTable}
          else if(var.equals("sa")){ SELECT sa FROM serviceTable}
          else if(var.equals("sh")){ SELECT sh FROM serviceTable}
    </sql:query>Please correct it.
    Thanking you

    Error Report-
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException:
           if(var.equals("si")){ SELECT si FROM serviceTable }
          else if(var.equals("sc")){ SELECT sc FROM serviceTable}
          else if(var.equals("sr")){ SELECT sr FROM serviceTable}
          else if(var.equals("sb")){ SELECT sb FROM serviceTable}
          else if(var.equals("sa")){ SELECT sa FROM serviceTable}
          else if(var.equals("sh")){ SELECT sh FROM serviceTable}
    : Non supported SQL92 token at position: 57: SELECT
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:541)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:417)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    javax.servlet.ServletException: javax.servlet.jsp.JspException:
           note The full stack trace of the root cause is available in the Apache Tomcat/6.0.14 logs.
    Apache Tomcat/6.0.14

  • How to use Radio buttons in WAD to select different condition in a query

    Hi Guru,
    I am new to WAD, I want to use radio buttons in selection screen of query for different selections based on selection criteria. I am aware of executing different queries using different radio buttons. but i want to use single queries for different radio button selections.
    I have found some relevant topic to it but not got exact solution. Please guide me.

    Hi Avinash,
    Drag a DropDown webitem into your template. Under DropDown webitem properties, Data Binding -> Fixed List of Options.
    Fixed Option -> Action -> Command via Command Wizard, Command -> Commands for Data Providers -> Data Provider Commands for Filter Values -> SET_SELECTION_STATE_SIMPLE. Data Provider Affected -> choose the main DP Query here. Characteristic -> choose Employee Group characteristic here as present in your DP Query. Sign -> INCLUDING, Operator -> EQUAL_SELECTION, Equals -> MEMBER_NAME, Member Name -> specify the value here i.e. Employee1 etc.
    Repeat above Fixed Option step for Employee2, Employee3 etc. selections. For 'All' option choose Command CLEAR_SELECTION_STATE with Data Provider Affected as the main DP Query & Characteristic as Employee Group.
    --Priya

  • Selection Based on Radio buttons in SAP Query

    Hi All,
    I am new to SAP Query.
    I have added the radio buttons on the selection screen of my SAP query screen.
    Can anyone please tell me how to make the field selection in query based on the status of these radio buttons.
    Thanks And Regards,
    Rupesh

    HI
    you have to do this using modif id. here is a sample program to do this
    PARAMETERS show_all radiobutton  group g1 USER-COMMAND flag.
    PARAMETERS no_show radiobutton  group g1 default 'X'.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    PARAMETERS: p1(10) TYPE c,
                p2(10) TYPE c,
                p3(10) TYPE c.
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME.
    PARAMETERS: p4(10) TYPE c modif id bl2,
                p5(10) TYPE c modif id bl2,
                p6(10) TYPE c 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.
    reward if helpful
    Message was edited by: Harikishore Sreenivasulu

  • Radio-buttons in ABAP Query

    Hi,
    Can you please let me know how to add the radio button in the selection criteria of the ABAP/4 Query.
    InfoSet is developed by joining two tables. It does not include any LDB.
    Requirement:
    Based on the Radio button value given in the selection-screen, I need to filter the records.
    For this, I need to add the radio-button on the selection-screen of the report.
    Please let me know how to add the radio button on the selection-criteria of the report.
    and also let me know is there any possibility to change the InfoSet attached to the query.
    Thanks,
    Madhuri.

    HI
        YOU CAN USE THE FOLLOWING SEGMENT OF CODE TO HAVE RADIO BUTTONS IN THE SELECTION SCREEEN..
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.
      PARAMETERS: R1 RADIOBUTTON GROUP RAD1 DEFAULT 'X',
                  R2 RADIOBUTTON GROUP RAD1,
                  R3 RADIOBUTTON GROUP RAD1.
    SELECTION-SCREEN END OF BLOCK B1.
    AT SELECTION-SCREEN ON RADIOBUTTON GROUP RAD1.
      IF R1 = 'X'.
        <b>SELECTION CRITERIA</b>
      ENDIF.
    FOR MORE DOCUMENTATION PLEASE REFER THE LINKS
    1 <a href="http://72.14.203.104/search?q=cache:M-DVSgwQ-pYJ:www.geocities.com/siliconvalley/campus/6345/paramete.htmRADIOBUTTONINSELECTIONSCREENIN+ABAP&hl=en&gl=in&ct=clnk&cd=6">PARAMETERS</a>
    2 <a href="http://72.14.203.104/search?q=cache:GVSXomykKsYJ:cma.zdnet.com/book/abap/ch21/ch21.htmRADIOBUTTONINSELECTIONSCREENIN+ABAP&hl=en&gl=in&ct=clnk&cd=7">SELECTION SCREENS</a>
    IF THESE ARE USEFUL PLEASE REWARD POINTS
    REGARDS,
    ANOOP

  • Reg:Radio button in ABAP Query

    Hi ABAPers ,
    I created radiobuttons in SQ02 there i have to write the coding for it ... what type of coding we have to write
    ALV coding wll work out or what type of coding we have to write can you guys plz suggest me
    Help me out from this problem i am not familiar with ABAP Query
    Regards,
    Y Ravichandra.

    Hi Ravichandra,
       You have to use at selection-screen output event for this purpose here is a sample code try it and you will get the logic.
    PARAMETERS :
       p_flight RADIOBUTTON GROUP r1 ,
       p_book RADIOBUTTON GROUP r1 .
    PARAMETERS :
      w_temp1 RADIOBUTTON GROUP r2 MODIF ID sc1 ,
      w_temp2 RADIOBUTTON GROUP r2 MODIF ID sc1 .
    SELECT-OPTIONS s_carrid FOR sflight-carrid MODIF ID sc1 .
                                           " Airline Code
    PARAMETERS :
    w_temp01 RADIOBUTTON GROUP r3 MODIF ID sc2 ,
    w_temp02 RADIOBUTTON GROUP r3 MODIF ID sc2 .
    SELECT-OPTIONS s_bookid FOR sbook-bookid MODIF ID sc2 .
                                           " Airline Code
    *                       AT SELECTION-SCREEN OUTPUT                    *
    AT SELECTION-SCREEN OUTPUT .
      IF p_flight = 'X'  .
        fl_flag = 1 .
        LOOP AT SCREEN.
          IF screen-group1 = 'SC2'.
            screen-active = 0 .
            MODIFY SCREEN .
          ENDIF.                           " IF SCREEN-GROUP1 = 'SC2'
        ENDLOOP.                           " LOOP AT SCREEN
      ELSEIF p_book = 'X' .
        fl_flag = 2 .
        LOOP AT SCREEN.
          IF screen-group1 = 'SC1'.
            screen-active = 0 .
            MODIFY SCREEN .
          ENDIF.                           " IF SCREEN-GROUP1 = 'SC1'
        ENDLOOP.                           " LOOP AT SCREEN
      ENDIF .                                " IF P_FLIGHT = 'X' .
    Here in this case, There are 2 radio buttons and 2 select options. On clicking the first radio button one of the select option is hidden. If you you just have a single radio button then you can avoid using at selection-screen output and just write your code start-of-selection.
    Much Regards,
    Amuktha

  • Check Box or  Drow Radio Button on Bex Query

    Hi Experts,
    Does anyone know to how to put a "Check Box" or  "Drow Radio Button" variable on query selection screen?
    The user want to switch the order data between open and completed on a same report by a check box / radio button.
    Thnaks

    Hi Linkzhou,
    Why don't you directly use a var on Actual Delivery Date & include/exclude on # cases to report open/closed shipments.
    Alternatively, You can achieve the same without making changes to backend, if you are ok with using WAD. In WAD 7, you can use a DropDown webitem instead of a RadioButton/Checkbox webitem since you cannot assign a Command on selection from a RadioButton/Checkbox webitem. Also, you would need to design the same in a web template since this will not be made available on your query selection screen.
    In the DropDown webitem, use Data Binding Type -> 'Fixed List of Options' , here you can configure
    Open -> under Action use Command 'SET_SELECTION_STATE_SIMPLE', choose your Actual Delivery Date char, Sign -> INCLUDING, Operator -> Equals, Equals -> Member Name, Member Name -> Direct Input -> # [Not Assigned]
    Closed -> under Action use Command 'SET_SELECTION_STATE_SIMPLE', choose your Actual Delivery Date char, Sign -> EXCLUDING, Operator -> Equals, Equals -> Member Name, Member Name -> Direct Input -> # [Not Assigned]
    Now when the user selects Open option from the DropDown webitem, the data provider query will be filtered for open shipments & vice versa for Closed option.
    --Priya

  • Missing output format radio button in SAP Query

    Hi SAP Gurus
    We have SAP Query which as created in 4,6c. After the upgrade to ECC 6.0 We found that the output format radio button is mising in SAP Query. We are unable to choose teh output format. How can we have the radio button back?
    Appreciate yr help
    Rgds..Sanjay

    Dear Sanjay
    Refer OSS Notes 723577 and 132813, may be this notes helpfull.

  • Radio button getting unchecked when form in query mode

    There are 4 radio buttons on my form.Initially when the form is opened one radio button is checked.But when the form is in query mode that radio button got unchecked.Is there any way that the initial checked radio button remains checked even the form is in query mode ?
    Message was edited by:
    user496853

    Hi,
    Solutions given by Kevin and Zaibiman is not applicable for my form as the radio button will be in data base block only.This is the requirement of the form.
    The other solution given by Zaibiman was to set the radio button item when entered in query mode , i have tried that but that is also not working.
    Pranati,the solution given by you i have also tried that ,but that has not solved the issue,Radio button get unchecked when eneterd in query mode.
    Please elaborate and suggest.
    Thanks,
    Kirti

  • Can in af:query we have vo attribute rendered as radio button?

    Hi ,
    we have a requirement wherein we have a search region which has 2 radio buttons to choose date range and week range respectively.is there any way to achieve this in <af:query>????
    Any pointers how to achieve this??
    Thanks
    Anand

    Hi
    Radio groups are not supported inside query currently, you may have a look at this [ similar post|https://forums.oracle.com/forums/thread.jspa?threadID=2129840] and frank's reply for more details/explanation.
    When I searched for enhancement request, I found one but that had been rejected asking for business requirements.
    If you feel, this is must in your project and have proper usecase and business requirements you may raise an enhancement request with support.
    Thanks,
    Sireesha

  • Filter results in query depending on value radio button

    Hi all,
    I have a "y/n" radio button group along with other fields and when submitted, you should be able to see a certain column depending on what the user chooses.
    For "y" all records should be displayed, where the column value is not null and for "n" only the records where the column value is null should be displayed.
    I've tried with conditional display for the column, but still get the records where the value is null in my report for "y".
    Can anyone help me fix this?
    kind regards,
    Cleo
    Edited by: Cleopatra on Jan 27, 2011 11:56 AM

    What you want is
    AND {CONDTION}
    AND {CONDTION}
    AND {COLUMN FILTER CONDITION}so it should be
    WHERE
    AND {CONDITION 1}
    AND {CONDITION 2}
    AND  (
              ( :ITEM_NAME = 'Y' AND <COLUMN NAME> IS NOT NULL )
              OR ( :ITEM_NAME = 'N' AND <COLUMN NAME> IS NULL )
           )Hope you have understood the reason why the column filter have been made together into an additional clause , rather than adding them them directly.
    If you are confused about the logical structure of the query, try forming them into a sentence which you would be explaining the requirement.

  • Translation of radio buttons in query?

    Hi all,
    I need to translate a query from EN to ES, so I used transaction SQ07, It works fine exept for 2 radios buttons that I've in the selection-screen, I can't find them in SQ07, and of course I can't use the normal translation because it's a Query generated report and not a normal one.
    Any idea of where I need to look to translate the radio button text for a query ? All the others texts are translated ok.
    Thanks in advance.
    Enrik

    Hello Arun
    Don't you think it is much easier that the user <b>directly </b>selects the tabstrip instead of going to a specific tabstrip, push a certain radiobutton followed by pushing a OK button in the application toolbar???
    Regards
      Uwe

Maybe you are looking for

  • In BC, how can I remove the large space above the product images?

    Hi, I'm having a problem with the product pages in Business Catalyst. There is a large space that appears between the breadcrumb trail and the first row of product images (small product page) and between the breadcrumb trail and the information on th

  • Just reinstalled software and migrated data from Time Machine, now iMac does not recognize printer or camera

    Under the direction of Apple Support, I recently erased my iMac (Intel) hard drive, reinstalled and updated software and migrated data from an external hard drive via Time Machine. Now, after clicking on "PRINT", the print dialog box says "printing"

  • VERY  VERY slow to sync!!!

    Hi I am not sure whether this is the most efficient way to summit my problem but hope you guys can find me the solution. I brought Itouch early last month but was unable to install and use the itouch probably. The sync function is so slow that eg. It

  • Urgent problem in struts bc4j app

    The problem occurs between the Controller an the View Layer(can I debug there?) Anyway, I can see the data in the Action class, but not in the jsp page, there's just one row (the first). Thank you. I'm using the 9.0.3.3 build 1205 The Action class: p

  • JPS  Problem: Not able to detect all printers

    Hi, I want to print document to a specific printer using Java PrintService API.My code is: import java.io.*; import java.io.File; import java.io.IOException; import javax.print.*; import javax.print.attribute.*; import javax.print.attribute.standard.