ALV Question

Moderator message: please use a more informative subject in future
I am doing my Purchase Register ALV Report,I have a problem in that,
my output is bifurgated into following components:
1. imports
tot of imports
2.interstate
tot-----
3. local
tot----
so on how to display data into corresponding  components mentioned above  in alv
Edited by: Matt on Nov 26, 2008 3:40 PM

HI.
try this code.
*& Report  Z_ALV_SUBTOTAL
REPORT z_alv_subtotal.&----
*& Table declaration
&----TABLES: ekko.&----
*& Type pool declaration
TYPE-POOLS: slis. " Type pool for ALV&----
*& Selection screen
SELECT-OPTIONS: s_ebeln FOR ekko-ebeln.&----
*& Type declaration
&----* Type declaration for internal table to store EKPO data
TYPES: BEGIN OF x_data,
       ebeln  TYPE char30,  " Document no.
       ebelp  TYPE ebelp,   " Item no
       matnr  TYPE matnr,   " Material no
       matnr1 TYPE matnr,   " Material no
       werks  TYPE werks_d, " Plant
       werks1 TYPE werks_d, " Plant
       ntgew  TYPE entge,   " Net weight
       gewe   TYPE egewe,   " Unit of weight                          
       END OF x_data.&----
*& Internal table declaration
DATA:* Internal table to store EKPO data
  i_ekpo TYPE STANDARD TABLE OF x_data INITIAL SIZE 0,
Internal table for storing field catalog information
  i_fieldcat TYPE slis_t_fieldcat_alv,
Internal table for Top of Page info. in ALV Display
  i_alv_top_of_page TYPE slis_t_listheader,
Internal table for ALV Display events
  i_events TYPE slis_t_event,
Internal table for storing ALV sort information
  i_sort TYPE  slis_t_sortinfo_alv,
  i_event TYPE slis_t_event.&----
*& Work area declaration
&----DATA:
  wa_ekko TYPE x_data,
  wa_layout     TYPE slis_layout_alv,
  wa_events         TYPE slis_alv_event,
  wa_sort TYPE slis_sortinfo_alv.&----
*& Constant declaration
&----CONSTANTS:
   c_header   TYPE char1
              VALUE 'H',                    "Header in ALV
   c_item     TYPE char1
              VALUE 'S'.&----
*& Start-of-selection event
&----START-OF-SELECTION.* Select data from ekpo
  SELECT ebeln " Doc no
         ebelp " Item
         matnr " Material
         matnr " Material
         werks " Plant
         werks " Plant
         ntgew " Quantity
         gewei " Unit
         FROM ekpo
         INTO TABLE i_ekpo
         WHERE ebeln IN s_ebeln
         AND ntgew NE '0.00'.  IF sy-subrc = 0.
    SORT i_ekpo BY ebeln ebelp matnr .
  ENDIF.* To build the Page header
  PERFORM sub_build_header.* To prepare field catalog
  PERFORM sub_field_catalog.* Perform to populate the layout structure
  PERFORM sub_populate_layout.* Perform to populate the sort table.
  PERFORM sub_populate_sort.* Perform to populate ALV event
  PERFORM sub_get_event.END-OF-SELECTION.* Perform to display ALV report
  PERFORM sub_alv_report_display.
*&      Form  sub_build_header
      To build the header
      No Parameter
FORM sub_build_header .* Local data declaration
  DATA: l_system     TYPE char10 ,          "System id
        l_r_line     TYPE slis_listheader,  "Hold list header
        l_date       TYPE char10,           "Date
        l_time       TYPE char10,           "Time
        l_success_records TYPE i,           "No of success records
        l_title(300) TYPE c.                " Title
Title  Display
  l_r_line-typ = c_header.               " header
  l_title = 'Test report'(001).
  l_r_line-info = l_title.
  APPEND l_r_line TO i_alv_top_of_page.
  CLEAR l_r_line.* Run date Display
  CLEAR l_date.
  l_r_line-typ  = c_item.                " Item
  WRITE: sy-datum  TO l_date MM/DD/YYYY.
  l_r_line-key = 'Run Date :'(002).
  l_r_line-info = l_date.
  APPEND l_r_line TO i_alv_top_of_page.
  CLEAR: l_r_line,
         l_date.ENDFORM.                    " sub_build_header
