Doubt in reuse_alv display feature

Hi all,
I'm using REUSE_ALV_GRID_DISPLAY fm to display some data. In transactions like SE16N, there is a download to excel macros (EXPORT) button present in the ALV. Is it possible to bring in the same functionality using REUSE_ALV_GRID_DISPLAY. I can only see an EXPORT to local file button when using REUSE_ALV_GRID_DISPLAY.
Regards,
Vijay

HI
GOOD
THIS CANT BE DONE ONLY USING RESUE ALV GRID DISPLAY,YOU HAVE TO USE OTHER FUNCTIONALITY TO ACHIEVE THIS.
GO THROUGH THIS REPORT AND DO ACCORDINGLY .
YOU CAN SEARCH IS REPORT IN BCALV_GRID*
data: ok_code like sy-ucomm,
      gt_sflight type table of sflight,
      gs_sflight type sflight,
      g_repid like sy-repid,
      g_max type i value 100,
§ 1.Define a structure of type LVC_S_LAYO.
      gs_layout   type lvc_s_layo,
      cont_for_flights   type scrfname value 'BCALVC_EXCEPTION_D100_C1',
reference to custom container: neccessary to bind ALV Control
      custom_container type ref to cl_gui_custom_container,
reference to ALV Control
      grid1  type ref to cl_gui_alv_grid.
§ 2.Define an output table with a field to show exceptions of type C.
    Remember the name of this additional field.
In this case: 'LIGHT'
data: begin of gt_outtab occurs 0.
        include structure sflight.
data: light type c.
data: end of gt_outtab.
The name of the additional field has to be acquainted to ALV
in 'gs_layout-excp_fname' which is of type lvc_cifnm.
'g_lights_name' is defined for that purpose:
data: g_lights_name type lvc_cifnm value 'LIGHT'.
Set initial dynpro
set screen 100.
      FORM EXIT_PROGRAM                                             *
form exit_program.
  call method grid1->free.
  call method cl_gui_cfw=>flush.
  if sy-subrc ne 0.
add your handling, for example
    call function 'POPUP_TO_INFORM'
         exporting
              titel = g_repid
              txt2  = sy-subrc
              txt1  = 'Error in FLush'(500).
  endif.
  leave program.
endform.
*&      Module  PBO_100  OUTPUT
      text
module pbo_100 output.
  set pf-status 'MAIN100'.
  set titlebar 'MAIN100'.
  g_repid = sy-repid.
  if custom_container is initial.
§ 5.Set a value for field LIGHT for each line of your output table.
  You do not necessarily need to define a field catalog if
  the rest of your output table is represented by a DDIC structure.
select data from table SFLIGHT
    perform build_data tables gt_outtab[].
    create object custom_container
        exporting
            container_name = cont_for_flights
        exceptions
            cntl_error = 1
            cntl_system_error = 2
            create_error = 3
            lifetime_error = 4
            lifetime_dynpro_dynpro_link = 5.
    if sy-subrc ne 0.
add your handling, for example
      call function 'POPUP_TO_INFORM'
           exporting
                titel = g_repid
                txt2  = sy-subrc
                txt1  = 'The control could not be created'(510).
    endif.
create an instance of alv control
    create object grid1
           exporting i_parent = custom_container.
set some layout-values (Structure LVC_S_LAYO)
Set a titlebar for the grid control
    gs_layout-grid_title = 'Flights'(100).
§ 3.Set field EXCP_FNAME of the structure of type LVC_S_LAYO
  with the name of your additional field.
    gs_layout-excp_fname = g_lights_name.
show table on ALV Control
§ 6.Provide your Layout-Structure when calling
  'set_table_for_first_display' (Parameter I_LAYOUT).
    call method grid1->set_table_for_first_display
         exporting i_structure_name = 'SFLIGHT'
                   is_layout        = gs_layout
         changing  it_outtab        = gt_outtab[].
  endif.
  call method cl_gui_control=>set_focus exporting control = grid1.
Control Framework flushes at the end of PBO automatically!
endmodule.                             " PBO_100  OUTPUT
*&      Module  PAI_100  INPUT
      text
module pai_100 input.
  case ok_code.
    when 'BACK'.
      perform exit_program.
    when 'EXIT'.
      perform exit_program.
    when 'SWITCH'.
      perform switch_led_style.
  endcase.
  clear ok_code.
endmodule.                             " PAI_100  INPUT
*&      Form  SELECT_TABLE_SFLIGHT
      text
     <--P_GT_SFLIGHT  text
form build_data tables p_gt_outtab structure gt_outtab.
§ 5.Set a value for field LIGHT for each line of your output table.
  You do not necessarily need to define a field catalog if
  the rest of your output table is represented by a DDIC structure.
