Select-Options on a Tabstrip Subscreen on a REAL Dynpro

Hello,
i ve the following problem:
I have a Report with a normal selection-screen and a call screen 100 after that.
That Dynpro 100 itself is a Tabstrip-Control. And on one of the Tabs i need to place some Select-options fields ( and a pushbutton + an alv, which shows the result of the selection, but thats not a problem).
The Problem i think is, that a Tab itself is a subscreen. not a "real" dynpro. i tried to place a subscreen control on that tab ( subscreen in a subscreen dynpro ) and define a selection screen as subscreen. but it s not being displayed.
selection-screen begin of screen 0888 as subscreen.
selection-screen begin of block s01 with frame title text-s01.
select-options: s_mrbe for eedmsettlunit-settlunit.
selection-screen end  of block s01.
selection-screen end   of screen 0888.
in dynpro logic:
PROCESS BEFORE OUTPUT.
  MODULE status_0222.
  CALL SUBSCREEN:
    subscreen5 INCLUDING sy-repid '0888'.
PROCESS AFTER INPUT.
  MODULE user_command_0222.
    call SUBSCREEN subscreen5.
maybe you can help
Moderator message : Duplicate post locked. Continue with the thread - [Select-Options on a Tabstrip Subscreen on a REAL Dynpro|Select-Options on a Tabstrip Subscreen on a REAL Dynpro;.
Edited by: Vinod Kumar on Jun 15, 2011 2:02 PM

Hello,
Your problem is to show a subscreen selection-screen on another subscreen, right?
It works for me:
1. Copy DEMO_DYNPRO_TABSTRIP_LOCAL report.
2. Add your own subscreen selection-screen:
SELECTION-SCREEN BEGIN OF SCREEN 9001 AS SUBSCREEN.
.. SELECT-OPTIONS: p_sel FOR ok_code.
SELECTION-SCREEN END OF SCREEN 9001.
3. Call your subscreen 9001 on screen 100
PROCESS BEFORE OUTPUT.
  MODULE STATUS_0100.
  CALL SUBSCREEN: SUB1 INCLUDING SY-REPID '9001', "<---
                  SUB2 INCLUDING SY-REPID '0120',
                  SUB3 INCLUDING SY-REPID '0130'.
PROCESS AFTER INPUT.
  MODULE CANCEL AT EXIT-COMMAND.
  CALL SUBSCREEN: SUB1,
                  SUB2,
                  SUB3.
  MODULE USER_COMMAND.

Similar Messages

  • Reusing select option in different tabstrips of same view

    Hi Experts,
    I have a view. In this i have two tabstrips namely tab1 and tab2.
    I have created one select option and i am using it twice inside (two fields- one for date and one for register no.) one view controller of tab1.
    Now is it possible to use the same select option twice inside tab2. Note that here i have to create another view controller for tab2.
    Can u plz explain in details.
    Thanks in advance

    Hi,
    When you create the 2 viewcontainer Ui elements inside the 2tabs repsectively. Use the same instance of the Select options
    in both tabs would throw the error that same instance of Selectoptions already exists.
    You need to create the 2 select options instances, i mean Component usages to achieve the same.
    Is this dynamic. I mean embeding view inside the view container of Window context is dynamic or static.
    Regards,
    Lekha.

  • Setting screen attributes for select-option in subscreen

    Hello SDN Community,  I have researched this extensively in forums and found much helpful information in getting the select-option working in a subscreen.  Also found information that discussed using standard AT SELECTION-SCREEN statements to process the sub-screen with. 
    I encountered problems when that from the LOOP AT SCREEN within the AT SELECTION-SCREEN OUTPUT,  I set the INPUT/OUPUT attributes to zero, the field was still open for input when it displayed.  For when I do this on other fields of my screen, they are "greyed out".
    Has anyone any experience setting field attributes from within loop at screen for embedded select-option subscreen?  Would appreciate any insight you might have.
    Thank you,
    Dean Atteberry.
    P.S.- I put this thru the debugger and I can see the INPUT and OUTPUT attributes getting changed.  But when displays, it is like the change didn't happen.
    Full description of my processing below...
    I have a screen with four radio-buttons.  Under the first radio-button is my embedded subscreen with one SELECT-OPTION for AUFNR.  Under the other three radio-buttons are single fields declared regular way in main screen.
    In my PBO of main screen I have loop at screen that enables/disables INPUT and OUPTUT attributes based on which radio-button is selected.  This prevents confusion from user entering values in fields other than the one the radio-button is selected for.
    For my embedded select-option subscreen, I have an AT SELECTION-SCREEN OUTPUT statement in which I have a LOOP AT SCREEN.  Within that, based on radio-buttons, I either enable or disable the INPUT and OUTPUT attributes for the S_AUFNR-LOW and S_AUFNR-HIGH fields.
    Edited by: Dean Atteberry on Mar 25, 2009 4:39 PM

    >> I think that you are trying to change select options within main screen, whereby it should be
    >> changed in PBO of that subscreen. You said you do it in AT SELECTION-SCRREN OUTPUT which
    >>  will be only applicable for selection screen (I guess your main screen here). Do loop at screen in
    >>  PBO module of this subscreen not in PBO of the selection screen and see if that helps.
    Hi Marcin,  thank you for your reply.  My "main screen" is not my "selection screen".  Please allow me to further clarify...
    My "main screen" has four radio buttons with a subscreen area under the first one and single fields under the others.
    My "subscreen" is auto-generated by Selection-Screen and Select-Options statements which are in my TOP module.
    I call my auto-generated select-option subscreen in my PBO with...
         call subscreen sca_ordr including sy-repid scr_0121.
    and in my PAI with...
         call subscreen sca_ordr.
    In order to do LOOP AT SCREEN for my system-generated select-option subscreen, I use the AT SELECTION-SCREEN OUTPUT event in which to put my loop. 
    When I walk thru this in the debugger, I can see it setting INPUT/OUTPUT fields to zero, but when the screen displays, there are no changes to my subscreen....  Fields should be "greyed out" instead they are open for intput.
    Doing my best to accurately describe in as few words as possible.  Thank you for your ideas!
    Dean.

  • ZScreen(SE51)   Input field  should have Select option

    Hi ,
    I need to create one Select option on Screen designed using screen painter .
    Later I want to use in PAI of screen in select query as Select option .
    Mean to say in where clause of select query i have to use <b>IN</b> for that input field .
    Looking for some helpful responses .
    SS

    Hi,
    You can create a selection screen by using the normal SELECT-OPTIONS command as a subscreen and then call the subscreen in your main screen.
    SELECTION-SCREEN BEGIN OF SCREEN scr AS SUBSCREEN.
    call the sub screen using normal command.
    CALL SUBSCREEN b INCLUDING prog dynnr .
    regards,
    Mahesh

  • 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

  • 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]

  • 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

  • Subscreen with Select-Options called from At Selection Screen event

    Dear friends,
    I'm trying to call a subscreen that contains a select-options, from an 'at selection screen' event, in a report program, but without sucess.
    Here's go what I'm doing:
    I declared a selection-screen as subscreen in my main program, and I'm calling it from a module-pool subscreen area, to make the module-pool select-options magic.
    In my main report program, I have a customized status GUI with a new toolbar button and I'm handling it at the 'at selection screen' event.
    What I need to do is to call the subscreen that contains the select-options when this new customized button get pressed, but when It happens, the select-option selections pop-up doesn't appear.
    If I call the subscreen from the 'start-of-selection' event, it goes fine, just don't work from the 'at selection screen'.
    Any ideas on how can I do it?
    Thank you,
    Heber

    i think you should try something like this:
    at selection screen.
    if condition handled ....
      show_popup = 'X'.
    endif.
    at selection screen output.
    if show_popup EQ 'X.
    call subscreen
    endif.

  • Select-options in subscreen

    Hi people!
    I've got a subscreen with an I/O field and a subscreen. In that subscreen I load a select-option, but when I put data on the fields, I realize the I/O field keeps the data but my select-option is 0, there's no data on it. I'm sure the answer must be really simple but I can't find it and it's driving me nuts. Thanks in advance for your help.
    Zigor.

    Hello,
    today i had the same problem with I/O fields. The solution is written in the SAP Help:
    http://help.sap.com/saphelp_nw04s/helpdata/en/9f/dbabfe35c111d1829f0000e829fbfe/frameset.htm
    You also have to call the subscreen in the PAI of the Dynpro.
    Call subscreen sub.
    Greetings,
    Bernhard

  • Selection OPTION: Date input problem in Module POOL through Subscreen

    Dear ALL,
    Being new to ABAP, I am struck in a Problem.
    Requirement:
    I want an option on the Screen( My Screen 9000) for Date Range. Through this Date-Range I want to filter and pull some data from
    Database.
    As Date Range Selection option is possible only through Sub-Screen integration. Hence I integrated a Sub-Screen 400 (as below) and named the Sub-Screen area as SEL on my screen.
    Problem: As soon as I enter the dates on the screen, then those dates are not taken up by the code.
    During debugging I saw the the S_datum-low and S_datum-high are empty (in fact 00000000)
    The code follows:
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_9000.
      Call SUBSCREEN SEL  INCLUDING sy-repid '400'.
    PROCESS AFTER INPUT.
      MODULE USER_COMMAND_9000.
    DATA:  gv_datum     Type   dats,
    SELECTION-SCREEN BEGIN OF SCREEN 400 AS SUBSCREEN.
        SELECT-OPTIONS: s_datum FOR gv_datum.
    SELECTION-SCREEN END OF SCREEN 400 .
    Plz help where I am missing something.
    Regards
    Chandan

    Call the subscreen during the AT SELECTION-SCREEN event.
    SELECTION-SCREEN BEGIN OF SCREEN 400 AS SUBSCREEN.
    SELECT-OPTIONS: s_datum FOR gv_datum.
    SELECTION-SCREEN END OF SCREEN 400 .
    AT SELECTION-SCREEN.
       CALL SCREEN 100.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
       SET PF-STATUS '0100'.
    *  SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
       CASE sy-ucomm.
         WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
           LEAVE TO SCREEN 0.
       ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT

  • Mulitple selection with select option on subscreen

    Hi colleagues,
       I've the following issue:
    I'm programming a dynpro this dynpro contains two subscreens. The lower subscreen will contain another dynpro defined as subscreen with an ALV to display results.
    The top subscreen (0150) area will be filled with a generated subscreen with the command
      SELECTION-SCREEN BEGIN OF SCREEN 0150 AS SUBSCREEN.
    with select options I define my selection area like:
    SELECT-OPTIONS: sa_6 FOR gs_rp_attrib_sel-sonr.
       If I call my transaction starting up the dynpro containing the two subscreens the result looks quit how I expect it. BUT then I try to start up the multiply selection Pop-UP for the selection field by pressing the button just right behind the HIGH input field, nothing happens. The multiply selection pop-up basicly does not show up.
       Any clues what I need to add that it will show up?
       Does the mulitply selection not work with
    SELECTION-SCREEN BEGIN OF SCREEN 0150 <b>AS SUBSCREEN</b>???
    (If I do a simple test program with a selection screen not being a subscreen, the multiply select popup comes up.)

    Hi,
    A subscreen cannot call another screen.
    I guess this is the reason why u are facing this problem.
    Thanks,
    Rashmi.

  • 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.

  • 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.

  • Matchcode for subscreen select options

    Hi,
    I am displaying a selection screen subscreen as a popup in my report using module pool and it has two fields say,
    1. ABC
    2. XYZ
    I need to implement custom search help for these two fields.
    The problem is where to implement this??
    My report structure,
    1.Main Selection screen
    2.Selection screen subscreen
    I am not able to write anything in AT SELECTION SCREEN events as it isnt getting triggered for the subscreen fields - ABCand XYZ. I then debugged and checked that when I click F4 on these two fields it is going to the USER COMMAND of the module pool screen with SY-UCOMM &SAV irrespective of the screen fields clicked.
    Is there any way to identify which field was clicked so that I can build my custom search help?

    Check my code,
    SELECTION-SCREEN BEGIN OF BLOCK zb1.
    SELECT-OPTIONS : s_pgc   FOR zdpmotac-pl    MATCHCODE OBJECT zz_sh_prog,          "Program Code
                      s_ver   FOR zdpmotac-ver   MATCHCODE OBJECT zz_sh_prog_version,  "Version
                      s_verrk FOR zdpmotac-verrk MATCHCODE OBJECT zz_sh_prog_verrk,    "Version/Rank
                      s_msn   FOR zdpmotac-msn   MATCHCODE OBJECT zz_sh_prog_msn.      "MSN
    SELECTION-SCREEN END OF BLOCK zb1.
    SELECTION-SCREEN : BEGIN OF SCREEN 0500 AS SUBSCREEN.
    SELECT-OPTIONS : s_msn_p  FOR zdpmotac-msn,
                                    s_verk_p FOR zdpmotac-verrk.
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN : BEGIN OF LINE,
                      PUSHBUTTON 2(15)  b_but1 USER-COMMAND vald,
                      PUSHBUTTON 17(30) b_but2 USER-COMMAND canc VISIBLE LENGTH 13,
                      END OF LINE.
    SELECTION-SCREEN END OF SCREEN 0500.
    I have to give search help for fields s_msn_p and s_verk_p. I tried giving an at selection screen as suggested by you below that,
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_msn_p-low.
           lwa_field_tab-tabname = 'ZDPMOTAC'.
           lwa_field_tab-fieldname = 'MSN'.
           APPEND lwa_field_tab TO lt_field_tab.
           lw_retfield = 'MSN'.
           SELECT msn FROM zdpmotac INTO TABLE lt_msntab.
           DELETE ADJACENT DUPLICATES FROM lt_msntab.
           CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
             EXPORTING
               retfield        = lw_retfield
               dynpprog        = sy-repid
    *         value_org       = 'S'
             TABLES
               value_tab       = lt_msntab
               field_tab       = lt_field_tab
               return_tab      = lt_return_tab
             EXCEPTIONS
               parameter_error = 1
               no_values_found = 2
               OTHERS          = 3.
           IF sy-subrc <> 0.
    * Implement suitable error handling here
           ENDIF.
    But even then it isnt working for me. Am i missing something here?

  • Select-options as subscreen

    Hi!
    I have created a selection screen as subscreen inside a container. Now i want to change one of the select-options to invisible.
    ¿Where i have to put the loop at screen.- endloop code?. When i put it in the main window it doesn´t read the fields of the subscreen.
    Thanks in advance
    regards

    Hi,
    You need to put the code in the main Program and under the event AT SELECTION-SCREEN OUTPUT.
    ragards.