*&      Form  sub_field_catalog
      Build Field Catalog
      No Parameter
FORM sub_field_catalog .*  Build Field Catalog
  PERFORM sub_fill_alv_field_catalog USING:     '01' '01' 'EBELN' 'I_EKPO' 'L'
     'Doc No'(003) ' ' ' ' ' ' ' ',     '01' '02' 'EBELP' 'I_EKPO' 'L'
     'Item No'(004) 'X' 'X' ' ' ' ',     '01' '03' 'MATNR' 'I_EKPO' 'L'
     'Material No'(005) 'X' 'X' ' ' ' ',     '01' '03' 'MATNR1' 'I_EKPO' 'L'
     'Material No'(005) ' ' ' ' ' ' ' ',
     '01' '04' 'WERKS' 'I_EKPO' 'L'
     'Plant'(006) 'X' 'X' ' ' ' ',     '01' '04' 'WERKS1' 'I_EKPO' 'L'
     'Plant'(006) ' ' ' ' ' ' ' ',     '01' '05' 'NTGEW' 'I_EKPO' 'R'
     'Net Weight'(007) ' ' ' ' 'GEWE' 'I_EKPO'.ENDFORM.                    " sub_field_catalog&----
*&     Form  sub_fill_alv_field_catalog
*&     For building Field Catalog
*&     p_rowpos   Row position
*&     p_colpos   Col position
*&     p_fldnam   Fldname
*&     p_tabnam   Tabname
*&     p_justif   Justification
*&     p_seltext  Seltext
*&     p_out      no out
*&     p_tech     Technical field
*&     p_qfield   Quantity field
*&     p_qtab     Quantity table
FORM sub_fill_alv_field_catalog  USING  p_rowpos    TYPE sycurow
                                        p_colpos    TYPE sycucol
                                        p_fldnam    TYPE fieldname
                                        p_tabnam    TYPE tabname
                                        p_justif    TYPE char1
                                        p_seltext   TYPE dd03p-scrtext_l
                                        p_out       TYPE char1
                                        p_tech      TYPE char1
                                        p_qfield    TYPE slis_fieldname
                                        p_qtab      TYPE slis_tabname.* Local declaration for field catalog
  DATA: wa_lfl_fcat    TYPE  slis_fieldcat_alv.  wa_lfl_fcat-row_pos        =  p_rowpos.     "Row
  wa_lfl_fcat-col_pos        =  p_colpos.     "Column
  wa_lfl_fcat-fieldname      =  p_fldnam.     "Field Name
  wa_lfl_fcat-tabname        =  p_tabnam.     "Internal Table Name
  wa_lfl_fcat-just           =  p_justif.     "Screen Justified
  wa_lfl_fcat-seltext_l      =  p_seltext.    "Field Text
  wa_lfl_fcat-no_out         =  p_out.        "No output
  wa_lfl_fcat-tech           =  p_tech.       "Technical field
  wa_lfl_fcat-qfieldname     =  p_qfield.     "Quantity unit
  wa_lfl_fcat-qtabname       =  p_qtab .      "Quantity table  IF p_fldnam = 'NTGEW'.
    wa_lfl_fcat-do_sum  = 'X'.
  ENDIF.
  APPEND wa_lfl_fcat TO i_fieldcat.
  CLEAR wa_lfl_fcat.
ENDFORM.                    " sub_fill_alv_field_catalog&----
*&      Form  sub_populate_layout
      Populate ALV layout
      No Parameter
FORM sub_populate_layout .  CLEAR wa_layout.
  wa_layout-colwidth_optimize = 'X'." Optimization of Col widthENDFORM.                    " sub_populate_layout&----
*&      Form  sub_populate_sort
      Populate ALV sort table
      No Parameter