select data from SFLIGHT and copies it into 'p_gt_outtab' which
lines contain an additional field for the lights/leds.
(see definition of 'gt_outtab' in the global deklaration section)
ALV Control only provides the possibility to SHOW lights or LEDs.
You must provide your own program logic to determine threshholds.
In this example
the lights/leds are set according to the number of occupied seats.
This form changes some values of SEATSOCC to get a nice mixture
of different LEDs.
  data: perc_occ type f,               "perc_occ % seats are occupied
       decision_value type i,
       decision_value2 type i,
       val0k3 type f,
       val0k6 type f.
  select * from sflight into table gt_sflight up to g_max rows.
  loop at gt_sflight into gs_sflight.
    move-corresponding gs_sflight to p_gt_outtab.
to show some red lights, some values of SEATSOCC are changed:
    decision_value = p_gt_outtab-seatsmax - p_gt_outtab-seatsocc.
    decision_value = decision_value mod 8.
    decision_value2 = sy-tabix mod 10.
    if decision_value = 0 or decision_value2 = 0.
      p_gt_outtab-seatsocc = p_gt_outtab-seatsmax.
    endif.
set lights according to percentage of occupied seats.
    val0k3 = 3 / 10.
    val0k6 = 6 / 10.
    perc_occ = p_gt_outtab-seatsocc / p_gt_outtab-seatsmax.
    if perc_occ = 1.
      p_gt_outtab-light = '1'.
    elseif perc_occ >= val0k3 and perc_occ < val0k6.
      p_gt_outtab-light = '2'.
    elseif perc_occ >= 0 and perc_occ < val0k3.
      p_gt_outtab-light = '3'.
    endif.
    append p_gt_outtab.
  endloop.
endform.                               " SELECT_TABLE_SFLIGHT
*&      Form  SWITCH_LED_STYLE
      text
-->  p1        text
<--  p2        text
form switch_led_style.
  statics style type i.
  if style is initial.
§ 4.Choose an exception style by using field EXCP_LED which is
    as well a component of the structure of type LVC_S_LAYO.
    gs_layout-excp_led = 'X'.
    style = 1.
  else.
    gs_layout-excp_led = ' '.
    style = 0.
  endif.
  call method grid1->set_frontend_layout
         exporting is_layout = gs_layout.
  call method grid1->refresh_table_display.
waiting for flush at PBO time...
endform.                               " SWITCH_LED_STYLE
THANKS
MRUTYUN

