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

Similar Messages

  • 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

  • Best way to implement a docking container

    Hi everyone,
    I need to create a docking container that behaves the same way the draggable panel system works in Flex Builder (Eclipse):
    - Dock other containers to the edges
    - Automatically layout other containers when the dragged container is docked into/out of an edge
    Is there a custom control that would enable me to do this? If not, what's the best approach to create one?
    Thanks,
    Amir

    Hi snidely_whiplash,
    snidely_whiplash wrote:
    What's the best way to implement a shared Blocking Queue that multiple JVMs can enqueue objects in and multiple JVM's can dequeue from simultaneously?
    Also, I see references on the web to com.tangosol.coherence.component.util.queue.ConcurrentQueue but I don't see it in the current API docs...
    ThanksThat class is an internal class, AFAIK.
    As for implementing a queue, you might want to look at Ashish Srivastava's ezMQ component for some ideas:
    http://ezsaid.blogspot.com/2009/01/implementing-jms-queue-on-top-of-oracle.html
    Best regards,
    Robert

  • SIZE_CONTROL Event for docking container

    Hi, Everybody
    I'm trying to handle size_control event for a docking container. But the event is not trigged. See the code excerpt below:
    * Create left docking container
      CREATE OBJECT ao_docking_container_left
        EXPORTING
          side = cl_gui_docking_container=>dock_at_left
          extension = 300
          dynnr = cl_co=>ac_main_screen
          repid = cl_co=>ac_main_prog.
    * Register the event
    ls_event-eventid = 12.
      ls_event-appl_event = 'X'.
      APPEND ls_event TO lt_events.
      CALL METHOD ao_docking_container_left->set_registered_events
        EXPORTING
          events                    = lt_events
        EXCEPTIONS
          cntl_error                = 1
          cntl_system_error         = 2
          illegal_event_combination = 3
          OTHERS                    = 4
    * Set handler
    SET HANDLER handle_doclist_resize FOR ao_docking_container_left.
    I have set the handle_doclist_resize method as a handler for the SIZE_CONTROL event of the CL_GUI_DOCKING_CONTAINER class (by Class Builder).

    I have transfered my code just into the one programm. But it still doesn't work I guess the SIZE_CONTROL event is not implemented in CL_GUI_DOCKING_CONTAINER.
    *& Report  ZMMM_DOCK                                                   *
    report  zmmm_dock                               .
    data:   ao_docking_container_left type ref to cl_gui_docking_container,
            lt_events type cntl_simple_events,
            ls_event type cntl_simple_event.
    *&       Class CL_EVENT_HANDLER
    *        Text
    class cl_event_handler definition.
      public section.
        class-methods:
        handle_doclist_resize for event size_control
        of cl_gui_docking_container.
    endclass.               "CL_EVENT_HANDLER
    * Create left docking container
    create object ao_docking_container_left
      exporting
        side = cl_gui_docking_container=>dock_at_left
        extension = 600
        dynnr = '0100'
        repid = sy-repid.
    ls_event-eventid = 12.
    ls_event-appl_event = 'X'.
    append ls_event to lt_events.
    call method ao_docking_container_left->set_registered_events
      exporting
        events                    = lt_events
      exceptions
        cntl_error                = 1
        cntl_system_error         = 2
        illegal_event_combination = 3
        others                    = 4.
    set handler cl_event_handler=>handle_doclist_resize
      for ao_docking_container_left.
    call screen 100.
    *&       Class (Implementation)  cl_event_handler
    *        Text
    class cl_event_handler implementation.
      method handle_doclist_resize.
    *Handles tree resizing
        data: lv_result type sysubrc,
              lv_width type i.
        call method ao_docking_container_left->get_width
          importing
            width      = lv_width
          exceptions
            cntl_error = 1
            others     = 2.
        leave program.
      endmethod.                    "handle_doclist_resize
    endclass.               "cl_event_handler
    include zmmm_dock_status_0100o01.
    include zmmm_dock_user_command_0100i01.

  • Docking Container without dynpro is possible?

    Hello.
    Is there any way of creating a docking container ( cl_gui_docking_container ) without having to create a dynpro in Screen Painter ?
    Thank you,
    Ricardo Monteiro

    Hi,
    Please perform the following steps to correct the non active webdynpro container error:
    Steps to fix the non active Webdynpro container issue during the SPS 12 deployment:
    1. Stop the JSPM tool after the deployment gets aborted due to error.
    2. Turn on the normal mode of execution by going to Config Tool and disabling the safe mode of execution.
    3. Restart the J2EE engine.
    4. Start the SDM tool from the RemoteGui.bat or RemoteGui.sh script.
    Redeploy software development archives with SDM tool. <b>You get these sda files from /usr/sap/<SID>/<Central Instance>/SDM/root/origin/sap.com directory:
    - com.sap.aii.proxy.framework/SAP AG/0/7.0012#/aii_proxy_rt.sda
    - com.sap.aii.util.xml/SAP AG/0/7.0012#/aii_util_xml.sda
    - com.sap.util.monitor.grmg/SAP AG/0/7.0012#/grmg.sda</b>
    5. Check whether webdynpro container is up and active.
    6. Restart the normal deployment process with the JSPM tool.
    This should help you.
    Thanks,
    Sunitha.

  • 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

  • I/O Field in a Docking Container

    Hii Experts,
    I have created a Docking Container, which i have splitted into two containers. First one should contain ALV, second one should have a couple of i/o fields and pushbuttons placed on it. I have placed the Pushbuttons using Toolbar Class (cl_gui_toolbar). I want to know how to place an i/o field in this container.
    Thanks in Advance,
    rama

    Hi all,
    i have the same problem. I have to create a closing cockpit for FI and i use 4 docking containers, in the upper container (header) i like to place dynamicaly some input fields.
    While sitting in the bathroom i had the idea to load a 2 column (or more) editable ALV into the container.
    In the first line and the first (non editable) column is the field label, in second (editable) column the data can be entered. The changed values i get back via events.
    If i need more paramters, i append more lines in the ALV tables.
    if i need more parameters as i can place in one colum in the upper container, i use 1. col for field label, 2. col for input, 3. col as colored filler, 4. col as field label, 5. col as input value and so on.
      col 1       col 2       col 3  col 4  col 5
      label       value      filler   label   value
    BUKRS
    DE19
    KORKS
    DE01
    PERIO
    005.2009
    RLDNR
    I0
    I will give feetback if my bathroom solution is useabel.
    Kind regards,
    Wolfgang
    Edited by: Wolfgang Boehm on May 15, 2009 11:53 PM

  • I/p parameter field in docking container

    How to get the field parameters in a docking container that shud be able to fetch data from Database ? for eg., in se80 tcode(in left container) we have an i/p field for program/class and another i/p field for their name.....

    Hi,
       You can use the following class cl_gui_textedit, and an object for the same can be created in the docking container.
    data : text type ref to cl_gui_textedit.
    * create the docking container
        CREATE OBJECT docking
                      EXPORTING repid     = repid
                                dynnr     = dynnr
                                side      = docking->dock_at_left
                                extension = 180.
    * create the text container
        CREATE OBJECT text
                      EXPORTING parent = docking.
    for further options look for the class CL_GUI_TEXTEDIT.
    also for reference you can see the BC example RSDEMO_DOCKING_CONTROL.
    Hope this helps.
    Regards,
    Kinshuk

  • Docking container like in se80

    Hi, i have create a docking container like in the left side of se80. the next way is to fill the docking container of my dynpro, can someone give me a example how to handle?

    Hello Muhammet
    In almost all of my ZUS_SDN... sample report I use docking container, e.g.
    alv
    I think this report give you an idea how to work with a docking container.
    Regards
      Uwe

  • 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

  • Resize docking container at runtime

    Hi container addicts,
    My report has a selection screen. Below I create a docking container (with SALV grid) docked at bottom with calculated extension that the select-options are still visible.
    The customer wants a toggle button to extend the control to the full screen area and make it small again to have the selections visible.
    Will I have to destroy the container and then recreate container and grid with different size or can I re-size the container at run time dynamically?
    Thanks for useful hints.
    Regards,
    Clemens

    Thank you Rich,
    this works fine. Obviously the extension is measured in something like points or pixels.
    I tied a dynamic solution regarding the actual screen size with constants for the selection screen area (mc_rows_selection_area. = 4) and estimated pixels per row mc_graph_units_per_row = 12.
    It works approximately, but not too exact. Are you aware of any methods to determine the full screen size (without standard tool bar) in the kind of units we need for SET_EXTENSION method?
    * provide dynamic screen space
      IF sy-srows <= mc_rows_selection_area.
        lv_srows = mc_rows_selection_area.
      ELSE.
        lv_srows = sy-srows - mc_rows_selection_area.
      ENDIF.
    * extension in pixels(?) as n pixels per row
      lv_extension = mc_graph_units_per_row * lv_srows.
      set_docking_extension( lv_extension ).
    Thanks a lot.
    Regards,
    Clemens

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

  • 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

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

  • How to set background color in a docking container?

    Hi guys!
    Is it possible to set a background color for a docking container?
    I don't find any appropriate method to do that.
    Is there actually a way?

    Hi,
    Please refer the below program as a reference for Color using Docking Container Concept.
    REPORT zcuitest_alv_07.
    * Use of colours in ALV grid (cell, line and column)            *
    * Table
    TABLES : mara.
    * Type
    TYPES : BEGIN OF ty_mara,
              matnr         LIKE mara-matnr,
              matkl         LIKE mara-matkl,
              counter(4)    TYPE n,
              free_text(15) TYPE c,
              color_line(4) TYPE c,           " Line color
              color_cell    TYPE lvc_t_scol,  " Cell color
    END OF ty_mara.
    * Structures
    DATA  : wa_mara     TYPE ty_mara,
            wa_fieldcat TYPE lvc_s_fcat,
            is_layout   TYPE lvc_s_layo,
            wa_color    TYPE lvc_s_scol.
    * Internal table
    DATA : it_mara     TYPE STANDARD TABLE OF ty_mara,
           it_fieldcat TYPE STANDARD TABLE OF lvc_s_fcat,
           it_color    TYPE TABLE          OF lvc_s_scol.
    * Variables
    DATA : okcode LIKE sy-ucomm,
           w_alv_grid          TYPE REF TO cl_gui_alv_grid,
           w_docking_container TYPE REF TO cl_gui_docking_container.
    PARAMETERS : p_column AS CHECKBOX,
                 p_line   AS CHECKBOX,
                 p_cell   AS CHECKBOX.
    START-OF-SELECTION.
      PERFORM get_data.
    END-OF-SELECTION.
      PERFORM fill_catalog.
      PERFORM fill_layout.
      CALL SCREEN 2000.
    *&      Module  status_2000  OUTPUT
    *       text
    MODULE status_2000 OUTPUT.
      SET PF-STATUS '2000'.
    ENDMODULE.                 " status_2000  OUTPUT
    *&      Module  user_command_2000  INPUT
    *       text
    MODULE user_command_2000 INPUT.
      DATA : w_okcode LIKE sy-ucomm.
      MOVE okcode TO w_okcode.
      CLEAR okcode.
      CASE w_okcode.
        WHEN 'BACK'.
          LEAVE TO SCREEN 0.
      ENDCASE.
    ENDMODULE.                 " user_command_2000  INPUT
    *&      Module  alv_grid  OUTPUT
    *       text
    MODULE alv_grid OUTPUT.
      IF w_docking_container IS INITIAL.
        PERFORM create_objects.
        PERFORM display_alv_grid.
      ENDIF.
    ENDMODULE.                 " alv_grid  OUTPUT
    *&      Form  create_objects
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM create_objects.
    * Ratio must be included in [5..95]
      CREATE OBJECT w_docking_container
        EXPORTING
          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 w_alv_grid
        EXPORTING
          i_parent          = w_docking_container.
    ENDFORM.                    " create_objects
    *&      Form  display_alv_grid
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM display_alv_grid.
      CALL METHOD w_alv_grid->set_table_for_first_display
        EXPORTING
          is_layout                     = is_layout
        CHANGING
          it_outtab                     = it_mara
          it_fieldcatalog               = it_fieldcat
        EXCEPTIONS
          invalid_parameter_combination = 1
          program_error                 = 2
          too_many_lines                = 3
          OTHERS                        = 4.
    ENDFORM.                    " display_alv_grid
    *&      Form  get_data
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM get_data.
      SELECT * FROM mara UP TO 5 ROWS.
        CLEAR : wa_mara-color_line, wa_mara-color_cell.
        MOVE-CORRESPONDING mara TO wa_mara.
        ADD 1                   TO wa_mara-counter.
        MOVE 'Blabla'           TO wa_mara-free_text.
        IF wa_mara-counter = '0002'
        AND p_line = 'X'.
    * Color line
          MOVE 'C410' TO wa_mara-color_line.
        ELSEIF wa_mara-counter = '0004'
        AND p_cell = 'X'.
    * Color cell
          MOVE 'FREE_TEXT' TO wa_color-fname.
          MOVE '5'         TO wa_color-color-col.
          MOVE '1'         TO wa_color-color-int.
          MOVE '1'         TO wa_color-color-inv.
          APPEND wa_color TO it_color.
          wa_mara-color_cell[] = it_color[].
        ENDIF.
        APPEND wa_mara TO it_mara.
      ENDSELECT.
    ENDFORM.                    " get_data
    *&      Form  fill_catalog
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM fill_catalog.
    * Colour code :                                                 *
    * Colour is a 4-char field where :                              *
    *              - 1st char = C (color property)                  *
    *              - 2nd char = color code (from 0 to 7)            *
    *                                  0 = background color         *
    *                                  1 = blue                     *
    *                                  2 = gray                     *
    *                                  3 = yellow                   *
    *                                  4 = blue/gray                *
    *                                  5 = green                    *
    *                                  6 = red                      *
    *                                  7 = orange                   *
    *              - 3rd char = intensified (0=off, 1=on)           *
    *              - 4th char = inverse display (0=off, 1=on)       *
    * Colour overwriting priority :                                 *
    *   1. Line                                                     *
    *   2. Cell                                                     *
    *   3. Column                                                   *
      DATA : w_position TYPE i VALUE '1'.
      CLEAR wa_fieldcat.
      MOVE w_position TO wa_fieldcat-col_pos.
      MOVE 'MATNR'    TO wa_fieldcat-fieldname.
      MOVE 'MARA'     TO wa_fieldcat-ref_table.
      MOVE 'MATNR'    TO wa_fieldcat-ref_field.
      APPEND wa_fieldcat TO it_fieldcat.
      ADD 1 TO w_position.
      CLEAR wa_fieldcat.
      MOVE w_position TO wa_fieldcat-col_pos.
      MOVE 'MATKL'    TO wa_fieldcat-fieldname.
      MOVE 'MARA'     TO wa_fieldcat-ref_table.
      MOVE 'MATKL'    TO wa_fieldcat-ref_field.
    * Color column
      IF p_column = 'X'.
        MOVE 'C610'     TO wa_fieldcat-emphasize.
      ENDIF.
      APPEND wa_fieldcat TO it_fieldcat.
      ADD 1 TO w_position.
      CLEAR wa_fieldcat.
      MOVE w_position TO wa_fieldcat-col_pos.
      MOVE 'COUNTER'  TO wa_fieldcat-fieldname.
      MOVE 'N'        TO wa_fieldcat-inttype.
      MOVE '4'        TO wa_fieldcat-intlen.
      MOVE 'Counter'  TO wa_fieldcat-coltext.
      APPEND wa_fieldcat TO it_fieldcat.
      ADD 1 TO w_position.
      CLEAR wa_fieldcat.
      MOVE w_position  TO wa_fieldcat-col_pos.
      MOVE 'FREE_TEXT' TO wa_fieldcat-fieldname.
      MOVE 'C'         TO wa_fieldcat-inttype.
      MOVE '20'        TO wa_fieldcat-intlen.
      MOVE 'Text'      TO wa_fieldcat-coltext.
      APPEND wa_fieldcat TO it_fieldcat.
    ENDFORM.                    " fill_catalog
    *&      Form  fill_layout
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM fill_layout.
    * Field that identify color line in internal table
      MOVE 'COLOR_LINE' TO is_layout-info_fname.
    * Field that identify cell color in inetrnal table
      MOVE 'COLOR_CELL' TO is_layout-ctab_fname.
    ENDFORM.                    " fill_layout

