Radiobutton: clear default selection

Hi,
I have two blocks in my selection screen. two of them have a group of radiobuttons. when I executed the selection screen first radiobutton of each group are selected default, which is true. but my requirement is show the 1st radiobutton of the 2nd group not selected initially. I know it is trickey. I think it is not possible, please let me know your comments. If required more information, please let me know.
thank you,
surya

Hi Surya,
One way could be you can hide the unselected second selection block.
two selection block a01 and a02. There are two radio button (p_r1, p_r2) in a1.
If p_r1 is choosed, selection block a02 is not  displayed;
if p_r2 is choosed, selection block a02 is  displayed.
selection-screen: begin of block a01 with frame.
parameters: p_r1 radiobutton group rg1 default 'X' user-command uc,              
                  p_r2 radiobutton group rg1.
selection-screen: end of block a01.
selection-screen: begin of block a02 with frame.
selection-screen: begin of line,
pushbutton 33(20) selp user-command sel modif id chk ,
comment 55(13) selcnt  modif id chk,
end of line.
*SELECTION-SCREEN: SKIP.
parameters: p_count type i  modif id chk .
selection-screen: end of block a02.
at selection-screen output.
  if p_r1 = 'X'.
    loop at screen .
      if screen-group1 = 'CHK'.
        screen-active = 0.
        modify screen.
      endif.
    endloop.
  endif.
Reward points if found helpful
Revert back for more help
Regards
Naresh

