Reg: Radio Buttons urgent

HI all
How to add radio buttions in  prgogramm. how to initialize in the programm and where can i give selecton parameters in the programm plz send me detailed steps
regards
JK Rao

hi,
i am sending u a simple ex prog which is close to ur req,go thru it.
i have 2 radio buttons and 2 parameters on the selection screen.
if 1st radio button is selected,display material number
that is eneted by the user for the parameter p_matnr,
if 2nd ine is selected display  plant.
displaying part you can wirte accordingly,
<b>selection-screen begin of block b1 with frame.
parameters:r1 radiobutton group GP1,
           r2 radiobutton group gp1.
selection-screen end of block b1.</b>
<b>selection-screen begin of block b2 with frame.
parameters:p_matnr type mara-matnr,
p_werks type mard-werks.
selection-screen end of block b2.</b>
data:v_matnr type mara-matnr,
v_werks type mard-werks.
start-of-selection.
<b>if r1 = 'X'.</b>
select matnr from mara into v_matnr
where matnr = p_matnr.
write:/ v_matnr.
endselect.
else.
select werks from mard into v_werks
where werks = p_werks.
write:/ v_werks.
endselect.
endif.
*do award points for all helpful answers
regards

Similar Messages

  • Problem with radio Button(urgent)

    hai friends
    (sub:- deselecting radio buttons(2 radio buttons) at a time. ie. no one is selected at any point of time. whenever he/she cliks it is going to select.)
    In my form, i have 2 radio buttons. if i click one radio button it opens one canvas and enter some data and when i press OK button there, it will come back to original canvas.at this movement selected radio button should be deselected.
    If i click 2nd radio button it also opens another canvas and enter some data and when i press OK button there, it will come back to its original canvas.at this movement selected radio button should be deselected.
    when come back to its original canvas, is there any chance of deselecting both radio buttons at a time. ie. at any point of time customer may select any one. no one is default . i need that methodology. it is possible? if so, give me code for it.
    regards
    madhava

    Hi,
    you can use a third radio button and set it to be invisible. Whenever you want your two visible buttons to be deselected simply set the value to your third button value.
    Achim

  • 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

  • Popup window with radio button-urgent

    Hi..
    Is ther any functionmodule for dispalying a popup window with radio button ....

    Use This
    K_KKB_POPUP_RADIO2
    I_TITLE   ...                      This is the title                       
    I_TEXT1   ...                      first radio button                      
    I_TEXT2    ...                     second radio button                     
    I_DEFAULT     ...                  default                     
    reward if useful
    Amit Singla

  • Reg Radio Buttons configured as a group

    Hi,
    I have 5 search regions and 5 radio buttons on a page.I have configured 5 radio buttons as a group.I have done a PPR on radio buttons whereby based on the radio button clicked the corresponding Search region(OAF Query region) is rendered on the page.So when a radio button is clicked, it shows a query region with a "Go" and "Clear" button.
    1."Go" button is working fine for all query regions but "Clear" is working only for the query region rendered by the last radio button,... that is which ever radio button is last on the page....it alone clears the data on the search fields.(irrespective of query region it is clearing all the search criteria's).For the rest of the radio buttons when "Clear" is clicked it does not clear the search fields.
    2.Each Query region is based on a different View object and the VO's are read only.
    The code written for configuring all the radio buttons as a group is:
    (Here..Customer,Item,Arrow,registration,supplier are the five radio buttons)
    OAMessageRadioButtonBean customerButton = (OAMessageRadioButtonBean)webBean.findChildRecursive("CustomerRB");
    customerButton.setName("SearchRG");
    customerButton.setValue("Customer");
    OAMessageRadioButtonBean partButton = (OAMessageRadioButtonBean)webBean.findChildRecursive("PartRB");
    partButton.setName("SearchRG");
    partButton.setValue("Item");
    OAMessageRadioButtonBean arrowButton = (OAMessageRadioButtonBean)webBean.findChildRecursive("ArwUniqueNumRB");
    arrowButton.setName("SearchRG");
    arrowButton.setValue("Arrow");
    OAMessageRadioButtonBean regButton = (OAMessageRadioButtonBean)webBean.findChildRecursive("RegNumRB");
    regButton.setName("SearchRG");
    regButton.setValue("Registration");
    OAMessageRadioButtonBean manfButton = (OAMessageRadioButtonBean)webBean.findChildRecursive("ManufacturerRB");
    manfButton.setName("SearchRG");
    manfButton.setValue("Supplier");
    Thanks,
    Swarna

    Thanks for the reply...I have checked in Dev guide.It is given that...for multiple query regions with auto customization mode I have to
    1.Set the Add Indexed Children property of the container for the query bean to false.---But query bean does not have Add Indexed Children attribute..where to set this?
    2.Call the oracle.apps.fnd.framework.webui.OAQueryUtils createSecondaryQueryBean API---I tried doing this....by...
    OAQueryBean custQueryBean = (OAQueryBean)webBean.findIndexedChildRecursive("CustQueryRN");
    OAQueryBean itemQueryBean = (OAQueryBean)webBean.findIndexedChildRecursive("ItemQueryRN");
    OAQueryBean arwQueryBean = (OAQueryBean)webBean.findIndexedChildRecursive("ArwUnqNumQueryRN");
    OAQueryBean suppQueryBean = (OAQueryBean)webBean.findIndexedChildRecursive("SupplierQueryRN");
    OAQueryBean regQueryBean = (OAQueryBean)webBean.findIndexedChildRecursive("RegNumQueryRN");
    OAHeaderBean hdrBean = (OAHeaderBean)webBean.findIndexedChildRecursive("SimpleSearchHdrRN");
    Now I am supposed to call the API which I am not able to:
    I have tried writing it as below but it hasnt worked.....
    hdrBean.createSecondaryQueryBean(pageContext,webBean,itemQueryBean,"1");
    I am supposed to call this API for all my radio butons apart from the first:
    createSecondaryQueryBean(pageContext,webBean,itemQueryBean,"1");
    createSecondaryQueryBean(pageContext,webBean,arwQueryBean,"2");
    createSecondaryQueryBean(pageContext,webBean,suppQueryBean,"3");
    createSecondaryQueryBean(pageContext,webBean,regQueryBean,"4");
    How do I proceed?

  • 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

  • Reg: radio button and parameters usage

    Hi,
       If there are 3 radio buttons and 1 parameter, and if i click one radio button then the parameter must be a mandatory, if i click the remaining radio button the parameter must be a normal one( Not mandatory).
    give me clear picture to solve it, as soon as possible,
    thanks in advance

    Hi,
    Wanna try this...??
    PARAMETERS: p_exp RADIOBUTTON GROUP radi,
                p_imp RADIOBUTTON GROUP radi,
                p_clear RADIOBUTTON GROUP radi.
    PARAMETERS: path(30)    TYPE c .
    at selection-screen.
                if p_exp = 'X'.
                 if path is initial.
                  message 'Enter clear' type 'E'.
                endif.
                endif.
    Solves ur problem!!
    Have Fun!!
    Ira!!

  • Help With Radio Buttons -- URGENT!!

    Hi i am new to using UI compents in flash.
    Basically i havnt a clue where to start.
    Just some simple action script will help and be much
    appreciated if someone can give me it.
    Basically i have a question to ask which requires radio
    buttons to answer the question.
    I have a question and the answers are A, B, C, D.
    I want:
    A to equal 1
    B to equal 2
    C to equal 3
    D to equal 4
    E to equal 5
    Would someone be able to tell me how to set up the radio
    button so that the value of the radio button is stored into an
    array called SCORE.
    i dont need a tutor for arrays, i can do them, i just need
    help with the radio buttons so a reference to an array would be
    enough, eg how to store the answer from the radio button in an
    array.
    Thank you

    Place the radio buttons on the stage and set their parameters
    to what you need. Make sure that for each group of radio buttons
    you give them the same group name. Then you could use something
    like this:
    var listenerObject:Object = new Object();
    var answerArr:Array = new Array();
    listenerObject.click = function(eventObj:Object) {
    answerArr.push(eventObj.target.selectedData);
    trace(answerArr);
    radioGroup.addEventListener("click", listenerObject);
    radioGroup refers to the group name for the buttons.
    eventObj.target will refer to the actual radio button
    clicked.
    Tim

  • Hi guys, This is very urgent, Creating radio button dynamically.

    Hi guys,
    I have this requirement where i need to access a table and depending on the possible answers for that question i need to display radio buttons on the next screen.
    lets say if i have the possible answers as YNX. i have to display three radio buttons besides the text one for YES, one for NO, one for N/A. I know this is kind of tricky but one more thing. if the possible answers are YN then i shud only have 2 radiobuttons one YES, one NO.
    and there are not only one text that im printing but there are multiple texts and radio buttons for each of them besides it.
    its urgent,
    Thanks

    Hi,
    here a short example:
    DATA: BEGIN OF SPOPLIST OCCURS 15.
            INCLUDE STRUCTURE SPOPLI.
    DATA: END   OF SPOPLIST.
    DATA: ANTWORT TYPE C.
    DATA: VALUE(3).
    VALUE = 'YNX'.
    SPOPLIST-VAROPTION = 'Yes'.
    APPEND SPOPLIST.
    SPOPLIST-VAROPTION = 'No'.
    APPEND SPOPLIST.
    IF VALUE = 'YNX'.
      SPOPLIST-VAROPTION = 'N/A'.
      APPEND SPOPLIST.
    ENDIF.
    CALL FUNCTION 'POPUP_TO_DECIDE_LIST'
      EXPORTING
        TITEL            = 'Set your Answer'
        TEXTLINE1        = 'Please select'
        TEXTLINE2        = 'You can chosse this'
        TEXTLINE3        = 'Options'
      IMPORTING
        ANSWER           = ANTWORT
      TABLES
        T_SPOPLI         = SPOPLIST
      EXCEPTIONS
        TOO_MUCH_ANSWERS = 1
        TOO_MUCH_MARKS   = 2.
    IF ANTWORT = 'A'.
      WRITE: 'Popup canceled.'.
    ELSE.
      WRITE: 'This is select:'.
      LOOP AT SPOPLIST WHERE SELFLAG = 'X'.
        WRITE: SPOPLIST-VAROPTION.
      ENDLOOP.
    ENDIF.
    in the Docu of the FM there is another example with checkboxes.
    Hope it helps.
    Regards, Dieter

  • How do I select radio button in a form and also in a table  (urgent)

    Hi all
    I have two radio buttons on top of a table. And within a table for each row I have a radiobutton. When the page shows up in the begining. I am calling the the script
    function selectFirstRow(form) {
              var firstRow=-1;
            for(i=0; i<form.elements.length; i++) {
                 if ( form.elements.type == "radio" ) {
    if ( firstRow < 0 ) {
    firstRow = i;
    form.elements[i].checked = true;
    } else {
    form.elements[i].checked = false;
    It selects the first radio in the datatable which is fine. But it also unselects the radios above the table. I know why it does because in the script it unselects all the radios in that form. Could anybosy help me in modifying the script so that it only does it for a table. I can pass the table id.
    thanks

    To get the radio button inside the table instead of form.elements, get the child nodes of table node.
    Something like this
    var tableObj = document.getElementById('tableId');
    var tbodyObj = tableObj.getElementsByTagName("TBODY")[0];
    var inputObjs = tbodyObj.getElementsByTagName("INPUT");
    var tempChild = null;
    for(var i=0;i<inputObjs.length;++i) {
        tempChild = inputObjs;
    if(tempChild.type == 'radio') {
    // Do something

  • Reg:usage of radio buttons

    Hi all
    where i need to display fields depending on selection of radio button.
    i am using three radio buttons when i select first radio button i need to display one view with some fields and  when i select sec it need to display different fields in the secview page ,can any one guide me how to reslove this task
    Thanks in advance
    Deepika
    Edited by: deepika_indian on Feb 12, 2011 1:20 PM

    Hi Deepika,
    1.Create 3 seperate views, create 3 transparent containers and create ViewUIelement container in every view and place it in TC.
    2 create a Action for click of ur radio button , in the OnAction property of ur radio button , switch to the next view
    for navigation , u do like this :
    1 Outbound Plug: Define outbound in ur initial view , tosec for ur 2nd view, to 3rd like that.
    2 create Inbound plug for ur destination views , suppose , fromfirst, form sec
    3 now in OnActionMethod of ur radio , based on your condition fire the plug
    wd_this->fire_tosec_plg( ) .
    Hope it might helps you...
    Thanks,
    Kris.
    Edited by: kissnas on Feb 14, 2011 6:19 AM

  • Urgent regarding radio buttons

    hi friends i created radio buttons with the if else i am checking the output is coming wight..but can we ktake case statement..? if so after case what i have to wright..?
    .ParameterS:a1 type c radiobutton group radi .
    ParameterS:a2 type c radiobutton group radi.
    ParameterS:a3 type c radiobutton group radi.
    start-of-selection.
    *if a1 = 'X'.
    *WRITE: ' A1 SELECTED'.
    *ELSEIF A2 = 'X'.
    *WRITE: '   A2 SELECTED'.
    *ELSE.
    *WRITE: '  A3 SELECTED'.
    *ENDIF.
    as follows..?
    CASE radi.
    when a1.
    write: ' a1 selected'.
    when a2.
    write: ' a2 selected'.
    when a3.
    wruite: 'a3 selected'.
    when others.
    WRITE: 'A2 SELECTED'.
    endcase....
    but this radi is not accpetin can my question is can i write case here if so how..?plz reply asap

    Hi,
    You cannot do so... since Case-EndCase can be used to value of a single variable, and depending on its value, you perform some action.
    Though it is meaningless to use Case-Endcase for your version of code, since it is not appropriate here, I am just writing it down the corresponding CASE-ENCASE version of your IF-ELSE-ENDIF so that you can better understand how it works.
    Data: v_param(2) type c.
    If a1 = 'X'.
        v_param = 'A1'.
    ELSEIF A2 = 'X'.
        v_param = 'A2'.
    ELSE.
        v_param = 'A3'.
    ENDIF.
    Case v_param.                       " so here you are checking the value of a single variable
      When 'A1'.                           " checking value using When statement
        write: ' a1 selected'.
      When 'A2'
        write: ' a2 selected'.
      When 'A3'
        write: ' a3 selected'.
    EndCase.
    Hope it clears your doubt and answers your question.
    Regards, Tapas
    <Pls reward if useful or answered>

  • Radio Button problem (not yet solved !!! --- Top Urgent )

    In Forms 5.0,I have created a entry screen which consists a
    radiogroup with 2 radio buttons. In new-form-instance trigger, I
    have written: execute_query ;: last_record;
    It shows me the last record but it shows my radio group with no
    button selected.: If I go back to the previous record, it shows
    me the record
    with : one of the radio button selected.
    My question is why it does not show radio button selected when my
    when-new-form-instance trigger fires ?
    Please note : Property palette of Radio Group & Radio buttons
    have been correctly assigned .
    null

    Shamsad Khan (guest) wrote:
    : In Forms 5.0,I have created a entry screen which consists a
    : radiogroup with 2 radio buttons. In new-form-instance trigger,
    I
    : have written: execute_query ;: last_record;
    : It shows me the last record but it shows my radio group with no
    : button selected.: If I go back to the previous record, it shows
    : me the record
    : with : one of the radio button selected.
    : My question is why it does not show radio button selected when
    my
    : when-new-form-instance trigger fires ?
    : Please note : Property palette of Radio Group & Radio buttons
    : have been correctly assigned .
    Shamsad Khan,
    In Forms5.0, try setting Mapping of other values properties.
    regards.
    null

  • Radio button in bdc multiple transaction

    hi,
        i m working on two dependent transactions in bdc(using call transaction method) on ie01 and ko01 transactions where in in the selction screen i used two radio buttons under one group for calling each transaction,but i m unable to call ko01 transaction when i click to ko01 radiobutton and press execute its going into ie01 transaction,can any one explain how we can write the code to call two transactions seperately and upload data seperatly for both under single radio button group in single pgm......

    Hi Raj,
         Can you please send me the BDC code which you have written for tcode ko01.  I am getting the following problem in BDC code for uploading internal orders in KO01 tcode.
       I want to enable a field in BDC program for ko01 tcode.
    In this tcode, based on order type the business area field is enabling and disabling. If it is enabled then we have to enter business area bcaz its a mandatory field. Business area will be disabled if system generates a value into that field based on order type.
    How can do it in BDC program of this disabling and enabling technique.
    I want to enable the business area irrespective of order type and i will pass the value to it,bcaz in my flat file business area value is given for all order types.
    Its an urgent issue.
    Thanks in Advance.
    Regards,
    Swapna

  • Radio Button - All

    I have got radio button(with submit)(RB name is P5_R_RG) on my report. Radio button are Dynamic LOV (Select distinct RG a, RG b from participant). Display Null :- Yes, Null Display Value 'All', Null return Value:- 'ALL'
    Participant is my table
    RG is column in participant table and it has got value between 1 and 6 only.
    I have got query in region and qeury is
    select     "PARTICIPANT"."AGSNO" as "AGSNO",
         "PARTICIPANT"."FIRSTNAME" as "FIRSTNAME",
         "PARTICIPANT"."LASTNAME" as "LASTNAME",
         "PARTICIPANT"."RG" as "RG"
    from     "PARTICIPANT"
    where ("PARTICIPANT"."RG" = :P5_R_RG or "PARTICIPANT"."RG" = 'ALL')
    What I am trying to do is when user select 'All', all the record should be displayed.
    1) When RG field type is numeric
    Whenever I select 1 to 6 option its work perfectly fine, but when i select 'All', it gives error message ' Type Mismatch'
    2) When RG field is varchar2
    Whenever I select 1 to 6 option its work perfectly fine, but when i select 'All', it gives message ' no record found'
    Could any one tell what i am doing wrong or give me some other idea or solution
    Its Urgent---------------
    Sagar

    It's easiest to get this all working if you stick with varchar2 types. For the radiogroup item, set display extra values No, set display null No, display value (leave empty). For LOV query:
    select '-All-' d, '0' r from dual
    union all
    select distinct RG d, RG r from participant
    For report query:
    select "PARTICIPANT"."AGSNO" as "AGSNO",
    "PARTICIPANT"."FIRSTNAME" as "FIRSTNAME",
    "PARTICIPANT"."LASTNAME" as "LASTNAME",
    "PARTICIPANT"."RG" as "RG"
    from "PARTICIPANT"
    where ("PARTICIPANT"."RG" = :P5_R_RG) or :P5_R_RG = '0'
    Scott

Maybe you are looking for

  • How to pass many variables to servlet using a URL? Ajax related.

    I have 100 text boxes in my JSP and want to pass the values stored in these text boxes to a servlet with out the need for submitting the entire page using AJAX frame work. I know how to peform the above in ajax if I have only 1 textbox. But how can I

  • Display has disappeared!!

    hello all , new to mac... went to change screensaver tonight and .... no Display in System Preferences, what have I inadvertently done??? Thanking you all in advance for any help!

  • Can anyone Solve the JDBC adapter error :

    Hi experts!!!              Whn I run File(FTP) to MSSQL Server ( JDBC), I m getting an error <b> Receiver Adapter v1027 for Party '', Service 'BS_JDBC_R2': Configured at 12:16:42 2007-01-05 Last message processing started 12:17:09 2007-01-05, Error:

  • Usage of Bitwise OR and Logical OR

    When and where i should use Bitwise and Logical OR . Suppose i have to check two conditions ,how will these two operators affect . Can anyone tell me the practical example

  • HT201210 I have an ipod that is disabled how do i disable it

    I have an ipod that is disabled how do i disable it