Reading the select options of selection screen

Hi All,
I have a problem in reading the select options from the selection screen.
I have two select-options on the selection screen. Based on the first select-option value, I need to get the F4 values for the second select-option.
I am using the function module 'RS_REFRESH_FROM_SELECTOPTIONS' for getting the select-options values. But here there is small problem.
This FM is returing the values if i select the multiple values. But if I give a single value in the select-options i.e., If i give only the low value, I am getting the blank entries from the function module.
How can I get the value of the select-option if i give only the low field.
Please help me in this regard.
Regards,
Kishore.

Hi,
Try to use FM "DYNP_VALUES_READ"
CALL FUNCTION 'DYNP_VALUES_READ'
    EXPORTING
      dyname               = sy-cprog
      dynumb               = sy-dynnr
    TABLES
      dynpfields           = i_dynpfields
    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.
and after this you can read the internal table i_dynpfields.

Similar Messages

  • Length of select-options in selection screen.

    Hi,
    I was able to give the lemgth of select-options only upto 8 characters.
    Select-options :S_Mtrial for mara-matnr.
    But my requirement is I want total name which is more than 8 characters.
    Select-options:Material_numberl for mara-matnr.
    Can any one help how to do.
    Thanks in advance.

    The Statement...
    Select-options :S_Mtrial for mara-matnr
    The selection screen length depends on the type that you are assigning to it. Since the length of type
    mara-matnr is less, the selection option S_Mtrial  will be displayed with short length in the selection screen.
    The alternate to do this is...
    selection-screen begin of line.
    selection-screen comment 2(10) text-001.
    select-options : <ur select option name>
    selection-screen end of line.
    Text element,text-001 contains the select option text to be displayed in the screen
    Hope it helps.

  • How to hide a select option on slelection screen??

    Hi all,
        I wanna hide a screen field (select option) on  selection-screen. I looped the screen in AT SELECTION-SCREEN OUTPUT and found the name of screen to hide. But the <option_name>_low and <option_name>_high are always show here.
         Who can give me a way to do that???
    In fact, i wanna hide or display the select option after choosing a radiobutton.Who can give me a way??

    Hi,
    Check the below code.
    tables: pa0000, pa0001.
    parameters: p_rad1 radiobutton group rad1 default 'X' user-command rusr,
    p_rad2 radiobutton group rad1,
    p_rad3 radiobutton group rad1,
    p_rad4 radiobutton group rad1,
    p_rad5 radiobutton group rad1.
    selection-screen: begin of block blk1 with frame.
    select-options: s_pernr for pa0000-pernr modif id ABC,
    s_stat2 for pa0000-stat2 modif id DEF,
    s_werks for pa0001-werks modif id GHI,
    s_persg for pa0001-persg modif id JKL,
    s_persk for pa0001-persk modif id MNO.
    selection-screen: end of block blk1.
    AT SELECTION-SCREEN output.
    LOOP AT SCREEN.
    IF SCREEN-GROUP1 = 'ABC'.
    IF p_rad1 = 'X'.
    SCREEN-ACTIVE = 1.
    ELSE.
    SCREEN-ACTIVE = 0.
    ENDIF.
    MODIFY SCREEN.
    ENDIF.
    IF SCREEN-GROUP1 = 'DEF'.
    IF p_rad2 = 'X'.
    SCREEN-ACTIVE = 1.
    ELSE.
    SCREEN-ACTIVE = 0.
    ENDIF.
    MODIFY SCREEN.
    ENDIF.
    IF SCREEN-GROUP1 = 'GHI'.
    IF p_rad3 = 'X'.
    SCREEN-ACTIVE = 1.
    ELSE.
    SCREEN-ACTIVE = 0.
    ENDIF.
    MODIFY SCREEN.
    ENDIF.
    IF SCREEN-GROUP1 = 'JKL'.
    IF p_rad4 = 'X'.
    SCREEN-ACTIVE = 1.
    ELSE.
    SCREEN-ACTIVE = 0.
    ENDIF.
    MODIFY SCREEN.
    ENDIF.
    IF SCREEN-GROUP1 = 'MNO'.
    IF p_rad5 = 'X'.
    SCREEN-ACTIVE = 1.
    ELSE.
    SCREEN-ACTIVE = 0.
    ENDIF.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    *Note
    *Titles for Rado buttons and parameters.
    *P_RAD1 Personal Number
    *P_RAD2 Employment Status
    *P_RAD3 Personnel Area
    *P_RAD4 Employee Group
    *P_RAD5 Employee Sub group
    *S_PERNR Personal Number
    *S_PERSG Employee Group
    *S_PERSK Employee Sub group
    *S_STAT2 Employment Status
    *S_WERKS Personnel Area

  • Create a select option in a screen

    Is it possible to create a select option in a screen?
    I can easily create the 2 input boxes, but not with the little button on the right like when we create a select option in a report.
    Is the any other simple way to create a select option without creating a report? (the reason is because I want to have everything in the same module pool)

    Hi,
    Please refer to SAP's documentation here: http://help.sap.com/saphelp_nw70/helpdata/en/e4/2adbec449911d1949c0000e8353423/frameset.htm.
    Especially Part 'Subscreens and Tabstrips for Selection Screens', there go to 'Selection Screens as Subscreens'.
    HTH, Gerd Rother

  • Side by side select options in selection screen

    Hai Gurus,
    In a report, I need to place Period From and Period To date select-options in selection screen.
    In one line (i.e side by side).
    Appreciate your immediate response.
    Thanks and Regards,
    Kiran.

    Thanks to all,
    I got it.
    my code here.
    SELECTION-SCREEN: BEGIN OF BLOCK sel1 WITH FRAME TITLE text-sel.
    PARAMETERS: SUMMARY AS CHECKBOX USER-COMMAND SUMMARY.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(13) text-pfr.
    SELECT-OPTIONS: VALID_FR FOR ZZUTIL_RATE-VALID_FR MODIF ID RAM no intervals NO-EXTENSION. "changed
    SELECTION-SCREEN COMMENT 30(13) text-pto.
    SELECT-OPTIONS: VALID_TO FOR ZZUTIL_RATE-VALID_TO no intervals NO-EXTENSION. "changed
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN: END OF BLOCK SEL1.

  • Multiple select-options in a screen But no screen space

    Dear Experts,
    I have mutiple select options in a screen, i am finding it a problem to display them all in one screen.
    it should be done with out any vertical scroll nor horizontol scroll.
    Awaiting to hear from you all.
    Regards,
    Karthik

    Hi,
    You can include more than one selct options or parameters in a single line..that might be favourable as u do not want to have scrolls..
    the syntax goes like this
    SELECTION-SCREEN BEGIN OF LINE.
    <declare your parameters and select options>
    SELECTION-SCREEN end OF LINE.
    whatever u have written between begin of line and end of line will appear in a line..in this way you can reduce the page size..Hope the information was useful.
    Regards
    Vasavi
    Edited by: Vasavi Kotha on Jan 6, 2009 5:29 PM

  • PS:Copy of MBBS report with Date(GR) selection option in selection screen.

    Hi,
    We are developing a report, which is Copy of MBBS report, addition as Date(GR) selection option in selection screen to view historical data {i.e.Project Stock(Q) on back dates}.
    MBBS is showing Project Stock w.r.t. WBS. So pls suggest Table, which can fulfill the requirement to show the Project Stock from GR w.r.t. Purchase and Production order in back date w.r.t. that WBS.
    Pls do the needful.
    Thanks,
    Amit Jain.

    Hi Amit ,
    The Project Stock Table is MSPR , and the Project stock history table is MSPRH .
    Though not through with your actual requirement , There is a standard Report MB5B -- Stock on Posting Date . In the selection screen , we can have the Special Stock Q (Project Stock ) .
    If you can develop copying this report instead of MBBS , it would take care of receipts as well as issues ,and from the material Document you can build a relation to the account assignment  WBS/Network Activity through MSEG Table .
    Hope it helps .
    thanks and regards
    Kish

  • By default, the 3d interface & dialog opens when the 3d option is selected. i forgot the question HA

    by default, the 3d interface & dialog opens when the 3d option is selected. (ya know, the grid on the artboard; 3d tools...etc...) I must have checked the box for it to never appear, because it doesn't appear and I'm not skilled enough with CC to operate Photoshop without it. My question is how would i enable this manually?

    I've noticed on FF29 that the "Save and Quit" "Quit" "Cancel" Option has disappeared. The normal changing of preferences in Firefox about:config below won't work.
    Type about:config into the address bar and press enter
    Accept the warning message that appears, you will be taken to a list of preferences
    Locate the preference browser.tabs.warnOnClose , if its value is set to false, double-click on it to change its value to true
    Repeat this for these 3 preferences ''browser.warnOnQuit'', ''browser.warnOnRestart'' and '''browser.showQuitWarning''
    To get the Save and Quit warning box back you have to Type about:config into the address bar and press enter
    Accept the warning message that appears, you will be taken to a list of preferences
    Right click on an open space in the preferences settings field and select a new Boolean and enter ''browser.showQuitWarning'' and click on OK, then make sure that it's set to true

  • By default, the 3d interface & dialog opens when the 3d option is selected. (ya know, the grid on th

    by default, the 3d interface & dialog opens when the 3d option is selected. (ya know, the grid on the artboard; 3d tools...etc...) I must have checked the box for it to never appear, because it doesn't appear and I'm not skilled enough with CC to operate Photoshop without it.

    I've noticed on FF29 that the "Save and Quit" "Quit" "Cancel" Option has disappeared. The normal changing of preferences in Firefox about:config below won't work.
    Type about:config into the address bar and press enter
    Accept the warning message that appears, you will be taken to a list of preferences
    Locate the preference browser.tabs.warnOnClose , if its value is set to false, double-click on it to change its value to true
    Repeat this for these 3 preferences ''browser.warnOnQuit'', ''browser.warnOnRestart'' and '''browser.showQuitWarning''
    To get the Save and Quit warning box back you have to Type about:config into the address bar and press enter
    Accept the warning message that appears, you will be taken to a list of preferences
    Right click on an open space in the preferences settings field and select a new Boolean and enter ''browser.showQuitWarning'' and click on OK, then make sure that it's set to true

  • Issue with Select options in select statement - ABAP Question

    Hi
    I am facing an issue with select options. Select statement is returning sy-subrc as 4.
    I wrote the program as below:
    SELECT-OPTIONS:
    s_kunnr FOR bsad-kunnr,
    s_lifnr FOR bsak-lifnr,
    s_gjahr FOR bsad-gjahr,
    s_bukrs FOR bsad-bukrs,
    s_saknr FOR bsad-saknr,
    s_budat FOR bsak-budat.
    In start of selection I have written the select statement as
    SELECT * FROM bsak INTO TABLE lt_bsak
    WHERE bukrs IN s_bukrs AND lifnr = s_lifnr AND gjahr IN s_gjahr AND budat IN s_budat AND saknr IN s_saknr.
    In selection screen I have not entered any values and executed the program. I am not getting any result. When I debug that, sy-subrc is 4 at above select statement. But table has records.
    If am removing the "lifnr = s_lifnr " condition in select then select is returning values.
    I am not getting where I made the mistake. Please suggest.
    Thank you
    Hanu

    Hi,
    The problem here with where condition select option lifnr = s_lifnr.
    Use below select query.
    SELECT * FROM bsak INTO TABLE lt_bsak
    WHERE bukrs IN s_bukrs
        AND lifnr     IN s_lifnr
        AND gjahr   IN s_gjahr
        AND budat  IN s_budat
        AND saknr  IN s_saknr.
    s_lifnr is a select option and you are passing it as parameter lifnr = s_lifnr.
    if you want to pass this s_lifnr as single vale then pass in below mentioned way.
    lifnr = s_lifnr-low
    BR,
    Vijay

  • Problem with table-indexes when using select-options in select

    Hello experts,
    is it right that table-indexes will not be used if you take select-options to select data from the database?
    in detail:
    i have build up an table-index for one of our db-tables and test it via an test-programm. The first test with '=' comparisons worked fine. Every key of the index was used; checked via ST05!
    e.g.:    SELECT * FROM TABLEA INTO ITAB WHERE keya = '1' AND keyb = '2' AND keyc = '3'.
    Now i startet the test with select-options
    e.g.:   SELECT * FROM TABLEA INTO ITAB WHERE keya IN seltabA  AND keyb IN seltabB AND keyc IN seltabC.
    First of all i just filled the seltabs with only 1 value:    eg:  seltabA=      SIGN = 'I'   OPTION = 'EQ'   LOW = '1'     etc.
    Everything worked fine. Every key of the index was used.
    But now, I putted more than one entries in the seltabs e.g.
    seltabA:      SIGN = 'I'   OPTION = 'EQ'   LOW = '1'
                       SIGN = 'I'   OPTION = 'EQ'   LOW = '2'   
                       SIGN = 'I'   OPTION = 'EQ'   LOW = '3'
    From now on, the indexed was not used completely (with all keys).
    Isn't that strange? How can i use select-options or sel-ranges with using the complete table-indexes?
    Thanks a lot,
    Marcel

    Hi Hermann,
    i hope this helps:
    this is the first one, which uses the complete index:
    SELECT                                                                     
      "KOWID" , "LIFNR" , "KLPOS" , "ORGID" , "KOART" , "MATNR" , "GLTVON" ,   
      "GLTBIS" , "WERT" , "ABLIF" , "FAKIV" , "AENAM" , "AEDAT" , "AFORM" ,    
      "HERSTELLER" , "ARTGRP" , "OE_FREITXT" , "ARTFREITEXT" , "STATUS" ,      
      "TERDAT"                                                                 
    FROM                                                                       
      "/dbcon/01_con"                                                       
    WHERE                                                                      
      "MANDT" = ? AND "LIFNR" = ? AND "ORGID" = ? AND "KOART_BASIS" = ? AND    
      "STATUS" = ? AND "GEWAEHR_KOWID" < ? AND ( "STATUS" = ? OR "STATUS" = ? OR
      "STATUS" = ? )  WITH UR                 
    RESULT: 5 IXSCAN /dbcon/01_con05 #key columns:  4
    And the second one, which does not use the complete index! The 3 ranges are filled each with 2 values. Remember; when i fill them each with only one value, the result is the same as you can see above(/dbcon/01_con05 #key columns:  4):
    SELECT                                                                     
      "KOWID" , "LIFNR" , "KLPOS" , "ORGID" , "KOART" , "MATNR" , "GLTVON" ,   
      "GLTBIS" , "WERT" , "ABLIF" , "FAKIV" , "AENAM" , "AEDAT" , "AFORM" ,    
      "HERSTELLER" , "ARTGRP" , "OE_FREITXT" , "ARTFREITEXT" , "STATUS" ,      
      "TERDAT"                                                                 
    FROM                                                                       
      "/dbcon/01_con"                                                       
    WHERE                                                                      
      "MANDT" = ? AND "LIFNR" IN ( ? , ? ) AND "ORGID" IN ( ? , ? ) AND        
      "KOART_BASIS" IN ( ? , ? ) AND "GEWAEHR_KOWID" < ? AND ( "STATUS" = ? OR 
      "STATUS" = ? OR "STATUS" = ? )  WITH UR                                  
    and here the access-plan
       0 SELECT STATEMENT ( Estimated Costs =  5,139E+01 [timerons] )                                                                               
    5     1 RETURN                                                                               
    5     2 NLJOIN                                                                               
    5     3 [O] TBSCAN                                                                               
    5     4 SORT                                                                               
    5 TBSCAN GENROW                                                                               
    5     6 <i> FETCH /dbcon/01_con                                                                               
    7 IXSCAN /dbcon/01_con05 #key columns:  2   
    As you can see, only 2 keys were taken for indexed selection!
    Any idea?
    Kind regards,
    MArcel
    Edited by: Marcel Ebert on Jul 28, 2009 5:25 PM

  • Hideing the select options in selection screen

    I have 2 radio buttons in the selection screen.
    SELECTION-SCREEN BEGIN OF BLOCK b2 with frame title text-018.
    parameters : GR1  Radiobutton group rg1 default 'X',
                 GR2  Radiobutton group rg1.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b1 with frame title text-017.
    Select-options : z_s_werk for t001w-werks obligatory,
                         z_s_matn  for marc-matnr,
                         z_s_bdat for mkpf-budat obligatory.
                        z_s_lifn for mseg-lifnr.
                         z_s_sgtx for mseg-sgtxt.
                        z_s_bwar for mseg-bwart.
    SELECTION-SCREEN END OF BLOCK b1.
    if GR1 = 'X'.
    i have  to  hide   z_s_sgtx for mseg-sgtxt.
    if GR2 = X.
    I  have  to hide  z_s_lifn for mseg-lifnr.
    is there any way for hideing this.
    Regards,
    Selvapriya S.

    hi,
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-018.
    PARAMETERS : gr1 RADIOBUTTON GROUP rg1 DEFAULT 'X' USER-COMMAND ud,
                 gr2 RADIOBUTTON GROUP rg1.
    SELECTION-SCREEN END OF BLOCK b2.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-017.
    " Remove obligatory and do validations for the fileds which have OBLIGATORY at EVENT
    " AT SELECTION-SCREEN .
    SELECT-OPTIONS : z_s_werk FOR t001w-werks ,"(OBLIGATORY)
                     z_s_matn FOR marc-matnr,
                     z_s_bdat FOR mkpf-budat," OBLIGATORY,
                     z_s_lifn FOR mseg-lifnr,
                     z_s_sgtx FOR mseg-sgtxt,
                     z_s_bwar FOR mseg-bwart.
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION-SCREEN OUTPUT.
      IF gr1 = 'X'.
        LOOP AT SCREEN.
         IF screen-name = 'Z_S_SGTX-LOW'                 OR
             screen-name = 'Z_S_SGTX-HIGH'                OR
             screen-name = '%_Z_S_SGTX_%_APP_%-VALU_PUSH' OR
             screen-name = '%_Z_S_SGTX_%_APP_%-VALU_PUSH' OR
             screen-name = '%_Z_S_SGTX_%_APP_%-TO_TEXT'   OR
             screen-name = '%_Z_S_SGTX_%_APP_%-OPTI_PUSH' OR
             screen-name = '%_Z_S_SGTX_%_APP_%-TEXT'.
            screen-active = 0.
          ELSE.
            screen-active = 1.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
       IF screen-name = 'Z_S_LIFN-LOW'                 OR
             screen-name = 'Z_S_LIFN-HIGH'                OR
             screen-name = '%_Z_S_LIFN_%_APP_%-VALU_PUSH' OR
             screen-name = '%_Z_S_LIFN_%_APP_%-VALU_PUSH' OR
             screen-name = '%_Z_S_LIFN_%_APP_%-TO_TEXT'   OR
             screen-name = '%_Z_S_LIFN_%_APP_%-OPTI_PUSH' OR
             screen-name = '%_Z_S_LIFN_%_APP_%-TEXT'.
            screen-active = 0.
          ELSE.
            screen-active = 1.
          ENDIF.
          MODIFY SCREEN.
        ENDLOOP.
      ENDIF.
    for example.
    AT SELECTION-SCREEN on Z_S_SGTX.
    if Z_S_SGTX is initial.
    " Raise an error message here
    Endif.
    Thanks & REgards

  • How can I create a screen a select option inside a screen

    Hello experts,
    I have a screen '0100' and i need to create a select-options inside how can i do this? thanks in advance'

    Well did you search the forum first?
    [select-option Dialog programming|
    http://wiki.sdn.sap.com/wiki/display/stage/SELECT-OPTIONSonDialogprogrammingscreen]
    And you can most definitely find more on SCN.

  • Select-options on selection-screen type char100 problem

    Hi friends! I created on selection-screen a select-options:
    SELECT-OPTIONS: zzcduc     FOR      equi-ZZCDUC.
    The field  equi-ZZCDUC is a CHAR100 field. The problem is when I run program, in this field user can't input more of 46 characters. This is a serial number with 100 characters, why I can input 100 characters?
    Thanks for any help.

    Hi, this is copied from SELECT-OPTION documentation:
    The LOW and HIGH fields of a selection option are displayed in a length up to 18 bytes long (scrollable up to 45 bytes). If you define a length longer than 45, fields are truncated on the selection screen after the 45th character. This affects the first line of the SELECT-OPTIONS table. You can, however, use SUBMIT to pass longer selection options to a report if they are specified with the addition NO-DISPLAY and thus do not appear on the selection screen. Without NO-DISPLAY, the fields are then truncated whenever the selection screen is processed in the background ( SUBMIT without VIA SELECTION-SCREEN).
    regards,

  • SELECT-OPTIONS on custom screen problem

    Hi all,
    I have a screen added on the standard transaction IW21 (with selection screen definition and called like subscreen). On this screen I have some SELECT-OPTIONS and when I press the button of selecting multiple values, I get the following message: "Requested function & is not available here" (V0 104), where & is long number starting with %..No matter the error message, the values are transferred correctly from the multiple selection screen to my screen. I have added entries to the tables T185F and T185 with the transaction VFBS, but I dont know how to assign the Function codes to SELECT-OPTIONS..
    Thanks in advance for feedback!
    Anna

    Hi, this is copied from SELECT-OPTION documentation:
    The LOW and HIGH fields of a selection option are displayed in a length up to 18 bytes long (scrollable up to 45 bytes). If you define a length longer than 45, fields are truncated on the selection screen after the 45th character. This affects the first line of the SELECT-OPTIONS table. You can, however, use SUBMIT to pass longer selection options to a report if they are specified with the addition NO-DISPLAY and thus do not appear on the selection screen. Without NO-DISPLAY, the fields are then truncated whenever the selection screen is processed in the background ( SUBMIT without VIA SELECTION-SCREEN).
    regards,

Maybe you are looking for

  • HT4859 is there any way to see contents of icloud back up

    i broke my i phone 3gs and need acsess to stuff on it i know its all in backup but i dont have any apple devices that support i cloud now i have a second generation ipod touch and a first generations iphone is there any way for me to view my backup t

  • Extended program check ( sapslin prog)

    Hi, i have one requirement, in extended program check for  checking the text elements,(chracter -strings). There is a sap standard programavailabel. ( Code slin,function pool sapslin) , if i am checking EPC for my z program ,the sapling is not compar

  • Hide the table view in OBIEE 11g

    Hi All, The requirement is to hide the table view and display only the export link on the Dashboard. This could be achieved in 10g by inserting display:none CSS style in each column property. Tried the same in 11.1.1.3, the data is hidden but it stil

  • OracleAS 10g 10.1.2.0.2 online documentation

    On the OracleAS 10g 10.1.2.0.2 product page ... http://www.oracle.com/technology/software/products/ias/htdocs/101202.html ... the documentation link at the bottom points to ... http://www.oracle.com/technology/documentation/appserver1012.html ... but

  • Change profile name on support form

    Can anyone tell me how do I change my profile name on this support forum?