Similar Messages

  • Clear default usb flash drive selection on mac os x?

    Hey ,
    I'm using a VMWARE program and running Windows 7 on my macbook .
    The first time i connected my usb flashdrive , the windows system was running and i got a pop up asking me if i want to open the new drive using windows 7 or mac os X , i choose the Windows and checked the "always use this choice".
    Now i can only use my flash drive on the Mac OS.
    Any why to clear the default selection and use the flash drive with my Windows 7 system ?
    Thanks !

    You will be able to open it if you make it a .iso
    image. There is software available for both OSes to
    open and browse/modify a .iso image file. I do not
    know how well any of them use passwords for the
    images.
    Maybe it's winiso
    What I would recommend is using Winrar
    (http://www.rarlabs.com/) and just using a compresses
    and encrypted file that both OS's can manipulate.
    With winrar you create an archive and then each time you want to edit a file you have to extract it, modify it and then reinsert it in the archive.
    What I was looking for is something more user friendly.
    Images created with mac, protected with a password, are ok but are not compatible with windows.
    Viceversa, U3 is compatible with windows but not mac ...

  • How to clear the selected values in the JCombobox

    Hi All,
    Can you please tell - how to clear the selected values in the JCombobox
    I have four dropdowns in my application, When I click "CLEAR" button, what ever the values selected in the four drop downs should go off and view as "SELECT" in all the dropdowns.

    In addition to the above you should also check out [Combo Box Prompt|http://www.camick.com/java/blog.html?name=combo-box-prompt] which makes it easy to display the default prompt.

  • Radiobutton during at selection-screen event is not triggered

    Hi experts,
    I have this event:
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file
    perform f_file_sel.
    I want to select a file according to the radiobuttons on the selection screen, but during the f_file_sel form I recognized, that the radiobutton which I selected is not triggered.
    It's only triggered after 'start-of-selection'.
    How can I force the program to trigger it when f_file_sel is processing?

    Hi,
    SELECT-OPTIONS : so_matnr1    FOR  mvke-matnr MODIF ID id1,
                                    so_matnr2   FOR  mara-wrkst MODIF ID id2.
    PARAMETERS : rb_mat TYPE c RADIOBUTTON GROUP rbg DEFAULT 'X' USER-COMMAND hid,
                              rb_var TYPE c RADIOBUTTON GROUP rbg.
    LOOP AT SCREEN.
        IF rb_mat EQ c_x.
          IF screen-group1 EQ  'ID2'.
            screen-input = '0'.
          ENDIF.
        ENDIF.
        IF rb_var EQ c_x.
          IF screen-group1 EQ 'ID1'.
            screen-input = '0'.
          ENDIF.
        ENDIF.
        MODIFY SCREEN.
      ENDLOOP.
    Apply this piece of code to your requirement with files in place of fields.Hope your issue will be resolved.
    Regards,
    Anand.

  • Change RadioButtons position in Selection Screen.

    HI is there any way to change the default position of a radiboutton in a selection screen.
    I mean, show the text option of the radiobutton in the right side, not the left side.
    Thanks a lot.

    hi Jose,
    you have to do something like:
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT x(y)... "x for starting position, y for length
    SELECTION-SCREEN POSITION 20. "next line will start at this position
    PARAMETERS : p_rb RADIOBUTTON GROUP rb1
    SELECTION-SCREEN END OF LINE.
    hope this helps
    ec

  • Clear default dashboard prompt values

    We have created a few dashboard prompts that are defaulted to server variables. When a user enters the dashboard page, they want to these values to be populated with a start and end date for a specific reporting period. They also want to be able to select a different reporting period (year, quarter, etc.). We have put a "Clear my Selections" button on the page, but that does not clear the prompts that have a defaulted value. The only workaround is to manually deleted the defaulted values, which makes the clear button almost useless and difficult to train the users.
    Any thoughts?

    Hi Chris,
    If you haven't tried, use the code to place a button to clear your selections.
    $div align="right" class="XUIPromptEntry minibuttonOn" $
    $a href="#" onclick="return PersonalizationEditor.removeDefaultSelection(false)"$
    Clear all criteria
    $/a$
    $/div$
    Replace $ with < or >
    Yar.

  • Switch off default selection in partners pop up

    Hi Experts,
    In case of one sold to, multiple ship to, system gives a pop up with list of ship to parties. But by default selecting the first ship to, with tick mark. Is there any possibility to switch off the system default selection in partner functions pop up.
    Points assured for helpful answer.
    Thanks
    Sunanda.P

    Hi Sunanda,
    If you do not want a pop-up to come up everytime you create a sales order then you can simply delete all the ship to party's from the customer master, once you delete all the ship to party's in customer master you can manually select your desired ship to party at the sales order level only.  This is the best solution without disturbing the standard configuration.  Hope im clear with your query.  Either of the two you can use, both the functionalities cannot be used simultaneously, if you want to use both these then you may have to design a user exit.
    regards,
    US

  • Urgent!How to set the default selected date for an OAMessageDateFieldBean

    Hi,
    There is messagetextinput on the page.the dataType is Date.
    if I do not input anything on this messagetextinput ,when I click on the date icon,the default selected date is today.
    But I want to set the default selected date base on another messagechoice.
    Is that possible?
    binghao.

    Sumit/Binghao,
    When u set deafult date in the OAMessageDateFieldBean, the OAInlineDatePickerBean (which are referring as datepicker popup windows), takes the default value from OAMessageDateFieldBean.
    If you explore OAMessageDateFieldBean in framework, u will find its nothing but a onClick js event is called on the imageicon attached with messagetextinput bean(in case the type is Date) and OAInlineDatePickerBean is opened in a modal js window.
    So, here is code for setting default value both in both in OAMessageDateFieldBean and OAInlineDatePickerBean :
    OAMessageDateFieldBean dateField = (OAMessageDateFieldBean)webBean.findIndexedChildRecursive(<item id>);
    dateField.setValue(pageContext,new Date(100, 06, 04)/* 4th July 2000*/);
    One more important thing, here Date class is java.sql.Date.I hope i am clear.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Automatic "Clear my Selections" (script provided)

    Hi everyone,
    I didn't find anything useful on the Internet apart from creating a "Clear my Selections" button (not so friendly for the user): using jQuery I've been able to create a small script that enables you to automatically clear the selections of a dashboard if you're coming from a dashboard that is not itself (otherwise it'll refresh continously). Here you can find the script:
    <script src="yourserver\jquery-1.4.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
         $(document).ready(function() {     
              var r = document.referrer;
              if(r != "http://yourserver/analytics/saw.dll?Dashboard")
                   return PersonalizationEditor.removeDefaultSelection(false);
    </script>
    Just add it in a Text dashboard object and remember to use the "HTML content" flag!
    Hope this helps someone who had similar issues.
    Regards,
    Alberto
    Edited by: Alberto Vaghi on 29-giu-2010 8.32
    Edited by: Alberto Vaghi on 29-giu-2010 8.32

    ok, below is the script i am using in Textbox Dashboard object on my dashboard:
    <html>
    <head>
    <script src="http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(document).ready(function);
    function()
         var r = document.referrer;
         if(r != "http://hs3piwm29:9704/analytics/saw.dll?Dashboard")
              return PersonalizationEditor.removeDefaultSelection(false);
    </script>
    </head>
    </html>
    Suppose i have three Tabs(say : A, B and C). In A Tab I am having dropdown prompt having two values. So what i want is that whenever i visit Tab A from any of the Tab X,Y Zee. That prompt get clear automatic and set default value. It should not show the previous selected value. hope this scenario helps you to understand my problem.
    It will be good for me if you send me ur email address. We can have a conversation over there. if possible you can give me a call at +91-9213626363 or +91-9560926363 my name is Mohammad Rafi Ansari or tell me your no i will call you.
    Thanks & Regards
    Mohammad Rafi Ansari

  • Clear default

    Whenever I do certain things (look at pictures from my gallery, browse the web) my phone asks me to choose which action I want to take. For example if I want to look up a Web page it will ask if I want to use Chrome or Internet. Then you have to pick "just once" or "always". Whatever you pick it tells you to clear defaults. I do this but i still have to do the same thing over again. How do i fix that so it stops asking me what i want to do?

    I think you go into Settings ! Application Manager, then scroll to the right till you see the application you want to use as default, and select it by pressing on it, then choose Clear Defaults or something like that. Then reboot your device and try it.
    Alternatively, if it's asking you to choose from among a few programs, in Settings ! Application manager, find the program you DON'T want to use and uninstall it by selecting it, and choosing Force Stop, Clear Cache (and Data), and Uninstall.
    If you wanted to keep it around (I don't know why you'd want to do that), you could select Disable instead.
    HTH

  • How can I pre-define the default selection in a SelectOneChoice?

    How can I pre-define the default selection in a SelectOneChoice?
    (1) Here's my JSF-code:
    <af:selectOneChoice label="#{res['usercreate.input.sex']}"
    value="#{bindings.Sex.inputValue}"
    binding="#{SelectListBean.sexlist}"
    readOnly="false" autoSubmit="false">
    <af:selectItem label="#{res['data.sex.women']}" value="1"/>
    <af:selectItem label="#{res['data.sex.man']}" value="2"/>
    </af:selectOneChoice>
    (2): manged bean: to set the default value to be the first in the list, my managed bean as follows:
    import oracle.adf.view.faces.component.core.input.CoreSelectOneChoice;
    public class MBSListBean {
    private CoreSelectOneChoice sexlist;
    public MBSListBean() {
    public void setSexlist(CoreSelectOneChoice sexlist) {
    this.sexlist = sexlist;
    this.sexlist.setValue(1);
    public CoreSelectOneChoice getSexlist() {
    return sexlist;
    (3) when i launch the page, it often gives me such warnings:
    WARNUNG: Could not find selected item matching value "1" in CoreSelectOneChoice[UIXEditableFacesBeanImpl, id=_id7]
    how to solve the problem ?
    Thanks,
    wzzdx

    You could also set the default on your entity or viewobject, in the properties of your attribute.

  • How to hide  some fields in default selection screen in hr abap

    Hi experts,
    I have created default selection screen,in that in the Period option I wants display only 'Today'.
    And in the selection criteria i wants to display personnel number,companycode,personnelsubarea,employee status and instead of payroll area i wants to display 'Org unit'.please tell me step by step procedure,that could be greate helpfull.
    Thanks in advance,
    mohan

    use this logic to display only today in the period option
    **Local constants
       CONSTANTS:
              c_0                   VALUE  '0'  ,
              c_089     TYPE char3  VALUE  '089',
              c_091     TYPE char3  VALUE  '091',
              c_095     TYPE char3  VALUE  '095',
              c_097     TYPE char3  VALUE  '097'.
                     At Selection Screen
    at selection-screen output.
    LOOP AT screen.
          IF
               screen-group4 = c_089 OR
               screen-group4 = c_091 OR
               screen-group4 = c_095 OR
               screen-group4 = c_097  .
          screen-active = c_0.
          MODIFY SCREEN.
         ENDIF.
      ENDLOOP.

  • How to change default selection in compensation planning

    Hi experts,
    We have upgraded our portal to EHP1 sp04.
    I need to change the default selection which it currently shows in "Employee Selection" under
    Compensation Planning-->Compensation Planning.
    When a user clicks on Compensation Planning>Compensation PLanning> he comes in an iview with 4 steps:
    There is one "Employee Selection" scroll down view, I need the default to be "Direct Reports"
    http://rapidshare.com/files/308150359/DirectReports.jpg
    The default it shows is "Employees from organizational units", I need to change it to "Direct reports". Can someone tell me how I should proceed about it.
    Please guide me
    Regards,
    Rajat Sharma

    Hi,
    I have solved this issue.
    Go into SPRO>integration with other sap system>business packages>mysaperp>organizational structure view
    group organizational structure view.
    select mss_ecm_sel and change the nos. accordingly.
    thanks,
    Rajat

  • Logical database EQI (equipment)  .. I dont want to use the default selecti

    i am using Logical database EQI (equipment)  its realated to PM module.....
    i dont want to use the default selection screen.
    instead i want to process my own selection screen inputs..
    (ie..) i want to fetch the data using the GET event using my  own selection screen  inputs.
    my selection screen inputs is   equipmentnumber (equnr)
    and  the output list : 1.equnr      "equipment number
                                  2.shtxt       "Equipment Description
                                  3.tplnr        "Functional Location
                                  4.pltxt        "Functional Location Description
                                  5.qmnum    "Notification Number 
                                  6.qmtxt      "Notification Description
                 and  so on  ..........             
    how to do this ... can any one give sample code... or logic

    Hi Victor,
    I have a simple solution for this.i think it will help you.Do u have any idea about query designer in SAP.
    by using it we can satisfy u r  reuqirement.follow the below steps.
    1)Go to SQ01
    2)In the screen click on QuickViewer option.then you will go to another screen.
    3)In that screen give any name starting with 'Z' in the QuickView box and then click on create.
    4)In the dialogbox enter title and comments and then select LogicalDatabase as the DATASOURCE and give DataSourceLogicalDatabase as EQI.check the radio button Basis Mode and then click on ok.
    5)then on the screen in the first half of leftside you will  get another screen with the columns DATAFIELDS,LISTFIELDS,SELECTIONFIELDS,TECHNICALNAME.
    6)In the DATAFIELDS column expand the tree,then u can see the fields what we have,and what you want.and also you can see the check boxes in front of the columns LISTFIELDS,SELECTIONFIELDS.
    7)LISTFIELDS means the output fields,SELECTIONFIELDS means the selection screen fields(equnr).
    check the checkboxes as per u r requirement and click on execute.
    8)then a progam will be created.to know the program name after executing the program GO TO
    SYSTEM->STATUS.then u can see the program name there.
    If u know all these,let me know so that i can try for another solution.
    Thanks,
    N.K.C

  • How to change the text in default selection screen

    Hi,
      I have created the default selection screen(using PNP Logical database) ,In that I wants to display 'Data Selection Period' instead of 'Period'.
    Please send me the related code.
    Thanks in advace
    mohan

    HR Logical Database is PNP
    Main Functions of the logical database PNP:
    Standard Selection screen
    Data Retrieval
    Authorization check
    To use logical database PNP in your program, specify in your program attributes.
    Standard Selection Screen
    Date selection
    Date selection delimits the time period for which data is evaluated. GET PERNR retrieves all records of the relevant infotypes from the database. When you enter a date selection period, the PROVIDE loop retrieves the infotype records whose validity period overlaps with at least one day of this period.
    Person selection
    Person selection is the 'true' selection of choosing a group of employees for whom the report is to run.
    Sorting Data·
    The standard sort sequence lists personnel numbers in ascending order.
    · SORT function allows you to sort the report data otherwise. All the sorting fields are from infotype 0001.
    Report Class
    · You can suppress input fields which are not used on the selection screen by assigning a report class to your program.
    · If SAP standard delivered report classes do not satisfy your requirements, you can create your own report class through the IMG.  
    regards
    vinod

Maybe you are looking for

  • How to delete Multiple Artists in one action?

    Hi, I want to do a big clean up on an iTunes library with over 4000 albums. How can I delete multiple Artists in one action? It looks like I can only delete 1 Artist at a time, and then this action shoots me to the top of the list.  Which is a pain t

  • One iTunes/Apple account-2 users

    We have an iPod Touch and 1 iTunes acccount and one Apple ID. we also have 2 iPod classics as well and an iPhone with quite a few apps. I am trying to figure out the best way to go about separating or not into 2 users. iPod Touch is new and there is

  • How can I remove a recommended Update?

    I have a Brother Printer that, for some reason, works well with the driver that came with the system. Later releases cause numerous problems. How can I keep Snow Leopard from continually recommending to update this software but still keep me up-to-da

  • My macbook facetime is not connecting?

    It is letting me answer their call but after that it will just keep saying Connecting....

  • Adobe acrobat dc dead links

    On the new update adobe acrobat dc the sign in link is inactive. What I mean by that is when I touch "sign in" nothing happens. The link is dead.