Similar Messages

  • Can I Use The Multiple Display Feature?

    Can I Use The Multiple Display Feature With My "Early 2011" Macbook Pro? Or Does it HAVE to me "Mid 2011"?

    bs212 wrote:
    No not the Mirroring, the new display feature where you can have a display on your tv doing one thing (like a slide show) and you can use your computer for something els. The multi screen feature .
    You could always do that as long as you could connect all the displays.
    What you are now describing is Airplay where the data is streamed to the AppleTV. The connection no longer has to be a physical cable.

  • Dim Display feature not working properly

    When I first got my 8330 a few days ago, the display dimming feature worked just fine.  Now, with Backlight Brightness set to 100 and Backlight Timeout set to 30 seconds, when I toggle "Automatically Dim Backlight" to ON, the display dims as soon as I save the configuration.  It stays dimmed continuously from that point on.  To get back to normal I have to toggle the "Automatically Dim Backlight" to OFF, but then it just stays on full brightness for the 30 seconds.
    Larry 

    <p>Cool, thanks for the tip.  I never thought of that.  Ithink that should work, I'll let you know if theres anyproblems.</p><p> </p><p>Along a similar line of thought why is it that when I insert aUDA using a load rule, and the option for 'Allow UDA Changes' ischecked in dDimension Build Settings, why does it not overwrite theprevious UDA, instead it creates duplicates, or three or fourcopies of the UDA I'm trying to load.  However if I uncheck"Allow UDA Changes" and have "Allow PropertyChanges" it will overwrite the UDA?  Is that a known bugin the system?</p>

  • How to display features to different login authentication levels?

    I am not too well versed in dreamweaver.  I have created a user login system with different levels of security access (users and administrators).  I want to be able to have the same pages display different links and data based on what they are logged in as.  This would be via PHP.  Is there any tutorials or resources that would help me do so?

    The best tutorial for you would be one that starts at the beginning. Trying to implement security features by copying and pasting code from a tutorial without understanding the fundamentals of the language is not a good way to start. Once you've learned the basics, you'll be able to figure out what you want to do by yourself. At a minimum, you need to learn PHP syntax and control structures (which makes up the bulk or your question).  It's not hard, and if you have any prior programming experience, it's much easier.
    Lots of good info on the web, here's one example.
    https://phpacademy.org/videos/learn-php

  • Ibooks doesn't display featured and categories panes in iOS 6

    Since I upgraded to iOS 6 on my iPad 3 a week ago, iBooks no longer shows the Featured or Categories panes in the application.  Is anyone else having this problem?

    The Photoshop and/or Bridge forums would be more likely places to get answers to your questions. This forum is inhabited more by programmer types interested in implementing the XMP specification in applications we write.
    I'd expect CS2 to ignore CS1 panels so I doubt that's the issue. Panels don't interfere with each other--they just offer different views of the data. In any case, move the extra panels to your desktop and see what happens.
    As far as I know, all you need to do on the Mac is drag the CS1 application folder to the trash to uninstall it.

  • Can I turn off the retina display feature on the new MacBook Pro?

    Hello,
    I recently got the new MacBook Pro with Retina display. I love how fast this machine performs, it's weight and thickness.
    However, working in Advertisement, this machine's made my line of work a bit too pixelated. There are no websites optimized for this new display, making portfolios hard to see as the retina screen makes things blurry and fussy looking. Not only that, but non of the Adobe products are ready for this technology either. It's hard to open a piece of software you'd like to design with and work with pixelated tools (photoshop among others).
    I can do without the Ethernet port, optical drive and the lack of a locking system for this machine. But, making things uglier on the web isn't something I'm willing to sacrifice since is my line of work. Any idea of a third party that can turn this feature off?
    Any help would be greatly appreciated. Otherwise, this beauty is going back to the Apple store.

    sorry, but the 2880x1800 is hardware; in fact what makes non-optimized sites look (relativly) ugly is that to upscale the graphics to the apparent resolution of everything else each pixel is represented by 4 pixels, and as you know being in graphics, upscaling pictures is generally results in ugly. 
    Back to my point, there's no software to make the display lose 75% of its pixels; you'll either have to use another machine and/or wait for sites to optomize their graphics for the retina displays...which may or may never happen depending on the sites awareness/closeness with Apple's technology

  • Duplicates - display feature!!

    Is it me - I would find the installed "Display Duplicates" feature useful IF iTunes knew that a "Duplicate" is only a "Duplicate' IF it's the SAME track, of the SAME length and on the SAME album.
    I like classical and show tunes and big band as well as all the other stuff SO........as it is I have a list of -so called - 'duplicates' which all say things like 'largo' and 'allegro' etc. and I also have albums that actually are supposed to have tracks with the same titles - artists who have re-recorded work later in life or issued two versions of the same thing in the first place (it happens)
    Also different casts in shows and different bands who have recorded the same things (go Latin!) so I do want the tracks to remain correctly titled - I don't want to rename them just because Apple can't design a filter properly.
    I have e-mailed Apple a few times but I see it has not changed - OR is there a trick I have missed?

    Hold down shift (or possibly Option as it's a Mac) before selecting File and the menu item should change to *Display Exact Duplicates*. It is slightly more useful but still not perfect. You can also find tools for managing dupes at http://dougscripts.com/itunes
    tt2

  • Video Display features

    Hi All,
    I have been wondering why can't the iPhone video has a Closed Captions, Sub-titles preference?
    It should have functions/features to show date tag/Geograhical Coordinates/GPS track information/Location Name, etc displayed while capturign the video.

    The default Player would have to support it.  If there is enough interest, there might be a third party player out there that can do it.

  • MBA Display features the same like MBP?

    Hi,
    I want to buy a MBA and my question: Does the MBA reduce the Display brightness if I didn't use it, after a short time? I see this on the MBP 15". I didn't mean that the display will went to black screen, it just change the brightness of the screen after one minute.
    Maybe someone can check it here for me? Would be great.
    Thanks
    Tapps

    That's a setting within OS X. All Apple notebooks have that feature/ability since it is a part of the OS that enables it.

  • How do I change display features for "Photos"?

    WHilein iPhot nad the "Photos" window, I see events listed. How do I change this display view so I see thumbnails of my photos chronologically?

    View Menu, uncheck Event Titles.
    Regards
    TD

  • Doubt , how to display ole objects in report builder

    Please tell me, how to display ole objects in report builder.
    I mean i wanted to print ole object in report, so how to do that.

    Just to clarify Lixia's response.
    In Reports 9i we have deprecated our OLE functionality. Reports created in prior versions that contain OLE objects should still run, but you will not be able to create new reports containing OLE objects.

  • I did a Sony Vaio Care maintenance and now Explorer works find, Firefox won't open Gmail except in HTML and won't display features on Facebook or parts of webpages. Java is on. Flahs is OK. Explorer works just fine but Firefox will not.

    Gmail will not open except in HTML
    My homepage ButchNews.com will not display google ads, nor content from some widgets.
    Facebook messages will not open.
    But everything works fine in Explorer... except I hate Explorer.

    I was having this problem too and found an easy fix from another thread. Finally have my firefox back up and running!! See below:
    "Easy to fix. Clear your browser cache (Tools > Clear Recent History > select Cache, click Clear Now).
    That fixed it for me. I have to do it every time I run Vaio Care."

  • Doubts about installation and features

    I'm a newbie on WebCenter Portal Framework and I have to build a PoC with some features like CMS, online collab, chat, analytics, single sign on, search engine and two sites.However, I don't know what should be installed in order to provide all these features.
    Is there a integrated product suite or should I install WebCenter Content, WebCenter Portal, WebCenter Sites and WebCenter social separately ?
    Thanks a lot.

    Hi.
    For your PoC first you need to know what you want exactly, web site? intranter portal?, collaboration?.
    If you want websites probably your solution is only WebCenter Sites.
    If you want "two sites" in a collaboration intranet your solution is WebCenter Portal : Spaces.
    In the case of WebCenter Portal : Spaces you need to install WebCenter Suite (includes WebCenter Content, Portal, Discussions, Activities, Portlets...).
    A PoC of your functionallity could be achieved by:
    - Use WebCenter Portal : Spaces and create two spaces to simulate your two sites.
    - CMS: Install and configure WebCenter Content for your WebCenter Portal : Spaces solution. Create one or two type of contents and create Content Presenter Templates to show them.
    - Collaboration: With WebCenter Portal Suite includes Collaboration Server based on Jive forums. Configure it for use it with WebCenter Portal : Spaces.
    - Chat: Read official documentation for how to integrate different chat providers to WebCenter Portal : Spaces.
    - Analytics; With WebCenter Portal Installation includes Activities Service. Configure the collector for WebCenter Portal : Spaces and show metrics with OOTB Task Flows.
    - SSO: Install Oracle OAM for SSO. Configure WebCenter Portal : Spaces for OAM SSO. You'll need webserver too (OHS or Apache).
    - Search: For a default search you can use WebCenter Default Search Adapter. If you need a powerfull search engine install Oracle SES (Secure Enterprise Search).
    I hope this help you.
    Regards.

  • Revel date editing/metadata display feature

    The Revel app for IOS allows you to edit the date of a photo, but this feature does not seem seem to available via the Revel website, Windows 8.1 app, or Android app. Is this something that will be added soon? Also, I think there needs to be a way to edit metadata, or at least SEE it.

    I was playing with it, checking it for you on a project with one MXF HVX-200 clip and it just crashed. Haven't ever tried to change my meta data before, no need, unlike you the HVX writes it for me.
    Can't help ya man. Might be a coincidence or might be real problem.

  • Name Display Feature Bug or not?

    hello you,
    I noticed an odd problem with my N82 where if I get an incoming call I will be able to see the name + number that I don't have on my phonebook (which is sent by the network via its registered name) BUT if I miss the call or I want to check back the name, there is no way I could retrieve that info, it's only when it rings that shows the name.
    In my previous phone 6100, it showed the full name even in the missed call list preferred over the #. let's face it we care about the name not the #. Anyone ran across sth like that .. If you don't know what I'm talking about try it for yourself I don't know if that's common across all Nseries but mine for sure has that problemo.
    I'd appreciate any useful feedback.
    Thanks

    What you're describing (full name CLID) is network-specific. Not many networks provide it - I've not yet used one that does, so not many people round here will see what you mean.
    Was this post helpful? If so, please click on the white "Kudos!" star below. Thank you!

Maybe you are looking for

  • Error in Excel converter

    Hi All, I am having issues while using export to excel functionality in Query designer and in portal. I have a query where I have 3 key figures of date format ( 2 of type date - DATs YYYYMMDD  and 1 of date type - DEC Counter or amount field with com

  • There is a new DSM 2.0, but where are the tech specs?

    Dear SDN Community, After the upgrade of one of our Portal systems from SP15 to SP17 we see that there is an additional configuration item in the System Objects availible. The new property it technical ID is: wap.ITS.SAP_Session_Management The descri

  • Why did I have to sign in 4 times to get into this forum?

    I hate apple.  I have to sign in 4 times just to use the forum?  And the only reason I want to use the forum is because Apple broke my ipod.  It was working fine until I tried to run the update.  Then it crashed, and wont work until I restore it, whi

  • Cannot get internet to work

    Hi Everyone, I have a blackberry storm 2 that was originally on a verizon network  here in the US.  It is now unlocked and I am using tmobile.  My plan allows me unlimited internet, but this is not the blackberry plan.  So simple browsing should work

  • Installing new styles into Elements 6 for Mac

    I have Photoshop elements 6 and run it on an imac.  I have several new styles that I downloaded that I wish to install and would like to know how to do that.  I can install brushes easily but not styles.  Thanks for any help you can offer. ann