FORM sub_populate_sort .* Sort on material
  wa_sort-spos = '01' .
  wa_sort-fieldname = 'MATNR'.
  wa_sort-tabname = 'I_EKPO'.
  wa_sort-up = 'X'.
  wa_sort-subtot = 'X'.
  APPEND wa_sort TO i_sort .
  CLEAR wa_sort.* Sort on plant
  wa_sort-spos = '02'.
  wa_sort-fieldname = 'WERKS'.
  wa_sort-tabname = 'I_EKPO'.
  wa_sort-up = 'X'.
  wa_sort-subtot = 'X'.
  APPEND wa_sort TO i_sort .
  CLEAR wa_sort.
ENDFORM.                    " sub_populate_sort&----
*&      Form  sub_get_event
      Get ALV grid event and pass the form name to subtotal_text
      event
      No Parameter
FORM sub_get_event .
  CONSTANTS : c_formname_subtotal_text TYPE slis_formname VALUE
'SUBTOTAL_TEXT'.  DATA: l_s_event TYPE slis_alv_event.
  CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
    EXPORTING
      i_list_type     = 4
    IMPORTING
      et_events       = i_event
    EXCEPTIONS
      list_type_wrong = 0
      OTHERS          = 0.* Subtotal
  READ TABLE i_event  INTO l_s_event
                    WITH KEY name = slis_ev_subtotal_text.
  IF sy-subrc = 0.
    MOVE c_formname_subtotal_text TO l_s_event-form.
    MODIFY i_event FROM l_s_event INDEX sy-tabix.
  ENDIF.ENDFORM.                    " sub_get_event&----
*&      Form  sub_alv_report_display
      For ALV Report Display
      No Parameter
FORM sub_alv_report_display .
  DATA: l_repid TYPE syrepid .
  l_repid = sy-repid .* This function module for displaying the ALV report
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      i_callback_program       = l_repid
      i_callback_top_of_page   = 'SUB_ALV_TOP_OF_PAGE'
      is_layout                = wa_layout
      it_fieldcat              = i_fieldcat
      it_sort = i_sort
      it_events                = i_event
      i_default                = 'X'
      i_save                   = 'A'
    TABLES
      t_outtab                 = i_ekpo
    EXCEPTIONS
      program_error            = 1
      OTHERS                   = 2.
  IF sy-subrc <> 0.
   MESSAGE i000 WITH 'Error in ALV report display'(055).
  ENDIF.ENDFORM.                    " sub_alv_report_display&----
      FORM sub_alv_top_of_page
      Call ALV top of page
      No parameter
----FORM sub_alv_top_of_page.                                   "#EC CALLED* To write header for the ALV
  CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
      it_list_commentary = i_alv_top_of_page.
ENDFORM.                    "alv_top_of_page&----
*&      Form  subtotal_text
      Build subtotal text
      P_total  Total
      p_subtot_text Subtotal text info
FORM subtotal_text CHANGING
               p_total TYPE any
               p_subtot_text TYPE slis_subtot_text.
Material level sub total
  IF p_subtot_text-criteria = 'MATNR'.
    p_subtot_text-display_text_for_subtotal
    = 'Material level total'(009).
  ENDIF.* Plant level sub total
  IF p_subtot_text-criteria = 'WERKS'.
    p_subtot_text-display_text_for_subtotal = 'Plant level total'(010).
  ENDIF.
ENDFORM.                    "subtotal_text
Regards.
jay

