GUI ALV

1.How to display logo,when we are using GUI ALV with the help of classes and objects 'create object o_docking' and 'create object o_grid'.
2.Can we create hierarchical alv reports using classes and objects as we do Interactive ALV list using 'REUSE_ALV_LIST_DISPLAY'?

Hi,
In the PAI if you call the following method
  call method g_grid->check_changed_data
    importing
      e_valid = v_valid.
ie
  call method g_grid->set_table_for_first_display
    exporting
      is_layout            = gs_layout
      i_save               = 'A'
      it_toolbar_excluding = i_exclude[]
    changing
      it_fieldcatalog      = gt_fieldcat[]
      it_outtab            = <i_output>[]. " The output table
  call method g_grid->set_ready_for_input
    exporting
      i_ready_for_input = v_input.
the output table automatically get refreshed with inputed values

Similar Messages

  • Export differences between GUI ALV and Portal

    Hi,
    Have a customer that is able to export reports to Excel using the 'Local File -> Spreadsheet Option'. When this is used in the GUI, the report exports as expected, all columns from the ALV view in the correct columns in excel.
    If I run the same report through the customer portal, exporting the data in the same way, when I open the file in excel, each ALV column is combined into 1 column in excel.
    Questions:
    - Are there any differences between the GUI and Portal when using the exporting functions?
    - Would this output be determined by Excel and not the SAP export?
    Any assistance or guidance is much appreciated.
    Thanks

    "319071" and Doug:
    The products have different purposes. Portal provides content aggregation, application integration and personalization. Together with the Oracle Application Server infrastructure you also get identity management capabilities such as a centralized LDAP-based user directory and Single Sign-On. HTML DB is a tool for rapid development of database centric web applications. Nothing more, nothing less. Portal allows you to bring together applications built using a variety of technologies. HTML DB is just one of those technologies that happens to be optimized for web development on an Oracle database.
    Once you have built your application with HTML DB, you may choose to place a link to it on a portal page. You may even choose to make authentication seamless by making the HTML DB application a Single Sign-On partner application (see: http://www.oracle.com/technology/products/database/htmldb/howtos/sso_partner_app.html). Or, you may want to display some data from a report developed in HTML DB inside a portlet (see: http://www.oracle.com/technology/products/database/htmldb/howtos/omniportlet_index.html)
    Granted, Portal does have database centric development capabilities (what used to be called WebDB), but they are not nearly as flexible as HTML DB's. HTML DB lets you control page flow while maintaining session state, has quite sophisticated report building capabilities such as column based sorting and pagination, form building capabilities such as declarative field level data validations, built in field level help, etc.
    Sergio

  • Counter in column GUI ALV GRID

    Hello every one, I have a alv grid, and i have a column where i need to put a counter in the cell, so every time a new row is added, the cell of that column will be incrementing in a number and show it in the cell automatic.
    Im new in abap, so i hope could show me some code to do it. Thanks

    Hi Naimesh, thak you for your answer, it helps me to solve the problem, i let the code here for other people could use it.
    DATA:
            vl_consec              TYPE I,
            p_data                    TYPE REF TO cl_alv_changed_data_protocol.
            wa_rowid               TYPE lvc_s_roid,                 
            wa_inserted_rows TYPE lvc_s_roid,
            wa_dll                     LIKE LINE OF vg_ti_dll,
            wa_insert               LIKE LINE OF vg_ti_dll.
    "get the row inserted using the class CL_ALV_CHANGED_DATA_PROTOCOL.
        LOOP AT p_data->mt_roid_front INTO wa_rowid.
          READ TABLE p_data->mt_inserted_rows INTO wa_inserted_rows WITH KEY row_id = wa_rowid-row_id.
             CHECK sy-subrc = 0.
    "get the highest number from the table
    SORT vg_ti_dll BY consec DESCENDING.
                  READ TABLE vg_ti_dll INTO wa_dll INDEX 1.
         wa_insert-consec  = wa_dll-consec.
    INSERT wa_insert INTO vg_ti_dll INDEX wa_insert-consec.
                CALL METHOD p_data->modify_cell
                EXPORTING
                  i_row_id    = wa_rowid-row_id
                  i_fieldname = 'CONSEC'
                  i_value     = wa_dll-consec.
    ENDLOOP.

  • Events in  Alv

    hi
    Experts
       i hav e requirement on   report in  alv oops .
    in this  , let me know the details   how  to   display the  events  liken "top-of-page", end of page
    and   list header , list footer  in oops,
    please provide the suitable  code
    Regards
    Spandana

    hi,
    Check this link for  Events in  Alv
    https://www.sdn.sap.com/irj/sdn/wiki?path=/pages/viewpage.action?pageId=37715
    http://howforge.com/abap-4-example-code-alv-grid-control-by-applying-object-cl-gui-alv-grid
    Check out the following link for top_of_page event in OOPs ALV.
    Best code
    /people/vijaybabu.dudla/blog/2006/07/21/topofpage-in-alv-using-clguialvgrid
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
    Reward All Helpfull Answers
    Regards
    Fareedas

  • Hiding Fields in ALV-Grid Display

    Hi Experts,
    Can anybody help me on the below logic?
    I have 16 different transactions in GLPCT Table. Based on given Period(1 to 16 in Select Options), these transactions(HSL01, HSL02...HSL16) should get display. Other than entered Period, Fields should be Hidden inthe output.
    Currently, I am populating all the Sixteen Fields.
    I am finding difficulty in doing this.
    Thanks
    Praveen

    Hello,
    Based on the periods selected, you need to mark the redundant fields as "technical". Based on the ALV display technique this is what you've to do:
    1. REUSE* FMs & GUI ALV Grid Class :
    it_fieldcat-tech = 'X'.
    2. SALV Class:
    CL_SALV_COLUMN->SET_TECHNICAL(IF_SALV_C_BOOL_SAP=>TRUE).
    Check the forums for further details.
    BR,
    Suhas

  • How to suppress automatic keyfigure conversion in WD ALV?

    Dear experts,
    I am having a problem with automatic input conversion in WD ALV.
    I have a key-figures (type P length 9, decimals 2)in my ALV which has reference field of type if_salv_wd_c_field_settings=>reffieldtype_curr.
    I process the changes by event ON_DATA_CHANGE which passes this change object:
    r_param->t_modified_cells
    r_param->t_inserted_rows
    r_param->t_deleted_rows
    r_param->t_error_cells
    The thing is that the changes in table r_param->t_modified_cells are already converted into internal format. When user enters "1", I get here in this table value "1.00". But this internal value is not always correct because corresponding reference field with currency key may not be known yet (it is calculated later on background from other fields).
    Therefore, for example for currency JPY which has no decimal places external value "1" is converted into wrong internal value "1.00" (the correct internal value is "0.01").
    Therefore, I need to suppress the conversion by the ALV and do it myself once the currency key is known.
    How can I suppress the automatic input conversion which is done by ALV?
    There is no such problem in SAP GUI ALV! There is event DATA_CHANGE with similar change object:
    io_data_change->mt_good_cells
    io_data_change->mt_mod_cells
    io_data_change->mt_inserted_rows
    io_data_change->mt_deleted_rows
    But all the changes in table io_data_change->mt_mod_cells are in an external format (exactly the way user entered them on the screen)!
    Any idea?
    Thank you in advance for your help.
    Tomas
    Edited by: Tomas Havlik on Oct 5, 2010 10:24 AM

    I have contacted the Web Dynpro ALV support directly to find out the answer.
    There is no solution!
    The WD ALV always convert the key figure into internal format. It is not possible to get the raw user input in WD as it is in SAP GUI.
    Therefore, I use a workaround in my application - I remeber the number of decimal places of the old currency key and if the new currency key has different number of decimal places, then I shift the decimal point to the right or left correspondingly.

  • WEB DYNPRO ALV GRID : CELL CONTENT - Initial Value

    I created a sort of 'Timesheet' in web dynpro...
    Unfortunatly, for all days of the month it displays '0.00' as initial value...
    Is it possible to not display this initial value or display space/empty ?
    In gui alv it is possible, I don't know if it could be done in web dynpro

    Hi,
    For the node to which the ALV is bound. For the column (context attribute) check the property of the attribute check the formatting propertioes as ZEROS AS BLANKS
    for ex: price is the context attrbiute check the properties.
    This FORMATTING options for the context attribute is found in the latest verions like EHP4.
    Regards,
    Lekha.

  • How to process changes in ALV

    Hello everyone,
    I would need to process changes from Web Dynpro ALV in the same way as in SAP GUI ALV. There is a even DATA_CHANGED which has parameter
    er_data_change
    which has three tables
    er_data_change->mt_good_cells is
    er_data_change->mt_inserted_rows
    er_data_change->mt_deleted_rows
    Is there some way how to do this in WD ALV?
    The reason why I need that is to get exactly the same values which has the user entered into the ALV. Currently, when user enter value "1" as key figure, the ALV returns the value converted in internal format as "1.00".
    Thanks in advance for any input,
    Tomas

    Hi Thomas,
    I think there are not such methods to get inserted or deleted rows. But you can get the changes made by user in the context. To achieve this follow the process:
    Enable the context change log in the init method of component controller:
      DATA: z_context TYPE REF TO if_wd_context.
      z_context = wd_context->get_context( ).
      z_context->enable_context_change_log( ).
    Then call following method in the component controller to get the context changes:
      DATA: lt_changes TYPE wdr_context_change_list.
      DATA: z_context TYPE REF TO if_wd_context.
      z_context = wd_context->get_context( ).
      lt_changes = z_context->get_context_change_log( ).
    You will get all context changes in the table lt_changes.
    Compare these values with the values before context change.
    I hope this will help.
    Regards,
    Saket.

  • ALV oops prblem

    Hi All,
    i am displaying data through cl gui alv grid.
    but when i am coming to that screen again i clear the container and grid object and displaying the alv again...
    but 2nd time no data apppear..
    Thanks in Advance,
    Kushagra Sharma

    I am not sure what you did
    Make sure you coded
    ***PBO Flow
        MODULE STATUS_0100.
         MODULE INITIAL_GRID.  " Here Create Cataloge and  Create Grid Control
    **PAI   Flow
    PROCESS AFTER INPUT.  MODULE USER_COMMAND_0100.
    MODULE USER_COMMAND_0100 INPUT.
    save_ok = ok_code. 
    clear ok_code. 
    CASE save_ok.   
       WHEN u2019BACKu2019.   
         LEAVE TO SCREEN 0. 
    ENDCASE.
    ENDMODULE.      
    ~Pramod

  • Removing default selected format

    Hi all,
    When I run the report FBL1N, and click on List - Export - Spreadsheet,  I get a selection box to choose the format. When I choose a particular format and check the box "Always use selected format", the system always uses the same format to save the exported file.
    Now the question is:  I want the selection box to choose the format back.
    If we go to table "SALV_BS_ADMIN" and delete the entry we can get back the selection box back, but I came to know that there is a programme for the same. Can any body help me with the programme.
    Hope I made myself clear with what I am after.
    Kevin.

    Hi,
    I think that note 1080608 answers this re entries in table SALV_BS_ADMIN
    Summary
    Symptom
    You export data from an ALV version into a format for the spreadsheet:
    GUI ALV: as of Release 6.40/Support Package 21 or Release 7.00/Support Package 13
    ALV Fullscreen(Grid)/ALV Classic(List): menu option 'List -> Export -> Spreadsheet'
    ALV Grid: menu option 'List -> Export -> Spreadsheet'
    Currently, supported formats are:
    Excel (in MHTML format)
    Excel (in MHTML format for 2000/97)
    Star Office 8 Calc / OpenOffice.org 2.0 Calc only as of Release 6.40/Support Package 21 and Release 7.00/Support Package 14
    Excel (in Office 2003 XML format)
    SAP internal XML format
    SAP Standard (internal table)
    Excel (in previous XXL format)
    Web Dynpro ALV: as of Release 7.0
    Pushbutton 'Export'
    Currently, supported formats are:
    Excel (in MHTML format)
    Excel (in MHTML format for 2000/97)
    You can change this only by using the report SALV_BS_ADMIN_MAINTAIN. You cannot select which format you want to use. The default value is Excel (in MHTML format).
    In general, the format into which the data is to be exported can be specified at user level or at client level. It can be specified as follows:
    GUI ALV:
    a) At user level:
    In the dialog box 'Select Spreadsheet',
    set the indicator 'Always Use Selected Format' (creating an entry in the table SALV_BS_ADMIN),
    or
    Maintain the table SALV_BS_ADMIN using the report SALV_BS_ADMIN_MAINTAIN.
    b) At client level:
    Maintain the table SALV_BS_ADMIN using the report SALV_BS_ADMIN_MAINTAIN.
    Web Dynpro ALV:
    a) At user level:
    Maintain the table SALV_BS_ADMIN using the report SALV_BS_ADMIN_MAINTAIN.
    b) At client level:
    Maintain the table SALV_BS_ADMIN using the report SALV_BS_ADMIN_MAINTAIN.
    The entries in the table SALV_BS_ADMIN for individual users generally have priority over those at client level.
    In the GUI ALV, an entry in the table SALV_BS_ADMIN means that you skip the dialog box 'Select Spreadsheet' and you directly go to the screen where you save the file. In the context menu of the list, choose 'Spreadsheet' so that the system displays the dialog box 'Select Spreadsheet' again for the export.
    The entry in the table SALV_BS_ADMIN is also deleted,
    which otherwise is only possible using report SALV_BS_ADMIN_MAINTAIN.
    In addition, the system opens the dialog box and the indicator 'Always Use Selected Format' is not set.
    In general, the identical dialog boxes can only be provided in two cases. Calling it using the menu is used for creation,
    calling it nusing the context menu is used for deletion.
    In the ALV list display, you can use Note 1157927 to enter the function code "&RESET_EXCEL" in the command field to reset the parameter in the ALV list. As a workaround to Note 1157927, you can either execute the application with an ALV Grid, or you can use the report SALV_BS_ADMIN_MAINTAIN to remove the entry.
    In the Web Dynpro ALV, the system automatically exports the data into Excel (in MHTML format) if there is no entry in the table SALV_BS_ADMIN. You can make changes only using the report SALV_BS_ADMIN_MAINTAIN.
    Comments about the report SALV_BS_ADMIN_MAINTAIN:
    In general, you can maintain only one parameter (either for each user and client, cross-client or for all clients):
    1. Specify whether you want to display, create, change, or delete the entries in the table.
    2. Specify whether you want to make the specification for the entire client or for an individual user. Make the relevant specifications in the area 'General Data'. In this area, set the indicator 'All' if you want to maintain the parameter for all the clients.
    3. As of Release 7.0, the parameter 'ALV_Webdynpro' also exists for specifying the ALV version in addition to the parameter 'ALV_GUI'. Specify for which ALV version the specification is to be valid. Make the relevant specifications in the area 'ALV Data'.
    Comment: The indicator 'All' is available only in display mode and in delete mode.
    4. Execute the report.
    Other terms
    ABAP, ALV
    Export:
    SALV_BS_ADMIN, SALV_BS_ADMIN_MAINTAIN
    Export: XML format, settings
    Thanks
    Aravind

  • Changing header of an analysis grid in Excel

    Hello!
    I try to change the header of a query in Excel, but when I change from design mode to analysis mode the title of the header changed to the intial value "Table".
    Is there are a way to change the title of a query in Excel permanently?
    Thanks in advanced!
    Best Regards,
    Markus

    Hi,
    You need to Create a program and create normal screen no. 100 under this program. And in screen 100, please create custom control
    Look at the below link
    http://howforge.com/abap-4-example-code-alv-grid-control-by-applying-object-cl-gui-alv-grid
    Regards
    Sudheer

  • Saving Settings for all Users

    Hi,
    I am searching for a Solution, how to save WD ALV View using Settings globally, which means, that
    this Setting is valid for all Users and not User dependent.
    In GUI ALV we set it as Example /TEST and after Saving it, it will be valid for all Users.
    How to Code it? Please give Example. Thanks!
    Best regards
    Beserithan Malabakan

    Hello,
    Do the following:
    In the se80 choose you web dynpro application and the go to the menu Web Dynpro Application->Test->Execute in Administration Mode, now all changes that you do in the configuration will be saved for all users (if when saving you select the Assignment = All ).
    Regards.

  • Excel Export - Numbers are displayed as text

    Hello,
    When the report is exported to excel from SAP LIst Viewer screen -
    List -> Export -> Spreadsheet ->All Available format --> In Office 2003 XML format.
    The report opens up in excel, the numbers (numerical values) are displayed as text. How can we change the system setting, so when the report is exported to excel, the numbers are not converted to text.
    I found SAP Note 1393974 - WD ABAP ALV: Excel export: Numbers are interpreted as text - which is related to WD setting.
    But it does not mention about the GUI ALV.
    Appreciate helpful replies.
    Thanks,
    Madhu

    Hi,
    Try this
    List->Export->Local file  and then select spreadsheet from the list.
    You will get the actual data in excel sheet.
    Regards,
    Aravind.

  • Header display

    hi all,
    now im working on smartforms.im displaying details based on customer.
    each customer have item details for different quarters(apr-jun,jul-sep,oct-dec,jan-mar).
      i've given page break for customer ,sales employee .if the customer & sales employee r same i want to display all quarters in same page only if the item details exceeds first page it should continue to next page.and i want to display the total for quarter wise.
    For me only one quarter is displaying in one page .(if there is enough space in first page its not printing in first page it goes to next page ).the next quarter is displayed in second page so again customer details are displaying.
    can any one help me on this.

    Hi,
    You need to Create a program and create normal screen no. 100 under this program. And in screen 100, please create custom control
    Look at the below link
    http://howforge.com/abap-4-example-code-alv-grid-control-by-applying-object-cl-gui-alv-grid
    Regards
    Sudheer

  • International Editable SALV Day

    http://scn.sap.com/thread/733872
    Dear Programmers,
    On the 8th of February 2008 James Hawthorne started the discussion (link above) as to why SAP does not give the CL SALV TABLE the option to be editable, as CL GUI ALV GRID is.
    There is no need to re-iterate why this would be a good thing, it is blindingly obvious.
    As can be seen from the thread a very large number of ABAP programmers support this idea, indeed I would be amazed if even one, anywhere in the world, outside of SAP development, would NOT think this would be good.
    I wanted to post a reply to this thread, but in a bitter twist of irony, that thread is no longer editable, rather like the SALV itself.
    I propose that in recognition of the long standing campagn on this issue, that the day that discussion was first posted, the 8th of February, be declared "International Editable SALV Day". This year, 2014, was it's sixth birthday, and it will be aged seven before you know it.
    I have made a note in my diary to post a blog on the 8th of February 2015 celebrating this day, and I encourage any other supporters of this scheme to do likewise. Ater another twnety years of this, who knows? SAP might start listening to the developer base.
    Cheersy Cheers
    Paul

    I lived in Germany and generally people there do not like to break the rules and are really puzzled why other people would want to do so.
    So if the rule is that the SALV is not editable, then that is that, once that's been made clear by an official from SAP then naturally everybody will stop trying to work around this. SAP even changed the class to disbale one of the workarounds.
    Sadly in different countries there are different attitudes and in Australia we have no compunctions at all about breaking the rules if it gets the job done. That's probably why a surprising number of scientific breakthroughs originate from Australia.
    In the same way that people are not going to start using Solution Manager just on the grounds that "they should" if someone wants to make the SALV editable they will, on that discussion above there are at least two workarounds, I am sure dozens of "customers" are working on this right now.
    Can it be that difficult for SAP Development to make the connection between people doing "naughty" workarounds to make the SALV editable and the possibility that lots of people might actually WANT this functionality? What was that about listening to the customers and the "empathy" SAP is supposed to have as part of it's "Design Thinking?"
    It is rather like the obvious bug which was that you could not have a purchase order with multiple account assignment that posted at the time of goods receipt. For time immemorial SAP claimed that was not a bug but "working as designed" despite every single customer wanting this to be fixed, on the grounds that it is a very dodgy accounting practice to post different costs for virtually identical business transactions at different times due to a vagary of your computer system. It's not quite false accounting, but it's pushing it. Anyway EVENTUALLY SAP came out with a fix for this in an enhancement pack.
    So there is precedent, and might I humbly suggest to the red nosed SAP ALV development team that the easiest way to stop people doing workarounds to to remove the need for a workaround in the first place, by having the functionality as standard.
    Cheersy Cheers
    Paul

Maybe you are looking for

  • 2 different select statements

    I'm needing to use a if statement in a sql query. I have written an if statement to handle it but it won't work I think due to the 2 statements return different values. How would I make this work: ALTEr PROCEDURE [dbo].[spBookings] @callAgentID VARCH

  • First and last day of current year as a date object

    Howdy... can someone please help me out... i need a fast way to get the first day of the current year as a date object and the last day of the current year as a date object... big thanks for any sample code...

  • Combo / Optical Drive detected but not reading CD & DVD

    Hi everyone, Firstly, I apologize if this topic has been covered but I've searched up and down and couldn't find it. I'm running the following computer: G4 MDD Dual 1.42Ghz, 1Gb RAM, OS 10.4 My computer has been dormant for about a month now and last

  • How do I get my computer to recognize my external hard drive

    How do I get my computer to recognize my external hard drive?

  • InsertBeforeEnd works in JDK1.3 but not in JDK1.4

    Any idea why this would work perfectly in JDK1.3 but not JDK1.4? logPane = new JEditorPane(); logPane.setEditable(false); HTMLEditorKit k = new HTMLEditorKit(); doc = (HTMLDocument)k.createDefaultDocument(); logPane.setEditorKit(k); logPane.setDocume