Screen changes using Radio-button

Hi All
There are 3 blocks on Sel-screen.
Before that I want 1 more screen which has 3 RB's & depanding on RB's these blocks will be displayed.
I have to display all 3blocks depanding on RB but some fields are diff in diff blocks.
Any sample code for that?
Regards.

hI
SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE text-015.
  Selection-screen Begin of line.
  PARAMETERS: P_DSPF Radiobutton Group R1 USER-COMMAND Action.
  selection-screen comment 4(15) text-013 for field P_dspf .
  PARAMETERS: P_Edspf Radiobutton Group R1 .
  selection-screen comment 24(15) text-014 for field P_EDSPF .
  PARAMETERS: T_Run Radiobutton Group R1  .
  selection-screen comment 41(25) text-012 for field T_run .
  SELECTION-screen end of line.
  SELECTION-SCREEN END OF BLOCK B3 .
*Block to select the file for display or extracted
  SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE text-001.
  selection-screen Begin of line.
  PARAMETER: Master TYPE C  Radiobutton Group ABC .
  "user-commamd filetype.
  selection-screen comment 4(15) text-002 for field master .
  PARAMETER: Newhire TYPE C  Radiobutton Group ABC.
  selection-screen comment 24(12) text-003 for field Newhire .
  PARAMETER: Term TYPE C  Radiobutton Group ABC.
  selection-screen comment 43(15) text-007 for field Term .
  PARAMETER: Rehire TYPE C  Radiobutton Group ABC.
  selection-screen comment 66(15) text-004 for field Rehire .
  selection-screen end of line.
AT SELECTION -SCREEN OUTPUT .
PERFORM MODIFY_SCREEN .
PLEASE FIND THE FORM  BELOW FOR MODIFY_SCREEN.
FORM MODIFY_SCREEN .
  Loop at Screen .
    IF T_run = ' ' and Screen-NAME = 'P_PATH' .
      SCREEN-input = 0 .
      Modify Screen .
    ENDIF.
    if screen-name  = 'PNPTIMR1'
     or screen-name = 'PNPTIMR2'
     or screen-name = 'PNPTIMR3'
     or screen-name = 'PNPTIMR4'
     or screen-name = 'PNPTIMR5'.
      screen-active = 0.
      modify screen.
    endif.
  ENDLOOP.
ENDFORM.