Similar Messages

  • ALV Questions

    <b>Hi,
       Please answer the following questions.
    1.  What is the difference b/w classical report and ALV  report and in classical report can we produce output more than 255 characters?
    2.  Did you used classes to create ALV reports  and how is superior over using    function modules in ALV report generation?
    3.  If we don't know the  exact number of blocks to be generated then Can we generate the output with different number of blocks in 
         ALV   reports?
    4.  In report if we have write statements in initialization, top of page and in start of selection then which event is first excuted and what
         is  the output?
    5.  In interactive report what is the use of exit key word?
    6.  what are nested structures and deep structures?
    7.  how can we write BDC program to  upload  data from  CSV, XL, TAB delimeter type flat files?
    8.  In BDC if the flat file consist of header and multiple line items then how to upload the load, does we create a single internal table for
         both header and body or different internal tables?
    9.  In call transaction and session method which method is prefered one?
    10. why can't we use call transaction method to upload large amount of data?
    11.what is the use of standard text in sap scripts, why can't we hard code the same information in form itself?
    12.what are user exits and how can we create them?
    13. can we modify  the  sap provided  code?
    14. what are oss notes?
    15. what are the different types of performance techniques?
    16. can we do modifications on output of   ALV reports, how?
    17. what are the classes that are used in ALV reporting?
    Thanks
    Manju.
    Points will be rewarded.</b>

    Hi manju
    1.Diff b/w classical and interactive
       classical report
              1)complicated
              2)Logo is not possible
              3)sorting,total ,etc...we have to write code
    4. top-of-page will trigger when ever it find a write statement after that all the
         events get triggered
        initialization
            write :/ 'Hi i am below the top-of-page'.
        top-of-page
            write :/ 'Hi i am the top'.
            output
            Hi i am the top
            Hi i am below the top-of-page
    5.we can use exit command inside a loop .
        if condition goes wrong straight away it comes out from the loop.
    9.session
    12. If we want to customize the SAP standard transaction that time we go for  User  exits
       There are
                screen exits,field exits,menu exits,and function module exits
      Important transactions
                CMOD,SMOD
      Important tables
               MODACT,MODSAP
    13. we have to get the access key to modify the standard code
    14. Online Service System - if we are not able to solve or we can find any complication in sap related issue we can raise a oss note ,the problem will be rectified by the SAP team and we have to pay for that.
    15.    SE30 - runtime analysis
             ST05 - SQL trace
    Regards
    P.Thangaraj

  • ALV Questions for ALV_GRID_DISPLAY

    Hi!
    I'm using ALV_GRID_DISPLAY and I've got a few questions about it:
    During the print of an ALV list is it possible to
    - 1. print different "top of pages" for all pages?
    - 2. print page number and/or all pages (like this: 1/10, 2/10, 3/10, ..., 10/10)
    - 3. print a new page dynamically (for example I have 10 lines in the ALV and I would like to print them on 2 pages 5 on the first and 5 on the second, and with different headers)
    These problems can easily be solved with the standard list, but if it is possible I prefer using the ALV...
    Thank you
    Tamá

    not possiblein griid display...
    it may works in list display...
    put a break point in top-of-page -> perform  and test d system filds like page num,
    if page num changes write another kind of messages...just ty it...
    Ramesh.

  • ALV Question : How to set filter condition which contain dummy character?

    Hi,
    I want to set filter condition of ALV dynamicly (In my code),
    for example, set 'X' as filter condition in column "Description",
    I add the code successfully, but I can't get the correct filtered result, Why?

    Please post ur code here.
    U have to get a  handle to the IF_SALV_WD_FILTER interface
    data ref_filter   type ref to IF_SALV_WD_FILTER  .
    ref_filter ?= m_config_model->IF_SALV_WD_FIELD_SETTINGS~GET_FIELD( 'FIELD DESCRIPTION' )
    ref_filter->CREATE_FILTER_RULE( 
                       low_val = 'X'
    Now when u load the ALV tabl;e u should see a X value in the filter row, for the column 'FIELD DESCRIPTION'  and the filter should happen.
    As I said, pls paste ur code here.

  • Abap ...alv question

    Hi,
    I got the error message, when I want to set ALV grid format ...
    how and where I can check this lenght...
    The call to the function module "REUSE_ALV_LIST_DISPLAY" is incorrect:
    In the function module interface, you can specify only
    fields of a specific type and length under "IS_VARIANT".
    Although the currently specified field
    "GS_LAYOUT" is the correct type, its length is incorrect.
    BR
    saso

    well gs_layout is a probably global structure anyway. its declared by you.
    just declare from the same type as the import/tables parameter layout from your FM/Method.

  • ALV question: Changes in cells not updated in itab

    Hi experts,
    Please help this newbie here. I have problem with updating my internal table with multiple cells changes in my ALV. I've used the FM 'GET_GLOBALS_FROM_SLVC_FULLSCR' and the method 'CHECK_CHANGED_DATA'. When I debugged, I could see the changes being captured in ref1.
    How can I make sure that the changes were already updated into the itab new_antrag after I presses the button command 'EX_SEND'? The original program is leave program RPTARQUIATEST.
    FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
                                                      RS_SELFIELD LIKE SLIS_SELFIELD
    Data: ref1 type ref to cl_gui_alv_grid.
    CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
        IMPORTING
          E_GRID = ref1.
    call method ref1->check_changed_data.
    read table new_antrag index rs_selfield-index into wa_new_antrag.
    case r_ucomm.
      when 'EX_SEND'.
          perform before_prepare using rs_selfield
                                                new_antrag
                                       changing
                                                wa_new_antrag.
          perform request_check using req
                                                pernr
                                                modus
                                                check_command
                                                g_check_mode
                                        changing
                                                checked_req
                                                messages.
          perform request_exec using wa_new_antrag-request_id
                                                pernr
                                                modus
                                                c_cmd_exec_cmd
                                        changing
                                                exec_req
                                                messages.
          perform after_exec using exec_req.
      endcase.
    ENDFORM.
    Please help. Points will be awarded for constructive solutions which help in the problem solving. Thank you.
    Cheers,
    Damien

    Hi,
    where you are filling itab new_*  there write condition like  on ehich field you are expecting changes check with condition .
    after put sy-subrc variable if operation success fields are chnged with necessary changes.
    It can help you .
    try it once where you have written code for new_* table.
    reward points if usefull

  • Can somebody give some real time questions for alv report

    hi guru
    can somebody give some real time questions for alv report.
    answers also.
    regards
    subhasis.

    hi,
    The ALV is a set of function modules and classes and their methods which are added to program code. Developers can use the functionality of the ALV in creating new reports,  saving time which might otherwise have been spent on report enhancement
    The common features of report are column    alignment, sorting, filtering, subtotals, totals etc. <b>To implement these, a lot of coding and logic is to be put. To avoid that we can use a concept called ABAP List Viewer (ALV).</b>
    Using ALV, we can have three types of reports:
       1. Simple Report
       2. Block Report
       3. Hierarchical Sequential Report
    <b>Reward useful points</b>
    Siva

  • Question on ALV report

    Moved by moderator to correct forum.  Also, please use a meaningful subject in future.
    I need to have an ALV report where at least one of three checkboxes need to be diaplayed.
    My question is that when one of the checkboxes is selected - it works fine no problem.
    How to design it for two or more checkboxes,
    I am using I_CALLBACK_TOP_OF_PAGE in FM REUSE_ALV_GRID_DISPLAY, if there are two checkboxes, it should display two reports each with header information et cetera.
    Edited by: Matt on Nov 7, 2008 12:04 PM

    Hi,
    Use the FM
    'REUSE_ALV_BLOCK_LIST_DISPLAY'
    OR use OO
    Custom container with docking container
    Regards,
    Nandha

  • Questions about ALV object model

    Hi,
    for a new report i´m planing to use the "new" ALV object model to create the ALV list. Now I´ve got two questions concerning this topic:
    - is it possible to switch the ALV into the edit mode like it´s possible if  the "old" CL_GUI_ALV_GRID class  
      is used?
    - how I can encolor specific cells?
    I couldn´t find any hints or demo programms for these questions
    Regards,
    Andy

    it is not possible to Edit the ALV using Object Model.
    For coloring...check this code.
    DATA: alv TYPE REF TO cl_salv_table.
    TYPES: BEGIN OF ty_tab,
             carrid TYPE sflight-carrid,
             connid TYPE sflight-connid,
             color  TYPE lvc_t_scol,
           END OF ty_tab.
    DATA: wt_color TYPE  lvc_t_scol,
          wa_color TYPE  lvc_s_scol,
          w_color  TYPE  lvc_s_colo.
    DATA: wa_flight TYPE ty_tab.
    DATA: column_tab TYPE REF TO cl_salv_columns_table,
          column TYPE REF TO cl_salv_column_table.
    DATA: column_ref TYPE   salv_t_column_ref,
          wa LIKE LINE OF column_ref.
    DATA: it_flight TYPE STANDARD TABLE OF ty_tab.
    SELECT carrid connid FROM sflight
    INTO CORRESPONDING FIELDS OF TABLE it_flight
    UP TO 10 ROWS.
    w_color-col = 4.
    w_color-int = 0.
    w_color-inv = 0.
    LOOP AT it_flight INTO wa_flight.
      w_color-col = 4.
      wa_color-fname = 'CARRID'.
      wa_color-color = w_color.
      APPEND wa_color TO wt_color.
      w_color-col = 6.
      wa_color-fname = 'CONNID'.
      wa_color-color = w_color.
      APPEND wa_color TO wt_color.
      wa_flight-color = wt_color.
      MODIFY it_flight FROM wa_flight.
    ENDLOOP.
    cl_salv_table=>factory(
      IMPORTING
        r_salv_table   = alv
      CHANGING
        t_table        = it_flight
    "get all the columns
    column_tab = alv->get_columns( ).
    column_tab->set_color_column( value = 'COLOR' ).
    column_ref = column_tab->get( ).
    "loop each column
    LOOP AT column_ref INTO wa.
      "Conditionally set the column type as key or non key
      IF wa-columnname   = 'CARRID'.
        column ?= wa-r_column.
        column->set_key( abap_true ).
      ENDIF.
    ENDLOOP.
    alv->display( ).

  • ALV printer question

    hi folks,
    i have a question here.
    in a screen , i've created two containers for two alv grids. the question is can i print the two reports on the same paper?
    looking forward your reply.
    thanks

    hi folks,
    i have a question here.
    in a screen , i've created two containers for two alv grids. the question is can i print the two reports on the same paper?
    looking forward your reply.
    thanks

  • ALV Display Question - SQ01

    Hello All,
    I am displaying a query through SQ01, it is as any ALV report, there are a few controls on top of the list one of them is filter and thats where I have the question.
    I have a list like this as output of the program:
    Status       Hours        Name
    True           0              John
    True           1              Joe
    False         0              Smith
    True           1              Scott
    False         1              Cindy
    Now, do not want to show the records that have (Status = False and Hours = 0), Which will remove the 3rd record from the display.
    How can this be accomplished through the FILTER icon?
    Again, this is not a custom program so I cannot simply add this condition inside ABAP, I have to do something through toolbar icons.
    I have tried different options in FILTER but it is not putting an "AND" logical condition between the two.
    Thanks a lot!

    You need to set two filters to achieve this functionality.
    One for the Status and Second for the Hours.
    Press the Filter Icon.
    Select both fields from the right side and move it to left side by pressing the left arrow button. Press Enter
    In the next screen, use the F4 for avaliable values and select FALSE for the status and 0 for the Hours.
    You can save this setting in one Layout variant and use that for future use to avoid setting filter everytime you run the report.
    Regards,
    Naimesh Patel

  • ALV using REUSE_ALV_GRID_DISPLAY question

    Folks,
    I am use REUSE_ALV_GRID_DISPLAY for ALV report. I have customized
    the tool bar to have 3 to 4 columns as editable. In the FORM USER_COMMAND
    of ALV, at SAVE, you can check the field name and update your internal table and report the changes. No problem....
    Please note, I AM NOT using OO here. Just the regular Grid_display.
    But if I change contents of all the 4 cells in a row, how can I capture all together and save these changes back to my internal table? Any thoughts?
    -Thanks...Raj

    Thanks Chandrasekhar. That works like a charm.
    Can I ask you one more question related to the user-command.
    1) I run the report.
    2) I make changes to certain fields and save.
    3) Report displays updated rows
    4) I can add more rows etc.
    When I click on the back button, it should take me to the selection screen. Instead, it goes one screen back at a time navigating through all the screen changes.
    Have you come across this?
    Thanks, Rajesh

  • Web dynpro ALV and some other questions

    Hi All,
    I have couple of question for experts.
    I am very much new into Web Dynpro world, and i have one web dynpro application built by my old colleague.
    I want to add search feature into the application so that out of 1000 records i could search one based on some field value, how can we achieve that ?
    I have read lot abot ALV list in web dynpro, How to find that specific approach has been used into particular web dynpro application or not ?
    Thanks for your time for reading my question and hope to get some response..
    Pranav.

    Hi Pranav,
    Hope the following helps you.
    <u>Searching for a record based on some field value</u>
    You can have an input field (bound to a context attribute) in your view. Whatever you type in the field will now be associated with the context attribute in your context. Place a button on your view. Define an action for this button (e.g. SEARCH), in the property onAction of the button. Now, in the action handler for the button (ONACTIONSEARCH), access the context attribute (can be done using WD Code Wizard). Then using your business logic, get the date into another context attribute, which can be displayed in the view using a textview (or textviews)
    <u>Find whether ALV is used in your WD Application</u>
    Go to your WD Component, in the used components you should find a use for component SALV_WD_TABLE. Also, in one of the views, the Interface View TABLE of the ALV component will be embedded in its ViewContainerUIElement. This information can be found in the Window of your own WD Component.
    Regards,
    Neha
    <i><b>PS:Reward if helpful</b></i>

  • My question is related to alv

    hi friends..............
           i want to know whether it is possible to create a dialog box on the front of alv grid which is open with a new table alv grid
        by just clicking on one of the cell of a current alv grid screen.................
        if any dont understand my question then let me know by reply in this thread................
    thanks friend..............

    anything is possble besides the impossible ones )
    you are lucky since your problem is first category. You can code an eventhandler for your ALV and add on-click events.
    Probably on a column.
    Now you just have to define the coding for the event, which can be anything, in your case probably a "CALL SCREEN XXXX".
    if you now need to display an ALV on that screen you need to implement the coding for that somewhere in PBO of your new screen that you call on click of desired column.

  • ALV Export to Microsoft Excel Question

    Hi All,
    I know this would be a basic question and I tried searching the forums and did not find any luck. I have implemented the standard ALV and the output is displayed in the table. The standard Export-->Export to Microsoft Excel does not work for me when I click on it. Should I need to enable / trigger this event to make this work?
    Also, Is there anyway that I show the Export to Microsoft Excel option directly in the standard ALV instead of clicking on the Export and then Export to Microsoft Excel?
    Thanks,
    Nagarajan.

    Hi Nagarajan,
    That is a satandard functionality no coding required. it will work.
    Your excel file containes any images??
    Try this...
    l_value                         TYPE REF TO cl_salv_wd_config_table.
    lr_filter  ?= l_value.
    lr_filter->set_export_allowed( abap_true ).
    OR
    If you want to cal excel by using your custom button please check this...blog
    Using WD ABAP ALV export - the hacked way
    also check this...
    Re: How to call manually Export to Excel event of ALV standar component
    Cheers,
    Kris.

