Oo abap Display ALV with all selected lines

I will have to display an ALV report but all the records have to be selected while displaying.
I have to do this using OO ABAP only.
Thanks
Kiran

Solved on my own

Similar Messages

  • Display alv grids in selection screen based on the user event

    Hi All,
    I am workign on displaying ALV in same selection screen.I am able to display the ALV in selection screen.
    But i have 2 buttons in my selection screen 'Create' and 'change'.
    When i click on create i need  with some type of data and when i click on 'change' my alv grid another type of data.Ex: if i click on crate mara data should be dispalyed when i click on change makt table data should be dispalyed and also i have user defined buttons are in my grids.
    So i have used 2 containers to dispaly to different data.I am able to display the perfectly but the problem is first time when i click on create the grid is displaying when i click on change button  the create alv grid is displaying down and change data is dispalying up.
    I need only one alv grid at a time.Can anybody please let me know how can i do this.
    Thanks,
    Taragini

    Hello,
    Also I would suggest if it is relevant data maintain in one interntal table and show/hide based on condition
    through fieldcatalog (NO_OUT) parameter.
    Thanks

  • Why does my scanned docs. come out with all colored lines on it after going thru the top feed try?

    why does my scanned docs. come out with all colored lines on it after going thru the top feed try?

    hi there,
    could you provide the community with a little more information to help narrow troubleshooting? Things like your printer model and your operating system help out a lot.
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

  • PO print-preview  for a PO with all  deleted line items

    Hello MM Gurus,
    I am not able to print preview of a PO for which i deleted all the line items. It gives me a message saying that no print relevant changes.
    Client need to print such POs. Client expects a text like "item cancelled " for deleted PO items.
    My understanding is that its standard SAP pre delivered customising however it is not working.
    Pls suggest.
    Regards,
    Pankaj

    Ask your ABAPer to modify the smart form, deleted materials wouldn't come for obvious reasons in standard system ... you need to get in customized/ developed.

  • WD ALV with mandatory selection mode (1..n or 1..1)

    Hi there,
    I tried to integrate an ALV table in my WD component. The problem here is, that I chose the selection 1..1 in my data supplying context node. Now I can't start my application anymore without the following error:
    Number of Elements of Selection of VIEW_TABLE.1.DATA Violates Cardinality
    What do I need to set as ALV property to solv the problem?
    Kind regards,
    Albert

    i just want you to check the importance of this
    IF_WD_CONTEXT_NODE~SET_CHANGED_BY_CLIENT - set as true so that what ever changes you make to standard ones through coding are implemented...first donot set this parameter and test the things...if still things doesnot work out then use this parameter...Please go through the documentation before you really use this parameter.
    in ALV - you have you use if_salv_wd-table_settings~set_selection_state - > as MULTI..but if this placed you selection should be 0-n or 1-n...otherwise it may go for a dump...i guess there should be some workaround...for this..
    may be we have to debug to get the things done....
    Lukas -
    If IF_WD_CONTEXT_NODE_INFO~IS_MULTIPLE_SELECTION would be set to ABAP_TRUE... - > This will not set the value that retuns the value...
    Edited by: Lekha on Dec 29, 2011 1:38 PM

  • Run Abap in bachground with ignor Selection.

    Hi,
    is it possible to run an Report wich has an input-parameter in batch
    with ignoring the selection-screen?
    Short example:
    parameters: p_matnr like mara-matnr.
    data: matnr liek mara-matnr.
    If sy-batch = 'X' the selection-screen shell be ignored!!
    if sy-batch = 'X'.
    get parameter id field matnr.
    else.
    matnr = p_matnr.
    endif.
    write: / matnr.
    Thanks for help.
    Regards, Dieter

    thanks for answers.
    When the Programm is starting online,
    the selection are coming.
    when automatic starting from printing
    production order the selection screen
    doen't appear.
    the different handling i check via
    sy-tcode.
    regards, Dieter

  • Best way to to display tables with a select drop down

    I have created many SQL query report portlets, but I need a way for the users to select a specific acct nbr in a drop down list and then update a table on the same page. What is the best way to do this? I had created a Frame Driver, but I can not find a way to publish it to a page. Any ideas would be great, thanks.

    Hi,
    You can use a form based on table to do this. Build the form and publish it on the same page. The form can have a combination of various form items like textbox, textarea and drop down list etc. The form allows to query on the table and update the table.
    Thanks,
    Sharmila

  • HT201285 Why does Apple not give more info on spotlight search? Set up your system with all selections disabled and text two or three messages. Then go ahead and check messages and go to spotlight search and type any letter that begins a word. Messages ar

    Why can't spotlight search be deleted or cleared? Why so secretive? The problem is that this is a huge business security risk.
    Fix it Apple!!!

    SteweyRoux wrote:
    Why can't spotlight search be deleted or cleared? Why so secretive? The problem is that this is a huge business security risk.
    Fix it Apple!!!
    1) If you have sensitive business information on your phone, put a passcode on it.
    2) Apple doesn't participate here. If you want to give them feedback, here's the link:
    http://www.apple.com/feedback
    Best of luck.

  • Flush displayed ALV and display normal posting messages on same screen

    Hi,
    I have a requirement wherein i have displayed ALV with execute button on same screen with FI data displayed in ALV.
    Now when user select one particular row and excute it , the requirement is to flush that ALV displayed and display normal
    message such as POSTING DONE
    How can i achieve it ? I am using REUSE_ALV_LIST

    What do you mean by "Now when user select one particular row and excute it "???
    Meaning you do some event like double clicking on that particular row or after selecting it, you will trigger some button?
    For 1st condition, make sure you've created an ALV event.
    If 2nd one, either you create/modify the ALV toolbar.
    Then you can do a simple call screen to exit from that ALV. Or a simple pop up message.

  • Alv with row headings

    Hi,
            Can any one send sample code for the follwing requirement.
    I wnat to display alv with column and also row headings.
    Ex:
             date1      date2       date3
    orderno  01/01/2006 01/02/2006  01/03/2006
    quantity  100         200        300
    Thanks in advance.
    Kiran.

    Hi Kiran,
           First get the Final or Output Internal Table as
    Date     Orderno    Qty
           then Convert it into
    Date
    Orderno
    Qty
           You'll get what you have asked for.
    Cheers,
    Prashanth

  • Does the 24 inch display come with everything?

    I am going to be getting a new macbook pro soon, and I was wondering if the new 24 inch display comes with all of the cables needed to hook it up to the laptop, or do i have to by them separately?

    Yes it does. It has one cable out of the back of the display which splits into 3 at the other end (USB, DisplayPort and Power). It's sweet.

  • ADD A line in alv with values

    Hi Experts,
    When clicking the button 'append row', I want to add a line filled with some values in selection screen.
    I work with OO.
    need help please.
    Mohamed

    Hello Mohamed
    The logic is the same as before. Search for $MODFIED to detect the changes in the sample report.
    However, I do not think that these requirements make any sense because if you re-implement the Copy function you obviously have to re-implement the Paste function (and perhaps Undo function as well), too.
    So basically you reinvent the wheel again.
    *& Report  ZUS_SDN_ALV_GRID_EDITABLE
    *& Thread: ADD A line in alv with values
    *& <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="974654"></a>
    REPORT  zus_sdn_alv_grid_editable_1x.
    TYPE-POOLS: abap.
    DATA:
      gd_okcode        TYPE ui_func,
      gd_repid         TYPE syst-repid,
      gif_adapter      TYPE REF TO if_salv_adapter,
      go_docking       TYPE REF TO cl_gui_docking_container,
      go_grid1         TYPE REF TO cl_gui_alv_grid,
      gt_fcat          TYPE lvc_t_fcat,
      gs_layout        TYPE lvc_s_layo.
    DATA:
      gt_outtab        TYPE STANDARD TABLE OF knb1.
    *       CLASS lcl_eventhandler DEFINITION
    CLASS lcl_eventhandler DEFINITION.
      PUBLIC SECTION.
        CLASS-DATA:
          md_function    TYPE ui_func   READ-ONLY,
          ms_row         TYPE lvc_s_row READ-ONLY,
          ms_outtab      LIKE LINE OF gt_outtab.  "$MODIFIED
        CLASS-METHODS:
          handle_double_click FOR EVENT double_click OF cl_gui_alv_grid
            IMPORTING
              e_row
              e_column
              es_row_no
              sender,
           handle_toolbar FOR EVENT toolbar OF cl_gui_alv_grid
             IMPORTING
               e_object
               sender,
           handle_user_command FOR EVENT user_command OF cl_gui_alv_grid
             IMPORTING
               e_ucomm
               sender,
           handle_data_changed FOR EVENT data_changed OF cl_gui_alv_grid
             IMPORTING
              er_data_changed
              e_onf4
              e_onf4_before
              e_onf4_after
              e_ucomm
              sender.
    ENDCLASS.                    "lcl_eventhandler DEFINITION
    *       CLASS lcl_eventhandler IMPLEMENTATION
    CLASS lcl_eventhandler IMPLEMENTATION.
      METHOD handle_double_click.
      ENDMETHOD.                    "handle_double_click
      METHOD handle_toolbar.
        " define local data
        DATA: ls_button   TYPE stb_button.
        " Redefine toolbar button functions in order to be able to
        " handle them in event USER_COMMAND (standard toolbar functions
        " do NOT raise event USER_COMMAND !!!)
        LOOP AT e_object->mt_toolbar INTO ls_button.
          CASE ls_button-function.
            WHEN cl_gui_alv_grid=>mc_fc_loc_append_row.
              ls_button-function = 'APPEND_ROW'.
            WHEN cl_gui_alv_grid=>mc_fc_loc_insert_row.
              ls_button-function = 'INSERT_ROW'.
            WHEN cl_gui_alv_grid=>mc_fc_loc_copy.  "$MODIFIED
              ls_button-function = 'COPY'.
            WHEN OTHERS.
              CONTINUE.
          ENDCASE.
          MODIFY e_object->mt_toolbar FROM ls_button INDEX syst-tabix.
        ENDLOOP.
      ENDMETHOD.                    "handle_toolbar
      METHOD handle_user_command.
        " Get current row for function 'Insert Row'
        CALL METHOD sender->get_current_cell
          IMPORTING
    *        e_row     =
    *        e_value   =
    *        e_col     =
            es_row_id = ms_row
    *        es_col_id =
    *        es_row_no =
        " Store redefined function code
        md_function = e_ucomm.
        CASE e_ucomm.
          WHEN 'APPEND_ROW'  OR
               'INSERT_ROW'.
            " Just trigger PAI
            CALL METHOD cl_gui_cfw=>set_new_ok_code
              EXPORTING
                new_code = 'NEW_ROW'
    *          IMPORTING
    *            rc       =
          WHEN 'COPY'.  "$MODIFIED
            READ TABLE gt_outtab INTO ms_outtab INDEX ms_row-index.
          WHEN OTHERS.
        ENDCASE.
      ENDMETHOD.                    "handle_user_command
      METHOD handle_data_changed.
    *   define local data
        DATA: ls_outtab        LIKE LINE OF gt_outtab,
              ls_good          TYPE lvc_s_modi.
        BREAK-POINT.
        LOOP AT er_data_changed->mt_good_cells INTO ls_good
                WHERE ( fieldname = 'ERDAT' ).
    **      CALL METHOD er_data_changed->get_cell_value
    **        EXPORTING
    **          i_row_id    = ls_good-row_id
    **          i_fieldname = ls_good-fieldname
    **        IMPORTING
    **          e_value     = ls_outtab-erdat.
          ls_outtab-erdat = ls_good-value.
          IF ( ls_outtab-erdat < '20070101' ).
            CALL METHOD er_data_changed->add_protocol_entry
              EXPORTING
                i_msgid     = '00'
                i_msgty     = 'E'
                i_msgno     = '398'
                i_msgv1     = 'Date must be >= 01.01.2007'
    *          i_msgv2     =
    *          i_msgv3     =
    *          i_msgv4     =
                i_fieldname = ls_good-fieldname
                i_row_id    = ls_good-row_id
                i_tabix     = ls_good-tabix.
          ENDIF.
        ENDLOOP.
        er_data_changed->display_protocol( ).
        " Not really required (only for validations)
      ENDMETHOD.                    "handle_data_changed
    ENDCLASS.                    "lcl_eventhandler IMPLEMENTATION
    START-OF-SELECTION.
      SELECT * FROM  knb1 INTO TABLE gt_outtab UP TO 10 ROWS.
      PERFORM init_controls.
    * Link the docking container to the target dynpro
      gd_repid = syst-repid.
      CALL METHOD go_docking->link
        EXPORTING
          repid                       = gd_repid
          dynnr                       = '0100'
    *      CONTAINER                   =
        EXCEPTIONS
          OTHERS                      = 4.
      IF sy-subrc NE 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * NOTE: dynpro does not contain any elements
      CALL SCREEN '0100'.
    * Flow logic of dynpro (does not contain any dynpro elements):
    *PROCESS BEFORE OUTPUT.
    *  MODULE STATUS_0100.
    *PROCESS AFTER INPUT.
    *  MODULE USER_COMMAND_0100.
    END-OF-SELECTION.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'STATUS_0100'.  " contains push button "DETAIL"
    *  SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
      CASE gd_okcode.
        WHEN 'BACK'  OR
             'EXIT'  OR
             'CANC'.
          SET SCREEN 0. LEAVE SCREEN.
        WHEN 'NEW_ROW'.
          PERFORM add_new_row.
        WHEN OTHERS.
      ENDCASE.
      CLEAR: gd_okcode.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Form  ADD_NEW_ROW
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM add_new_row .
    * define local data
      DATA: ls_outtab   LIKE LINE OF gt_outtab,
            ls_stable   TYPE lvc_s_stbl,
            ld_idx      TYPE i.
      ls_outtab-bukrs = '1000'.
      ls_outtab-ernam = syst-uname.
      CASE lcl_eventhandler=>md_function.
        WHEN 'APPEND_ROW'.
          APPEND ls_outtab TO gt_outtab.
        WHEN 'INSERT_ROW'.
          ld_idx = lcl_eventhandler=>ms_row-index + 1.
          INSERT ls_outtab INTO gt_outtab INDEX ld_idx.
        WHEN OTHERS.
      ENDCASE.
      " Refresh ALV list display
      ls_stable-row = abap_true.
      ls_stable-col = abap_true.
      CALL METHOD go_grid1->refresh_table_display
         EXPORTING
           is_stable      = ls_stable
    *      i_soft_refresh =
         EXCEPTIONS
           finished       = 1
           OTHERS         = 2.
      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.                    " ADD_NEW_ROW
    *&      Form  INIT_CONTROLS
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM init_controls .
    * Create docking container
      CREATE OBJECT go_docking
        EXPORTING
          parent = cl_gui_container=>screen0
          ratio  = 90
        EXCEPTIONS
          OTHERS = 6.
      IF sy-subrc NE 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Create ALV grids
      CREATE OBJECT go_grid1
        EXPORTING
          i_parent = go_docking  " go_cell_top
        EXCEPTIONS
          OTHERS   = 5.
      IF sy-subrc NE 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      " ENTER trigger event DATA_CHANGED
      CALL METHOD go_grid1->register_edit_event
        EXPORTING
          i_event_id = cl_gui_alv_grid=>mc_evt_enter
        EXCEPTIONS
          error      = 1
          OTHERS     = 2.
      IF sy-subrc <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    * Set event handler
      SET HANDLER:
        lcl_eventhandler=>handle_double_click FOR go_grid1,
        lcl_eventhandler=>handle_toolbar      FOR go_grid1,
        lcl_eventhandler=>handle_user_command FOR go_grid1,
        lcl_eventhandler=>handle_data_changed FOR go_grid1.
      PERFORM build_fieldcatalog.
    * Display data
      gs_layout-grid_title = 'Customers'.
      gs_layout-smalltitle = abap_true.
      CALL METHOD go_grid1->set_table_for_first_display
        EXPORTING
    **      i_structure_name = 'KNB1'
          is_layout        = gs_layout
          ir_salv_adapter  = gif_adapter
        CHANGING
          it_outtab        = gt_outtab
          it_fieldcatalog  = gt_fcat
        EXCEPTIONS
          OTHERS           = 4.
      IF sy-subrc NE 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " INIT_CONTROLS
    *&      Form  BUILD_FIELDCATALOG
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM build_fieldcatalog .
    * define local data
      DATA: ls_fcat   TYPE lvc_s_fcat.
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name       = 'KNB1'
        CHANGING
          ct_fieldcat            = gt_fcat
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 2
          OTHERS                 = 3.
      ls_fcat-edit = abap_true.
      MODIFY gt_fcat FROM ls_fcat
        TRANSPORTING edit
        WHERE ( key NE abap_true ).
    ENDFORM.                    " BUILD_FIELDCATALOG
    Regards
      Uwe

  • Download alv report output to excel format with out header line

    Hi experts,
    i want to download a alv report output into excel formatt with out the header line but it has to download including field description. as this output will fed into another transaction, the downloaded excel file should be with out header line.
    fro eg:
    Report   : Zabc                      ABAP Development          Page  :     1
    Run Date : 12/14/06                                                     System: UD400 
    Run Time : 08:45:37
    this header details should not be downloaded into the excel file.
    could somebody help me please.
    thanks
    deepu

    hi jayanti,
    thanks for your response.
    i have delclared all the field types as character but still it is not downloading and it 's sy-subrc is 4... the code is as below.
    *field names
      lt_fieldnames-value = 'Material Number'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Plant'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Material Group'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Material Description'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'UOM'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Price Unit'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Material Type'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'X-Plant Status'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Valuation Class'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = lw_avmng.
      APPEND lt_fieldnames.
      lt_fieldnames-value = lw_avntp.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Latest PO Qty'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Latest PO Cost'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'PO Creation Date'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = lw_fcaqt.
      APPEND lt_fieldnames.
      lt_fieldnames-value = 'Prev. Yr. Std. Cost'.
      APPEND lt_fieldnames.
      lt_fieldnames-value = lw_stcst.
      APPEND lt_fieldnames.
      CALL FUNCTION 'MS_EXCEL_OLE_STANDARD_DAT'
        EXPORTING
          file_name                       = 'XLSHEET'
        CREATE_PIVOT                    = 0
        DATA_SHEET_NAME                 = ' '
        PIVOT_SHEET_NAME                = ' '
        PASSWORD                        = ' '
        PASSWORD_OPTION                 = 0
        TABLES
        PIVOT_FIELD_TAB                 =
          data_tab                        = t_output1
          fieldnames                      = lt_fieldnames
        EXCEPTIONS
          file_not_exist                  = 1
          filename_expected               = 2
          communication_error             = 3
          ole_object_method_error         = 4
          ole_object_property_error       = 5
          invalid_pivot_fields            = 6
          download_problem                = 7
          OTHERS                          = 8
      IF sy-subrc <> 0.
        MESSAGE e001 WITH 'Data could not be downloaded'.
      ENDIF.
    ENDFORM.                               " z_dwn_xl
    thanks
    deepu

  • Displaying columns of alv with Main Heading and Sub Heading

    Hi friends.
    I have certain fields in display of ALV.
    Out of all fields(columns), I would have to display some columns with one Main Heading,Below it's being split in multiple rows.
    I have data relevent to that multiple fields.
    Let say ,
    In first row it will show |Allowance            |
    In second                 |HRA    |PA   | OTHERS|
    Thanks And Regards,
    Amit Raut

    Hi,
    This is not possible
    Refer these links
    Re: ALV query
    Re: Multiple lines in alv column headings
    If this solves ur problem reward points and close the thread

  • ALV list with 2 header lines

    Dear gurus,
    Need help in displaying ALV list report. the below report is an example of AR aging report. The report output is as below:
    DEC
    NOV
    OCT
    SEP
    0-30
    31-60
    61-90
    90+
    xx
    xx
    xx
    xx
    SUBTOTAL
    The first 2 lines are the list header. While the 'x' is the amount.
    How can i display the above output with 2 header lines? I was thinking of using the  REUSE_ALV_FIELDCATALOG_MERGE function. But it will have 2 lines of body row too. In fact, i only one one row in the body. But if i define the header lines manually, i would not able to do the subtotal at the end of the alv list. I need to have the subtotal too.
    Thanks in advance!

    Hi,
    For this requirement you need to populate the fld catalog using row_pos and col_pos fields specifing proper position.
    See this code snippet ..... this is only possible for ALV list.
    TYPE-POOLS: slis.
    DATA: ld_fieldcat    TYPE slis_fieldcat_alv.
    DATA: t_alv_fieldcat TYPE STANDARD TABLE OF slis_fieldcat_alv.
    DATA : it_fld TYPE slis_t_fieldcat_alv,
           wa_fld TYPE slis_fieldcat_alv.
    data: BEGIN OF itab OCCURS 0,
            carrid    like sflight-carrid,
            connid    like sflight-connid,
            planetype like sflight-planetype,
            seatsmax  like sflight-seatsmax,
          END OF itab.
    START-OF-SELECTION.
    SELECT carrid connid planetype seatsmax
           FROM sflight
           INTO TABLE itab.
      CLEAR: ld_fieldcat.
      ld_fieldcat-row_pos       = '1'.
      ld_fieldcat-col_pos       = '1'.
      ld_fieldcat-tabname       = 'ITAB'.
      ld_fieldcat-fieldname     = 'CARRID'.
      ld_fieldcat-ref_tabname   = 'SFLIGHT'.
      ld_fieldcat-outputlen     = '10'.
      APPEND ld_fieldcat TO t_alv_fieldcat.
      CLEAR ld_fieldcat.
      CLEAR: ld_fieldcat.
      ld_fieldcat-row_pos       = '1'.
      ld_fieldcat-col_pos       = '2'.
      ld_fieldcat-tabname       = 'ITAB'.
      ld_fieldcat-fieldname     = 'CONNID'.
      ld_fieldcat-ref_tabname   = 'SFLIGHT'.
      ld_fieldcat-outputlen     = '10'.
      APPEND ld_fieldcat TO t_alv_fieldcat.
      CLEAR ld_fieldcat.
      CLEAR: ld_fieldcat.
      ld_fieldcat-row_pos       = '2'.
      ld_fieldcat-col_pos       = '1'.
      ld_fieldcat-tabname       = 'ITAB'.
      ld_fieldcat-fieldname     = 'PLANETYPE'.
      ld_fieldcat-ref_tabname   = 'SFLIGHT'.
      ld_fieldcat-outputlen     = '10'.
      APPEND ld_fieldcat TO t_alv_fieldcat.
      CLEAR ld_fieldcat.
      CLEAR: ld_fieldcat.
      ld_fieldcat-row_pos       = '2'.
      ld_fieldcat-col_pos       = '2'.
      ld_fieldcat-tabname       = 'ITAB'.
      ld_fieldcat-fieldname     = 'SEATSMAX'.
      ld_fieldcat-ref_tabname   = 'SFLIGHT'.
      ld_fieldcat-outputlen     = '10'.
      APPEND ld_fieldcat TO t_alv_fieldcat.
      CLEAR ld_fieldcat.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          it_fieldcat        = t_alv_fieldcat[]
        TABLES
          t_outtab           = ITAB. "internal table
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Regards,
    Amitava