Similar Messages

  • How to use Radio Buttons in SAP BI 7 for a set of three fields?

    Dear SAP Gurus,
    We are using SAP BI 7. We need to use Radio button to select one field name (out of a set of three fields) which
    appeared on selection screen.
    The scenario is; we have three fields
    1) Field Name A
    2) Field Name B
    3) Field Name C
    Now, we need to select one field(using Radio button) from the above and later the report related to the above
    selected field should be displayed.
    The three reports will be as follows:
    1) Report A
    2) Report B
    3) Report C
    if Field Name A  is selected then Report A  will be displayed,
    if Field Name B  is selected then Report B  will be displayed and
    if Field Name C  is selected then Report C  will be displayed.
    To display the report we have two cases;
    1) There will be a common selection screen and all the three reports will come in single workbook but in seperate worksheet.
    2) There will be a common selection screen and all the three reports will come in same worksheet, one after the other.
    Is it possible to create the report in this manner, if yes, please suggest the steps.
    Regards,
    DV.

    I think you would just use commands to do the following:
    1. Hide report Analysis Item 2 and Analysis Item 3 if the 1st button was pushed.
    2. Hide report Analysis Item 1 and Analysis Item 3 if the 2nd button was pushed.
    3. Hide report Analysis Item 1 and Analysis Item 2 if the 3rd button was pushed.
    Hope that helps...

  • Using Radio Buttons in widget to store Data

    I am building my 2nd widget and I am curious to know if anyone has used radio buttons within the edit mode to change/modify/set variables before. I don't want a radio button widget. I want a complex menu widget that will hide/show selected items within my playbar such as the forward button.
    Currently I am using User variables to determine all the hide/shows for my playbar. But I would like to make it more user friendly by having a visual widget people could use to turn buttons on off, set url's for help documents etc. And have everything be based on a per slide basis. just wondering if anyone has done anything like this in the past.
    The other part of this is, can I use a widget to construct User variables. In As2 I was able to create variables in root and then set those accordingly without having to add them to every projects user variables. But it appears in AS3 it is not possible to create a variable of a clip/objects parent is anyone familiar with this?
    Thanks ahead of time.
    zsrc

    Hi zsrc,
    If you're using WidgetFactory then here's a post that might give you the information that you need.
    http://www.infosemantics.com.au/widgetking/2010/11/widget-properties-how-theyre-used/
    As far as the code you'd write in your circumstance, a radio button's selected property tells you if it's... well... selected. So you can write that to a widget property like so:
    properties.MyPropertyName = myRadioButton.selected;
    That line would be inside the saveProperties template method as mentioned in the article above.
    override protected function saveProperties():void
        properties.MyPropertyName = myRadioButton.selected;
    Then you can read that property back when the widget is in the published Captivate movie.
    override protected function enterRuntime():void
       if (properties.MyPropertyName == true) {
          // The Radio Button was selected. Do stuff
       } else {
          // The Radio Button wasn't selected. Do stuff?

  • Acrobat 9.1  Mac How do you change from Radio buttons to Check boxes?

    I have a DMV Form I Downloaded and had to convert to PS then back to PDF (written originally on PC Acrobat was in XML format).
    So on new form, I am able to add fields. I used the the Forms manager to automatically create the fields. Fields that were made Radio Buttons should have been Check boxes. How do change the Radio buttons to check boxes. There are a lot of them and I don't wish to have to re-key them in.
    Suggestions?

    Well when I click on the box it shows a Check mark in the box. That exactly what I need because in the instructions it requires a Check mark in each of the check boxes. Normally the Med form is sent as a paper copy from DMV every two years.
    Also another Tip. A PDF that has XML Content. (PC Acrobat Version).
    If you want a usable PDF on Mac and get rid of the XML do the following:
    Open the XML Based PDF on Mac Acrobat 9.X .
    Now choose export and save as Postscript File (.ps).
    Now locate and drop on Distiller 9.X.
    When PDF created will be a Pristine exact replica of the XML file except Mac Acrobat can edit and create forms with it.

  • How to disable the inputfield using radio button dynamically in module pool

    How to disable the inputfield on the screen using radio button dynamically in module pool.
    Please suggest .
            Thanks.
    Edited by: Lavanya YH1504 on Jul 30, 2010 1:20 PM

    I got it thank you.
    LOOP AT SCREEN.
        if  screen-GROUP1 = 'LA1'.
           If RADIO1 = 'X'.
            SCREEN-INPUT = '0'.
            MODIFY SCREEN.
         ELSEIF RADIO2 = 'X'.
           screen-input = '1'.
          ENDIF.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    Edited by: Lavanya YH1504 on Jul 30, 2010 1:51 PM

  • 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

  • How do I search a site using radio buttons

    I am trying to search a site using radio buttons. I have one table and 5 columns. I have 5 radio buttons marked like 01, 02, 03,04,05. I am using Dreamweaver cs5 php, when I click the radio button 01 I will like to get the response with all 01 files. I will like to mention that the file names are like 01-010-1, 01-010-2 and than 02-020-1 and so fourth I do not know how to write the advance query
    This is what I have
    SELECT QBF, ADDRESS, NATSO, TSOCNT, PDF (this re my db columns)
    FROM alldwgs (this is my table)
    WHERE QBF like %colname% (this is the column that contains the file names 01-010-1 etc)
    ORDER BY QBF ASC
    I don’t know what to write on the variable box
    Name: colname
    Type: text
    Default value: 01
    Run time value: $_GET['QBF']
    I hope that you understand my question I am new to this. Thank you very much for your response

    Thank you for your reply.  I am new to editing a pdf and using these programs. I have subscribed to Acrobat XI Pro.  When I try to edit the document it directs me to LiveCycle.  I cannot move the table in LiveCycle.  It won't let me, and I cannot make changes in XI Pro as I did in the trial as it directs me to edit in LiveCycle.  Am going in circles.

  • Issue in using radio button in module pool

    For same field I need 2 different search help. Based on radio button on screen I need company codeu2019s from different table. Issue is, at execution radio button remains blank. Radio button works only when I use them in PAI under CASE SY-UCOMM. WHEN u2018DONEu2019. IF Normal_Run = u2018Xu2019u2026u2026
    Can I use radio button with the below code. Please refer the below code.
    PROCESS ON VALUE-REQUEST.
    FIELD COMP_CODE MODULE POPULATE_COMP_CODE.
    MODULE POPULATE_COMP_CODE INPUT.
    IF REPEAT_RUN = 'X'.
    PERFORM COMP_CODE_POPULATE.
    ELSEIF NORMAL_RUN = 'X'.
    PERFORM COMP_CODE_POPULATE_N.
    ENDIF.
    ENDMODULE.  
    FORM COMP_CODE_POPULATE .
        SELECT COMP_CODE
          FROM  ZIFRS_D_PROCESS
          INTO  CORRESPONDING FIELDS OF TABLE VALUES_TAB_CC
          WHERE PROC_NAME = 'DEPRECIATION RUN'.
      READ TABLE VALUES_TAB INDEX 1.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          RETFIELD    = 'COMP_CODE'
          DYNPPROG    = PROGNAME
          DYNPNR      = DYNNUM
          DYNPROFIELD = 'COMP_CODE'
          VALUE_ORG   = 'S'
        TABLES
          VALUE_TAB   = VALUES_TAB_CC.
    ENDFORM.                    " COMP_CODE_POPULATION
    FORM COMP_CODE_POPULATE_N .
      CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
        EXPORTING
          TABNAME     = '/BI0/SCOMP_CODE'
          FIELDNAME   = 'COMP_CODE'
          DYNPPROG    = PROGNAME
          DYNPNR      = DYNNUM
          DYNPROFIELD = 'COMP_CODE'.
    ENDFORM.                    " COMP_CODE_POPULATE_N
    Moderator Message: Please use "code" tags to format the code snippet.
    Edited by: Suhas Saha on Nov 23, 2011 5:13 PM

    Hi
    You need to make the Grouping for these Radio button on the screen
    Search for how to make Radio buttons grouping
    radio buttons in screen painter
    http://help.sap.com/printdocu/core/print46c/en/data/pdf/BCDWBTUT/BCDWBTUT.pdf
    and search for Radio button Group in this document
    assign a Function Code for one of the radio buttons(It allows for only one Radio Button)
    This triggers automatic PAI so when you take the F4 Help this is readily available
    In TOP include make sure you define the variables corresponding to the Radio buttons on the screen and also provide default value X to one of the Radio buttons
    Hope this serves your purpose
    Cheerz
    Ramchander Rao.K

  • Related selects using radio button

    Hi All,
    I wanna use radio button with three options and one dropdown
    box .
    my problem is i wanna choose option from radio button and run
    the related query to get the values into dropdown box and then
    choose the value from drop down and submit it to another page.
    Any ideas ? please help me.
    Thanks in advance

    Google coldfusion related selects and adjust the javascript
    so that you are using radio buttons instead of a select.
    I recently posted my own code. Look for the keyword
    etiologydetail.

  • WPF: How to change the radio button text background?

    Is there a simple way that we can change the radio button text background? thx!
    JaneC

    If you literally mean the text background.
    It's a contentcontrol.
    You can put whatever you like in it to hold the text.
    As illustrated by my article:
    http://social.technet.microsoft.com/wiki/contents/articles/30173.wpf-tips-radiobutton-alignment.aspx
    Thus:
    <RadioButton Name="rbnIsolated">
    <TextBlock Text="Isolated Storage" Margin="0,-10,0,0" FontSize="22" Background="Pink"/>
    </RadioButton>
    Makes just the text background pink
    Hope that helps.
    Recent Technet articles: Property List Editing;
    Dynamic XAML

  • Sub screen: Handling the Radio button selection?

    Hi,
    Scenario:
    I have a Main screen and a sub screen. From the main screen I am calling the sub screen. On the Sub screen, I have 2 radio button. On the selection of the Radio buttons, I am activating/deactivating few of the screen elements on the sub screen.
    I have grouped the radio button and also tried assigning Function code to it, but in vain..:(
    Issue
    I am not able to handle the event triggered by the selection of the radio buttons?
    Kindly suggest.
    Regards
    s@k

    Hi,
    Are you still have any Issue, Let us know
    In the Main Screen Element List there is a field OK_CODE pass an entry into it
    in the TOP Include
    DATA : OK_CODE type SY-UCOMM. " This captures the OK_CODE from the Screen.
    Since SUb Screen cant have their Own OK_CODE this can be handled in the Main Screen only
    Try in PAI of Sub Screen using OK_CODE if it is not working then Implement the same in PAI of Main Screen
    The system will generate UCOMM for Radio Button since they are in One Group only. Each Radio button cannt have a separate UCOMM assigned. In Screen Painter (if It is Module Pool) assign a FCode for the Radio Button.
    Even if try changing the FCODe Value they still will have the New Changed Value but cannot be changed.
    This automatically triggers PAI . only way to capture it is check
    case ok_code. " Optionally you can omit this
    when  ok_code = 'RAD'.  " This is common for all the Radio BUttons but cant be different
    if r1 = 'X'.
    elseif r2 'X' " Etc.
    endif.
    endcase.
    Ram
    Edited by: Ramchander Krishnamraju on Feb 26, 2010 10:37 AM

  • Nee help in changing de radio button

    the output wil have the radio button, but i d0n wan the radio button.. wat shld i change?
    change to List izit? when i change to List, there's sumtin wron with my fm3.append(imageItem);
    thx
    import java.io.*;
    import java.util.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    import javax.microedition.rms.*;
    public class Screensaver extends MIDlet implements CommandListener {
         // declare the form
         private Form fm1;
         private Form fm2;
         private Form fm3;
         // declare image
         private Image pix;
         private ImageItem imageItem;
         // declare commands
         private Command okayCommand;
         private Command backCommand;
         private Command cancelCommand;
         private Command saveCommand;
         // declare display
         private Display display;
         // Choice Group of preferences
         private ChoiceGroup choice;
         // declare TextField, RecordStore
         private TextField tx_field;
         private RecordStore record;
         // declare byteArray
         ByteArrayOutputStream output = new ByteArrayOutputStream();
         task tasking = new task();
    Timer timer = new Timer();
    int currentId=1;
    int timeInterval=1000;
    boolean u = false;
    public Screensaver()
              display = Display.getDisplay(this);
    // Specify a font face, style and size
    //Font font = Font.getFont(Font.FACE_PROPORTIONAL, Font.STYLE_PLAIN, Font.SIZE_MEDIUM);
              okayCommand = new Command("OK",Command.SCREEN,1);
              backCommand = new Command("Back", Command.BACK, 0);
              cancelCommand = new Command("Cancel", Command.BACK,0);
              saveCommand = new Command("Save",Command.SCREEN,1);
    //startApp()
    public void startApp()
              // form for the main menu
              fm1 = new Form(".: Main Menu :.");
              choice = new ChoiceGroup("Choice Label", Choice.EXCLUSIVE);
              choice.append("Start Screensaver",null);
              choice.append("Options",null);
              choice.append("Exit",null);
              fm1.append(choice);
              fm1.addCommand(okayCommand);
              fm1.setCommandListener(this);
              // form for option
              fm2 = new Form(".: Options :.");
              // create new textfield to enter time interval
              tx_field = new TextField("Time Interval(sec)","",5,TextField.ANY);
              fm2.append(tx_field);
              // saveCommand to save the time interval
              fm2.addCommand(saveCommand);
              fm2.addCommand(backCommand);
              fm2.setCommandListener(this);
              //form for the screensaver
              fm3 = new Form(".: Screensaver :.");
              fm3.addCommand(backCommand);
              fm3.setCommandListener(this);
              display.setCurrent(fm1);
              // cannot stop the screensaver//
    //pauseApp()
    public void pauseApp()
    //destroyApp()     
    public void destroyApp(boolean u)
              notifyDestroyed();
    // handle commands to change time interval and to display menu again
    public void commandAction(Command c, Displayable d)
              // saving the time interval
              if (c == saveCommand)
                   Integer inter = new Integer(0);
                   timeInterval = inter.parseInt(tx_field.getString());
                   timeInterval = timeInterval * 1000;
                   // display menu again
                   display.setCurrent(fm1);
              // backCommand, will return to main menu, setCurrent(fm1)
              else if (c == backCommand)
                   // display menu again
                   display.setCurrent(fm1);
              else if (c == okayCommand)
                   // getSelectedIndex() ==0, means the 1st icon is selected (start screensaver)
                   if (choice.getSelectedIndex() == 0)
                        display.setCurrent(fm3);     
                        timer.schedule(tasking, 0, timeInterval);
                   // the option is selected, so display fm2
                   else if (choice.getSelectedIndex() == 1)
                        // display screensaver
                        display.setCurrent(fm2);
                   // exit option is selected, so us destroyApp
                   else
                        boolean testing = true;
                        // exit
                        this.destroyApp(testing);
    public class task extends TimerTask {
         public void saveEntry (String entry_E) throws RecordStoreException {
              byte [] data = entry_E.getBytes();
              record.addRecord (data, 0, data.length);
    public void run(){
                        // de nx 4lines determine whether the pix cn move anot..
                                  if(fm3.size()==1)
                                                 fm3.delete(fm3.size()-1);
         try {
                             // open recordstore
                             record = RecordStore.openRecordStore ("screensaver", true);
                                  if(u==false)
                                  this.saveEntry("/1.png");
                                       this.saveEntry("/2.png");
                                       this.saveEntry("/3.png");
                                       this.saveEntry("/4.png");
                             output.write(record.getRecord(currentId),0,record.getRecord(currentId).length);
                   catch (RecordStoreException e)
                   try {     
                             // layout of image
                             pix = pix.createImage(output.toString());
                             // Convert the image to immutable
                             imageItem = new ImageItem(null, pix, ImageItem.LAYOUT_CENTER |
                             ImageItem.LAYOUT_NEWLINE_AFTER | ImageItem.LAYOUT_NEWLINE_BEFORE,"(Image)");
                   catch (IOException e)
                   // display imageItem to fm3(screensaver)
                   fm3.append(imageItem);
                   currentId++;
                   u = true;
                   output.reset();
                   // 4pix, so currentId==5
                   if(currentId==5)
                   {   //display currentId==1 1st (1st pix)
                        currentId=1;
    }

    did u chk my reply..
    "the "group" the radio buttons will be placed in. Radio buttons in the same group will have mutually exclusive selection, regardless of their physical placement on the page. See selectOneRadio - it groups the radios automatically. The reason you would use selectBooleanRadio instead of selectOneRadio is that you have more control over the placement of each radio. Using a selectBooleanRadio alone is uncommon; in any case, you must set the group attribute."
    http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_selectBooleanRadio.html

  • How to use radio buttons in sap smartforms

    hi,
    i saw the radiobutton option in web properties is there any way to display thee radio button in smartforms...
    Kindly share ur suggesstions
    Thanks in Advance

    Hi rsa.Hema,
    go to text element (editor) then
    change editor
    then insert
    then characters
    then SAP symbols
    then choose the symbol for radio button
    or use  698 in the change editor screen
    Regards.
    Saurabh Goel

  • Using radio button to go to marker

    Hi,
    I'm using Director Mx for Windows. When the user checks a
    radio button (cast member "bon"), I want the movie to jump to a
    certain marker ("start"). I'm currently using the script below,
    (which uses the hilite property) that I thought would solve the
    problem, but nothing happened when I tried it.
    on mouseUp me
    if member("bon").hilite = TRUE then go to "start"
    end if
    end
    Does anyone have any idea of what might work? Thanks so
    much.

    > on mouseUp me
    > if member("bon").hilite = TRUE then go to "start"
    > end if
    > end
    Your code should work, though half of what's there is
    unnecessary.
    Simplification:
    on mouseUp
    if member("bon").hilite then go "start"
    end
    That extra "end if" won't cause problems here, but in more
    complex scripts
    it can really get you in trouble. You only need that if
    you're doing more
    than one command within the "if" or "else" if there is one.
    You can
    generally tell if something like that is extra by the fact
    that the
    auto-indentation is off. Every "end if" should be at the same
    indentation
    as its matching "if". If it isn't, then something is wrong.
    As for the other changes, the "me" is only necessary if
    you're actually
    going to use it in the script. Leaving it in is harmless, but
    just extra.
    The "= TRUE" is unnecessary in most cases, because saying "if
    A" is exactly
    the same as saying "if A = TRUE". And the word "to" is never
    needed in a
    "go" statement. (These are optional changes that won't cause
    or fix any
    problems, but saves a bunch of extra typing.)

  • How do I globally change the Radio Button style to "checkmark" in Adobe Acrobat X

    There is nothing in Preferences/Forms for this.
    And I want this as a persistent change untill I otherwise change it back.
    Thanks
    Second Post Here

    Make the change to one of the radio buttons, then right-click it and select
    Use Current Properties as New Defaults.

Maybe you are looking for

  • Easy read-only access for noobs

    Lightroom is a great product for the photographer, but for his spouse it's not so easy.  I'd like an easy way to copy an image to the clipboard or export it to iPhoto to be used in other apps like iWeb. My photos are stored on a server.  It should be

  • ITunes won't recognize my iPod

    I was synching my ipod the other night and iTunes crashed. After being connected for an hour it would not do anything. I went to task manager and it said iTunes was not responding. So I shut iTunes down from task manager. Now when I attach my iPod to

  • Only allow datagridviewcheckbox to check off if it meets certain criteria.

    I have a datagridview with a checkbox column next to it. The datagridview holds a list of all open invoices for a given customer. I don't want the checkbox to check off if there is no money to apply to this invoice. Basically every time the checkbox

  • How to install SAP 4.7 IDES on PC

    Dear Frnds, Let me introduce myself iam Ravi.i just joined this group and also new to SAP environment.i want to install SAP 4.7 IDES on my computer. can any body plz help me how to install it on PC or any website or document where i get the informati

  • Skype mysteriously calling people in my contacts l...

    I am really annoyed by the lack of accountability of the Skype service. My elderly father just received a call from my Skype number that I did not make. He was confused and anxious, and I had to explain that it was not a genuine call. Who do I call t