Maybe you are looking for

  • How do I move applications from an external HDD to rMBP?

    Hi all, My late 2009 unibody Macbook met an unfortunate demise due to some spilled water (I think the logic board is dead), so I upgraded to a late 2013 13" rMBP. I wanted to move the applications on my Macbook onto the rMBP, so I purchased a cheap H

  • Unable to create OLAP Metadata catalog in EIS

    We are planning on creating new Essbase apps using EIS to create and load from our relational data warehouse databases. Have worked with Essbase for many years, but never EIS. We are currently on 9.3.3 for all Hyperion apps. I successfully installed

  • SAVING DOCUMENTS IN FLASH

    Is it possible i open a flash document saved on flash cs4, in flash c6, edit it and save it as flash cs4?? HELP ME PLEASE

  • Disable apps (also in metro) windows 8.1 tablet

    Is it possible to disable apps from displaying or starting in Windows 8.1 Pro thru local group policy user. As administrator i want to lock down all settings on a Windows 8.1 tablet for the normal user also that the user can start apps from metro or

  • The change of SC will affect the Contract ?

    HI, Expert :    I work in SRM 7.0 ,ECS   I create one Shopping Cart with 2 Material item , and then  create the FRx according this SC .In the new FRx ,I add one Service item ,and publish it .   In the end ,I get 2 contracts  according the RFx, one wi