Is it possible to have two at selection-screen events in a program

Hi all,
     I have a selection screen wherein i am using i have 5 radiobuttons and 3 select-options and a parameter. I am trying to use two at selection-screen events
1) at selection-screen on radiobutton group rad1.
2) AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_STATUS.
the second event is not getting triggered.
I have to get certain values for the parameter p_status based on the radiobutton selected from an internal table(the field doesn't belong to any dictionary table i am filling an itab with some values based on the radiobutton selected) pls help. its urgent.
Regards
Tharanath

Hi
TYPES : BEGIN OF ST_OBJID_SH,
         OTYPE TYPE HRP1000-OTYPE,
         OBJID TYPE HRP1000-OBJID,
        END OF ST_OBJID_SH.
DATA : IT_OBJID_SH TYPE STANDARD TABLE OF ST_OBJID_SH.
DATA : WA_OBJID_SH TYPE ST_OBJID_SH.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_OBJID-LOW.
IF S_OBJID IS NOT INITIAL.
    SELECT OTYPE OBJID FROM HRP1000
                 INTO TABLE IT_OBJID_SH
                 WHERE OTYPE = 'D'.
IF SY-SUBRC EQ 0.
SEARCH HELP FOR QUALIFICATION.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
      EXPORTING
             DDIC_STRUCTURE         = ' '
        RETFIELD               =  'OBJID'
             PVALKEY                = ' '
       DYNPPROG               = SY-REPID
       DYNPNR                 = SY-DYNNR
       DYNPROFIELD            = 'S_OBJID'
             STEPL                  = 0
             WINDOW_TITLE           =
             VALUE                  = ' '
       VALUE_ORG              = 'S'
             MULTIPLE_CHOICE        = ' '
             DISPLAY                = ' '
             CALLBACK_PROGRAM       = ' '
             CALLBACK_FORM          = ' '
             MARK_TAB               =
           IMPORTING
             USER_RESET             =
      TABLES
        VALUE_TAB              =  IT_OBJID_SH
             FIELD_TAB              =
             RETURN_TAB             = RETURN_TAB
             DYNPFLD_MAPPING        =
           EXCEPTIONS
             PARAMETER_ERROR        = 1
             NO_VALUES_FOUND        = 2
             OTHERS                 = 3
    IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
  ENDIF.
Use in this way it will defently triggers
<b>REward if usefull</b>

Similar Messages

  • Sequence of  AT SELECTION-SCREEN events

    Hi All,
    I have a requirement where i need to have two fields selection screen, where the second field should have f4 help depending on the first field.
    So, i have validated the first field through AT SELECTION-SCREEN ON <FIELD1>. and for the second field i am using AT SELECTION-SCREEN ON VALUE-REQUEST FOR  <FIELD2>
    The problem i am facing over here is when i give first field input and press F4 in the second field it is not validating the First field and instead it is showing FIELD1 as blank to over come this i need to press enter before i press F4 in the second field. Is there any other alternative to over come this problem.
    Is there any sequenec for the AT SELECTION-SCREEN events to be used.
    Thanks
    Shashikanth

    Hi Shashi,
    Check the below code
    and for your future ref
    Table Control dynamic F4
    DATA : BEGIN OF f4_tab OCCURS 0,
             carrid TYPE sflight-carrid,
             connid TYPE sflight-connid,
        END OF f4_tab.
       CLEAR lin.
    " adjust this as per your requirement
      DATA : dynpread TYPE TABLE OF dynpread WITH HEADER LINE.
      REFRESH dynpread.
      CLEAR dynpread.
      dynpread-fieldname = 'ITAB-CARRID'.
    *  dynpread-stepl = lin. 
      APPEND dynpread.
      CLEAR dynpread.
    at selection-screen on value-request for YOUR_FIELD " Your Second Field here
      CALL FUNCTION 'DYNP_VALUES_READ'
            " This FM gives the First field value before u press Enter/ PAI is triggered
        EXPORTING
          dyname                               = sy-repid
          dynumb                               = sy-dynnr
        TABLES
          dynpfields                           = dynpread
       EXCEPTIONS
         invalid_abapworkarea                 = 1
         invalid_dynprofield                  = 2
         invalid_dynproname                   = 3
         invalid_dynpronummer                 = 4
         invalid_request                      = 5
         no_fielddescription                  = 6
         invalid_parameter                    = 7
         undefind_error                       = 8
         double_conversion                    = 9
         stepl_not_found                      = 10
         OTHERS                               = 11
      IF sy-subrc IS INITIAL.
        READ TABLE dynpread WITH KEY fieldname = 'ITAB-CARRID'.
        IF sy-subrc IS INITIAL.
          SELECT carrid connid FROM sflight
                INTO TABLE f4_tab
                 WHERE carrid = dynpread-fieldvalue.
          CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
            EXPORTING
              retfield               = 'CONNID'
             dynpprog               = sy-repid
             dynpnr                 = sy-dynnr
             dynprofield            = 'ITAB-CONNID'
             value_org              = 'S'
            TABLES
              value_tab              = f4_tab
        ENDIF.
      ENDIF.
    Cheerz
    Ram
    Edited by: Rob Burbank on Mar 18, 2010 9:01 AM

  • Passing parameter from selection screen to corresponding report program.

    Hi all,
    I am developing a report in which there is a selection screen containing 2 list boxes having month 'from' and 'to' ;ie the month range for which  the report is to be run and a parameter for year.below it i have 2 radio button options which will lead to the report that the user clicks on.
    I have done the following in the code.
    selection-screen begin of block b1 with frame title text-001.
    parameters: month1(10) as listbox visible length 10 obligatory.
    parameters: month2(10) as listbox visible length 10.
    parameters: year(4) obligatory.
    selection-screen : end of block b1.
    selection-screen: begin of block b2 with frame title text-002.
    parameters: rb1  radiobutton group g1,
                        rb2  radiobutton group g1.
    selection-screen : end of block b2.
    if rb1 = 'X'.
    submit ZMIS1.
    ENDIF.
    if rb2 = 'X'.
    submit ZMIS2.
    endif.
    Now i want the values selected in the listbox and the year to be passed in the report that will be selected in the radiobutton (ie  ZMIS1 or ZMIS2) so that the corresponding report output will be displayed directly with the inputs given in the selection screen .
    Please tell me how to do this.Thanks in advance.

    You also have to pass Selection-screen data for called program the way it has been shown down.
    REPORT  ZVENKAT_ALV_LIST.
    DATA:
          IT_RSPARAMS TYPE STANDARD  TABLE OF RSPARAMS,
          WA_RSPARAMS LIKE LINE OF IT_RSPARAMS.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: MONTH1(10) AS LISTBOX VISIBLE LENGTH 10 OBLIGATORY.
    PARAMETERS: MONTH2(10) AS LISTBOX VISIBLE LENGTH 10.
    PARAMETERS: YEAR(4) OBLIGATORY.
    SELECTION-SCREEN : END OF BLOCK B1.
    SELECTION-SCREEN: BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
    PARAMETERS: RB1 RADIOBUTTON GROUP G1 USER-COMMAND UC1,
                RB2 RADIOBUTTON GROUP G1.
    SELECTION-SCREEN : END OF BLOCK B2.
    IF RB1 = 'X'.
      WA_RSPARAMS-SELNAME = 'P_MATNR'. "PARAMETER or SELECT-OPTION of the called program
      WA_RSPARAMS-KIND    = 'P'.       "S=Select-options P=Parameters
      WA_RSPARAMS-SIGN    = 'I'.
      WA_RSPARAMS-OPTION  = 'EQ'.
      WA_RSPARAMS-LOW     = '11010'.
      WA_RSPARAMS-HIGH    = SPACE.
      SUBMIT ZMIS1 WITH SELECTION-TABLE RSPARAMS AND RETURN.
    ENDIF.
    IF RB2 = 'X'.
      WA_RSPARAMS-SELNAME = 'P_MATNR'. "PARAMETER or SELECT-OPTION of the called program
      WA_RSPARAMS-KIND    = 'P'.       "S=Select-options P=Parameters
      WA_RSPARAMS-SIGN    = 'I'.
      WA_RSPARAMS-OPTION  = 'EQ'.
      WA_RSPARAMS-LOW     = '11010'.
      WA_RSPARAMS-HIGH    = SPACE.
      SUBMIT ZMIS2 WITH SELECTION-TABLE RSPARAMS AND RETURN.
    ENDIF.
    Thanks
    Venkat.O

  • Is it possible to have two DADs that access the same database?????

    Hello,
    Is it possible to have two DADs that access the same database?
    One DAD would be password protected with Authentication mode Per Package and the other DAD would not require a password/login
    If it is possible can you also give suggestions about how to do this
    Thanks
    Doug

    I HAD THE SAME PROBLEM WITH SHARING MY LIBRARY WITH MY SON. WHAT I DID WIAS CREATED A LIBRARY FOR HIS USE ONLY. IN ITUNES CLICK--FILE--NEW PLAYLIST AND THIS SHOULD ADD AN UNTILED PLAY LIST IN YOUR SIDE BAR. CLICK ON IT AND RENAME IT. HE CAN KEEP ALL OF HIS MUSIC IN THIS LIBRARY. SELECT ALL OF HIS MUSIC FROM YOUR LIBRARY AND DRAG IT INTO HIS. ONCE THIS IS DONE YOU CAN THEN REMOVE HIS SONS FROM YOU PLAY LIST. MAKE SURE YOU ONE REMOVE IT FROM YOUR PLAY LIST AND NOT DELETE THE FILE.
    HOPE THIS HELPS
    G4   Mac OS X (10.3.9)  

  • First-time user of IPod Shuffle, my husand has an IPod Touch and has hundreds of songs already on his ITunes account. If Is it possible to have two ITunes accounts so his music is not automatically loaded onto my new Shuffle?

    Just bought an IPod Shuffle; my husband has an IPod Touch and has hundreds of songs on his ITunes account.  Is it possible to have two different accounts on the same computer to prevent his music from being loaded onto my Shuffle?

    When you say "iTunes account," I think you mean iTunes library.  An iTunes "account" is what you use to sign in to the iTunes Store (your Apple ID) and purchase songs (and other media).  The iTunes library is what you have on your computer, with your songs and playlists.  That is what you use for syncing iPods.
    You can have a separate iTunes library.  If you create a new user account on your computer (using Windows) and log in to that user account, iTunes will create a new iTunes library for that account.  In fact, Windows will keep ALL of your documents separate, as if you are using a separate computer.  That is probably the best way to keep your songs in a different iTunes library.
    You can also create a separate iTunes library in the same Windows user account, if you use this procedure to switch between iTunes libraries
    http://support.apple.com/kb/ht1589
    Also, you can use the same iTunes library, and decide what songs you want put on the shuffle.  iTunes does not automatically put songs on the shuffle, unless you tell it to do so.  This document explains how to load content on shuffles
    http://support.apple.com/kb/ht1719
    NOTE:  If the iTunes sidebar (along left side of window) is not visible, from the menu bar, under View, select Show Sidebar.  When connected, your shuffle appears in the sidebar, under DEVICES.
    FYI - There is a link to the shuffle user manual on this support web page for the shuffle
    http://www.apple.com/support/ipodshuffle/

  • Is it possible to have two USB drives for the IPad?  I want to bring RAW photo files from my camera, through the IPad and back to an external hard drive.  One of my cameras does not use an SD card.  How can I do this?

    Is it possible to have two USB drives for the IPad?  I want to bring RAW files from my camera through the IPad and out to an external hard drive.  One of my cameras has an SD card but the other one doesn't have a card that would fit in any of the camera devices I've seen on line.  Realted to this, I bought the IPad camera accessory.  Can I put the SD card in the device and also hook the external hard drive to the USB port of the accessory and download from the camera to the hard drive?  Can I put Lightroom or the Nikon photo editing software on the IPad?  Right now I carry a PC laptop and external hard drives with me on wildernes trips.  Internet and WiFi are not available.  Because I shoot so many photos and they're in RAW I need to download from the camera to the external drive because I run out of memory on the PC (and it has much more memory than the IPad).  I have Nikon NX software and lightroom on my PC.  I'd love to be able to reduce the weight I carry by using the IPad to edit my photos each night while on trips.  Is this possible and how would I do it?  I'd appreciate any guidance.

    No, the camera connection kit only supports the copying of photos and videos to the Photos app, it doesn't support copying content off the iPad. For your second camera instead of the SD reader part of the kit, does the iPad to camera cable not work with it for direct transfer to the iPad ?
    For Lightroom and Nikon software again no - you can only install apps that are available in the iTunes app store on your computer and the App Store app on the iPad, 'normal' PC and Mac (OS X) software are not compatible with the iPad (iOS). There are some apps that perform fairly basic editing functions that are available in the store, but nothing as sophisticated as, for example, Lightroom.

  • HT204053 Is it possible to have two (or more) different icloud mail accounts (not alias) under the same apple id? If not what is you best advice for all family members to have their own e-mail and still share the purchases under the same apple id. Thanks

    Is it possible to have two (or more) different icloud mail accounts (not alias) under the same apple id? If not what is you best advice for all family members to have their own e-mail and still share the purchases under the same apple id. Thanks

    mannyace wrote:
    Thanks for the response.
    So I basically won't run into any trouble? I
    There should be no issues. Its designed to work like that.  You don't change Apple IDs just because you get a new device.
    mannyace wrote:
    Thanks for the response.
    Is there any chance that the phones can fall out of sync?
    Unlikely. But nothing is impossible.   Though I don;t see how that would happen. As long as both are signed into the Same Apple ID / iCloud Account they will be N'Sync. (Bad Joke)
    mannyace wrote:
    Thanks for the response.
    If I get a message or buy an app or take a photo on the iPhone 5, how do I get those things onto the iPhone 6?
    If you buy an App, you have 2 ways to get it to the iPhone6: If Automatic Downloads is enabled in Settings->iTunes & App Store, it will automatically download to the iPhone 6 when you buy it on the 5 and vice versa if you buy it on the 6, it will download to the 5.
    Alternatively, you can simply go to the App Store App->Updates->Purchased and look for the App there and download it. Purchased Apps will not require payment again. i.e They'll be free to download to the iPhone 6 once purchased.
    SMS Messages will sync over using Continuity as long as they are on the same Wifi network. Otherwise, restoring the iPhone 5 backup to the iPhone 6 will transfer all messages received up until the backup was made onto the iPhone 6.
    Images, can be transferred either through Photo Stream
    My Photo Stream FAQ - Apple Support
    Or any Cloud service you want such as Dropbox, or One Drive.
    mannyace wrote:
    Also, something i forgot to ask initially: Should I update the iPhone 5 to iOS 8 first or does that not matter?
    If you want the Continuity features as explained above you need to update the iPhone 5 to iOS 8. Otherwise its not all that important.

  • Is it possible to have two apple loans under one account?

    So back in June my mum took up apple finance so I could get a macbook and pay her each month (I was under 18 at the time and have no credit history) and that went through within a minute no issues..
    Now I face another issue, I want the new iphone 5s but still within my current iphone 5 contract I can't get out of but that aside my question is:
    Is it possible to have two apple loans under one bank account? (the iphone one being much smaller than the existing mac loan)
    If not, I'll simply have to save up £700.
    Thanks~

    Hi babowa,
    The reference to two Apple loans led me to believe it was two Apple finance deals in conjunction with, for example, a Barclays Bank tie-up as we appear to have here in the UK.   As you suggest, the payment is a matter between the poster and his mom, but I think that behind all this is the question of whether the poster's mom can have two separate accounts in this way.   Which of course, she can.

  • Hi can someone tell me if it is possible to have two accounts (from different countries) in the same laptop?

    Hi can someone tell me if it is possible to have two accounts (from different countries) in the same laptop?

    Hi...
    The issue is that your credit or debit card credentials must be associated with the same country where you reside to make purchases.
    "Although you can browse the iTunes Store in any country without being signed in, you can only purchase content from the iTunes Store for your own country. This is enforced via the billing address associated with your credit card or other payment method that you use with the iTunes Store, rather than your actual geographic location."
    From here >  The Complete Guide to Using the iTunes Store | iLounge Article
    Billing policy is the same for both the iTunes as well as Mac App Stores.

  • Isit possible to have two Ni elvis writer in one Vi using the same device and using 2 different NI elvis?

    Hi is it possible to have two writer in one Vi with one elvis  and also use two different elvis on one Vi? I hope someone can or know the answer.

    If memory serves me correctly, an NI Elvis board connects to a PCI card in a PC if you want 2 Elvis boards then you will need 2 PCI cards. 
    Certified LabVIEW Architect
    Certified Professional Instructor

  • Is it possible to have two phone numbers ring one iPhone?

    Is it possible to have two numbers ring one iPhone, in other words, a second line on the same phone?
    Thanks.

    You could get a Google voice account and have it forwarded to your iPhone (and other phones). This would effectively give your iPhone the capability of receiving calls to 2 different numbers and making calls from 2 different numbers. Although the Google voice capabilities on iPhone are somewhat awkward.

  • Is it possible to have two Firefox browsers (3&20) on the same OS?

    I have been using my 3.6.28 Firefox for more than 3 years and still want to use it in the future. Some functions are not working when I visit websites so I need to install the newest as to see them. I have Google Chrome as my second browser but would like to swap it for the latest Firefox. Read on some forum that its not possible to have two Firefox browsers on the same Win OS. Is it possible to have both my old Firefox 3 and Firefox 20 installed on the same Win XP OS as teo different programs?

    Yes it is possible, but you need to create a new profile for the 2nd version.
    http://forums.mozillazine.org/viewtopic.php?f=23&t=2249039

  • Is it possible to have two versions of Muse on one Machine?  WhenI open Muse from my program menu in WIndows 7 it comes up the way I am used to.  I did an upgrade a week or so ago and now I have an Adobe Muse CC 2014 on my desktop.  WhenI open the applica

    Is it possible to have two versions of Muse on one Machine?  WhenI open Muse from my program menu in WIndows 7 it comes up the way I am used to.  I did an upgrade a week or so ago and now I have an Adobe Muse CC 2014 on my desktop.  WhenI open the application that way the GUI interface looksw totally different, more like Illustrator.  What is that all about?

    Since posting the above, I have resolved a sensible work-around in regard to ebookstores which prefer us to have separate accounts for our separate Adobe IDs.
    However, I really would appreciate it if anyone here can confirm that a DRM controlled book does actually become associated with a particular Adobe ID account at the time of first download to Digital Editions on that PC/device.
    Two large book stores have said using my account with them to download books to our two separate Adobe IDs is OK, but I don't want to find my husband is unable to open his downloaded books.
    Thank you folks for any advice you can give,
    Sue

  • Is it possible to have two or more players playing video independently?

    Hi,
    I am new to JMF and I would like to ask for help.
    Is it possible to have two or more players playing video independently?
    I want to user to be able to start each player at what time he wants, not when one of the players is started the others to be started as well.
    I tried and after the vidio files are loaded the players block and stop working.

    After test I found out that the problem exists only under Mandrake 9.1. If somebody else has had the same problem please help.

  • Is it possible to have two files with the same name on my Zen To

    Hia,
    Is it possible to have two mp3 files with the same name?; I.e if I'm ripping a Bach CD, there are several tracks that have the name preludium, and I hate to do the rename.
    Also, will I be able to sync my Zen so that It will only recieve new files that have been added since I last connected my Zen to my computer?
    regards,
    Fredrik

    I believe same filename is OK because the Zen Player does not really care about filename. As far as I know, the Zen database of the tracks in the player is based on the track information such as Title, Artist, Album and Genre. This means you cannot have two tracks of the same Title, Artist, Album and Genre in the Zen Player.

Maybe you are looking for