Maybe you are looking for

  • IPhone Not Syncing to iTunes, despite re-install

    Hi, I was having problems with iTunes on a Mac recognising iPhone, iPad, etc.  Had tried all suggested fixes and eventually re-installed iTiunes (and removed various pref files, which solved the problem.  HOWEVER, a day later the problem has returned

  • How to populate a listbox with key in a table control

    I have the following code: MODULE carga_huecos INPUT. DATA: BEGIN OF li_huecos OCCURS 0,         key(40) TYPE c,         text(80) TYPE c, END OF li_huecos. DATA: BEGIN OF estru_hueco OCCURS 0,       hueco LIKE zmov_wm-hueco, END OF estru_hueco. CLEAR

  • Using XSLT mapping to avoid File content conversion

    Hi all, Can we avoid FCC by using XSLT mapping? I have a scenario in which I have to avoid FCC in the adapter and save the file in a excel/csv format. I have been through the different blogs and forums in SDN. I have been through Michal Krawczyk's Bl

  • Lookinf for a "flexible" abstract class mechanism

    When writing an abstract class, or an interface, is there a way to force the classes who extends it to implement at least one method in a set of 2 ? For instance, public abstract class PermanentCard {    public void concretePlayByPlayer(Player parPla

  • Inserted video disappears when window is enabled

    Please help.  I am trying to add a video to a pdf using Acrobat 9 Pro Extended on windows 7 64 bit.    First I tried a .wmv that I wrote out of Premiere Pro CS4.  Acrobat will only complete transcoding a file if it is less than 10 Mb.  Once I get a 1