Maybe you are looking for

  • Ipad 4 Retina display keeps freezing and reboots

    the past week my Ipad 4 has been having problems with freezing and rebooting. I deleted a game app which I thought was the problem and now when I use my email app it will start to freeze then reboot. Of course my warranty has just run out when this h

  • Big fat library mess: duplicates / can't locate files / etc.

    Hi, I have several issues. Failed to find my answers online in forums here. Help requested. Recently migrated from another Mac. Moved library manually. 2 issues going on. 1. In the actual media folder where the songs are stored, each artist>album fol

  • Account has forgotten history after password recovery

    Hi all, I mistyped my password a couple of times on my iPhone today and had to go through iTunes to recover/reset it. Then I went to update my iPhone app "Saisuke" But I was told only existing purchasers could get the Update ! I have had my account f

  • Transport parameters

    Hi , Can any one suggest the list of parameters we need to modify for making one server having a common transport directory.As seen in report RSPARAM what are the parameters we need to modify if we want the shared transport directory to be on the dev

  • Have to send mail CC and body with person details also?

    Hi, I have requirement sending mail TO as wellas CC also. How can i send? TO:Project manager, CC:TeamLeader. In the body, Contact Person, Phone No: These details i have to send. Tell me the procedure to do in workflow? Early reply is highely appricia