Regarding two containers in alv screen

hi,
i have developed two alv reports,in which if we click on first alv report billing number we should display 2nd alv report item details in second container, but the problem is that for the first time when i click on billing number its item details are displayed properly, whereas for the second time for different billing number the same item details are displayed of the first billing number.
Can any one help me to solve this number.

Hi,
Try this way: each time you click on first alv, first initialize reference variable for container and then recreate the object for that container using below logic:
"handle click method in first ALV
  gr_custom_conatiner2->free( ).   "gr_custom_container2 is reference variable for second container
  clear gr_custom_container2.
   "now recreate the object
    CREATE OBJECT g_custom_container2
       EXPORTING
         container_name              = 'CUSTOM_AREA'.
    CREATE OBJECT gr_alv
        EXPORTING
           i_parent          =  g_custom_container2.
    CALL METHOD g_alv_grid_ref->set_table_for_first_display
This will synchronize ABAP object with frontend proxy object, thereby provide correct entry next time.
Regards
Marcin

Similar Messages

  • How to display two grids in same screen using SALV Method

    Hi Freinds,
    Please let me know how to display two grids in same screen using SALV Method.
    Thank you
    Regards,
    SDV

    Using the same concept as described in How to dispaly Three Internal Table  Data (One below another) in ALV OOPS .
    All you need to add is passing your new containers as r_container parementer of factory method.
    "1st one
          cl_salv_table=>factory(
             EXPORTING
               R_CONTAINER    = g_top_container
    "2nd one
          cl_salv_table=>factory(
             EXPORTING
               R_CONTAINER    = g_bottom_container
    Regards
    Marcin

  • Two trees on 1 screen, 1 Event - 1 Method = Which tree ?

    Hi,
    as I am fairly new to the Abap-OO this may be a silly question, but:
    I have two list_trees on one screen to drag&drop between them. Now I need one event (Link_Click) for both trees. My problem now is how to determine and use the tree that raised the event.
    Do I really need to define two methods like Handle_link_click_left & Handle_link_click_right ?
    I thought somehow within the method I use an object like
    "clicked_at_tree" instead of tree_left / tree_right ?!?!
    I hope I was able to describe my problem and someones able to help me out
    Thx in advance,
    Karsten

    Simular to what I did in this program, you may be able to extend the class, by using a local class and inheriting from your other class.  In this example, I have to text edit containers on the screen 100, the same event and handler is being executed for each instance of the text editor.
    * Create the screen 100,  add two container to the screen,
    * CONTAINER1 and CONTAINER2.
    * Double click in either control
    report zrich_0001 .
    *       CLASS lcl_text_edit DEFINITION
    class lcl_text_edit definition inheriting from cl_gui_textedit.
      public section.
        data: textlines type table of tline-tdline,
              wa_text type tline-tdline.
        events: customevent.
        methods: constructor importing
                   im_parent type ref to cl_gui_container,
                 customeventhandle
                         for event dblclick of lcl_text_edit.
    endclass.
    *       CLASS lcl_text_edit IMPLEMENTATION
    class lcl_text_edit implementation.
      method constructor.
        call method super->constructor( parent = im_parent ).
      endmethod.
      method customeventhandle.
        wa_text = 'Appended Line'.
        append wa_text to textlines.
        call method me->set_text_as_r3table
           exporting
                 table              = textlines
           exceptions
                 others             = 1.
      endmethod.
    endclass.
    data: container1 type ref to cl_gui_custom_container.
    data: container2 type ref to cl_gui_custom_container.
    data: textedit1 type ref to lcl_text_edit.
    data: textedit2 type ref to lcl_text_edit.
    start-of-selection.
      call screen 100.
    *&      Module  STATUS_0100  OUTPUT
    module status_0100 output.
    *  SET PF-STATUS 'xxxxxxxx'.
    *  SET TITLEBAR 'xxx'.
      create object:
              container1
                  exporting container_name = 'CONTAINER1',
              textedit1
                  exporting
                       im_parent     = container1.
      call method textedit1->register_event_dblclick.
      set handler textedit1->customeventhandle for textedit1.
      create object:
              container2
                  exporting container_name = 'CONTAINER2',
              textedit2
                  exporting
                       im_parent     = container2.
      call method textedit2->register_event_dblclick.
      set handler textedit2->customeventhandle for textedit2.
    endmodule.
    *&      Module  USER_COMMAND_0100  INPUT
    module user_command_0100 input.
    endmodule.
    If you found any answers helpful, please award points.  Thanks.
    Regards,
    Rich Heilman

  • How to display two lables in alv report

    Is there any chance to display two lables in alv report
    for example..
    AMOUNT
    Rs | Ps
       |
    like that this for an example.
    thanks,
    JB

    Hai Babu
    Go through the following Code
    using Classes & Methods
    try with the following Code( Just copy the code & try with in SE38 Tcode & Execute it that all)
    REPORT ZALV_SALES_HEADER_DETAIL MESSAGE-ID Z50650(MSG) .
    TABLES
    TABLES: VBAK . "SALES DOCUMENT HEADER
    DATA OBJECTS DECLARATION
    DATA: IT_VBAK TYPE STANDARD TABLE OF ZVBAK_STRUC,
    IT_VBAP TYPE STANDARD TABLE OF ZVBAP_STRUC,
    GS_LAYOUT TYPE LVC_S_LAYO,
    GS1_LAYOUT TYPE LVC_S_LAYO,
    GRID TYPE REF TO CL_GUI_ALV_GRID,
    CUSTOM_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
    VBAK_CONTAINER TYPE REF TO CL_GUI_CONTAINER,
    VBAP_CONTAINER TYPE REF TO CL_GUI_CONTAINER,
    WA_VBAK LIKE LINE OF IT_VBAK,
    WA_VBAP LIKE LINE OF IT_VBAP,
    SPLITTER TYPE REF TO CL_GUI_SPLITTER_CONTAINER,
    TOP_OF_PAGE_CONTAINER TYPE REF TO CL_GUI_CONTAINER,
    GRID_VBAP TYPE REF TO CL_GUI_ALV_GRID,
    TOP_PAGE TYPE REF TO CL_DD_DOCUMENT,
    FLAG(1).
    *"EVENT RECIEVER CLASS DEFINITION
    CLASS LCL_EVENT_RECIEVER DEFINITION DEFERRED.
    DATA: OBJ_EVENT TYPE REF TO LCL_EVENT_RECIEVER.
    SELECTION-SCREEN
    SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS: S_VBELN FOR VBAK-VBELN.
    PARAMETERS: P_VBTYP LIKE VBAK-VBTYP DEFAULT 'C'.
    SELECTION-SCREEN: END OF BLOCK B1.
    CLASS DEFINITION AND DECLARATIONS
    CLASS LCL_EVENT_RECIEVER DEFINITION.
    PUBLIC SECTION.
    EVENTS:DOUBLE_CLICK,
    TOP_OF_PAGE.
    METHODS:HANDLE_DOUBLE_CLICK FOR EVENT DOUBLE_CLICK OF CL_GUI_ALV_GRID
    IMPORTING E_ROW .
    METHODS: HANDLE_TOP_OF_PAGE FOR EVENT TOP_OF_PAGE OF CL_GUI_ALV_GRID.
    ENDCLASS. "LCL_EVENT_RECIEVER DEFINITION
    CLASS LCL_EVENT_RECIEVER IMPLEMENTATION
    CLASS LCL_EVENT_RECIEVER IMPLEMENTATION.
    METHOD: HANDLE_DOUBLE_CLICK.
    READ TABLE IT_VBAK INDEX E_ROW-INDEX INTO WA_VBAK.
    PERFORM FETCH_ITEM_DETAILS USING WA_VBAK.
    PERFORM ALV_GRID.
    ENDMETHOD. "HANDLE_DOUBLE_CLICK
    METHOD: HANDLE_TOP_OF_PAGE.
    CALL METHOD TOP_PAGE->ADD_TEXT
    EXPORTING
    TEXT = 'SALES HEADER & ITEM DETAILS'.
    CALL METHOD TOP_PAGE->DISPLAY_DOCUMENT
    EXPORTING
    PARENT = TOP_OF_PAGE_CONTAINER.
    ENDMETHOD. "HANDLER_TOP_OF_PAGE
    ENDCLASS. "LCL_EVENT_RECIEVER IMPLEMENTATION
    AT SELECTION-SCREEN
    AT SELECTION-SCREEN.
    IF S_VBELN IS NOT INITIAL.
    SELECT COUNT(*)
    FROM VBAK
    WHERE VBELN IN S_VBELN.
    IF SY-DBCNT = 0.
    MESSAGE E000 WITH 'NO TABLE ENTRIES FOUND FOR LOW KEY SPECIFIED'.
    ENDIF.
    ENDIF.
    START-OF-SELECTION.
    START-OF-SELECTION.
    PERFORM FETCH_SALES_HEADER_RECORD.
    PERFORM CREATE_CALL. "CREATION OF OBJECTS & CALLING METHODS
    END-OF-SELECTION.
    END-OF-SELECTION.
    *& Module STATUS_0100 OUTPUT
    text
    MODULE STATUS_0100 OUTPUT.
    SET PF-STATUS 'ZSTATUS'.
    SET TITLEBAR 'xxx'.
    ENDMODULE. " STATUS_0100 OUTPUT
    *& Form FETCH_SALES_HEADER_RECORD
    text
    --> p1 text
    <-- p2 text
    FORM FETCH_SALES_HEADER_RECORD .
    SELECT
    VBELN
    AUDAT
    VBTYP
    AUART
    AUGRU
    NETWR
    WAERK
    FROM VBAK
    INTO CORRESPONDING FIELDS OF TABLE IT_VBAK
    WHERE VBELN IN S_VBELN
    AND VBTYP = P_VBTYP.
    ENDFORM. " FETCH_SALES_HEADER_RECORD
    *& Form CREATE_CALL
    text
    --> p1 text
    <-- p2 text
    FORM CREATE_CALL .
    IF CUSTOM_CONTAINER IS INITIAL.
    CREATE OBJECT CUSTOM_CONTAINER
    EXPORTING
    PARENT =
    CONTAINER_NAME = 'CUSTOM_CONTAINER'
    STYLE =
    LIFETIME = lifetime_default
    REPID =
    DYNNR =
    NO_AUTODEF_PROGID_DYNNR =
    EXCEPTIONS
    CNTL_ERROR = 1
    CNTL_SYSTEM_ERROR = 2
    CREATE_ERROR = 3
    LIFETIME_ERROR = 4
    LIFETIME_DYNPRO_DYNPRO_LINK = 5
    OTHERS = 6
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CREATE OBJECT SPLITTER
    EXPORTING
    TOP = 5
    PARENT = CUSTOM_CONTAINER
    ROWS = 3
    COLUMNS = 1
    EXCEPTIONS
    CNTL_ERROR = 1
    CNTL_SYSTEM_ERROR = 2
    OTHERS = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL METHOD SPLITTER->GET_CONTAINER
    EXPORTING
    ROW = 1
    COLUMN = 1
    RECEIVING
    CONTAINER = TOP_OF_PAGE_CONTAINER.
    CALL METHOD SPLITTER->GET_CONTAINER
    EXPORTING
    ROW = 2
    COLUMN = 1
    RECEIVING
    CONTAINER = VBAK_CONTAINER.
    CALL METHOD SPLITTER->GET_CONTAINER
    EXPORTING
    ROW = 3
    COLUMN = 1
    RECEIVING
    CONTAINER = VBAP_CONTAINER.
    CREATE OBJECT GRID
    EXPORTING
    I_SHELLSTYLE = 0
    I_LIFETIME =
    I_PARENT = VBAK_CONTAINER
    I_APPL_EVENTS = space
    I_PARENTDBG =
    I_APPLOGPARENT =
    I_GRAPHICSPARENT =
    I_NAME =
    EXCEPTIONS
    ERROR_CNTL_CREATE = 1
    ERROR_CNTL_INIT = 2
    ERROR_CNTL_LINK = 3
    ERROR_DP_CREATE = 4
    OTHERS = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    GS_LAYOUT-GRID_TITLE = 'SALES HEADER DETAILS.'(100).
    CALL METHOD GRID->SET_TABLE_FOR_FIRST_DISPLAY
    EXPORTING
    I_BUFFER_ACTIVE =
    I_BYPASSING_BUFFER =
    I_CONSISTENCY_CHECK =
    I_STRUCTURE_NAME = 'ZVBAK_STRUC'
    IS_VARIANT =
    I_SAVE =
    I_DEFAULT = 'X'
    IS_LAYOUT = GS_LAYOUT
    IS_PRINT =
    IT_SPECIAL_GROUPS =
    IT_TOOLBAR_EXCLUDING =
    IT_HYPERLINK =
    IT_ALV_GRAPHICS =
    IT_EXCEPT_QINFO =
    CHANGING
    IT_OUTTAB = IT_VBAK
    IT_FIELDCATALOG =
    IT_SORT =
    IT_FILTER =
    EXCEPTIONS
    INVALID_PARAMETER_COMBINATION = 1
    PROGRAM_ERROR = 2
    TOO_MANY_LINES = 3
    OTHERS = 4
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDIF.
    CREATE OBJECT OBJ_EVENT .
    SET HANDLER OBJ_EVENT->HANDLE_DOUBLE_CLICK FOR GRID.
    SET HANDLER OBJ_EVENT->HANDLE_TOP_OF_PAGE FOR GRID.
    CREATE OBJECT TOP_PAGE
    EXPORTING
    STYLE = 'ALV_GRID'
    CALL METHOD TOP_PAGE->INITIALIZE_DOCUMENT.
    CALL METHOD GRID->LIST_PROCESSING_EVENTS
    EXPORTING
    I_EVENT_NAME = 'TOP_OF_PAGE'
    I_DYNDOC_ID = TOP_PAGE.
    CALL SCREEN 100.
    ENDFORM. " CREATE_CALL
    *& Module USER_COMMAND_0100 INPUT
    text
    MODULE USER_COMMAND_0100 INPUT.
    CASE SY-UCOMM.
    WHEN 'EXIT'.
    LEAVE PROGRAM.
    WHEN 'BACK'.
    LEAVE TO SCREEN 0.
    ENDCASE.
    ENDMODULE. " USER_COMMAND_0100 INPUT
    *& Form FETCH_ITEM_DETAILS
    text
    --> p1 text
    <-- p2 text
    FORM FETCH_ITEM_DETAILS USING WA_VBAK TYPE ZVBAK_STRUC .
    SELECT
    VBELN
    POSNR
    MATNR
    MATWA
    PMATN
    CHARG
    FROM VBAP
    INTO TABLE IT_VBAP
    WHERE VBELN = WA_VBAK-VBELN.
    IF SY-SUBRC <> 0.
    MESSAGE E000 WITH 'NO RECORDS FOUND FOR SPECIFIED KEY'.
    ENDIF.
    ENDFORM. " FETCH_ITEM_DETAILS
    *& Module STATUS_0200 OUTPUT
    text
    MODULE STATUS_0200 OUTPUT.
    SET PF-STATUS 'ZSTATUS'.
    SET TITLEBAR 'xxx'.
    ENDMODULE. " STATUS_0200 OUTPUT
    *& Module USER_COMMAND_0200 INPUT
    text
    MODULE USER_COMMAND_0200 INPUT.
    CASE SY-UCOMM.
    WHEN 'EXIT'.
    LEAVE PROGRAM.
    WHEN 'BACK'.
    LEAVE TO SCREEN 0.
    ENDCASE.
    ENDMODULE. " USER_COMMAND_0200 INPUT
    *& Form alv_grid
    text
    --> p1 text
    <-- p2 text
    FORM ALV_GRID .
    IF FLAG = ''.
    FLAG = 'X'.
    CREATE OBJECT GRID_VBAP
    EXPORTING
    I_SHELLSTYLE = 0
    I_LIFETIME =
    I_PARENT = VBAP_CONTAINER
    I_APPL_EVENTS = space
    I_PARENTDBG =
    I_APPLOGPARENT =
    I_GRAPHICSPARENT =
    I_NAME =
    EXCEPTIONS
    ERROR_CNTL_CREATE = 1
    ERROR_CNTL_INIT = 2
    ERROR_CNTL_LINK = 3
    ERROR_DP_CREATE = 4
    others = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDIF.
    GS1_LAYOUT-GRID_TITLE = 'SALES ITEM DETAILS.'(100).
    CALL METHOD GRID_VBAP->SET_TABLE_FOR_FIRST_DISPLAY
    EXPORTING
    I_BUFFER_ACTIVE =
    I_BYPASSING_BUFFER =
    I_CONSISTENCY_CHECK =
    I_STRUCTURE_NAME = 'ZVBAP_STRUC'
    IS_VARIANT =
    I_SAVE =
    I_DEFAULT = 'X'
    IS_LAYOUT = GS1_LAYOUT
    IS_PRINT =
    IT_SPECIAL_GROUPS =
    IT_TOOLBAR_EXCLUDING =
    IT_HYPERLINK =
    IT_ALV_GRAPHICS =
    IT_EXCEPT_QINFO =
    CHANGING
    IT_OUTTAB = IT_VBAP
    IT_FIELDCATALOG =
    IT_SORT =
    IT_FILTER =
    EXCEPTIONS
    INVALID_PARAMETER_COMBINATION = 1
    PROGRAM_ERROR = 2
    TOO_MANY_LINES = 3
    OTHERS = 4
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM. " alv_grid
    Thansk & regards
    Sreenivasulu P

  • How to capture changed data at ALV screen

    Hi ALV Experts,
    I am using Following method for ALV display :-
      CALL METHOD g_alv_grid_0200->set_table_for_first_display
        EXPORTING
          i_bypassing_buffer            = 'X'
          is_layout                          =
          it_toolbar_excluding          =
        CHANGING
          it_outtab                          =
          it_fieldcatalog                   =
      CALL METHOD g_alv_grid_0200->set_ready_for_input
        EXPORTING
          i_ready_for_input = '1'.
    Now I am changing few values in ALV screen and capturing through following Method :-
      CALL METHOD g_alv_grid_0200->check_changed_data
        IMPORTING
          e_valid = l_valid.
    THIS ABOVE METHOD STRANGELY CAPTURES CHANGES IN QUANTITY AND DATE FIELDS ONLY AND NOT IN CHARATER FIELDS.
    Can somebody suggest how to capture changes of character fields also.
    Thanks in Advance,
    Chandan

    Hi,
    Check whether the following logic helps.
    p_er_data_changed TYPE REF TO cl_alv_changed_data_protocol.
    DATA :
        lwa_mod_cell TYPE lvc_s_modi,
        lwa_mod      TYPE ty_mod.
    LOOP AT p_er_data_changed->mt_good_cells INTO lwa_mod_cell.
        lwa_mod-row  = lwa_mod_cell-row_id.
        APPEND lwa_mod TO i_mod.
    ENDLOOP.
    Regards,
    Lohitha

  • FBV0 transaction error messages in ALV screen

    hi all,
    In transaction FBV0 the error messages are coming in a completely seperate page. Even the success message with document number that used to come up at bottom of screen or Information box is also coming on the next ALV screen. How can I get rid of showing a complete new ALV screen with messages. It has happened after ECC6 upgrade.
    Thanks,
    FS

    Hello,
    See if this is coming for a single user or all the users.
    If this is for a single user you can see FB00 to check user settings.
    If this is happening with all the users, contact your basis administrator.
    Regards,
    Ravi

  • Restrict Height of Header in ALV screen

    Hi,
    I have created ALV Tree using custom container. Now i want to rstrict the Height of the top of page as top of page containes too many rows hence in the whole report only the Header is displayed.
    Can you tell me the method for to rstrict the Height of Header on Tree ALV screen.
    CREATE OBJECT l_custom_container
          EXPORTING
                container_name = l_tree_container_name
          EXCEPTIONS
                cntl_error                  = 1
                cntl_system_error           = 2
                create_error                = 3
                lifetime_error              = 4
                lifetime_dynpro_dynpro_link = 5.
        IF sy-subrc <> 0.
          MESSAGE e003 WITH 'ERROR'.                            "#EC NOTEXT
        ENDIF.
      ENDIF.
    create tree control
      CREATE OBJECT obj_tree1
        EXPORTING
            parent              = l_custom_container
            node_selection_mode = cl_gui_column_tree=>node_sel_mode_single
            item_selection      = 'X'
            no_html_header      = ''
            no_toolbar          = ''
        EXCEPTIONS
            cntl_error                   = 1
            cntl_system_error            = 2
            create_error                 = 3
            lifetime_error               = 4
            illegal_node_selection_mode  = 5
            failed                       = 6
            illegal_column_name          = 7.
      IF sy-subrc <> 0.
        MESSAGE e003 WITH 'ERROR'.                              "#EC NOTEXT
      ENDIF.
    create Hierarchy-header
      DATA l_hierarchy_header TYPE treev_hhdr.
      PERFORM ztest_buildhhead CHANGING l_hierarchy_header.
    create info-table for html-header
      DATA: lt_list_commentary TYPE slis_t_listheader.
      PERFORM f7800_build_comment CHANGING
                     lt_list_commentary.
    repid for saving variants
      DATA: ls_variant TYPE disvariant.
      ls_variant-report = sy-repid.
    create emty tree-control
      CALL METHOD obj_tree1->set_table_for_first_display
        EXPORTING
          is_hierarchy_header = l_hierarchy_header
          it_list_commentary  = lt_list_commentary
          i_background_id     = 'ALV_BACKGROUND'
          i_save              = 'A'
          is_variant          = ls_variant
        CHANGING
          it_outtab           = i_final2
          it_fieldcatalog     = i_fieldcat.      "table must be empty !!
    *&      Form  f7800_build_comment
          text
         <--P_LIT_LIST_COMMENTARY  text
    FORM f7800_build_comment  CHANGING  pt_list_commentary TYPE slis_t_listheader.
      DATA: lt_line  TYPE slis_listheader,
            lwa_date TYPE t_date .
      CLEAR lt_line.
    Heading
      lt_line-typ  = c_h.
      lt_line-info = 'Cash Position Report'(024).
      APPEND lt_line TO pt_list_commentary.
    Current Date
      CLEAR lt_line.
      lt_line-typ  = c_s.
      lt_line-key  = 'Date:'(022).
      lwa_date     =   sy-datum .
      CONCATENATE lwa_date-month '/' lwa_date-date '/' lwa_date-year
                                    INTO lt_line-info .
      CLEAR lwa_date .
      APPEND lt_line TO pt_list_commentary.
    Current Time
      lt_line-key  = 'Time:'(023).
      lt_line-info = sy-timlo.
      APPEND lt_line TO pt_list_commentary.
    Forest City Name
      CLEAR lt_line.
      lt_line-typ  = c_a.
      lt_line-info = 'Forest City'(021).
      APPEND lt_line TO pt_list_commentary.
    Selection Parameters
      CLEAR lt_line.
      lt_line-typ  = c_s.
      lt_line-key  = 'For Selection :'(010).
      APPEND lt_line TO pt_list_commentary.
      LOOP AT s_bukrs .
        CLEAR lt_line.
        lt_line-typ  = c_s.
        lt_line-key  = 'Facilitator Company Code :'(001).
        IF NOT s_bukrs-high IS INITIAL .
          CONCATENATE s_bukrs-low ' TO '  s_bukrs-high
                                    INTO lt_line-info
                                    SEPARATED BY space      .
        ELSE .
          lt_line-info = s_bukrs-low.
        ENDIF .
        APPEND lt_line TO pt_list_commentary.
      ENDLOOP .
      CLEAR lt_line.
      lt_line-typ  = c_s.
      lt_line-key  = 'Run Date :'(013).
      lwa_date = p_zfbdt .
      CONCATENATE lwa_date-month '/' lwa_date-date '/' lwa_date-year
                                    INTO lt_line-info .
      APPEND lt_line TO pt_list_commentary.
      LOOP AT s_prctr .
        CLEAR lt_line.
        lt_line-typ  = c_s.
        lt_line-key  = 'Profit Center :'(014).
        IF NOT s_prctr-high IS INITIAL .
          CONCATENATE s_prctr-low ' TO '  s_prctr-high
                                    INTO lt_line-info
                                    SEPARATED BY space .
        ELSE .
          lt_line-info = s_prctr-low .
        ENDIF.
        APPEND lt_line TO pt_list_commentary.
      ENDLOOP .
    ENDFORM.                    " f7800_build_comment
    Regards,
    Deepthi.

    Hi ,
    no_html_header      = 'X'
    Use this option to hide html header. Than use cl_gui_splitter to split screen into 2 parts.
    For the upper part of the screen , use cl_dd_document class to add your necessary top of page content. The other one contains alv tree.
    Set the height of splitter by thids method ;
    call method splitter->set_row_height
        exporting
          id     = 1
          height = 13.

  • How we can select two records in alv report

    how we can select two records in alv report

    Hello,
    You can use the method <b>get_selected_rows</b>.
         CALL METHOD gv_alv->get_selected_rows
            IMPORTING
          ET_INDEX_ROWS =
            et_row_no     = lt_selected_rows.
    READ TABLE lt_selected_rows INTO ls_selected_row INDEX 1 .
    The table <b>lt_selected_rows</b> will contain all the selected rows.
    Regards,
    Beejal
    **reward if this helps

  • How to 'Exit' OO ALV screen type 'Model Dialog Box' using 'X' on the top?

    HI Experts,
    I have the below issue in my OO ALV screen type 'Model Dialog Box'...
    The main screen is OO ALV and displays rows of data,
    When select a line(row) and push any buttons
    ( u201CAdd Materialu201D, u201CAdd Binu201D, u201CModify Binu201D, u201CMove Materialu201D, u201CDisplay Batchesu201D)
    the program will take you to next screen and it is a u201CModal dialog boxu201D type.
    That screen has two buttons to exit ( u201CSAVEu201D and u201CCancelu201D ) on the bottom of the screen.
    User would like to exit the screen using u201CXu201D on the top line right corner.
    That u201CXu201D is not on for the u201CModal dialog boxu201D type screen.
    How do I add event to close that screen using u201CXu201D?
    Thanks in advance,
    John.

    data :GR_EVENT_HANDLER    TYPE REF TO LCL_EVENT_HANDLER,
           GR_DIALOG_CONTAINER TYPE REF TO CL_GUI_DIALOGBOX_CONTAINER,
    CLASS LCL_EVENT_HANDLER DEFINITION.
      PUBLIC SECTION.
        METHODS :
        HANDLE_USER_COMMAND FOR EVENT USER_COMMAND OF CL_GUI_ALV_GRID
        IMPORTING E_UCOMM,
        HANDLE_ON_DIALOGBOX_CLOSE FOR EVENT CLOSE OF CL_GUI_DIALOGBOX_CONTAINER
        IMPORTING SENDER,
    ENDCLASS.                    "lcl_event_handler DEFINITION
    CLASS LCL_EVENT_HANDLER IMPLEMENTATION.
    METHOD HANDLE_USER_COMMAND.
      CASE E_UCOMM.
         WHEN 'DBCON'.
            PERFORM DIALOG_DISPLAY.
      ENDCASE.
      ENDMETHOD.                    "HANDLE_USER_COMMAND
      METHOD HANDLE_ON_DIALOGBOX_CLOSE.
        IF NOT SENDER IS INITIAL.
          CALL METHOD SENDER->FREE
            EXCEPTIONS
              OTHERS = 1.
          FREE GR_DIALOG_CONTAINER.
          CLEAR GR_DIALOG_CONTAINER.
        ENDIF.
      ENDMETHOD.                    "handle_on_dialogbox_close
    ENDCLASS.                    "lcl_event_handler IMPLEMENTATION
    FORM DIALOG_DISPLAY .
      DATA : L_TEXT(255),
                  L_LIN TYPE I.
      IF GR_DIALOG_CONTAINER IS INITIAL.
        CREATE OBJECT GR_DIALOG_CONTAINER
          EXPORTING
          PARENT                      =
            WIDTH                       = 400
            HEIGHT                      = 150
            STYLE                       = CL_GUI_CONTROL=>WS_SYSMENU
          REPID                       =
          dynnr                       = '100'
          LIFETIME                    = lifetime_default
            TOP                         = 100
            LEFT                        = 350
            CAPTION                     = 'Error Dialog Box'
          EXCEPTIONS
            CNTL_ERROR                  = 1
            CNTL_SYSTEM_ERROR           = 2
            CREATE_ERROR                = 3
            LIFETIME_ERROR              = 4
            LIFETIME_DYNPRO_DYNPRO_LINK = 5
            EVENT_ALREADY_REGISTERED    = 6
            ERROR_REGIST_EVENT          = 7
            OTHERS                      = 8.
      ENDIF.
      SET HANDLER GR_EVENT_HANDLER->HANDLE_ON_DIALOGBOX_CLOSE FOR GR_DIALOG_CONTAINER.
      REFRESH IG_INDEX_ROWS.
      CLEAR   WG_SELECTED_ROW.
      CALL METHOD GR_ALVGRID->GET_SELECTED_ROWS
        IMPORTING
          ET_INDEX_ROWS = IG_INDEX_ROWS.
      DESCRIBE TABLE IG_INDEX_ROWS LINES L_LIN.
      IF L_LIN GT 0.
        READ TABLE IG_INDEX_ROWS INTO WG_SELECTED_ROW INDEX 1.
        READ TABLE IG_SAL INTO WG_SAL INDEX WG_SELECTED_ROW-INDEX.
        CONCATENATE 'Item' WG_SAL-POSNR 'of Sales Order' WG_SAL-VBELN 'has been selected' INTO L_TEXT
                  SEPARATED BY SPACE.
      ELSE.
        L_TEXT = 'Enter Netvalue greater than 500'.
      ENDIF.
      CALL METHOD GR_HTMLD->ADD_GAP
        EXPORTING
          WIDTH = 1.
      CALL METHOD GR_HTMLD->ADD_TEXT
        EXPORTING
          TEXT = L_TEXT.
      CALL METHOD GR_HTMLD->NEW_LINE.
    Display the data
      CALL METHOD GR_HTMLD->DISPLAY_DOCUMENT
        EXPORTING
          PARENT = GR_DIALOG_CONTAINER.
    ENDFORM.                    " DIALOG_DISPLAY

  • How to Increase Line space between two lines in ALV Grid

    hi,
    I want to increase the line space between any two lines in ALV GRID. Can anybody has solution for this issue.
    Regards,
    Madan

    Hi Madan
    It's not possible
    Regards
    Gregory

  • Merging Two Columns in ALV

    Hi Experts,
    I have a requirement, and I need to merge the the two columns in ALV. How can I do this?
    Points will be rewarded for helpful answers.
    Thanks in advance...

    Hi Salem
    Check this sample code
    LOOP AT itab.
    CONCATENATE itab-amount itab-currency INTO itab-combined.
    MODIFY itab.
    ENDLOOP.
    You will probably need to embellish just that concat command as all fields will be treated as TYPE C.
    Then inhibit the display of the original fields ‘amount’ and ‘currency’ by setting NO_OUT=’X in the fieldcat loop (or other method).
    There may be a FM to merge/format amounts and currency but I couldn’t find one on quick search.
    The option 'USING EDIT MASK' from WRITE command is also available in ALV structure IT_FIELDCAT.
    I have only used it in write and for simple stuff, but it may have some options for you.
    Check '==conv' for output conversion routine...
    Reward all helpfull answers
    Regards
    Pavan

  • Navigate to ALV screen

    Plz tell me from where to navigate to an ALV screen

    Hi,
    U can Navigate to ALV screen in Event <b>START_OF_SELECTION</b>.
    After Collecting the data which u intended to display For ALV Screen.
    Regards,
    Ranjit Thakur.
    <b>Please Mark The Helpful Answer.</b>

  • How to do choose one record in alv screen from dyn_table ?

    Experts:  How to do choose one record in alv screen from <dyn_table> ?
    FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
    RS_SELFIELD TYPE SLIS_SELFIELD.
    DATA: V_COUNT TYPE I.
    CLEAR: V_COUNT,<dyn_wa>.
    LOOP AT <dyn_table> INTO <dyn_wa>. "WHERE <?????> = 'X'.  I should how to do write ?
            V_COUNT = V_COUNT + 1.
    ENDLOOP.
      if not rs_selfield-tabindex eq 0 AND V_COUNT NE 0.
        IF R_UCOMM = '&CHANGE'.
          IF sy-subrc = 0.
            IF V_COUNT = 1.
              CALL SCREEN 100.
              perform dny_field_value_update.
              rs_selfield-refresh = 'X'.
            ENDIF.
          ENDIF.
        endif.
      endif.
    ENDFORM. "USER_COMMAND

    Anyways which version of SAP are you using ? As of SAPNW 7.0 Release 2 you can specify dynamic tokens with LOOP ... WHERE statement.
    My sap product is ecc5.0. Still thanks!
    Now I have solved it.
    FORM USER_COMMAND  USING R_UCOMM LIKE SY-UCOMM
                             RS_SELFIELD TYPE SLIS_SELFIELD.
      DATA: V_COUNT TYPE I.
      CLEAR:  V_COUNT,<dyn_wa>,IT_TOTAL.
      SY-INDEX = rs_selfield-tabindex.   
    READ TABLE <dyn_table> INTO <dyn_wa> INDEX SY-INDEX.
    ASSIGN COMPONENT 'KUNNR' OF STRUCTURE <DYN_WA> TO <dyn_field>.
      CONDENSE <DYN_FIELD> NO-GAPS.
      IT_TOTAL-KUNNR = <DYN_FIELD>.
      ASSIGN COMPONENT 'PLANTNO' OF STRUCTURE <DYN_WA> TO <dyn_field>.
      CONDENSE <DYN_FIELD> NO-GAPS.
      IT_TOTAL-MATNR = <DYN_FIELD>.
      ASSIGN COMPONENT 'CUSTOMERNO' OF STRUCTURE <DYN_WA> TO <dyn_field>.
       CONDENSE <DYN_FIELD> NO-GAPS.
      IT_TOTAL-CUSTOMERNO = <DYN_FIELD>.
      ASSIGN COMPONENT 'ZPERSON' OF STRUCTURE <DYN_WA> TO <dyn_field>.
      CONDENSE <DYN_FIELD> NO-GAPS.
      IT_TOTAL-ZPERSON = <DYN_FIELD>.
      IF SY-SUBRC = 0.
        "CHECK  <dyn_field> = 'X'.
        V_COUNT = V_COUNT + 1.
      ENDIF.
      if not rs_selfield-tabindex eq 0 AND V_COUNT NE 0.
        IF R_UCOMM = '&CHANGE'.
          IF sy-subrc = 0.
            IF V_COUNT = 1.
              CALL SCREEN 100.
              perform dny_field_value_update.
              rs_selfield-refresh = 'X'.
              "exit.
            ENDIF.
          ENDIF.
        endif.
      endif.
    Edited by: andy1982999 on Apr 2, 2010 8:42 AM

  • How to write code for page up and page down buttons on alv screen?

    Hi,
    Page up and page down buttons are not working in general alv report. Thease buttons are in disable mode. But is stnd. transactions (tcode : fbl5n)  these are enabled and working properly, but we can't debug this with /h
    How to write code for page up and page down buttons on alv screen?

    Poonam,
    On doing the screen debugging it took me over to    Include LSTXWFCC ,kindly check the below code.
    module cc_display.
      fcode = sy-ucomm(4).
      case sy-ucomm(4).
        when 'P--'.
          perform cc_firstpage.
        when 'P-'.
          perform cc_prevpage.
        when 'P+'.
          perform cc_nextpage.
        when 'P++'.
          perform cc_lastpage.
        when 'EX--'.
          perform cc_firstcopy.
        when 'EX-'.
          perform cc_prevcopy.
        when 'EX+'.
          perform cc_nextcopy.
        when 'EX++'.
          perform cc_lastcopy.
    I guess it can give you some lead.
    K.Kiran.

  • After iOS 5 update two thirds of the screen is black

    A few hours after my iOS 5 update two thirds of the screen is wiped out (black). The touch gestures work fine on all the screen, I just cant see two thirds of it.  Picture of the screen attached:
    Has anyone seen this before?
    I restored the iPad to its defaults but this did not resolve the problem.
    Many thanks!

    Does it stay black in the same area whichever way up you hold the iPad ? Have you tried a reset ? Press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot. But you may need to contact Apple

Maybe you are looking for

  • Cannot create recovery disk after update to Win 8.1 on G580

    Friends I have a Lenovo G580 that came with Win 8.0 preinstalled. I upgraded it to Win 8.1 over the Internet. When I try to run the "Create recovery disk" I get the error that states that "We cannot create a recovery drive for this PC. Some required

  • How do I install a second Java instance in a Distributed Installation?

    Hello all, I've just completed the Distributed Installation of a WAS Java stack.  The Central Services and Database are running on one box and the Central Instance (01) is running on antoher box. I want to add a second instance (02) on another physic

  • Adding material to an iWeb page after it is published

    I have published a very simple two page web page on dotmac. There is a very short introduction and then about 15 photos. (Actually, the topic is about a 100th birthday) (The terminology of the web is confusing here: one web page can contain many page

  • Error while trying to delete the universe from CMS

    Dear All, I am getting "Unable to reconnect to the CMS XXXXXXXXX. The session has been logged off or has expired" error while trying to delete any universe from the CMS. I tried restarting tomcat but it didnt work. I am unable to delete any universe

  • Xcode on OSX server

    I want to run xcode on one of my network accounts that is linked to OSX server.  When I ran a project on the network account it would not run the iphone simulator.   Not sure if this is a permissions issue. What is the best solution for this? Regards