Populate Select-Option in a subscreen

I've created a selection-screen as a subscreen and calling it inside the flow logic.  It's working fine except that I can't pass any value to a select-options.  When it's in a debug mode, I can see the values.  But when I'm trying to insert some value to it in a module, the select-option (ex. s_matnr) is not recognized as if it does not exists.  Please help.
Thanks.

Hi
Iam also having the same problem can briefly exaplain the solution .
i have scenairo like this :
In the Dialog program in the main scrren we are calling the subscreen in that subscreen we have one material number
for that number we need to add the mulltiple selection screen .
how should we can add these .
let me know yours soluion .
thanks

Similar Messages

  • Select-options in tabstrip subscreen

    Hello
    I am developing a report in which i have the following components,
    Report first calls a main screen 100 which will display a Tabstrip.The first tab in the tabstrip has a subscreen 111 to display the selection screen.
    Now i need to have select-options in this subscreen 111. I think the only way to have the select-options is by programming a selection-screen with screen number 222 and call this in the subscreen 111.
    I am able to see the select-options, But the issue is, the value of the select-options are not getting passed to the program.They seem to be blank.
    Did i miss any step or is anything wrong? Your help please.
    Thanks
    Subha

    Hi,
    The issue in my case is the selection-screen is not called directly by a main screen in a report program. The selection-screen is present in a tabstrip control subscreen. So the flow is, report calls a main screen -> main screen contains tabstrip control -> first tab of tabstrip has a subscreen which should have select-options. Since select-options cannot be directly put using screen painter options, i need to use another subscreen. So how do i pass the value of this select-option to the main program?
    Thanks
    Subhashini

  • Populate SELECT-OPTIONS default value using CALL FUNCTION

    Hi Experts,
    I would like to populate SELECT-OPTIONS s_currm default with value in w_currm, however, it doesn't seem to work.  Can you please advise what the correct syntax is.
    Note that CALL FUNCTION 'GET_CURRENT_YEAR' is working correctly and populating w_currm (as I can use it in a SQL SELECT statement), however, it does not seem to work for SELECT-OPTIONS s_currm.
    Thank you for your time.
    Code snippet is as a follows:
    REPORT  Z_DOWNLOAD_BSIS_TEST.
    *Data Declaration
    DATA: w_currm TYPE BSIS-MONAT.
    *Define current fiscal month
    CALL FUNCTION 'GET_CURRENT_YEAR'
      EXPORTING
        BUKRS         = 'X999'     " Company Code
        DATE          = SY-DATUM   " Date to find fiscal year for
      IMPORTING
        CURRM         = w_currm.   " Current Fiscal Month
    SELECT-OPTIONS s_currm FOR w_currm
                   DEFAULT w_currm. " The default value is NOT being populated (appears blank)

    Hi Venkat.O,
    Thank you for your clear response.  I have implemented your suggestion and it works, however, I now have a new problem. 
    Each time the report is executed or the "multiple selection" button is clicked the selection fields are populated once again with the default (low) values.
    For example, when report is first opened the s_curry field displays '2010'.  Clicking "multiple selection" results in another '2010' being populated.  After executing the report the selection screen is populated again with '2010' (so we now have '2010' listed 3 times in the s_curry field).
    How do I prevent the default values from repeating?
    REPORT  Z_DOWNLOAD_BSIS_TEST
    *Data Declaration
    DATA:  w_currm TYPE BSIS-MONAT,
           w_curry TYPE BSIS-GJAHR,
           w_prevm TYPE BSIS-MONAT,
           w_prevy TYPE BSIS-GJAHR.
    SELECTION-SCREEN BEGIN OF BLOCK b11 WITH FRAME TITLE text-001 .
    *Parameters to enter the path
    PARAMETERS: FILENAME(128) OBLIGATORY DEFAULT '/usr/sap/tmp/TEST.txt'
                             LOWER CASE.
    SELECT-OPTIONS: s_curry FOR w_curry,
                    s_currm FOR w_currm.
    SELECTION-SCREEN END OF BLOCK b11.
    AT SELECTION-SCREEN OUTPUT.
    *Define current/previous financial periods
    CALL FUNCTION 'GET_CURRENT_YEAR'
      EXPORTING
        BUKRS         = 'X999'     " Company Code
        DATE          = SY-DATUM   " Date to find fiscal year for
      IMPORTING
        CURRM         = w_currm    " Current Fiscal Month
        CURRY         = w_curry    " Current Fiscal Year
        PREVM         = w_prevm    " Previous Fiscal Month
        PREVY         = w_prevy.   " Previous Fiscal Year
        s_curry-low = w_curry.
        s_curry-option = 'EQ'.
        s_curry-sign = 'I'.
        APPEND s_curry.
        CLEAR  s_curry.
        s_currm-low = w_currm.
        s_currm-option = 'EQ'.
        s_currm-sign = 'I'.
        APPEND s_currm.
        CLEAR  s_currm.

  • Chain-end_chain for a select-option in a subscreen

    hi all, I have a program with a screen 0010 with some fields....one of this fields must have "multiple input" (as with select-options) so I´ve created a subscreen 0020 within this screen 0010 (it´s the only way I know to put select-options in a screen)
    The problem is in screen 0010 I have a chain end_chain to check data in the custom fields:
    CHAIN.
       FIELD zget_assigner-fipex.
       FIELD zget_assigner-ebeln.
       FIELD zget_assigner-belnr.
       MODULE check_fields.  " ON CHAIN-REQUEST.
    and in my screen 0020 i have other chain endchain to check the select-option....
    CHAIN.
      FIELD  S_BNAME-LOW.
      MODULE %_END_OF_SCREEN.
      MODULE %_OK_CODE_1000.
      module check_fields_0020.
    ENDCHAIN.
    the problem is when I enter data in the select-option and hit enter the program give me an error message saying I can´t use "set screen and leave screen in a subscreen" and the program finish....
    if I don´t hit enter but press OK to continue the process....the chain end chain from 0020 give me a message saying the data is wrong (this is ok) but the select-option stay in display mode (chain endchain did this) and I can´t modify the data in the select-option...
    What I need to do in order to get editable the select-option after the error messager from chain is showed????
    Thanks in advance....
    How can I check the data in the select-option S_BNAME is correct????

    hi all, thanks for your kindly answers...
    finally I fixed the problem using  
    "at selection-screen on s_bname" and a bit of new code in the module where I manage actions to do in base to the values of the sy-ucomm.....
    so If the data in the select-option is wrong I show an error message in the "at selection-screen" and I call screen 0010 in my user_command_0010 where I checks the sy-ucomm values....
    Thanks again.

  • Multiple Select option in Module pool

    Hi,
    I wanna add a field for 'Delivery number' in the screen of a mod pool prgm.I created a subscreen area in the main screen and did the coding needed.now the problem i am having is if i giv a single value in the from field or  values in the 'From' and 'To' field its not taken to the program,i saw it while debugging. but if i enter the values in the multiple selection option its taken to the program.That means from screen its not going to the program where as from the multiple select option its taken to the program,What may be the propblem.
    Regards in Advance,
    Nitin

    Hi,
    Have you used the select-options in the subscreen or you have placed the multiple option manually?
    Either way, please check the two methods, it may solve your problem.
    Create a SELECT-OPTIONS in module pool screen using two methods as shown.
    Method 1
    a) Create a subscreen area in your screen layout where you want to create the select options.
    b) In the top include of your module pool program declare a selection screen as a subscreen e.g.
    SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.  
        select-options s_matnr for mara-matnr.
    SELECTION-SCREEN END OF SCREEN.
    c) In the PBO and PAI of the main screen where the select options needs to be created do a call subscreen of the above screen (100).
    CALL SUBCREEN sub_area INCLUDING  <program>   <screen>
    This CALL SUBSCREEN statement is necessary for transport of values between screen and program.
    Note: All validations of the selection screen fields e.g. the s_matnr field created above should be done in selection screen events like AT SELECTION-SCREEN etc and not in PAI. These selection screen validations etc should be done in the top include only.
    Method 2
    a) Create 2 separate fields in your screen layout - one for the low value and one for the high value. Insert an icon beside the high value which will call the multiple selections popup screen on user command. Use function module COMPLEX_SELECTIONS_DIALOG to achieve this.
    struc_tab_and_field-fieldname = con_cust.  " 'KUNNR'
    struc_tab_and_field-tablename = con_kna1.  " 'KNA1'.
    CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'  
    EXPORTING*         
    TITLE                        = ' '    
    text                          = g_titl1   " 'Customers'     
    tab_and_field             = struc_tab_and_field   
    TABLES     
    RANGE                     = rng_kunnr   
    EXCEPTIONS     
    NO_RANGE_TAB       = 1    
    CANCELLED              = 2     
    INTERNAL_ERROR     = 3     
    INVALID_FIELDNAME  = 4    
    OTHERS                       = 5.
    IF NOT rng_kunnr[] IS INITIAL.       
    Read the very first entry of the range table and pass it to dynpro screen field   
    READ TABLE rng_kunnr INDEX 1.   
    IF sy-subrc = 0.       
      g_cust = rng_kunnr-low.    
    ENDIF.
    ENDIF.
    You can use the return table rng_kunnr to populate your own internal range table with the values entered by the user. Basically here you are just simulating the work of a select-options parameter by module pool screen elements.
    Regards

  • SELECT-OPTIONS in Module Pool Sub-Screen

    Hi,
    I have been working on a Module-Pool Development, in the header portion of the Screen, I have provided a Selection-Screen as a Sub-Screen because the requirement specifies to display a SELECT-OPTION in the Header Area.
    Now the problem is that, when working with the Screen, as soon as I press <ENTER> the Main Screen re-calls the Selection-Screen in the Sub-Screen area and all the entries made in the Selection-Screen are reset/erased.
    Kindly provide a solution either to stop the <ENTER> action to re-call the sub-screen. Or on any alternate method(s) to  provide a SELECT-OPTION on a Module Pool based Screen UI.
    MAIN SCREEN Code:
    *  PROCESS BEFORE OUTPUT
    PROCESS BEFORE OUTPUT.
    *~  Set PF-STATUS and TiTLE for Screen 100
      MODULE status_0100.
    *~  Call the Subscreen Dynamically
      CALL SUBSCREEN subscr1 INCLUDING sy-cprog gv_dynnr1.
      CALL SUBSCREEN subscr2 INCLUDING sy-cprog gv_dynnr2.
    *  PROCESS AFTER INPUT
    PROCESS AFTER INPUT.
    *~  Handle the Exit Commands of Screen 100
      MODULE user_command_0100 AT EXIT-COMMAND.
    *~  Handle the User Command(s) for screen 100
      MODULE user_action_0100.
      CALL SUBSCREEN subscr1.
      CALL SUBSCREEN subscr2.
    So whenever <ENTER> is pressed, the PBO re-calls:
    CALL SUBSCREEN subscr1 INCLUDING sy-cprog gv_dynnr1.
    and the Selection-Screen is reset.
    Regards,
    Nishant Nayyar.

    Haii Nishant,
    This problem was earlier solved by one of the members and after going through it i have now created a select-option in the Subscreen. Just create two input fields, name them as if they were low and high (for convinience as in case of select-option).
    U now need to create a table of type rstabfield.
    Ex: gt_rstab_bukrs type rstabfield.
    Now create a button and assign a Fcode for it. When you click on this button then u need to implement the ranges functionality as in select-option. For that use the following function module:
    CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
    EXPORTING
      TITLE                   = ' '
       TEXT                    = ''
       SIGNED                  = 'X'
       SEARCH_HELP             = 'H_T001'
       TAB_AND_FIELD           = gt_rstab_bukrs
      TABLES
        RANGE                   = rg_bukrs1.
    Hope it helps.
    Best Regards,
    rama

  • Populating select-options in a variant through selection variable

    I have a select-options on the selection screen of a report. I have created a variant for this report. Now i want to populate this variant field through selection variable (entries of table TVARVC). How can i manage to populate multiple values in this. Suppose i want the variant to hold a range of values, how do i set the variable in the table so that the multiple values can be set dynamically?

    Hi Ravi,
    I know how to populate select-options but i want to know how to set up the selection variable in table TVARVC for using it in populating a select-option in a report variant. we populate these selection variables using the transaction STVARV where we specify a value against a particular variable. How can this variable multiple values (for example a range) so that a select-option can be populated dynamically through this?
    regards,
    Priyank

  • Fill select-options in Page with flow logic ???

    Hello All,
              I created a BSP Application using Page with Flow Logic.
    In the first page of my Application I'm using 2 input fields as select-options.
    Now I'm populating a Ranges of that Field using the type :-
    selopttab
    I populated the ranges table like :-
    wa_bname_sel-sign   = 'I'.
              wa_bname_sel-option = 'BT'.
              wa_bname_sel-low    = '*'.
              wa_bname_sel-high   = 'Z'.
            ELSE.
              wa_bname_sel-sign   = 'I'.
              wa_bname_sel-option = 'EQ'.
              wa_bname_sel-low    = p_bname.
              wa_bname_sel-high   = p_bname.
            ENDIF.
            APPEND wa_bname_sel TO p_bname_sel.
            CLEAR  wa_bname_sel.
    But the problem is I checked the corresponding DATABASE Table entries by passing thesame value .
    i.e I passed the low and high values to the field as '*' and 'Z'.
    The total number of entries differ when passing '*' and 'Z' to when passing SPACE.
    I tried even with contains Pattern .This time the total number of records fetching has Increased but the sum is not exact when passed SPACE to the Database Table.
    So what should I pass to the Low and High values of my Ranges Table to get all the entries ????
    DOes this type of building the Ranges work in BSP's ?
    How are u people working out for the select-options functionality in Page with flow logic ?
    Message was edited by:
            deepu k

    Hello Jessy,
    To populate select-options or Ranges in Page with flow logic I used the following code :
    ************************ Bulid the Select-Options**************************************
          DATA: p_bname_sel     TYPE STANDARD TABLE OF selopttab,
                p_bsp_name_sel  TYPE STANDARD TABLE OF selopttab,
                p_tcode_sel     TYPE STANDARD TABLE OF selopttab.
          DATA: wa_bname_sel    TYPE selopttab,
                wa_bsp_name_sel TYPE selopttab,
                wa_tcode_sel    TYPE selopttab.
    * Select-Options for Username
          REFRESH p_bname_sel.
          CLEAR   wa_bname_sel.
          IF ( p_bname IS INITIAL  ).
            wa_bname_sel-sign   = 'I'.
            wa_bname_sel-option = 'CP'.
            wa_bname_sel-low    = '*'.
            wa_bname_sel-high   = ''.
          ELSE.
            wa_bname_sel-sign   = 'I'.
            wa_bname_sel-option = 'EQ'.
            wa_bname_sel-low    = p_bname.  " p_bname is the Input field and the value is taken from it
            wa_bname_sel-high   = p_bname.
          ENDIF.
          APPEND wa_bname_sel TO p_bname_sel.
          CLEAR  wa_bname_sel.
    * Select-Options for BSP_Application
          REFRESH p_bsp_name_sel.        
          CLEAR   wa_bsp_name_sel.
          IF ( p_bsp_name IS INITIAL  ).
            wa_bsp_name_sel-sign   = 'I'.
            wa_bsp_name_sel-option = 'CP'.
            wa_bsp_name_sel-low    = '*'.
            wa_bsp_name_sel-high   = ''.
          ELSE.
            wa_bsp_name_sel-sign   = 'I'.
            wa_bsp_name_sel-option = 'EQ'.
            wa_bsp_name_sel-low    = p_bsp_name.       " Input field
            wa_bsp_name_sel-high   = p_bsp_name.
          ENDIF.
          APPEND wa_bsp_name_sel TO p_bsp_name_sel.
          CLEAR  wa_bsp_name_sel.
    * Select-Options for TCODE
          REFRESH p_tcode_sel.
          CLEAR   wa_bsp_name_sel.
          IF ( p_tcode IS INITIAL  ).
            wa_tcode_sel-sign   = 'I'.
            wa_tcode_sel-option = 'CP'.
            wa_tcode_sel-low    = '*'.
            wa_tcode_sel-high   = ''.
          ELSE.
            wa_tcode_sel-sign   = 'I'.
            wa_tcode_sel-option = 'EQ'.
            wa_tcode_sel-low    = p_tcode.       " Input field
            wa_tcode_sel-high   = p_tcode.
          ENDIF.
          APPEND wa_tcode_sel TO p_tcode_sel.
          CLEAR  wa_tcode_sel.
    * Select all the related entries when either BSP or TCode is choosen
          IF ( ( p_bsp_name IS NOT INITIAL ) AND ( p_tcode IS INITIAL ) )
                     OR
             ( ( p_bsp_name IS INITIAL ) AND ( p_tcode IS INITIAL ) ).
            REFRESH gt_final.
            SELECT bname
                   bsp_name
                   description
                   ldate
                   ltime
                   calls
                   FROM <custom_table>
                   INTO TABLE gt_final
                   AND   bsp_name  IN p_bsp_name_sel
                   AND   ldate          IN p_ldate_sel.
    endif.
    Hope that wud help u !!!
    Regards,
    Deepu.K

  • Module Pool with select options

    Hi,
    I have created select-option and radio button in Module pool. My req is that I when the user enters any value and click on the radio button the respective programs should be executed.
    Thanks
    Hari

    Hi Hariharan,
    I would recommend you to use primarily use push button and then after SUBMIT statement, and also the example for the same is provided below:
    *Code used to execute a report
    SUBMIT Zreport.
    *Code used to populate 'select-options' & execute report
    DATA: seltab type table of rsparams,
          seltab_wa like line of seltab.
      seltab_wa-selname = 'PNPPERNR'.
      seltab_wa-sign    = 'I'.
      seltab_wa-option  = 'EQ'.
    * load each personnel number accessed from the structure into
    * parameters to be used in the report
      loop at pnppernr.
        seltab_wa-low = pnppernr-low.
        append seltab_wa to seltab.
      endloop.
      SUBMIT zreport with selection-table seltab
                                    via selection-screen.
    *Code used to populate 'parameters' & execute report
    SUBMIT zreport with p_param1 = 'value'
                    with p_param2 = 'value'.
    Please validate the same at your end as well, please come back, if inputs are required.
    BR/Thanks
    Pranav Agrawal

  • Populating select-options through code

    Hi Experts,
       I have a requirement like in my selection screen I will have a select-options which will be input disabled. But in the initialization event I want to populate some values through coding. How can I populate multiple values. I should not use variant. I have to code only.
    Expecting your help,
    Venkatraman.

    Hi,
    As problem has Solved but following my Sample Code can help People who will Search, in fact i am posting this one because it is different from all the previous replies i am using Macro to populate Select-Options or you can do the Same for Ranges.
    DEFINE fill_select_options.
      clear: &1.  &1-sign = &2.    &1-option = &3.   &1-low = &4. &1-high = &5.  append &1.
    END-OF-DEFINITION.
    SELECT-OPTIONS: sodate FOR sy-datum.
    INITIALIZATION.
      fill_select_options sodate 'I' 'BT' '20080101' '20080131'.
      fill_select_options sodate 'E' 'BT' '20080110' '20080115'.
      fill_select_options sodate 'I' 'EQ' '20080201' '20080201'.
      fill_select_options sodate 'I' 'EQ' '20080205' '20080205'.
    Regards,
    Faisal

  • Fill a "select options" from a direct input.

    Hi there
    my new need is this, into a report I call a transaction (FMMC) and I'd like to fill a multiple selection into a select option (belnr) , there is a way to do only an execution of this "batch" or I have to launch the transaction for every document I have to release ?
    Thanks

    See the sample code
    *Code used to populate 'select-options' & execute report 
    DATA: seltab type table of rsparams,
          seltab_wa like line of seltab.
      seltab_wa-selname = 'PNPPERNR'.
      seltab_wa-sign    = 'I'.
      seltab_wa-option  = 'EQ'.
    load each personnel number accessed from the structure into
    parameters to be used in the report
      loop at pnppernr.
        seltab_wa-low = pnppernr-low.
        append seltab_wa to seltab.
      endloop.
      SUBMIT zreport with selection-table seltab
                                    via selection-screen.
    *Code used to populate 'parameters' & execute report 
    SUBMIT zreport with p_param1 = 'value'
                    with p_param2 = 'value'.
    http://www.sapdevelopment.co.uk/reporting/rep_submit.htm

  • Call Transaction and fill a select-options field with more than one value?

    Hello everybody,
    how can I fill a select-options field with more than one value.
    Here is the code example:
      CLEAR: GT_BDCDATA, GS_BDCDATA.
      GS_BDCDATA-program = 'RHALEINI'.
      GS_BDCDATA-DYNPRO = '1000'.
      GS_BDCDATA-DYNBEGIN = 'X'.
      APPEND GS_BDCDATA TO GT_BDCDATA.
      CLEAR: GS_BDCDATA.
      GS_BDCDATA-FNAM = 'PCHOTYPE'.
      GS_BDCDATA-FVAL = 'P'.
      APPEND GS_BDCDATA TO GT_BDCDATA.
      CLEAR: GS_BDCDATA.
      LOOP AT gt_hrobjinfty INTO gs_hrobjinfty.
        GS_BDCDATA-FNAM = 'PCHOBJID-LOW'.
        GS_BDCDATA-FVAL = gs_hrobjinfty-objid.
        APPEND GS_BDCDATA TO GT_BDCDATA.
        CLEAR: GS_BDCDATA.
      ENDLOOP.
      CALL TRANSACTION 'PFAL' USING GT_BDCDATA MODE 'A'
                       MESSAGES INTO GT_MESSAGES.
    THX.

    Hi,
    Please refer the code below:
    *Code used to populate 'select-options' & execute report
    DATA: seltab type table of rsparams,
          seltab_wa like line of seltab.
      seltab_wa-selname = 'PNPPERNR'.
      seltab_wa-sign    = 'I'.
      seltab_wa-option  = 'EQ'.
    * load each personnel number accessed from the structure into
    * parameters to be used in the report
      loop at pnppernr.
        seltab_wa-low = pnppernr-low.
        append seltab_wa to seltab.
      endloop.
      SUBMIT zreport with selection-table seltab
                                    via selection-screen.
    Thanks,
    Sriram Ponna.

  • Reports Select Option

    Hi all,
         I have a task - i have to  use "SELECT-OPTIONS of one program into select statements of another program, Please solve my problem.
    Thanks in advance
                                                 Ranjith

    Hi Ranjit,
    Try using SUBMIT option with the addition SELTAB.
    You can also pass the select options along with the SUBMIT statement. Take a look at the help.
    Code used to populate 'select-options' & execute report 
    DATA: seltab type table of rsparams,
          seltab_wa like line of seltab.
      seltab_wa-selname = 'PNPPERNR'.
      seltab_wa-sign    = 'I'.
      seltab_wa-option  = 'EQ'.
    * load each personnel number accessed from the structure into
    * parameters to be used in the report
      loop at pnppernr.
        seltab_wa-low = pnppernr-low.
        append seltab_wa to seltab.
      endloop.
      SUBMIT zreport with selection-table seltab
                                    via selection-screen.
    Cheers
    VJ
    Message was edited by: Vijayendra  Rao

  • Select-option on subscreen for Module pool

    Hi all,
    I need to add some elements on standard screen of a standard transaction. Everything works fine, but the problem starts when I want to add select-option. It is displayed, but when I press on Multiple selection button no action occurs, no window appears...I simplified the case and created test program with test screen and also I get the same behaviour. Anyone had similiar problem?
    Thnak you in advance for help,
    Anna

    I donot know how u have created the select-option. but u can try these 2 methods to create it. And I have checked that both of them work fine.
    1) How to create a select-options in a module pool screen.
    Method 1
    a) Create a subscreen area in your screen layout where you want to create the select options.
    b) In the top include of  your module pool program declare a selection screen as a subscreen e.g.
           SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
                 select-options s_matnr for mara-matnr.
           SELECTION-SCREEN END OF SCREEN.
    c) In the PBO and PAI of the main screen where the select options needs to be created do a call subscreen of the above screen (100).
           CALL SUBCREEN sub_area INCLUDING  <program>   <screen>
      This call subscreen statement is necessary for transport of values between screen and program.
    Note: All validations of the selection screen fields e.g. the s_matnr field created above should be done in selection screen events like AT SELECTION-SCREEN etc and not in PAI. These selection screen validations etc should be done in the top include only.
    Method 2
    a) Create 2 separate fields in your screen layout - one for the low value and one for the high value. Insert an icon beside the high value which will call the multiple selections popup screen on user command. Use function module COMPLEX_SELECTIONS_DIALOG to achieve this.
    struc_tab_and_field-fieldname = con_cust.  " 'KUNNR'
    struc_tab_and_field-tablename = con_kna1.  " 'KNA1'.
    CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
              EXPORTING
              TITLE                   = ' '
                text                         = g_titl1                                " 'Customers'
                tab_and_field     = struc_tab_and_field
              TABLES
                RANGE                   = rng_kunnr
              EXCEPTIONS
                NO_RANGE_TAB          = 1
                CANCELLED                    = 2
                INTERNAL_ERROR     = 3
                INVALID_FIELDNAME = 4
                OTHERS                           = 5.
    IF NOT rng_kunnr[] IS INITIAL.
             Read the very first entry of the range table and pass it to
             dynpro screen field
               READ TABLE rng_kunnr INDEX 1.
               IF sy-subrc = 0.
                  g_cust = rng_kunnr-low.
    ENDIF.
    You can use the return table rng_kunnr to populate your own internal range table with the values entered by the user. Basically here you are just simulating the work of a select-options parameter by module pool screen elements.
    Regards,
    Joy.

  • Select-Options in Tabstrip and Subscreen for MIGO

    Hi,
    I have to enhance MIGO tansaction using screen exit.
    I have to create a tab called Serial Number Ranges and inside the tab create a sub screen.
    Inside the subscreen i have to create a range (select option for Serial Number.)
    I have create a module pool program and created one screen with the tab and subscreen.
    In the main program i have create a selection screen as subscreen and declared select options.
    then i have called the screen in PBO and PAI..
    it doesnt seem to work...
    can u suggest a solution different from this?

    Hi,
    Check out these links:
    [http://sample-code-abap.blogspot.com/2008/06/select-option-in-module-pool-screen.html]
    [http://abap-explorer.blogspot.com/2008/08/create-select-options-in-module-pool.html]

Maybe you are looking for

  • What-if Depreciation Report

    Hi, I need to build the Fixed Assets 'What-if Depreciation Report' as a BI-Publisher report containing additional data not displayed in the standard report. This report is kicked-off together with running the 'What-if Analysis Program' from a form in

  • Places not working correctly

    I can't seem to get Places to work correctly. Here is what I do and what happens: 1)  I shoot picts with a point and shoot and a handheld GPS. Dates and times are in synch. Time zone double-checked. 2)  Import photos into Aperture. 3)  Plug Garmin 60

  • HT2534 i need to create an apple id with out card

    i need to create an apple id with out card can u give any suggestions..............for me

  • When I open iTunes and am also connected to my iPad, I do not get the screen where my device should be listed.

    When I open my iTunes and am also connected to my iPad, I do not get the screen where I can select a device or choose the Summary tab.  What am I doing wrong?

  • Custom Metadata in Bridge CS5

    Greetings, I have been using bridge to organize photos and other assets that already have their own set of metadata that I do not want to change. Is there any way to add my own panel or information so it is distictly separate. The information I want