Maybe you are looking for

  • What is the easiest way to mix and match drum samples from Logic software instruments

    I have been using Logic software instruments (EXS 24 drums kits) for a while. I know how to edit indiviual zones in a drum kit but I would like to know how to copy and paste multiple zones all at once from one kit to another so that I can create a hy

  • After installing 10.7.2 from scratch, permission errors remain

    Hey, this is a summery of what have happened: 1. upgraded to Lion from SL (via AppStore) 2. have played with 'get info' > 'apply to all enclosed items'  :/ 3. things have gone messy, slow, permission errors. example: (Warning: SUID file “System/Libra

  • Hard drive suddenly not showing up

    Hi. I have a 1.5ghz 17" PB with 1GB of RAM. I got it in June '04. Today, I attempted to wake it from sleep after having used it all morning. I typed in my password, and then the box went grey and didn't respond for long time. I force-restarted, and w

  • How do i transfer myAOL mail and address book to Yahoo

    I am now with AOL and i want to transfer all my AOL addresses to Yahoo . I am having a lot of trouble with getting my mail from my account with Aol and going back and forth from Mozilla to my address book and forwarding is taking forever . I would li

  • Bridge crashing immediately upon launch

    Greetings, I've scoured the Web looking for an answer for this and while I've come across many possible reasons and solutions, none seem to fit the bill. I am using a Trail of CS-5 Extended (12.0.4) on a Mac Mini, OS-X Snow Leopard 10.6.7, 4GB RAM. W