Methods of tabstrip

any body tell me how many methods or type of tabstrip controls availble in module pool programming?

hi,
Hi,
Go through This Link
http://help.sap.com/saphelp_nw04/helpdata/en/17/5bf1b52ba211d2954f0000e8353423/content.htm
reward if useful
Regards
N.Rekha

Similar Messages

  • Navigation in tabstrip

    Hi all,
       I am using a tabstrip inside a view.There are 4 tabs.first 3 tabs are each bound to a view.on second tab there is a simple profile page which captures data about a user say(employee).there is a submit button in the same view.onclick of this button the data should be shown in a table, in the third tab view.i have created a outbound plug in the view of second tab and an inbound plug in the view of third tab view and linked them through navigation link.
       But when i click on the submit button ,when the application is up there is a exception thrown.
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Cannot navigate via outbound plug ToViewUsers of view Registration because there is no navigational link attached to it
         at com.sap.tc.webdynpro.progmodel.view.View.navigate(View.java:348)
         at com.sap.tc.webdynpro.progmodel.view.View.navigate(View.java:291)
         at com.sap.emp.info.wdp.InternalRegistration.wdFirePlugToViewUsers(InternalRegistration.java:719)
         at com.sap.emp.info.Registration.onActionToViewUsers(Registration.java:407)
         at com.sap.emp.info.wdp.InternalRegistration.wdInvokeEventHandler(InternalRegistration.java:226)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
         at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleAction(WebDynproMainTask.java:100)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:299)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:635)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:249)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    in tabstrip can i have navigate to other tab view through event handling and firing plug.
    one more thing, on click of the fourth tab i want to go back to the login page.there is no view attached to the fourth tab.
    i dont know how to ask but i hope i am clear with my problem, if not reply for clarification.
    any help will be appreciated.
    thanks in adv.

    Hi Shriram,
    In Tab Strip, if you have embeded separate views when the Tab Strip loads (Parent component where the Tab Strip UI element is placed and the views are embeded using ViewContainerUIElement) all the embeded views will get loaded. The embeded views, deign time and wdDoModifyView() gets executed once.
    If you create an action and attach it to the "TabStrip.onSelect()" then all the embeded view's wdDoModifyView() gets executed.
    My suggestion is define a method in the interface controller and pass the data to the inferface controller method. "TabStrip.onSelect()" based on the "tab.id" invoke the method written in the interface controller.
    Regards,
    Santhosh.C

  • What are the uses of table control and tabstrip control

    can anyone tell me the uses of table control and tabstrip control

    Hi,
    table control is more comfortable for customizing.scroll bars all possible in this.where as it is not possible in step loops.
    check this example.
    PROGRAM ZBHTCTRL.
    TABLES: LFA1, EKKO.
    DATA: OKCODE1 LIKE SY-UCOMM,
    OKCODE2 LIKE SY-UCOMM.
    CONTROLS TABC TYPE TABLEVIEW USING SCREEN 1001.
    DATA: BEGIN OF ITAB OCCURS 0,
    MANDT LIKE EKKO-MANDT,
    EBELN LIKE EKKO-EBELN,
    BSTYP LIKE EKKO-BSTYP,
    BSART LIKE EKKO-BSART,
    END OF ITAB.
    MODULE USER_COMMAND_1000 INPUT.
    CASE OKCODE1.
    WHEN 'BACK'.
    SET SCREEN 0.
    WHEN 'NEXT'.
    SET SCREEN 1001.
    SELECT * FROM EKKO INTO CORRESPONDING FIELDS OF TABLE ITAB WHERE
    LIFNR = LFA1-LIFNR.
    ENDCASE.
    ENDMODULE. " USER_COMMAND_1001 INPUT
    MODULE MOVE_DATA OUTPUT.
    EKKO-MANDT = ITAB-MANDT.
    EKKO-EBELN = ITAB-EBELN.
    EKKO-BSTYP = ITAB-BSTYP.
    EKKO-BSART = ITAB-BSART.
    ENDMODULE. " MOVE_DATA OUTPUT
    MODULE USER_COMMAND_1001 INPUT.
    CASE OKCODE2.
    WHEN 'BACK'.
    SET SCREEN 1000.
    ENDCASE.
    ENDMODULE. " USER_COMMAND_1001 OUTPUT
    MODULE STATUS_1001 OUTPUT.
    SET PF-STATUS 'MENU'.
    SET TITLEBAR 'TIT'.
    ENDMODULE. " STATUS_1001 OUTPUT
    MODULE STATUS_1000 OUTPUT.
    SET PF-STATUS 'DMENU'.
    SET TITLEBAR 'xxx'.
    ENDMODULE. " STATUS_1000 OUTPUT
    FORM ON_CTMENU_FORM1 USING CMENU TYPE REF TO CL_CTMENU.
    CALL METHOD CMENU->LOAD_GUI_STATUS
    EXPORTING
    PROGRAM = ' ZBHTCTRL'
    STATUS = 'CMENU'
    MENU = CMENU.
    CALL METHOD CMENU->ADD_FUNCTION
    EXPORTING
    FCODE = 'RX'
    TEXT = 'RECIEVE'.
    ENDFORM.
    FLOW LOGIC:
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_1000.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_1000.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_1001.
    LOOP AT ITAB WITH CONTROL TABC CURSOR TABC-TOP_LINE.
    MODULE MOVE_DATA.
    ENDLOOP.
    PROCESS AFTER INPUT.
    MODULE USER_COMMAND_1001.
    LOOP AT ITAB.
    ENDLOOP.
    for more info check this link.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/content.htm
    thanks
    Ashu.

  • Dialog  problem using tabstrip & cl_gui_alv_grid

    Hi All,
         I have created a dialog program which has 2 tab strips. On first I am displaying data n a table control & on other tabstrip display same data using grid. Here to display data in grid I have used set_table_for_first_display of class cl_gui_alv_grid.
    The data is displayed successfully. But when I select second tab and return to first tab it still shows the grid on first tab in front.
    Kindly tell me what I am missing.
    Regards,
    Dilip
    Following is my code:
    REPORT  ZTEMP02.
    controls: tab type tabstrip,
              tab_c type tableview using screen 101 .
    data  :    cont1 type ref to cl_gui_custom_container,
              grid type ref to cl_gui_alv_grid.
    data : imara like mara occurs 1 with header line.
    data zmara type LVC_T_FCAT.
    data wa_mara like line of zmara.
    data flag .
           select * from mara into table imara up to 100 rows.
    call screen 100.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE USER_COMMAND_0100 INPUT.
    case sy-ucomm.
      when 'T1'.
        tab-activetab = 'T1'.
          FLAG = SPACE.
      when 'T2'.
        tab-activetab = 'T2'.
      WHEN 'EXT'.
        LEAVE PROGRAM.
    endcase.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Module  STATUS_0102  OUTPUT
          text
    MODULE STATUS_0102 OUTPUT.
    if FLAG is initial.
      create object :
      cont1
        exporting
           container_name = 'CONT',
      grid
        exporting
           I_PARENT = cont1.
      FLAG = 'X'.
    endif.
    call method grid->SET_TABLE_FOR_FIRST_DISPLAY
         EXPORTING
           i_structure_name = 'MARA'
         changing
           it_outtab = imara[].
    ENDMODULE.                 " STATUS_0102  OUTPUT

    Have you attached a subscreen to tab T1 .
    You will also have to use Call subscreen .

  • Dynamic objects in a tabstrip

    Hi,
    I am creating dynamically tabs in my tabstrip and that works fine so for. I found some examples in SDN and here for me to learn. Now I try to add a transparent container and some objects to it, but do not know how. This is so far my code in WDDOMODIFYVIEW:
    some code here
    * Create a new tab:
      CONCATENATE 'TAB' wd_this->tot_tabs INTO aux_text.
      lr_tab = cl_wd_tab=>new_tab( id = aux_text ).
      lr_tabstrip->add_tab( the_tab = lr_tab ).
    * Add a transparent container:
      CONCATENATE 'TABCONT' wd_this->tot_tabs INTO aux_text.
      lr_control = cl_wd_transparent_container=>new_transparent_container( id = aux_text
                                                                           view = view ).
      lr_tab->set_content( lr_control ).
    TOT_TABS has the current number of the tab. System compiles the code correctly and activates it but when running the application I get this error message:
    The following error text was processed in the system NSP : Access via 'NULL' object reference not possible.
    The ABAP call stack was:
    Method: CREATE_NW7_BY_VIEW_ELEMENT of program CL_NW7_VIEW_ELEMENT_ADAPTER===CP
    Could it be maybe because I am not adding objects ?? I don´t know how anyway.

    Hi Guillermo,
    Welcome to SDN.
    You can have dynamic tabs by placing the <htmlb:tabStripItem> in a loop in the layout:
    <% loop at tabstrip_tab. %>
      <htmlb:tabStripItem index="<%=tabstrip_tab-index%>" etc. />
    <% endloop. %>
    Where tabstrip_tab contains the details of the tabstrip items.
    Regards,
    Patrick.

  • How to set content of a dynamically created tab in a dynamically created tabstrip

    Hi All,
    I have a requirement where the whole layout is determined in run time according to a ztable values. I have created a tabstrip, inserted tabs to it, created elements (link to action) that has to be inserted into the different tabs created dynamically. BUt I am getting a dump when i try to do so.. the problem is with inserting the container to the tab. I get Null object reference. PFB the code. This has to be done urgently. Help is highly appreciated. TIA.
    method wddomodifyview .
      data lr_uielement_container       type ref to cl_wd_uielement_container.
      data lr_tabstrip          type ref to  cl_wd_tabstrip.
      data lrs_tabstrip  type ref to  cl_wd_tabstrip.
      data lr_matrix_head_data          type ref to cl_wd_matrix_head_data.
      data lr_tab type ref to cl_wd_tab.
      data lv_caption type ref to cl_wd_caption.
      data it_zps_reports_port type standard table of zps_reports_port.
      data wa_zps_reports_port like line of it_zps_reports_port.
      data lv_flag type c.
      data lv_text type string.
      data lv_link_text type string.
      data lr_linktoaction              type ref to cl_wd_link_to_action.
      data lr_lta_element type ref to cl_wd_uielement.
      data lr_scroll_container type ref to cl_wd_scroll_container.
      data lr_trans_cont type ref to cl_wd_transparent_container.
      data lr_id type string value 'LNK'.
      data lr_count type num value 0.
      data lr_id_d type string.
      data lo_nd_link_to_action type ref to if_wd_context_node.
      data lo_el_link_to_action type ref to if_wd_context_element.
      data ls_link_to_action type wd_this->element_link_to_action.
      data lv_textt type string.
      data lo_node type ref to if_wd_context_node.
      data lo_nd_info type ref to if_wd_context_node_info.
      data:lt_valueset type wdr_context_attr_value_list  ,
            l_value type wdr_context_attr_value.
      data ld_tabstrip            type ref to cl_wd_tabstrip.
      data: ld_container         type ref to cl_wd_uielement_container,
                ld_vc                type ref to cl_wd_view_container_uielement.
      if first_time eq abap_true.
        select * from zps_reports_port into corresponding fields of table it_zps_reports_port order by tabx.
        sort it_zps_reports_port.
    ************creation of tabstrip dynamically
        lr_uielement_container ?= view->get_element( id = 'ROOTUIELEMENTCONTAINER'   ).
        call method cl_wd_tabstrip=>new_tabstrip
          exporting
            id                         = 'TBS'
          receiving
            control                    = lr_tabstrip.
        lr_matrix_head_data = cl_wd_matrix_head_data=>new_matrix_head_data(
                  element                = lr_tabstrip
        lr_tabstrip->set_layout_data( the_layout_data = lr_matrix_head_data   ).
        lr_uielement_container->add_child(*       index     = index
            the_child = lr_tabstrip
        lo_node = wd_context->get_child_node( 'LINK_TO_ACTION' ).
        lo_nd_info = lo_node->get_node_info( ).
        lo_nd_link_to_action = wd_context->get_child_node( name = wd_this->wdctx_link_to_action ).
        lo_el_link_to_action = lo_nd_link_to_action->get_element( ).
        loop at it_zps_reports_port into wa_zps_reports_port.
    *****addition of tab for every new tab.
          at new tabx.
            lv_flag = abap_true.
          endat.
          if lv_flag = abap_true.
    if wa_zps_reports_port-tabx = 1.
            lv_text = 'Billing reports'.
          else.
            lv_text = 'Monthly closing reports'.
          endif.******Addition of new tab
            call method cl_wd_caption=>new_caption
              exporting
                text                   = lv_text
              receiving
                control                = lv_caption.
            call method cl_wd_tab=>new_tab
          exporting
             enabled                  = 'X'
         has_content_padding      = 'X'
              receiving
                control                  = lr_tab.
            lr_tab->set_header( lv_caption ).
            lr_tabstrip->add_tab( the_tab = lr_tab ).
            clear lv_flag.
          endif.
          lr_count = lr_count + 1.
          concatenate lr_id lr_count into lr_id_d.
          lv_textt = wa_zps_reports_port-trans_code.
          call method cl_wd_link_to_action=>new_link_to_action
            exporting
              id                          = lr_id_d
              on_action                   = 'ON_ACTION'
              text                        = lv_textt
            receiving
              control                     = lr_linktoaction.
          lr_matrix_head_data = cl_wd_matrix_head_data=>new_matrix_head_data(
    element                = lr_linktoaction
          lr_linktoaction->set_layout_data( the_layout_data = lr_matrix_head_data   ).
       lr_linktoaction->set_layout_data( the_layout_data = lr_matrix_head_data   ).**      lr_uielement_container->add_child(**    index     = lr_ind*          the_child = lr_linktoaction*             ).
             call method cl_wd_scroll_container=>new_scroll_container
            receiving
              control                  = lr_scroll_container
      lr_scroll_container->add_child( lr_linktoaction ).
    lr_tab->set_content( lr_trans_cont ).                 "im getting dump after the looping is done and the end method is executed
        endloop.
      endif.endmethod.

    HI SAYAN,
    this is the dump i am getting.
    Category               ABAP Programming Error
    Runtime Errors         OBJECTS_OBJREF_NOT_ASSIGNED
    ABAP Program           CL_NW7_VIEW_ELEMENT_ADAPTER===CP
    Application Component  BC-WD-ABA-REN
    Date and Time          18.05.2012 15:44:42
    |Short text                                                                                        |
    |    Access via 'NULL' object reference not possible.                                              |
    |What happened?                                                                                    |
    |    Error in the ABAP Application Program                                                         |
    |                                                                                                  |
    |    The current ABAP program "CL_NW7_VIEW_ELEMENT_ADAPTER===CP" had to be                         |
    |     terminated because it has                                                                    |
    |    come across a statement that unfortunately cannot be executed.                                |
    |What can you do?                                                                                  |
    |    Note down which actions and inputs caused the error.                                          |
    |                                                                                                  |
    |                                                                                                  |
    |    To process the problem further, contact you SAP system                                        |
    |    administrator.                                                                                |
    |                                                                                                  |
    |    Using Transaction ST22 for ABAP Dump Analysis, you can look                                   |
    |    at and manage termination messages, and you can also                                          |
    |    keep them for a long time.                                                                    |
    |Error analysis                                                                                    |
    |    You attempted to use a 'NULL' object reference (points to 'nothing')                          |
    |    access a component (variable: " ").                                                           |
    |    An object reference must point to an object (an instance of a class)                          |
    |    before it can be used to access components.                                                   |
    |    Either the reference was never set or it was set to 'NULL' using the                          |
    |    CLEAR statement.                                                                              |
    |How to correct the error                                                                          |
    |                                                                                                  |
    |                                                                                                  |
    |    If the error occures in a non-modified SAP program, you may be able to                        |
    |    find an interim solution in an SAP Note.                                                      |
    |    If you have access to SAP Notes, carry out a search with the following                        |
    |    keywords:                                                                                     |
    |                                                                                                  |
    |    "OBJECTS_OBJREF_NOT_ASSIGNED" " "                                                             |
    |    "CL_NW7_VIEW_ELEMENT_ADAPTER===CP" or "CL_NW7_VIEW_ELEMENT_ADAPTER===CM008"                   |
    |    "CREATE_NW7_BY_VIEW_ELEMENT"                                                                  |
    |                                                                                                  |
    |    If you cannot solve the problem yourself and want to send an error                            |
    |    notification to SAP, include the following information:                                       |
    |                                                                                                  |
    |    1. The description of the current problem (short dump)                                        |
    |                                                                                                  |
    |       To save the description, choose "System->List->Save->Local File                            |
    |    (Unconverted)".                                                                               |
    |                                                                                                  |
    |    2. Corresponding system log                                                                   |
    |                                                                                                  |
    |       Display the system log by calling transaction SM21.                                        |
    |       Restrict the time interval to 10 minutes before and five minutes                           |
    |    after the short dump. Then choose "System->List->Save->Local File                             |
    |    (Unconverted)".                                                                               |
    |                                                                                                  |
    |    3. If the problem occurs in a problem of your own or a modified SAP                           |
    |    program: The source code of the program                                                       |
    |       In the editor, choose "Utilities->More                                                     |
    |    Utilities->Upload/Download->Download".                                                        |
    |                                                                                                  |
    |    4. Details about the conditions under which the error occurred or which                       |
    |    actions and input led to the error.                                                           |
    |                                                                                                  |
    |System environment                                                                                |
    |    SAP Release..... 702                                                                          |
    |    SAP Basis Level. 0008                                                                         |
    |                                                                                                  |
    |    Application server... "ISVSAPECCDEV"                                                          |
    |    Network address...... "172.25.105.183"                                                        |
    |    Operating system..... "Windows NT"                                                            |
    |    Release.............. "6.1"                                                                   |
    |    Hardware type........ "4x AMD64 Level"                                                        |
    |    Character length.... 16 Bits                                                                  |
    |    Pointer length....... 64 Bits                                                                 |
    |    Work process number.. 18                                                                      |
    |    Shortdump setting.... "full"                                                                  |
    |                                                                                                  |
    |    Database server... "ISVSAPECCDEV"                                                             |
    |    Database type..... "MSSQL"                                                                    |
    |    Database name..... "ECD"                                                                      |
    |    Database user ID.. "ecd"                                                                      |
    |                                                                                                  |
    |    Terminal.......... "10.66.113.155"                                                            |
    |                                                                                                  |
    |    Char.set.... "C"                                                                              |
    |                                                                                                  |
    |    SAP kernel....... 720                                                                         |
    |    created (date)... "Mar 4 2012 23:19:29"                                                       |
    |    create on........ "NT 5.2 3790 S x86 MS VC++ 14.00"                                           |
    |    Database version. "SQL_Server_9.00 "                                                          |
    |                                                                                                  |
    |    Patch level. 211                                                                              |
    |    Patch text.. " "                                                                              |
    |                                                                                                  |
    |    Database............. "MSSQL 9.00.2047 or higher"                                             |
    |    SAP database version. 720                                                                     |
    |    Operating system..... "Windows NT 5.0, Windows NT 5.1, Windows NT 5.2, Windows                |
    |     NT 6.0, Windows NT 6.1, Windows NT 6.2"                                                      |
    |                                                                                                  |
    |    Memory consumption                                                                            |
    |    Roll.... 0                                                                                    |
    |    EM...... 4189792                                                                              |
    |    Heap.... 0                                                                                    |
    |    Page.... 0                                                                                    |
    |    MM Used. 3566480                                                                              |
    |    MM Free. 620640                                                                               |
    |User and Transaction                                                                              |
    |    Client.............. 220                                                                      |
    |    User................ 160072                                                                   |
    |    Language key........ "E"                                                                      |
    |    Transaction......... " "                                                                      |
    |    Transaction ID...... "38D2A0E14277F14BAD090050569F0165"                                       |
    |                                                                                                  |
    |    EPP Whole Context ID.... "0050569F01651EE1A89A470EE848AD09"                                   |
    |    EPP Connection ID....... "0050569F01651EE1A89A47B05E162D09"                                   |
    |    EPP Caller Counter...... 1                                                                    |
    |                                                                                                  |
    |    Program............. "CL_NW7_VIEW_ELEMENT_ADAPTER===CP"                                       |
    |    Screen.............. "SAPMHTTP 0010"                                                          |
    |    Screen Line......... 2                                                                        |
    |    Debugger Active..... "(TPDA)"                                                                 |
    |Server-Side Connection Information                                                                |
    |    Information on Caller of "HTTP" Connection:                                                   |
    |    Plug-in Type.......... "HTTP"                                                                 |
    |    Caller IP............. "10.66.113.155"                                                        |
    |    Caller Port........... 8001                                                                   |
    |    Universal Resource ID. "/sap/bc/webdynpro/sap/z160072_dynamic_view_crea"                      |
    |                                                                                                  |
    |    Program............. "CL_NW7_VIEW_ELEMENT_ADAPTER===CP"                                       |
    |    Screen.............. "SAPMHTTP 0010"                                                          |
    |    Screen Line......... 2                                                                        |
    |                                                                                                  |
    |    Information on Caller ofr "HTTP" Connection:                                                  |
    |    Plug-in Type.......... "HTTP"                                                                 |
    |    Caller IP............. "10.66.113.155"                                                        |
    |    Caller Port........... 8001                                                                   |
    |    Universal Resource Id. "/sap/bc/webdynpro/sap/z160072_dynamic_view_crea"                      |
    |Information on where terminated                                                                   |
    |    Termination occurred in the ABAP program "CL_NW7_VIEW_ELEMENT_ADAPTER===CP" -                 |
    |     in "CREATE_NW7_BY_VIEW_ELEMENT".                                                             |
    |    The main program was "SAPMHTTP ".                                                             |
    |                                                                                                  |
    |    In the source code you have the termination point in line 23                                  |
    |    of the (Include) program "CL_NW7_VIEW_ELEMENT_ADAPTER===CM008".                               |
    |Source Code Extract (Source code has changed)                                                     |
    |Line |SourceCde                                                                                   |
    |    1|METHOD create_nw7_by_view_element.                                                          |
    |    2|                                                                                            |
    |    3|  TYPES c1 TYPE c LENGTH 1.                                                                 |
    |    4|                                                                                            |
    |    5|  DATA: mappings             TYPE STANDARD TABLE OF wdr_elem_apt_map,                       |
    |    6|        mapping              TYPE wdr_elem_apt_map,                                         |
    |    7|        elem_defs            TYPE SORTED TABLE OF wdy_ui_elem_def WITH UNIQUE KEY definition|
    |    8|        elem_def             TYPE wdy_ui_elem_def,                                          |
    |    9|        new_entries          TYPE STANDARD TABLE OF t_nw7_class_registry,                   |
    |   10|        adapters             TYPE SORTED TABLE OF wdr_uiel_adapter WITH UNIQUE KEY library_n|
    |   11|        adapter_def          LIKE LINE OF adapters,                                         |
    |   12|        id_gen_entity        TYPE string,                                                   |
    |   13|        l_adapter_lib_name   TYPE string,                                                   |
    |   14|        lr_adapter_lib       TYPE REF TO if_nw7_adapter_library,                            |
    |   15|        l_current_library    TYPE string,                                                   |
    |   16|        l_current_id_gen_entity TYPE c1,                                                    |
    |   17|        lt_mapping           TYPE if_nw7_adapter_library=>tt_index_map.                     |
    |   18|                                                                                            |
    |   19|                                                                                            |
    |   20|  FIELD-SYMBOLS: <class_registry_entry> TYPE t_nw7_class_registry,                          |
    |   21|  <l_mapping>            TYPE if_nw7_adapter_library=>t_index_map.                          |
    |   22|                                                                                            |
    |>>>>>|  READ TABLE m_nw7_class_registry ASSIGNING <class_registry_entry>                          |
    |   24|    WITH TABLE KEY view_element_cid = view_element->_cid.                                   |
    |   25|  IF sy-subrc <> 0.                                                                         |
    |   26|                                                                                            |
    |   27|*   If not found, maybe we need to load the library first?                                  |
    |   28|    READ TABLE m_nw7_class_registry TRANSPORTING NO FIELDS                                  |
    |   29|      WITH KEY mapping-library_name =  view_element->_library_name.                         |
    |   30|*   No ViewElementAdapter found for ViewElement                                             |
    |   31|    ASSERT FIELDS view_element->_library_name CONDITION sy-subrc <> 0.                      |
    |   32|                                                                                            |
    |   33|    SELECT * FROM wdy_ui_elem_def INTO TABLE elem_defs                                      |
    |   34|      WHERE library_name =  view_element->_library_name                                     |
    |   35|      AND cid          <> ''.                                                               |
    |   36|    SELECT * FROM wdr_elem_apt_map INTO TABLE mappings                                      |
    |   37|      WHERE library_name =  view_element->_library_name.                                    |
    |   38|    SELECT * FROM wdr_uiel_adapter INTO TABLE adapters                                      |
    |   39|      WHERE library_name =  view_element->_library_name.                                    |
    |   40|                                                                                            |
    |   41|    LOOP AT mappings INTO mapping.                                                          |
    |   42|      APPEND INITIAL LINE TO new_entries ASSIGNING <class_registry_entry>.                  |
    |Contents of system fields                                                                         |
    |Name    |Val.                                                                                     |
    |SY-SUBRC|0                                                                                        |
    |SY-INDEX|2                                                                                        |
    |SY-TABIX|0                                                                                        |
    |SY-DBCNT|220                                                                                      |
    |SY-FDPOS|0                                                                                        |
    |SY-LSIND|0                                                                                        |
    |SY-PAGNO|0                                                                                        |
    |SY-LINNO|1                                                                                        |
    |SY-COLNO|1                                                                                        |
    |SY-PFKEY|                                                                                         |
    |SY-UCOMM|                                                                                         |
    |SY-TITLE|HTTP Control                                                                             |
    |SY-MSGTY|                                                                                         |
    |SY-MSGID|                                                                                         |
    |SY-MSGNO|000                                                                                      |
    |SY-MSGV1|                                                                                         |
    |SY-MSGV2|                                                                                         |
    |SY-MSGV3|                                                                                         |
    |SY-MSGV4|                                                                                         |
    |SY-MODNO|0                                                                                        |
    |SY-DATUM|20120518                                                                                 |
    |SY-UZEIT|154425                                                                                   |
    |SY-XPROG|                                                                                         |
    |SY-XFORM|                                                                                         |
    |Active Calls/Events                                                                               |
    |No.   Ty.          Program                             Include                             Line   |
    |      Name                                                                                        |
    |   22 METHOD       CL_NW7_VIEW_ELEMENT_ADAPTER===CP    CL_NW7_VIEW_ELEMENT_ADAPTER===CM008    23  |
    |      CL_NW7_VIEW_ELEMENT_ADAPTER=>CREATE_NW7_BY_VIEW_ELEMENT                                     |
    |   21 METHOD       /1WDA/C7STANDARD==============CP    /1WDA/C7STANDARD==============CCIMP  1096  |
    |      CL_SCROLL_CONTAINER=>IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT                                |
    |   20 METHOD       /1WDA/C9STANDARD==============CP    /1WDA/C9STANDARD==============CCIMP  4583  |
    |      CL_TABSTRIP_ITEM=>IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT                                   |
    |   19 METHOD       /1WDA/C9STANDARD==============CP    /1WDA/C9STANDARD==============CCIMP  3973  |
    |      CL_TABSTRIP=>IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT                                        |
    |   18 METHOD       /1WDA/C8STANDARD==============CP    /1WDA/C8STANDARD==============CCIMP  3165  |
    |      CL_MATRIX_LAYOUT_CELL=>IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT                              |
    |   17 METHOD       /1WDA/C8STANDARD==============CP    /1WDA/C8STANDARD==============CCIMP  3357  |
    |      CL_MATRIX_LAYOUT_ROW=>IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT                               |
    |   16 METHOD       /1WDA/C8STANDARD==============CP    /1WDA/C8STANDARD==============CCIMP  2846  |
    |      CL_MATRIX_LAYOUT=>IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT                                   |
    |   15 METHOD       /1WDA/C7STANDARD==============CP    /1WDA/C7STANDARD==============CCIMP  1865  |
    |      CL_TRANSPARENT_CONTAINER=>IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT                           |
    |   14 METHOD       CL_WDR_VIEW_ADAPTER===========CP    CL_WDR_VIEW_ADAPTER===========CM003    72  |
    |      CL_WDR_VIEW_ADAPTER=>IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT                                |
    |   13 METHOD       CL_WDR_VIEW_ADAPTER===========CP    CL_WDR_VIEW_ADAPTER===========CM007    28  |
    |      CL_WDR_VIEW_ADAPTER=>IF_WDR_NW7_DELTA_RENDERER~CALCULATE_DELTA_BLOCKS                       |
    |   12 METHOD       CL_WDR_WINDOW_CONTENT_ADAPTER2CP    CL_WDR_WINDOW_CONTENT_ADAPTER2CM004     5  |
    |      CL_WDR_WINDOW_CONTENT_ADAPTER2=>PROCESS_DELTA_BLOCKS                                        |
    |   11 METHOD       CL_WDR_WINDOW_CONTENT_ADAPTER2CP    CL_WDR_WINDOW_CONTENT_ADAPTER2CM001    27  |
    |      CL_WDR_WINDOW_CONTENT_ADAPTER2=>IF_WDR_NW7_DELTA_RENDERER~CALCULATE_DELTA_BLOCKS            |
    |   10 METHOD       CL_WDR_NW7_INT_WIN_ADAPTER====CP    CL_WDR_NW7_INT_WIN_ADAPTER====CM005    66  |
    |      CL_WDR_NW7_INT_WIN_ADAPTER=>SET_CONTENT                                                     |
    |    9 METHOD       CL_WDR_NW7_MAIN_WIN_ADAPTER===CP    CL_WDR_NW7_MAIN_WIN_ADAPTER===CM002     6  |
    |      CL_WDR_NW7_MAIN_WIN_ADAPTER=>SET_CONTENT                                                    |
    |    8 METHOD       CL_WDR_CLIENT_SSR_LS==========CP    CL_WDR_CLIENT_SSR_LS==========CM001    29  |
    |      CL_WDR_CLIENT_SSR_LS=>IF_WDR_CLIENT~SEND_RESPONSE                                           |
    |    7 METHOD       CL_WDR_MAIN_TASK==============CP    CL_WDR_MAIN_TASK==============CM00I   118  |
    |      CL_WDR_MAIN_TASK=>EXECUTE                                                                   |
    |    6 METHOD       CL_WDR_MAIN_TASK==============CP    CL_WDR_MAIN_TASK==============CM00U     6  |
    |      CL_WDR_MAIN_TASK=>IF_WDR_RUNTIME~EXECUTE                                                    |
    |    5 METHOD       CL_WDR_CLIENT_ABSTRACT_HTTP===CP    CL_WDR_CLIENT_ABSTRACT_HTTP===CM01A   100  |
    |      CL_WDR_CLIENT_ABSTRACT_HTTP=>HANDLE_REQUEST                                                 |
    |    4 METHOD       CL_WDR_MAIN_TASK==============CP    CL_WDR_MAIN_TASK==============CM00J    89  |
    |      CL_WDR_MAIN_TASK=>IF_HTTP_EXTENSION~HANDLE_REQUEST                                          |
    |    3 METHOD       CL_HTTP_SERVER================CP    CL_HTTP_SERVER================CM017   388  |
    |      CL_HTTP_SERVER=>EXECUTE_REQUEST_FROM_MEMORY                                                 |
    |    2 FUNCTION     SAPLHTTP_RUNTIME                    LHTTP_RUNTIMEU02                     1155  |
    |      HTTP_DISPATCH_REQUEST                                                                       |
    |    1 MODULE (PBO) SAPMHTTP                            SAPMHTTP                               13  |
    |      %_HTTP_START                                                                                |
    |Chosen variables                                                                                  |
    |Name                                                                                              |
    |    Val.                                                                                          |
    |No.      22 Ty.          METHOD                                                                   |
    |Name  CL_NW7_VIEW_ELEMENT_ADAPTER=>CREATE_NW7_BY_VIEW_ELEMENT                                     |
    |VIEW_ELEMENT                                                                                      |
    |    {O:initial}                                                                                   |
    |    F0000000                                                                                      |
    |    F0000000                                                                                      |
    |    FF00000000000000                                                                              |
    |PARENT                                                                                            |
    |    {O:281*\CLASS-POOL=/1WDA/C7STANDARD\CLASS=CL_SCROLL_CONTAINER}                                |
    |    E0001000                                                                                      |
    |    60009100                                                                                      |
    |    E600000019010000                                                                              |
    |IGNORE_LIFETIME_WRAPPER                                                                           |
    |                                                                                                  |
    |    2                                                                                             |
    |    0                                                                                             |
    |    0                                                                                             |
    |    0                                                                                             |
    |    2000                                                                                          |
    |ADAPTER                                                                                           |
    |    {O:initial}                                                                                   |
    |    F0000000                                                                                      |
    |    F0000000                                                                                      |
    |    FF00000000000000                                                                              |
    |%_SPACE                                                                                           |
    |                                                                                                  |
    |    2                                                                                             |
    |    0                                                                                             |
    |    0                                                                                             |
    |    0                                                                                             |
    |    2000                                                                                          |
    |SYST-REPID                                                                                        |
    |    CL_NW7_VIEW_ELEMENT_ADAPTER===CP                                                              |
    |    4454535544554444445544455453334522222222                                                      |
    |    3CFE77F6957F5C5D5E4F1410452DDD3000000000                                                      |
    |    0000000000000000000000000000000000000000                                                      |
    |    0000000000000000000000000000000000000000                                                      |
    |    43004C005F004E00570037005F0056004900450057005F0045004C0045004D0045004E0054005F0041004400410050|
    |CL_NW7_VIEW_ELEMENT_ADAPTER=>M_NW7_CLASS_REGISTRY                                                 |
    |    Table IT_627[112x256]                                                                         |
    |    \CLASS-POOL=CL_NW7_VIEW_ELEMENT_ADAPTER\DATA=CL_NW7_VIEW_ELEMENT_ADAPTER=>M_NW7_CLASS_REGISTRY|
    |    Table reference: 318                                                                          |
    |    TABH+  0(20) = 303E3A00DF070000F03E3A00DF07000000000000                                       |
    |    TABH+ 20(20) = 3E010000730200007000000000010000FFFFFFFF                                       |
    |    TABH+ 40(16) = 04E50000B0D6000010000000A425C000                                               |
    |    store        = 0x303E3A00DF070000                                                             |
    |    ext1         = 0xF03E3A00DF070000                                                             |
    |    shmId        = 0     (0x00000000)                                                             |
    |    id           = 318   (0x3E010000)                                                             |
    |    label        = 627   (0x73020000)                                                             |
    |    fill         = 112   (0x70000000)                                                             |
    |    leng         = 256   (0x00010000)                                                             |
    |    loop         = -1    (0xFFFFFFFF)                                                             |
    |    xtyp         = TYPE#000018                                                                    |
    |    occu         = 16    (0x10000000)                                                             |
    |    accKind      = 4     (ItAccessHashed)                                                         |
    |    idxKind      = 0     (ItIndexNone)                                                            |
    |    uniKind      = 1     (ItUniYes)                                                               |
    |    keyKind      = 3     (user defined)                                                           |
    |    cmpMode      = 2     (cmpSingleMcmpR)                                                         |
    |    occu0        = 1                                                                              |
    |    stMode       = 0                                                                              |
    |    groupCntl    = 0                                                                              |
    |    rfc          = 0                                                                              |
    |    unShareable  = 0                                                                              |
    |    mightBeShared = 0                                                                             |
    |    sharedWithShmTab = 0                                                                          |
    |    isShmLockId  = 0                                                                              |
    |    isUsed       = 1                                                                              |
    |    isCtfyAble   = 1                                                                              |
    |    hasScndKeys  = 0                                                                              |
    |    hasRowId     = 0                                                                              |
    |    scndKeysOutdated = 0                                                                          |
    |    scndUniKeysOutdated = 0                                                                       |
    |    ----- Shareable Table Header Data -----                                                       |
    |    tabi         = 0xA0B53A00DF070000                                                             |
    |    pgHook       = 0xC0343A00DF070000                                                             |
    |    idxPtr       = 0x90323A00DF070000                                                             |
    |    id           = 536   (0x18020000)                                                             |
    |    shmTabhSet   = 0x0000000000000000                                                             |
    |    refCount     = 0     (0x00000000)                                                             |
    |    tstRefCount  = 0     (0x00000000)                                                             |
    |    lineAdmin    = 112   (0x70000000)                                                             |
    |    lineAlloc    = 112   (0x70000000)                                                             |
    |    shmVersId    = 0     (0x00000000)                                                             |
    |    shmRefCount  = 1     (0x01000000)                                                             |
    |    rowId        = 18446744073709551615                                                           |
    |    scndKeyAdmin = 0x0000000000000000                                                             |
    |    ----- 1st level extension part --------                                                       |
    |    regHook      = 0xB0763A00DF070000                                                             |
    |    collHook     = 0x0000000000000000                                                             |
    |    ext2         = 0x0000000000000000                                                             |
    |                                                                                                  |
    |    STANDARD                      RADIOBUTTON_GROUP_BY_IDX                                    RADI|
    |    5544445422222222222222222222225444445554454545554554452222222222222222222222222222222222225444|
    |    341E412400000000000000000000002149F2544FEF72F50F29F9480000000000000000000000000000000000002149|
    |    0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000|
    |    0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000|
    |    5300540041004E00440041005200440020002000200020002000200020002000200020002000200020002000200020|
    |                                                                                                  |
    |    STANDARD                      RADIOBUTTON                                                 RADI|
    |    5544445422222222222222222222225444445554422222222222222222222222222222222222222222222222225444|
    |    341E412400000000000000000000002149F2544FE00000000000000000000000000000000000000000000000002149|
    |    0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000|
    |    0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000|
    |    5300540041004E00440041005200440020002000200020002000200020002000200020002000200020002000200020|
    |         

  • Alv grid Should Display In Three Tabstrips

    Hi Experts,
           Could you please tell me how to display alv in three tabstrips using oops abap
    Best answer rewarded
    Regards
    Fareedas

    Follow the following code for the 3rd tabstrip (I have done it for 2).
    *& Report  ZTEST_READ_CLUSTER
    REPORT  ztest_read_cluster.
    TABLES: vbak, likp.
    TYPES: BEGIN OF types_vbak ,
           vbeln TYPE vbeln,
           vkorg TYPE vkorg,
           netwr TYPE netwr,
           END OF types_vbak,
           BEGIN OF types_likp ,
           vbeln TYPE vbeln_vl,
           vstel TYPE vstel,
           vkorg TYPE vkorg,
           netwr TYPE netwr,
           END OF types_likp.
    DATA: w_cntx_menu TYPE REF TO cl_rsdme_ui_context_menu_gen,
          t_vbak      TYPE STANDARD TABLE OF types_vbak,
          t_likp      TYPE STANDARD TABLE OF types_likp,
          w_sale      TYPE char01.
    CONSTANTS: c_check TYPE c VALUE 'X'.
    ** ALV relavent Data
    DATA: w_grid TYPE REF TO cl_gui_alv_grid,
          wl_ref_container TYPE REF TO cl_gui_custom_container,
          w_container      TYPE scrfname   VALUE 'C_CONTAINER',
          t_fcat TYPE lvc_t_fcat,
          t_sort TYPE lvc_t_sort.
    CONTROLS: c_tab TYPE TABSTRIP.
    DATA: c_dynnr TYPE sy-dynnr.
    SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-011.
    SELECT-OPTIONS: s_vbeln FOR vbak-vbeln,
                    s_delvr FOR likp-vbeln.
    SELECTION-SCREEN: END OF BLOCK b1.
    START-OF-SELECTION.
      SELECT vbeln
             vkorg
             netwr
             FROM vbak INTO TABLE t_vbak
             WHERE vbeln IN s_vbeln.
      IF sy-subrc = 0.
        SORT t_vbak BY vbeln.
      ENDIF.
      SELECT vbeln
             vstel
             vkorg
             netwr
             FROM likp INTO TABLE t_likp
             WHERE vbeln IN s_delvr.
      IF sy-subrc = 0.
        SORT t_likp BY vbeln.
      ENDIF.
      CALL SCREEN '9001'.
    *&      Module  STATUS_9001  OUTPUT
    *       text
    MODULE status_9001 OUTPUT.
      SET PF-STATUS ' '.
      SET TITLEBAR 'MAIN'.
      IF c_tab-activetab IS INITIAL OR
         c_dynnr         IS INITIAL.
        c_tab-activetab = 'TAB1'.
        c_dynnr = '9002'.
      ENDIF.
    ENDMODULE.                 " STATUS_9001  OUTPUT
    *&      Module  USER_COMMAND_9001  INPUT
    *       text
    MODULE user_command_9001 INPUT.
      CASE sy-ucomm.
        WHEN 'BACK' OR
             '%EX'  OR
             'CANC'.
          SET SCREEN 0.
        WHEN 'TAB1'.
          c_dynnr = '9002'.
        WHEN 'TAB2'.
          c_tab-activetab = 'TAB2'.
          c_dynnr = '9003'.
        WHEN 'TAB3'.
          c_tab-activetab = 'TAB3'.
          c_dynnr = '9004'.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_9001  INPUT
    *&      Module  STATUS_9002  OUTPUT
    *       text
    MODULE status_9002 OUTPUT.
    ** Create the Container
      CREATE OBJECT wl_ref_container
        EXPORTING
          container_name = w_container.
    ** Create the Grid object
      CREATE OBJECT w_grid
        EXPORTING
          i_parent          = wl_ref_container
        EXCEPTIONS
          error_cntl_create = 1
          error_cntl_init   = 2
          error_cntl_link   = 3
          error_dp_create   = 4
          OTHERS            = 5.
      CHECK sy-subrc = 0.
      PERFORM sub_fill_fcat_sale.
      CALL METHOD w_grid->set_table_for_first_display
        CHANGING
          it_outtab                     = t_vbak
          it_fieldcatalog               = t_fcat
        EXCEPTIONS
          invalid_parameter_combination = 1
          program_error                 = 2
          too_many_lines                = 3
          OTHERS                        = 4.
    ENDMODULE.                 " STATUS_9002  OUTPUT
    *&      Module  STATUS_9004  OUTPUT
    *       text
    MODULE status_9003 OUTPUT.
    ** Create the Container
      CREATE OBJECT wl_ref_container
        EXPORTING
          container_name = w_container.
    ** Create the Grid object
      CREATE OBJECT w_grid
        EXPORTING
          i_parent          = wl_ref_container
        EXCEPTIONS
          error_cntl_create = 1
          error_cntl_init   = 2
          error_cntl_link   = 3
          error_dp_create   = 4
          OTHERS            = 5.
      CHECK sy-subrc = 0.
      PERFORM sub_fill_fcat_delv.
      CALL METHOD w_grid->set_table_for_first_display
        CHANGING
          it_outtab                     = t_likp
          it_fieldcatalog               = t_fcat
        EXCEPTIONS
          invalid_parameter_combination = 1
          program_error                 = 2
          too_many_lines                = 3
          OTHERS                        = 4.
    ENDMODULE.                 " STATUS_9004  OUTPUT
    *&      Form  sub_fill_fcat
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM sub_fill_fcat_sale .
      DATA: wa_fcat TYPE lvc_s_fcat.
      REFRESH t_fcat.
      CLEAR wa_fcat.
      wa_fcat-row_pos   = 1.
      wa_fcat-fieldname = wa_fcat-rollname = 'VBELN'.
      APPEND wa_fcat TO t_fcat.
      CLEAR wa_fcat.
      wa_fcat-row_pos   = 2.
      wa_fcat-fieldname = wa_fcat-rollname = 'VKORG'.
      APPEND wa_fcat TO t_fcat.
      CLEAR wa_fcat.
      wa_fcat-row_pos   = 3.
      wa_fcat-fieldname = wa_fcat-rollname = 'NETWR'.
      APPEND wa_fcat TO t_fcat.
    ENDFORM.                    " sub_fill_fcat
    *&      Form  sub_fill_fcat_delv
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM sub_fill_fcat_delv .
      DATA: wa_fcat TYPE lvc_s_fcat.
      REFRESH t_fcat.
      CLEAR wa_fcat.
      wa_fcat-row_pos   = 1.
      wa_fcat-fieldname = 'VBELN'.
      wa_fcat-rollname  = 'VBELN_VL'.
      APPEND wa_fcat TO t_fcat.
      CLEAR wa_fcat.
      wa_fcat-row_pos   = 2.
      wa_fcat-fieldname = wa_fcat-rollname =  'VKORG'.
      APPEND wa_fcat TO t_fcat.
      CLEAR wa_fcat.
      wa_fcat-row_pos   = 3.
      wa_fcat-fieldname = wa_fcat-rollname =  'VSTEL'.
      APPEND wa_fcat TO t_fcat.
      CLEAR wa_fcat.
      wa_fcat-row_pos   = 4.
      wa_fcat-fieldname = wa_fcat-rollname =  'NETWR'.
      APPEND wa_fcat TO t_fcat.
    ENDFORM.                    " sub_fill_fcat_delv

  • In MIGO ..i require forth tabstrip after General, Vendor, Employee and TEST

    Hi,
    I Require 4th TabStrip in MIGO called Details...there are already 3 tabstrips called (General,Vendor,Employee).
    I want to impliment through BADI.But i dont knw hw to proceed.
    I got Defi.Name MB_MIGO_BADI and Method Name s INIT.
    But i dont knw hw to create tabstrip....
    Plz guide me so i can proceed further ?
    Points will be rewarded to the person
    wait for reply...

    Karthik,
           I couldnt identify other BADI for addition of new fields. Perhaps the logic lies in the same BADI where the tabstrip name was created. To be more clear, i have used BADI MB_MIGO_BADI with class implementation as ZCL_EXM_IM_MB_MIGO_BADI. If you see the method "PBO_HEADER", the program used is "SAPLMIGO_BADI_EXAMPLE". I guess my requirement revolves around this program, but this program is a function pool. IF i change the e_heading to "Transportation" in the method mentioned above, i can see the new tab named as "Transportation". Now i need three more screen fields to be added. I wonder how to go for the logic in PAI later.
    Thanks in advance..

  • Code to call friends class method

    Hello,
    Please can someone help me with friends class method call. in global classes
    Thanks
    Megh
    Moderator message: please search for available information/documentation before asking.
    Edited by: Thomas Zloch on Nov 2, 2010 5:29 PM

    What is your exact problem?
    The class whose private and protected section you want to use, needs declaration of its friends. You do it in Friends tabstrip. All these classes are allowed then to access these "hiden" sections from outside of the class. Below example how it works with local classes. For global ones the principle stays the same
    CLASS lcl_main DEFINITION DEFERRED.
    CLASS lcl_other DEFINITION FRIENDS lcl_main. "only LCL_MAIN can use may hiden sections
      PROTECTED SECTION.
        METHODS prot_meth.
      PRIVATE SECTION.
        METHODS priv_meth.
    ENDCLASS.                  
    CLASS lcl_other IMPLEMENTATION.
      METHOD prot_meth.
        WRITE / 'This is protected method of class lcl_other'.
      ENDMETHOD.                    "prot_meth
      METHOD priv_meth.
        WRITE / 'This is private method of class lcl_other'.
      ENDMETHOD.                    "priv_meth
    ENDCLASS.                   
    CLASS lcl_main DEFINITION.
      PUBLIC SECTION.
        METHODS call_friends_methods.
      PRIVATE SECTION.
        DATA mr_my_friend TYPE REF TO lcl_other.
    ENDCLASS.                  
    CLASS lcl_main IMPLEMENTATION.
      METHOD call_friends_methods.
        CREATE OBJECT mr_my_friend.
        mr_my_friend->prot_meth( ).
        mr_my_friend->priv_meth( ).
      ENDMETHOD.                   
    ENDCLASS.           
    START-OF-SELECTION.
      DATA gr_main TYPE REF TO lcl_main.
      CREATE OBJECT gr_main.
      gr_main->call_friends_methods( ).
    Regards
    Marcin

  • Steps to create tabstrip for subscreen in selection screen

    hi,
    can let me know the steps taken to create subscreen in selection screen and put in tabstrip?
    i need to have 3 screens. 1000 being the tabstrip, 2000 being first subscreen and 3000 being the second subscreen.
    i have the abap code but i do not know the steps to create especially 1000 screen.
    for 2000 and 3000, once i activated the program, these 2 screens added but i do not know where can i create the 1000 screen.
    also, should i use wizard to create tabstrip?
    please advise. thanks
    SELECTION-SCREEN BEGIN OF SCREEN 2000 AS SUBSCREEN.        SELECTION-SCREEN BEGIN OF BLOCK x WITH FRAME TITLE text-001.
    SELECT-OPTIONS: para1 FOR  field1 ,     
                                  para2 FOR field2.            
    SELECTION-SCREEN END OF BLOCK x.
    SELECTION-SCREEN END OF SCREEN 2000.
    SELECTION-SCREEN BEGIN OF SCREEN 3000 AS SUBSCREEN.
    SELECTION-SCREEN BEGIN OF BLOCK y WITH FRAME TITLE text-002.
    SELECT-OPTIONS: para3 FOR  field3 ,     
                                  para4 FOR field4.      
    SELECTION-SCREEN END OF BLOCK y.
    SELECTION-SCREEN:SKIP.
    SELECTION-SCREEN END OF SCREEN 3000.

    e_l,
      See the total doc.. with example.
    Assigning a Subscreen Area to a Tab Title
    You must assign a subscreen area to each tab title. There are two ways of doing this:
    Paging in the SAPgui
    You need to assign a separate subscreen area to each tab title, and define the function codes of the tab titles with type P (local GUI function). In the screen flow logic, you call all the subscreens in the PBO event. This means that all of the tab pages reside locally on the SAPgui.
    When the user chooses a tab title, paging takes place within the SAPgui. In this respect, the tabstrip control behaves like a single screen. In particular, the PAI event is not triggered when the user chooses a tab title, and no data is transported. While this improves the performance of your tabstrip control, it also has the negative effect that when the user does trigger the PAI event, all of the input checks for all of the subscreens are performed. This means that when the user is working on one tab page, the input checks may jump to an unfilled mandatory field on another page.
    Local paging at the SAPgui is therefore most appropriate for screens that display data rather than for input screens.
    Paging on the Application Server
    One subscreen area is shared by all tab titles and called in the PBO event. You define the function codes of the individual tab titles without a special function type. When the user chooses a tab page, the PAI event is triggered, and you must include a module in your flow logic that activates the appropriate tab page and assigns the correct subscreen to the subscreen area.
    Since the PAI event is triggered each time the user chooses a tab title, this method is less economical for the application server, but the input checks that are performed only affect the current tab page.
    Procedure in Either Case
    You create the subscreen areas within the tabstrip area. You assign the subscreen areas to one or more tab titles in the Screen Painter by selecting one or more titles. You can also assign a subscreen area to a tab title in the tab title attributes by entering the name of the subscreen area in the Reference field attribute.
    The procedure for the alphanumeric Screen Painter is described under Creating Tabstrip Controls.
    If you are paging at the SAPgui, create a subscreen area for each tab title. If you are paging at the application server, select all tab titles and create a single subscreen area. The subscreen areas may not cover the top line of the tab area. However, within a tab area, more than one subscreen area can overlap.
    Programming the Flow Logic
    In the flow logic, all you have to do by hand is include the correct subscreens. The screen flow and data transport to the ABAP program is the same as for normal subscreens. There are two ways of programming the screen flow logic, depending on how you have decided to page through the tabstrip control.
    Paging in the SAPgui
    When you page in the SAPgui, you must include a subscreen for each subscreen area:
    PROCESS BEFORE OUTPUT.
      CALL SUBSCREEN: <area1> INCLUDING [<prog 1>] <dynp 1>,
                      <area2> INCLUDING [<prog 2>] <dynp 2>,
                      <area3> INCLUDING [<prog 3>] <dynp 3>,
    PROCESS AFTER INPUT.
      CALL SUBSCREEN: <area1>,
                      <area2>,
                      <area3>,
    Paging on the Application Server
    When you page on the application server, you only have to include a subscreen for the one subscreen area:
    PROCESS BEFORE OUTPUT.
      CALL SUBSCREEN <area> INCLUDING [<prog>] <dynp>.
    PROCESS AFTER INPUT.
      CALL SUBSCREEN <area>.
    Handling in the ABAP Program
    Before you can use a tabstrip control in your ABAP program, you must create a control for each control in the declaration part of your program using the following statement:
    CONTROLS <ctrl> TYPE TABSTRIP.
    where <ctrl> is the name of the tabstrip area on a screen in the ABAP program. The control allows the ABAP program to work with the tabstrip control. The statement declares a structure with the name <ctrl> . The only component of this structure that you need in your program is called ACTIVETAB.
    Use in the PBO event
    Before the screen is displayed, you use the control to set the tab page that is currently active. To do this, assign the function code of the corresponding tab title to the component ACTIVETAB:
    <ctrl>-ACTIVETAB = <fcode>.
    When you page at the SAPgui, you only need to do this once before the screen is displayed. This initializes the tabstrip control. The default active tab page is the first page. After this, the page activated when the user chooses a tab title is set within SAPgui.
    When you page on the application server, you must assign the active page both before the screen is displayed for the first time, and each time the user pages. At the same time, you must set the required subscreen screen.
    You can suppress a tab page dynamically by setting the ACTIVE field of table SCREEN to 0 for the corresponding tab title.
    Use in the PAI event
    In the PAI event, ACTIVETAB contains the function code of the last active tab title on the screen.
    When you page in the SAPgui, this allows you to find out the page that the user can currently see. When you page at the application server, the active tab page is controlled by the ABAP program anyway.
    The OK_CODE field behaves differently according to the paging method:
    Paging in the SAPgui
    When you page in the SAPgui, the PAI event is not triggered when the user chooses a tab title, and the OK_CODE field is not filled. The OK_CODE field is only filled by user actions in the GUI status or when the user chooses a pushbutton either outside the tabstrip control or on one of the subscreens.
    Paging on the application server
    If you are paging at the application server, the PAI event is triggered when the user chooses a tab title, and the OK_CODE field is filled with the corresponding function code.
    To page through the tabstrip control, you must assign the function code to the ACTIVETAB component of the control:
    <ctrl>-ACTIVETAB = <ok_code>.
    This statement overwrites the function code of the last active tab page with that of the new tab title. At the same time, you must ensure that the correct subscreen is inserted in the subscreen area.
    Otherwise, tabstrip controls are handled like normal subscrens in ABAP programs, that is, the ABAP program of a subscreen screen must contain the dialog modules called from the flow logic of the subscreen.
    Examples
    Tabstrip control, paging at SAPgui
    REPORT DEMO_DYNPRO_TABSTRIP_LOCAL.
    CONTROLS MYTABSTRIP TYPE TABSTRIP.
    DATA: OK_CODE TYPE SY-UCOMM,
          SAVE_OK TYPE SY-UCOMM.
    MYTABSTRIP-ACTIVETAB = 'PUSH2'.
    CALL SCREEN 100.
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'SCREEN_100'.
    ENDMODULE.
    MODULE CANCEL INPUT.
      LEAVE PROGRAM.
    ENDMODULE.
    MODULE USER_COMMAND INPUT.
      SAVE_OK = OK_CODE.
      CLEAR OK_CODE.
      IF SAVE_OK = 'OK'.
        MESSAGE I888(SABAPDOCU) WITH 'MYTABSTRIP-ACTIVETAB ='
                                      MYTABSTRIP-ACTIVETAB.
      ENDIF.
    ENDMODULE.
    The next screen (statically defined) for screen 100 is itself. It has the following layout:
    The screen contains a tabstrip area called MYTABSTRIP with three tab titles PUSH1, PUSH2 and PUSH3. The function codes have the same name, and all have the function type P. One of the subscreen areas SUB1 to SUB3 is assigned to each tab title. The pushbutton has the name BUTTON and the function code ‘OK’.
    In the same ABAP program, there are three subscreen screens 110 to 130. Each of these fits the subscreen area exactly. The layout is:
    The screen flow logic for screen 100 is as follows:
    PROCESS BEFORE OUTPUT.
      MODULE STATUS_0100.
      CALL SUBSCREEN: SUB1 INCLUDING SY-REPID '0110',
                      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.
    The screen flow logic of subscreens 110 to 130 does not contain any module calls.
    When you run the program, a screen appears on which the second tab page is active, since the program sets the ACTIVETAB component of the structure MYTABSTRIP to PUSH2 before the screen is displayed. The user can page through the tabstrip control without the PAI event being triggered. One of the three subscreens is included on each tab page.
    When the user chooses Continue, the PAI event is triggered, and an information message displays the function code of the tab title of the page that is currently active.
    Tabstrip control with paging on the application server.
    REPORT DEMO_DYNPRO_TABSTRIP_LOCAL.
    CONTROLS MYTABSTRIP TYPE TABSTRIP.
    DATA: OK_CODE TYPE SY-UCOMM,
          SAVE_OK TYPE SY-UCOMM.
    DATA  NUMBER TYPE SY-DYNNR.
    MYTABSTRIP-ACTIVETAB = 'PUSH2'.
    NUMBER = '0120'.
    CALL SCREEN 100.
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'SCREEN_100'.
    ENDMODULE.
    MODULE CANCEL INPUT.
      LEAVE PROGRAM.
    ENDMODULE.
    MODULE USER_COMMAND INPUT.
      SAVE_OK = OK_CODE.
      CLEAR OK_CODE.
      IF SAVE_OK = 'OK'.
        MESSAGE I888(SABAPDOCU) WITH 'MYTABSTRIP-ACTIVETAB ='
                                      MYTABSTRIP-ACTIVETAB.
      ELSE.
        MYTABSTRIP-ACTIVETAB = SAVE_OK.
        CASE SAVE_OK.
          WHEN 'PUSH1'.
            NUMBER = '0110'.
          WHEN 'PUSH2'.
            NUMBER = '0120'.
          WHEN 'PUSH3'.
            NUMBER = '0130'.
        ENDCASE.
      ENDIF.
    ENDMODULE.
    The statically-defined next screen for screen 100 is itself, and its layout is the same as in the above example. However, the function codes of the three tab titles have the function type <blank> and they all share a single subscreen area SUB.
    The same subscreen screens 110 to 130 are defined as in the last example.
    The screen flow logic for screen 100 is as follows:
    PROCESS BEFORE OUTPUT.
      MODULE STATUS_0100.
      CALL SUBSCREEN SUB INCLUDING SY-REPID NUMBER.
    PROCESS AFTER INPUT.
      MODULE CANCEL AT EXIT-COMMAND.
      CALL SUBSCREEN SUB.
      MODULE USER_COMMAND.
    In this example, the program includes a subscreen screen in the subscreen area SUB dynamically during the PBO event.
    The screen flow logic of subscreens 110 to 130 does not contain any module calls.
    This example has the same function as the previous example, but the paging within the tabstrip control is implemented on the application server. Each time the user chooses a tab title, the function code from the OK_CODE field is assigned to the ACTIVETAB component of structure MYTABSTRIP. At the same time, the variable NUMBER is filled with the screen number of the subscreen that has to be displayed in the subscreen area SUB of the tabstrip control
    Pls. reward if useful

  • Sequence of method invokation(of embedd. views in viewcontain.)in frameview

    Hi Experts,
    I use a tabstrip with some tabs.
    Each tab contains a view container with embedded view.
    The Problem is that the frame view with the included embedded views is starting at first the wddomodifyview-method of a view which should normally invoke at last.
    My question: How can I affect the sequence of the method(wddomodifyview) invokation of each embedded view?
    I find out that the sequence of the embedded view in the windows affects the
    sequence of invokation of wddomodifyview in this views. But I cannot change the order in the window.
    Best Regards

    There are several curucial information needed to debug.
    The Problem is that the frame view with the included embedded views is starting at first the wddomodifyview-method of a view which should normally invoke at last.
    This depends on the visibility of the tabs, selected_tab property binding.
    probably  the first visible tab ( selected_tab ) is the one you think the last tab.

  • Active tab in a tabstrip

    Is it possible to manually set the active tab in a tabstrip?
    Thank you,
    Bogdan

    Hi,
    I will give u some sample code to do that
    PROCESS BEFORE OUTPUT.
      MODULE status_9000.
      MODULE main_tab_active_tab_set.
      CALL SUBSCREEN main_tab_sca
        INCLUDING i_main_tab-prog i_main_tab-subscreen.
    PROCESS AFTER INPUT.
      MODULE user_command_9000.
      MODULE main_tab_active_tab_get.
      MODULE main_tab_active_tab_set.
    DATA FOR TABSTRIP 'MAIN_TAB'
    CONTROLS:  main_tab TYPE TABSTRIP.
    DATA:      BEGIN OF i_main_tab,
                 subscreen   LIKE sy-dynnr,
                 prog        LIKE sy-repid VALUE
                                  'ZCSVO_COGNOS_EXTRACT',
                 pressed_tab LIKE sy-ucomm VALUE c_main_tab-tab1,
               END OF i_main_tab.
    <b>MODULE main_tab_active_tab_set OUTPUT.</b>
      main_tab-activetab = i_main_tab-pressed_tab.
      CASE i_main_tab-pressed_tab.
        WHEN c_main_tab-tab1.
      To display open orders report
         i_main_tab-subscreen = '9100'.
          CALL METHOD o_alvgrid1->set_table_for_first_display
          EXPORTING
             is_variant                    = w_variant
             i_save                        = c_lay
             is_layout                     = w_layout
          CHANGING
             it_outtab                     = i_output1[]
             it_fieldcatalog               = i_fieldcat[]
          EXCEPTIONS
             invalid_parameter_combination = 1
             program_error                 = 2
             too_many_lines                = 3
             OTHERS                        = 4.
      IF sy-subrc <> 0.
        MESSAGE i000 WITH text-e06."Error in ALV report display
        LEAVE LIST-PROCESSING.
      ENDIF.
        WHEN c_main_tab-tab2.
      To display due for biling report
          i_main_tab-subscreen = '9200'.
          CALL METHOD o_alvgrid2->set_table_for_first_display
          EXPORTING
             is_variant                    = w_variant2
             i_save                        = c_lay
             is_layout                     = w_layout
          CHANGING
             it_outtab                     = i_output2[]
             it_fieldcatalog               = i_fieldcat3[]
          EXCEPTIONS
             invalid_parameter_combination = 1
             program_error                 = 2
             too_many_lines                = 3
             OTHERS                        = 4.
      IF sy-subrc <> 0.
        MESSAGE i000 WITH text-e06."Error in ALV report display
        LEAVE LIST-PROCESSING.
      ENDIF.
    WHEN OTHERS.
         DO NOTHING
      ENDCASE.
    ENDMODULE.                 " MAIN_TAB_ACTIVE_TAB_SET  OUTPUT
    *&      Module  MAIN_TAB_ACTIVE_TAB_GET  INPUT
          text
    <b>MODULE main_tab_active_tab_get INPUT.</b>
      CASE sy-ucomm.
        WHEN c_main_tab-tab1.
          i_main_tab-pressed_tab = c_main_tab-tab1.
        WHEN c_main_tab-tab2.
          i_main_tab-pressed_tab = c_main_tab-tab2.
        WHEN OTHERS.
         DO NOTHING
      ENDCASE.
    ENDMODULE.                 " MAIN_TAB_ACTIVE_TAB_GET  INPUT
    *&      Module  USER_COMMAND_9000  INPUT
          text
    <b>MODULE user_command_9000 INPUT.</b>
      CASE sy-ucomm.
        WHEN 'BACK'.
          PERFORM exit_program.
          SET SCREEN '0'.
        WHEN 'EXIT' OR  'CANC'.
          PERFORM exit_program.
          LEAVE PROGRAM.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_9000  INPUT
    *&      Module  MAIN_TAB_ACTIVE_TAB_SET  INPUT
          text
    <b>MODULE main_tab_active_tab_set INPUT.</b>
      main_tab-activetab = i_main_tab-pressed_tab.
      CASE i_main_tab-pressed_tab.
        WHEN c_main_tab-tab1.
            i_main_tab-subscreen = '9100'.
        WHEN c_main_tab-tab2.
            i_main_tab-subscreen = '9200'.
        WHEN OTHERS.
         DO NOTHING
      ENDCASE.
    ENDMODULE.                 " MAIN_TAB_ACTIVE_TAB_SET  INPUT
    Try this out.
    Thanks & Regards,
    Judith.

  • Web DynPro - Navigation to Tabstrips

    Hi All,
    I have a view that has Tabstrips, around 6 tabstribs.
    When I am in an Sales Order Tab all the sales orders are listed. I select one sales order and click display details button.
    When I do this I need to move automatically to Search Tab and in the search tab the sales order number should be populated and results should be displayed.
    I could populate the sales order number and display the results in the Search Tab, but don't know how to navigate automatically to Search Tab from Sales Order Tab.
    I don't want to navigate to that tab manually.
    Please let me know how to navigate from one Tab to another Tab automatically
    Thanks.
    Samekshaa

    Hi,
    Where are you setting the SELECT_TAB attribute value.
    In the Display Details button of the Salesorder tab, you write the code setting the tab.
    Create an action handler ONACTIONSELECT_TAB.
    ***Variables
      DATA
        lv_select_tab type string.         "Selected tab
      CALL METHOD WD_CONTEXT->SET_ATTRIBUTE
        EXPORTING
          VALUE = lv_select_tab                 "Give tab id for the Search Tab
          NAME  =  'SELECT_TAB'.
    using the GET_ATTRIBUTE try to default the value in the SEARCH tab with the Saslesorder number.
    and You need to write the code in the action handler also to set the tab.
    method ONACTIONSELECT_TAB .
    ***Variables
    DATA:
      lv_select_tab type string,          "Selected tab value
       lv_name type string.               "Name of the event.
    ***Structure and internal table for the Events
    DATA:
      lt_events type WDR_EVENT_PARAMETER_LIST,
      ls_events type WDR_EVENT_PARAMETER.
    ***Field symbols
    field-symbols: <fs_value> type any.   "Attribute value in events table
    ***Move the event name ie 'ON_SELECT' is the standard event
    lv_name = wdevent->name.
    ***Move the event table to lt_events
    lt_events = wdevent->parameters.
    *"Set to 'TAB' in lt_events
    read table  lt_events into ls_events with key name = 'TAB'.       
    if sy-subrc eq 0.
    assign ls_events-value->* to <fs_value>.
    if sy-subrc eq 0.
    lv_select_tab = <fs_value>.
    endif.                 "IF sy-subrc eq 0.
    endif.                 "IF sy-subrc eq 0.
    ***Set the selected tab value
    CALL METHOD WD_CONTEXT->SET_ATTRIBUTE
      EXPORTING
        VALUE  =  lv_select_tab
        NAME   = 'SELECT_TAB'.  "Set the selected tab Id
    endmethod.
    The above code is working fine for me. Please test it as per your requirements.
    Regards,
    Lekha.

  • What is the difference b/w ALV Function Module and ALV Methods?

    Hello Friends,
          Can anybody help me in finding out the difference between ALV Function Modules and ALV methods?
    Thanks & Regards
    Sathish Kumar

    Hi Sathish,
    Plz go through this info. It is very useful.
    hi,
    chk these excellent links.
    http://www.geocities.com/mpioud/Abap_programs.html
    http://www.sapdevelopment.co.uk/reporting/reportinghome.htm
    Simple ALV report
    http://www.sapgenie.com/abap/controls/alvgrid.htm
    http://wiki.ittoolbox.com/index.php/Code:Ultimate_ALV_table_toolbox
    http://www.sapgenie.com/abap/controls/alvgrid.htm
    http://wiki.ittoolbox.com/index.php/Code:Ultimate_ALV_table_toolbox
    ALV
    1. Please give me general info on ALV.
    http://www.sapfans.com/forums/viewtopic.php?t=58286
    http://www.sapfans.com/forums/viewtopic.php?t=76490
    http://www.sapfans.com/forums/viewtopic.php?t=20591
    http://www.sapfans.com/forums/viewtopic.php?t=66305 - this one discusses which way should you use - ABAP Objects calls or simple function modules.
    2. How do I program double click in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=11601
    http://www.sapfans.com/forums/viewtopic.php?t=23010
    3. How do I add subtotals (I have problem to add them)...
    http://www.sapfans.com/forums/viewtopic.php?t=20386
    http://www.sapfans.com/forums/viewtopic.php?t=85191
    http://www.sapfans.com/forums/viewtopic.php?t=88401
    http://www.sapfans.com/forums/viewtopic.php?t=17335
    4. How to add list heading like top-of-page in ABAP lists?
    http://www.sapfans.com/forums/viewtopic.php?t=58775
    http://www.sapfans.com/forums/viewtopic.php?t=60550
    http://www.sapfans.com/forums/viewtopic.php?t=16629
    5. How to print page number / total number of pages X/XX in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=29597 (no direct solution)
    6. ALV printing problems. The favourite is: The first page shows the number of records selected but I don't need this.
    http://www.sapfans.com/forums/viewtopic.php?t=64320
    http://www.sapfans.com/forums/viewtopic.php?t=44477
    7. How can I set the cell color in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=52107
    8. How do I print a logo/graphics in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=81149
    http://www.sapfans.com/forums/viewtopic.php?t=35498
    http://www.sapfans.com/forums/viewtopic.php?t=5013
    9. How do I create and use input-enabled fields in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=84933
    http://www.sapfans.com/forums/viewtopic.php?t=69878
    10. How can I use ALV for reports that are going to be run in background?
    http://www.sapfans.com/forums/viewtopic.php?t=83243
    http://www.sapfans.com/forums/viewtopic.php?t=19224
    11. How can I display an icon in ALV? (Common requirement is traffic light icon).
    http://www.sapfans.com/forums/viewtopic.php?t=79424
    http://www.sapfans.com/forums/viewtopic.php?t=24512
    12. How can I display a checkbox in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=88376
    http://www.sapfans.com/forums/viewtopic.php?t=40968
    http://www.sapfans.com/forums/viewtopic.php?t=6919
    Go thru these programs they may help u to try on some hands on
    ALV Demo program
    BCALV_DEMO_HTML
    BCALV_FULLSCREEN_DEMO ALV Demo: Fullscreen Mode
    BCALV_FULLSCREEN_DEMO_CLASSIC ALV demo: Fullscreen mode
    BCALV_GRID_DEMO Simple ALV Control Call Demo Program
    BCALV_TREE_DEMO Demo for ALV tree control
    BCALV_TREE_SIMPLE_DEMO
    BC_ALV_DEMO_HTML_D0100
    OOPs:
    Check this for basic concepts of OOPS
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/abap%20objects/abap%20code%20sample%20to%20learn%20basic%20concept%20of%20object-oriented%20programming.doc
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20to%20display%20data%20in%20alv%20grid%20using%20object%20oriented%20programming.doc
    Tabstrip
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20for%20tab%20strip%20in%20alv.pdf
    Editable ALV
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap%20code%20samples/alv%20grid/abap%20code%20sample%20to%20edit%20alv%20grid.doc
    Tree
    http://www.sapdevelopment.co.uk/reporting/alv/alvtree/alvtree_usrint.htm
    General Tutorial for OOPS
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/an%20easy%20reference%20for%20alv%20grid%20control.pdf
    Rewords some points if it is helpful.
    Rgds,
    P.Naganjana Reddy

  • Tabstrip coding in report

    Hai,
       I want to use tabstrip(with 3 different subscreens) in my report.so could any one of you can send me the coding of this.
    thanks in advance
    kiran

    Hi,
    Check this.
    http://help.sap.com/saphelp_nw04/helpdata/en/17/5bf1b52ba211d2954f0000e8353423/content.htm
    According to the tab pressed,you can write the coding in PAI and display the output in PBO.
    Following is the sample code.I am using custom container.
    CONTROLS: main_tab TYPE TABSTRIP.
    DATA: BEGIN OF i_main_tab,
    subscreen LIKE sy-dynnr,
    prog LIKE sy-repid VALUE
    'ZZZ_TABSTRIP',
    pressed_tab LIKE sy-ucomm VALUE c_main_tab-tab1,
    END OF i_main_tab.
    MODULE status_9001 OUTPUT.
    SET PF-STATUS 'ZSTATUS'.
    SET TITLEBAR 'ZTITLE'.
    main_tab-activetab = i_main_tab-pressed_tab.
    CASE i_main_tab-pressed_tab.
    WHEN c_main_tab-tab1.
    IF o_custom_container1 IS INITIAL.
    * Creating Object
    PERFORM f9000_objects_create.
    * Building the field catalog
    PERFORM f9001_build_field_cat TABLES i_fcat
    USING 'ZZZ_GRID'.
    * For Layout
    PERFORM f9002_layout USING sy-title c_x c_a c_x.
    i_main_tab-subscreen = '9100'.
    * Displaying data
    CALL METHOD o_alvgrid1->set_table_for_first_display
    EXPORTING
    is_variant = w_variant
    i_save = c_a
    is_layout = w_layout
    CHANGING
    it_outtab = i_grid[]
    it_fieldcatalog = i_fcat[]
    EXCEPTIONS
    invalid_parameter_combination = 1
    program_error = 2
    too_many_lines = 3
    OTHERS = 4.
    IF sy-subrc <> 0.
    MESSAGE i005 WITH text-009."Error in ALV report display
    LEAVE LIST-PROCESSING.
    ENDIF.
    endif.
    when c_main_tab-tab2.
    if o_custom_container2 is initial.
    perform f9000_objects_create1 using:
    * create custom container
    'o_custom_container2' '' '' '',
    * Create splitter container
    'o_splitter' o_custom_container2 '2' '1',
    * Create event reciever
    'o_eventreceiver' '' '' ''.
    * Creating containers for the split grids
    call method o_splitter->get_container exporting row = 1
    column = 1
    receiving container = o_container1.
    call method o_splitter->get_container exporting row = 2
    column = 1
    receiving container = o_container2.
    * Set where the splits on the screen comes
    call method o_splitter->set_row_height
    exporting
    id = 1
    height = 45
    exceptions
    cntl_error = 1
    cntl_system_error = 2
    others = 3.
    if sy-subrc ne 0.
    perform f9003_error_handle using text-E04.
    endif.
    perform f9000_objects_create1 using:
    * Create the alv grids
    'o_alvgrid2' o_container1 '' '',
    'o_alvgrid3' o_container2 '' ''.
    set handler o_eventreceiver->handle_double_click for o_alvgrid2.
    perform f9001_build_field_cat tables i_fcat1
    using 'ZZZ_GRID1'.
    perform f9001_build_field_cat tables i_fcat2
    using 'ZZZ_GRID2'.
    * For Layout
    PERFORM f9002_layout USING sy-title c_x c_a c_x.
    i_main_tab-subscreen = '9200'.
    if not i_grid1[] is initial.
    call method o_alvgrid2->set_table_for_first_display
    exporting
    is_variant = w_variant
    i_save = c_a
    is_layout = w_layout
    CHANGING
    it_outtab = i_grid1[]
    it_fieldcatalog = i_fcat1[]
    exceptions
    invalid_parameter_combination = 1
    program_error = 2
    too_many_lines = 3
    others = 4.
    if sy-subrc <> 0.
    message i005 with text-009."Error in ALV report display
    leave list-processing.
    endif.
    * Populate the GRID2 data
    read table i_grid1 into w_grid1 index 1.
    if sy-subrc = 0.
    if not i_grid2[] is initial.
    * Generate the grid2 data.
    call method o_alvgrid3->set_table_for_first_display
    exporting
    is_variant = w_variant
    i_save = c_a
    is_layout = w_layout
    CHANGING
    it_outtab = i_grid2[]
    it_fieldcatalog = i_fcat2[]
    exceptions
    invalid_parameter_combination = 1
    program_error = 2
    too_many_lines = 3
    others = 4.
    endif.
    endif.
    else.
    * No data for the entered selection criteria
    message i005 with text-010.
    leave list-processing.
    endif.
    endif.
    WHEN OTHERS.
    * DO NOTHING
    ENDCASE.
    ENDMODULE. " STATUS_9001 OUTPUT
    *& Module MAIN_TAB_ACTIVE_TAB_GET INPUT
    * This is used to catch the pressed tab
    MODULE main_tab_active_tab_get INPUT.
    CASE sy-ucomm.
    WHEN c_main_tab-tab1.
    i_main_tab-pressed_tab = c_main_tab-tab1.
    i_main_tab-subscreen = '9100'.
    WHEN c_main_tab-tab2.
    i_main_tab-pressed_tab = c_main_tab-tab2.
    i_main_tab-subscreen = '9200'.
    WHEN OTHERS.
    * DO NOTHING
    ENDCASE.
    ENDMODULE. " MAIN_TAB_ACTIVE_TAB_GET INPUT
    *& Module USER_COMMAND_9001 INPUT
    * This is used for user command
    MODULE user_command_9001 INPUT.
    CASE sy-ucomm.
    WHEN 'BACK'.
    PERFORM exit_program.
    SET SCREEN '0'.
    WHEN 'EXIT' OR 'CANC'.
    PERFORM exit_program.
    LEAVE PROGRAM.
    ENDCASE.
    ENDMODULE. " USER_COMMAND_9000 INPUT
    * For screen 9001 we need to write Flow logic as below. For subscreens, Flow logic is
    * not required.
    PROCESS BEFORE OUTPUT.
    MODULE STATUS_9001.
    CALL SUBSCREEN main_tab_sca
    INCLUDING i_main_tab-prog i_main_tab-subscreen.
    PROCESS AFTER INPUT.
    MODULE user_command_9001.
    MODULE main_tab_active_tab_get.
    If you need it in selection screen,check this link.
    http://www.sapdevelopment.co.uk/reporting/selscr/selscr_tabstrip.htm

Maybe you are looking for