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

Similar Messages

  • 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

  • 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

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

  • Summation button missing in abap query ..

    Hi,
    How to activate summation button in Abap query..
    Problem is ,we had instaled some service packs in our production system..
    After this we found that ,when we run one of our Abap query (with transaction code) in output  summation button is not there.
    Can you please let me know  how can we activate this summation button..
    Thanks,
    Parnith..

    Hi Amit,
    Thanks For Reply..
    Even though there are  summables in list ,summation button is deactive..( It is not being dispalyed on output list)
    Can you please suggest the process to activate this summation button..
    Thanks
    Parnith

  • Radio buttons on interactive report

    Hello all,
    I've added radio buttons to an interactive report. What would be the best way to submit the form when user selects the buttons?
    Thanks.

    Hi inka,
    inka wrote:
    Hello all,
    I've added radio buttons to an interactive report. What would be the best way to submit the form when user selects the buttons?
    Thanks.
    one of the way to submit the form is use apex.submit
    Check the example given below
    1) Assuming you have used apex_item.radiogroup to create radio buttons.
    sample sql query for interactive report
    select EMPNO,
          ENAME,
          JOB,
          MGR,
          HIREDATE,
          SAL,
          COMM,
          DEPTNO,
          apex_item.radiogroup(1, EMPNO) r
      from EMP
    2) Go to Report Attributes -> Edit Radio button column
        Under Column Definition
        Display Type : Standard Report Column
        Under Column link -> do the changes given below
        Link Text : #R#  // here R is my radio button column name, so select yours radio button column name.
        Target : URL
        URL : javascript:apex.submit({request:'TEST',set:{'P6_HIDDEN':#EMPNO#}});
         // here P6_HIDDEN is item where i am setting EMPNO to that column, if you want to set any value to any item that you want to use in process then create Hidden item with protected value no.
    or if you want to show confirm message before submitting the page then use apex.confirm in place of apex.submit .
    Hope this helps you,
    Regards,
    Jitendra

  • 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

  • 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

  • Replacing SAP Object Selector with Radio Button in ALV table in WD ABAP

    Hi All,
    I have a view in Webdynpro ABAP which displays data in an ALV table view (using SALV_WD_TABLE component).
    By default we have the SAP Object Selector for selecting a particular row of the table. This has to be replaced with radio buttons.
    I mean instead of using the SAP Object Selector, I need radio buttons at the start of each row.
    What I have thought of is to make the SAP Object Selector Invisible and create another attribute for the radio button in the node which contains ALV output data.
    Can you please let me know how to remove the SAP Object Selector from ALV output table and also how to include a column with radio button in the ALV output table.
    Thanks and Regards,
    Sayan Ghosh

    Hi Lekha,
    I am working with HRASR00_PROCESS_EXECUTE WD component of MSS application. In order to generate the data, this in turn calls another component called DATAOBJECTPROVIDER. I need to make the table selection as none and replace the SAP Object Selector with the radio button.
    Do you know under which method in DATAOBJECTPROVIDER do we need make the changes. I tried to search all the methods but couldnt understand a suitable one.
    Thanks and Regards,
    Sayan Ghosh

  • 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

  • Problem with apache plug-in for  WLS 7.0

    I have installed the plug-in follow the "Installing an Configurating the Apache HTTP Server Plug-in" that I have found in bea. The problem is in the third step of "Installing as a Dinamic Shared Object". The Apache 2.0.39 hasn´t the program apxs, and

  • Check Payment Processing Across Multiple Operating Units

    Hi There We are currently implementing Oracle R12 at the company I work for. Our solution implementer has informed us that you cannot process one check (cheque) payment across multiple operating units and that this is an outstanding enhancement with

  • Incoterm in Purchase Order

    Can any one tell is incoterm only apply to purchases from overseas vendor, it is also applicable to local purchases? It is make sense to make Incoterm field as mandatory for all purchase order? Please help.

  • Help Required from archieving Delivery data

    Hi all, I need to archieve delivery data(LIKP data),I have no idea of how to proceed with ,im not able to get a clear picture with existing threads regarding archieving . Kindly Help me out Santhiya B

  • Changing system status depending on user status

    Hello All, What I need to do is, when the user sets the user status to, let's say, "Finished", I have to detect it and change the system status to "Concluded". Does anybody have any idea about how could I manage this situation? Thanks in advance.