Docking Container inside Subscreens

Hi Experts,
I have simple question. In a program of mine there is subscreen which eventually goes into a tabstrip control. I want to create a docking container inside this subscreen. So the docking container appears inside the tabsrip control. 
I can create a docking container in a normal screen. I want to know how to do the same in a subscreen. Please advise me on this,

@ Vindika
Sorry, but this is not possible. Everyone who doesn't say so would need to show the code for proof. Once I tried various ways of achieving that. With confidence I can say: you can't embed docking container within subscren. I have also never seen anyone here who could complete this. You need either different container or screen type to make this combination work.
@ Anand
Sorry, but this post doesn't prove anything. Simple saying "I tested the solution with subscreen and it is OK" without publishing the code is worth not too much for me.
Regards
Marcin

Similar Messages

  • Can I use Docking container in Subscreen

    Hi Friends,
       I have used Docking container in subscreen,its instance is getting created ,but i am unable to view it .
    So,can I use docking container in Subscreen?

    Hi Bujji,
    here is the code is have used for creating docking container.
    pls,check it once
      IF ref_members_container IS INITIAL.
        lt_fldcat = ref_matrix->mt_sxxx_keys.
        CREATE OBJECT ref_members_container
          EXPORTING
          PARENT                      =
          REPID                       =
            dynnr                       = c_screen-new_member
            side                        = lc_dock_side
          extension                   = 300
          lifetime                    = 1  " Life time screen
            ratio                       = '95'
          EXCEPTIONS
            cntl_error                  = 1
            cntl_system_error           = 2
            create_error                = 3
            lifetime_error              = 4
            lifetime_dynpro_dynpro_link = 5
            others                      = 6.
        CREATE OBJECT ref_members_grid
          EXPORTING
            i_parent          = ref_members_container
          EXCEPTIONS
            error_cntl_create = 1
            error_cntl_init   = 2
            error_cntl_link   = 3
            error_dp_create   = 4
            others            = 5.
        ls_layout-zebra = c_true.
        ls_layout-sel_mode = 'A'.   " Multiple Selection
        CALL METHOD ref_members_grid->set_table_for_first_display
          EXPORTING
       I_BYPASSING_BUFFER            =
       I_BUFFER_ACTIVE               =
       I_CONSISTENCY_CHECK           =
       I_STRUCTURE_NAME              =
       IS_VARIANT                    =
       I_SAVE                        =
       I_DEFAULT                     = 'X'
            is_layout                  = ls_layout
       IS_PRINT                      =
       IT_SPECIAL_GROUPS             =
       IT_TOOLBAR_EXCLUDING          =
       IT_HYPERLINK                  =
       IT_ALV_GRAPHICS               =
          CHANGING
            it_outtab                = <lt_keys>
            it_fieldcatalog          = lt_fldcat
       IT_SORT                       =
       IT_FILTER                     =
          EXCEPTIONS
            invalid_parameter_combination = 1
            program_error                 = 2
            too_many_lines                = 3
            OTHERS                        = 4.
      ELSE.
        CALL METHOD ref_members_grid->tables_display_refresh
          CHANGING
            it_outtab = <lt_keys>.
      ENDIF.

  • Docking container in a subscreeen

    hy gurus, got an issue on the putting a docking container in a subscreen.
    the subscreen doesn't display.
    I've created a dynpro 202 as subscreen ,
    i've  created a custom container( GO_CONTAINER_OBJECT)  in the dynpro 202.
    in the main dynpro (200)
    i have in the pbo and pai
    pbo
    CALL SUBSCREEN sub_202 INCLUDING 'SAPMZPMCMO' '0202'.
    pai.
    CALL SUBSCREEN sub_202.
    in the pbo of 202 i have.
      MODULE  tree_and_docking.
      MODULE alv_display.
    module tree_and_docking.
    * container for alv-tree
      CREATE OBJECT:
       go_container_object
        EXPORTING
          side      = cl_gui_docking_container=>dock_at_bottom
          repid     = sy-repid
          ratio = '40'
          extension = 250
          dynnr     = '0202',
       go_splitter
          EXPORTING parent = go_container_object
                rows = 1
              columns = 2.
      CALL METHOD:
      go_splitter->set_border
      EXPORTING border = space,
      go_splitter->get_container
      EXPORTING row = 1
      column = 1
      RECEIVING container = dock_sub_cont1,
      go_splitter->set_row_height
      EXPORTING id = 1
      height = '30',
    go_splitter->set_column_width
      EXPORTING id = 1
        width = '20',
      go_splitter->get_container
          EXPORTING row = 1
                column = 2
      RECEIVING container = dock_sub_cont2,
      go_splitter->set_column_width
      EXPORTING id = 2
        width = '100'.
    etc...
    but nothing is displaying when i call the screen.
    Did i miss something?
    Edited by: EBONGUE ANDRE on Oct 5, 2010 5:59 PM

    I guess you can't mix docking container with subscreen. How would that look like (docked at bottom of subscreen's?). No this can't be used like that. Use custom container instead.
    @Uwe
    I got used to this little yellow sign next to your name. How that happens that their take it away from you? I thought SAP Mentor honor is granted forever.
    Regards
    Marcin

  • Assign subscreen to docking container

    Hi All,
    I have requirement to make the subscreen of mainscreen draggable/reziable. Very much similar to se80.
    I have two subscreens in main screen. Now I need to give this reziable functionality to one of the subscreen .
    This can be achieved through docking container. But currently I am not using any containers.
    If suppose I have to use docking container then how will i assign this subscreen of main screen to docking container.
    Please suggest.
    Thanks.

    Thanks Naimesh.
    I have tabstrip and subscreen inside it. For each tabstrip click we display different table controls which are again designed in different screens as subscreen. Now how will I make this subscreen in Main screen resizable.

  • Creating Context Menu in ALV tree defined inside DOCKING CONTAINER

    Dear Experts.
    Can you please tell me which EVENTS should i use in CLASS: CL_GUI_SIMPLE_TREE to get a Context menu after right click on any tree node in ALV Tree which has been defined inside a Docking Container.
    Regards Arnab.

    Hi,
    Check Program SAPSIMPLE_TREE_CONTEXT_MEN_DEM and check event node_context_menu_request
    Hope this helps you.
    Thanks,
    Prashanth
    Edited by: Prashanth KR on Jun 2, 2009 7:50 AM

  • What create docking container on a subscreen?

    Hi Experts,
    How to create docking container on a subscreen?
    What parametr "parent" in constructor CL_GUI_DOCKING_CONTAINER?
    Thanks
    Mike Fedorov

    Here's an example...Kindly steal from Rich Heilman -;)
    report zrich_0001 .
    data:
          dockingleft  type ref to cl_gui_docking_container,
          text_editor    type ref to cl_gui_textedit,
          repid type syrepid.
    data: itext type table of tline-tdline,
          xtext type tline-tdline.
    parameters: p_check.
    at selection-screen output.
      repid = sy-repid.
      create object dockingleft
                  exporting repid     = repid
                            dynnr     = sy-dynnr
                            side      = dockingleft->dock_at_left
                            extension = 1070.
      create object text_editor
                  exporting
                       parent     = dockingleft.
      xtext = 'http:\\www.sap.com'.
      append xtext to itext.
      call method text_editor->set_text_as_r3table
         exporting
               table              = itext
         exceptions
               others             = 1.
    start-of-selection.
      call method text_editor->get_text_as_r3table
         importing
               table              = itext
         exceptions
               others             = 1.
      loop at itext into xtext.
        write:/ xtext.
      endloop.
    Greetings,
    Blag.

  • Docking Container in a Subscreen

    Hi All,
    I'm required to create a docking container in a subscreen (which will eventually be placed in a tab-strip).
    I have tried to get this, but without any success thus far. Is it technically possible to place a docking container in a subscreen? If not, then is there a sound logical reason beind why it cannot be done?
    Regards,
    Anand Mandalika.

    I tried to place a docking container into a custom container at the main screen (not subscreen). When I tried to instantiate the DC I've got a generic dump CNTL_ERROR. I've got the same result on attempt to open DC within other DC. The portion of the code where it was raised is:
    IF CONTAINER_MUST_BE_TOPLEVEL = 0.     
        FRAME_CONTAINER = CONTAINER.       
    ELSE.                                  
        RAISE CNTL_ERROR.                  
    ENDIF.                                 
    I don't know what does it mean to be "top level container", but it might be a starting point for further research. It seems to me that docking containers were not ment to belong to any parent, screen or subscreen. They just float by themselves, leaning on the edge of the window or another docking container. But, why they have PARENT parameter in CONSTRUCTOR then?
    Has anyone succeed in opening docking container within any other container?
    Igor

  • Creating Input Field inside Docking Container bar

    Hello.
    Does anyone know how I can put an input field inside a docking container object ? Just like it appears in SE80.
    I have created a docking container bar, and in one of those bars i want to put a text field.
    Anyone please ?
    Thank you
    EDIT----
    I found how to do this with cl_gui_container_bar_2 and with dynamic documents.
    Edited by: Ricardo Monteiro on Aug 25, 2010 1:30 PM

    Hi,
    Check Program SAPSIMPLE_TREE_CONTEXT_MEN_DEM and check event node_context_menu_request
    Hope this helps you.
    Thanks,
    Prashanth
    Edited by: Prashanth KR on Jun 2, 2009 7:50 AM

  • Place a Tabstrips Inside Docking Container

    All,
    I have a docking container like the following
    i need to place a tabstrip in the bottom container. I have the following code
    if gc_docking_t is initial.
        create object gc_docking_t
           exporting
             repid     = sy-repid
             dynnr     = '0300'
             extension = 75
             style     = style
             side      = cl_gui_docking_container=>dock_at_top
             metric    = cl_gui_docking_container=>metric_pixel.
      endif.
      if gc_docking_l is initial.
        create object gc_docking_l
          exporting repid = sy-repid
          dynnr = '0300'
          extension = 9999
          side = cl_gui_docking_container=>dock_at_bottom.
      endif.
    I have created a screen 310 with tabstrips inside, how can i call this screen inside this docking container
    Any Info ?

    Hi,
    SCN -Wiki->My Home->Code Gallery->Community Code Gallery->TabStrip in ALV(OOPS)
    Please refer http://wiki.sdn.sap.com/wiki/display/Snippets/TabStripinALV(OOPS)

  • Different screens in docking container...?

    Hi gurus,
    I'll try to explain what I'd like to do....
    I have a dynpro with a docking container, on the left I have a tree where I can choose an activity (e.g.: go to se11, go to se38, go to se16, and so on).
    I would like to run those transaction inside the docking container, without leaving to another screen, is it possible?
    Thank you very much!!!

    Hi,
    I think it is not possible, although your idea is interesting. You must think that we must use Call Transaction XXXX and that means that we´re leaving our current programme in order to execute the called programmed and screen behind transaction XXXX. We cannot use Submit since the instruction is for executable reports only.
    When using the SAP´s main menu, we have to leave the main programme (SAPLSMTR_NAVIGATION, screen 0100) when double clicking a node in the tree. When using a docking container, you must insert either screens or subscreens for displaying your information. You cannot enbed a transaction into this screens since it happens what I´ve explained in my first paragraph.
    If you find a way, let us know.

  • Embedding a screen in a docking container - Is it possible at all??

    I am working on a screen design similar to SE80, where I will be required to display a tree structure in screen say '0100' to the left of the screen and upon node_double_click event, I should be able to bring up another screen '0200' on to the right side with out navigating away from the screen 0100.
    I have a custom control in my initial screen 0100, covering the full area, and I am instantiating the docking container object in the node_double_click handler method of the tree control. I have passed sy-repid and dynpro number '0200' but to no avail.
    The following is the code sample.
          IF docking_right IS INITIAL.
            CREATE OBJECT docking_right
              EXPORTING
                repid     = g_repid
                dynnr     = '0200'
                side      = cl_gui_docking_container=>dock_at_right
                extension = 900.
          ENDIF.
    I have gone through many posts in this forum but none of them have a definitive indication if that can be possible, that is why I had to create this new thread. I will be glad if any of you could let me know if there is way accomplishing this.
    Thanks in advance,
    Raghu.

    Hi Raghu,
    I was specifically interested in exploring the option (if any) of combining conventional controls and the new GUI controls because I am trying to get to a scenario where I should be able create conventional controls like list boxes and buttons dynamically based on user actions. .
    For GUI controls you always need some container which is a "bridge" b/w control created in program and the screen. For standard dialogs you don't need such container. You just place them on the screen. Therefore you can combine these techniques by simply placing a container (which you already have and will use for tree control). The rest of the screen area can be used by standard controls (listoboxes, i/o fields etc). This way standard controls would be statically set, whereas container would store GUI control assinged dynamically in program.
    If, on the other hand, you want both controls and GUI controls be dynamically determined, just keep you container (for GUI control) and create a subscreen area where you dynamically swap different screens. These screen must be set as subscreens and must have statically defined layout, thus only determination of the screen to be displayed is dynamic here.
    Anyhow, there is no way to dynamically set standard controls on the screen. You could, however in turn switch them on/off in PBO (based on certain conditions) but this would require placing all the possible controls and just hiding/showing them. No replacment is then possible, so image empty gaps which this approach would produce.
    Ironically the constructor of docking container supports repid and dynpro for no apparent utility.
    As I said, container is used only to place some GUI control in it and then send this entire package (container+ GUI control) to appropriate place on the screen. That's why in container's constructor there is both repid and dynpro. These only determine where this container should be attached.
    Regards
    Marcin

  • Docking container

    Hello,
    Could you please tell me what is wrong either in the code below or in my logic:
      DATA: d_container TYPE REF TO cl_gui_docking_container,
            e_control TYPE REF TO cl_gui_abapedit.
      CALL SCREEN 200.
      CREATE OBJECT d_container
        EXPORTING
    *      repid                       = sy-cprog
    *      dynnr                       = sy-dynnr
          side                        = cl_gui_docking_container=>dock_at_left.
      check sy-subrc = 0.
      CREATE OBJECT e_control
        EXPORTING
          parent = d_container.
    Logic
    - create empty screen 0200
    - create docking container docking it to the left part of screen
    - embedding abap editor control to this docking container
    My question is: why when running program I don't see anything, as the docking container with the control inside wouldn't be there?
    Thank you for help in advance.
    Marcin

    Hi Jonathan,
    The problem was obvious. The code simply should be included in PBO module of the screen.
    There is no need to pass neither sy-repid nor sy-dynnr unless it displayed in other screen/program.
    Gr8 thanks for your help:)
    Regards,
    Marcin

  • Docking container in a screen with others elements.

    Hy yall,
    i'm trying to add a docking container at the bottom of a screen where i have already others elements like subscreen etc...
    The add is ok but the dockingcontainer is pushing on the right all the elements in the dynpro.
    How can i control where the docking starts ( his distance from the top) in other to keep it under the others elements?
    P.s: it's a docking_left.

    Hello Andre
    If you have already elements on the screen I would recommend to use a resizable CUSTOM_CONTROL element on the screen to which you link your docking container.
    Furthermore, if the docking container should dock from the bottom why don't you use DOCKING_BOTTOM and make the width of the docking container huge (to fill the entire screen to the right side)?
    Regards
      Uwe

  • Create a Docking container

    Hi Experts,
    My requirement is to create a docking container on a subscreen.
    How to create such docking container ?
    Thanks
    Alok Vishnoi

    Hi Alok ,
    Try to do below
    data:  docking_container   type ref to cl_gui_docking_container,
      splitter_container  type ref to cl_gui_splitter_container,
      top_container       type ref to cl_gui_container.
    * Create container for alv tree
      create object docking_container
        exporting
          side      = cl_gui_docking_container=>dock_at_left
          extension = 270
          repid     = sy-repid
          dynnr     = '100'.
      if not docking_container is initial.
    *   Creating object for splitter container
        create object splitter_container
          exporting
            link_dynnr = '100'
            link_repid = sy-repid
            parent     = docking_container
            rows       = 1
            columns    = 1.
      endif.                               " IF NOT docking_container IS INITIAL
      if not splitter_container is initial.
    *   Method to get the container name of top splitter area of docking container
        call method splitter_container->get_container
          exporting
            row       = 1
            column    = 1
          receiving
            container = top_container.
      endif.                               " IF NOT splitter_container IS INITIAL
    you can check more info on my reply of below thread
    https://www.sdn.sap.com/irj/scn/profile?userid=3925441
    hope this info is useful to you.
    Thanks!
    Edited by: Prasanth Maddela on Apr 22, 2009 5:34 PM

  • How can I pass a docking container to a program in a non-simple context?

    Dear colleagues,
    I want to pass a docking container like the one in SE80 to another program.
    The following code works fine:
    REPORT z_moving_dock.
    DATA: cl_docker type REF TO cl_gui_docking_container.
    PARAMETERS: test.
    INITIALIZATION.
      CREATE OBJECT cl_docker EXPORTING no_autodef_progid_dynnr = 'X'.
    END-OF-SELECTION.
      WRITE:/ test.
    But I cannot extend this to my current program. There I sourced out anything related to the GUI into a function group to obey the MVC paradigma. (That's maybe the error in reasoning, but I'm following the book Design Patterns in Object-Oriented ABAP from SAP Press and -- of course -- good and healthy programming style.)
    So it's a function group which knows the dynpros and controls, the main program knows only the data.
    Now I have a docking container like the one in SE80. We have many working older programs and I want to switch to them carrying the docking container with me. I have searched the Demos in SAP, the Online Help, the SAP Library, Books, the Web, this Forum, but none of them goes beyond the simpler examples that always work.
    I tried the LINK method on the docking container. I tried it before calling the new program (btw. by SUBMIT). I tried it afterwards from the called program (via a function module from the aforementioned group -- but the group is tied to the old program context and therefore I am in a new "instance" of it). I tried different values for REPID and DYNNR in LINK. I debugged SE80 -- too complicated!
    If it works well I get the container back when I return to the calling program. If it works badly the container is completely lost.
    Perhaps I should export something to memory?
    But I strongly would prefer not to alter the called programs: In the future I might also want to call a SAP standard program.
    I also didn't find some documentation explaining what is going on in the background so I could figure out in which direction to "think".
    I also tested the following code on SAP R/3 4.7 and SAP ERP 2005 with the same results.
    In the meantime I also created a minimal example. First the triggering report:
    REPORT z_moving_docking_container.
    DATA: g_example TYPE REF TO zcl_moving_docking_container.
    CREATE OBJECT g_example.
    This obviously calls the main class ZCL_MOVING_DOCKING_CONTAINER which has only this constructor:
    METHOD constructor.
      CALL FUNCTION 'Z_SHOW_DYNPRO'.
    ENDMETHOD.
    Normally this class should handle the business logic. Here it only calls this function module. In the appropriate function group, say Z_MOVING_DOCKING_CONTAINER, I have these declarations in the TOP-Include:
    FUNCTION-POOL z_moving_docking_container.
    DATA:
      gv_okcode TYPE ui_func,
      go_docker TYPE REF TO cl_gui_docking_container.
    The function group also contains a dynpro 9000 with this flow logic:
    PROCESS BEFORE OUTPUT.
      MODULE status_9000.
    PROCESS AFTER INPUT.
      MODULE user_command_9000.
    The modules are straightforward:
    MODULE status_9000 OUTPUT.
      SET PF-STATUS '9000'.
      IF go_docker IS INITIAL.
        CREATE OBJECT go_docker
               EXPORTING no_autodef_progid_dynnr = 'X'.
      ENDIF.
    ENDMODULE.
    with at least the function code ONLI defined in PF-status 9000 and
    MODULE user_command_9000 INPUT.
      IF gv_okcode = 'ONLI'.
        SUBMIT z_sample_report AND RETURN.
      ELSE.
        LEAVE PROGRAM.
      ENDIF.
    ENDMODULE.
    The report Z_SAMPLE_REPORT can be any report you like.
    At last the function module contains the following code:
    FUNCTION z_show_dynpro.
    *"*"Lokale Schnittstelle:
      CALL SCREEN 9000.
    ENDFUNCTION.
    As I see this, this is a straightforward application of the working example at the top and the principles of MVC and encapsulation of the dynpro logic (to "avoid" global variables as best as possible).
    Clearly in some sense this is an academic question, but I have built a fairly big application like that up to now ...
    </edit>
    Thanks for reading and contemplating,
    Thomas
    Edited by: Thomas Geiß on Feb 4, 2009 11:03 AM
    Edited by: Thomas Geiß on Feb 4, 2009 11:59 AM
    Edited by: Thomas Geiß on Feb 4, 2009 12:01 PM

    You'll either have to pass the data in as parameters in the applet tags or create a JavaScript tag and have the JavaScript pass it in. If the array is very large then you open a connection between the Applet and a servlet and pass the data that way.

Maybe you are looking for

  • At Selection-screen output event

    Hi can any one give me some examples for at selection-screen output event with regards nagaraj Moderator message: please search for available information/documentation. Edited by: Thomas Zloch on Nov 8, 2011 12:13 PM

  • Hard Drive Crashed- Need to Re-Download PS CS5

    I've lost Lightroom 4, and PS 5, have my serial number but don't know where to go to download it again- anyone have a solution/suggestion?

  • Sales document is deleted still billing plans are in billing due list

    Hello, Sales document is deleted which have billing plans, But still billing plans are showing in billing due list for billing. Please let me know how to delete the entries in billing due list. Thanks and Regards Vikram.M

  • Matmas05

    Hi, How to see the details (logic etc) in R/3 System for standard idoc MATMAS05 to prepare a FS to interface with external system. Please advise what should i mention in FS in this regard. thank you.

  • IDM not access

    when i tried to open IDM 5.1 to access the 4215 sensor, it give me not enough heap memory, and i also do as the help said to chanage it by add the -Xmx256m in the Java RunTime Parameters field but it still didn't work, can any body help me in this ca