Not Getting all the icons in the Toolbar while using using ALV with OOPS

Hello,
But I am not able to get all the Keys in the toolbar for which i have called the method from class  cl_salv_functions_list, by using the following logic.
Though i am getting all except Word Processing, ABC Analysis, Save layout, Information, Get Layout.
FORM ALV_DISPLAY .
  data: lr_functions type ref to cl_salv_functions_list,    "toolbar
        lr_columns type ref to cl_salv_columns,
        LI_COLUMNS TYPE REF TO CL_SALV_COLUMNS_TABLE,    "columns instance
        LI_COL TYPE REF TO CL_SALV_COLUMN_TABLE,        "column instance
        LR_EVENTS TYPE REF TO CL_SALV_EVENTS_TABLE,
        GR_EVENTS TYPE REF TO LCL_HANDLE_EVENTS.
  TRY.                                               "method for ALV display
      CALL METHOD CL_SALV_TABLE=>FACTORY
        EXPORTINg
          LIST_DISPLAY = IF_SALV_C_BOOL_SAP=>FALSE
        IMPORTING
          R_SALV_TABLE = li_alv
        CHANGING
          T_TABLE      = it_po_final.
    CATCH CX_SALV_MSG .
      message e001(00) with text-011.
  ENDTRY.
*calling methods for toolbar
  lr_functions = li_alv->get_functions( ).
  lr_functions->set_default( abap_true ).
  lr_functions->set_print_preview( abap_true ).
  lr_functions->set_view_excel( abap_true ).
  lr_functions->SET_EXPORT_WORDPROCESSOR( abap_true ).
  lr_functions->set_export_localfile( abap_true ).
  lr_functions->SET_EXPORT_MAIL( abap_true ).
  lr_functions->SET_EXPORT_SEND( abap_true ).
  lr_functions->SET_ABC_ANALYSIS( abap_true ).
  lr_functions->SET_GRAPHICS( abap_true )
  lr_functions->SET_LAYOUT_SAVE( abap_true ).
  lr_functions->SET_DETAIL( abap_true ).
  lr_functions->SET_LAYOUT_MAINTAIN( abap_true )
*... set the columns technical
  lr_columns = li_alv->get_columns( ).
  lr_columns->set_optimize( abap_true ).
**get ALV columns
  CALL METHOD LI_ALV->GET_COLUMNS  "get all columns
    RECEIVING
      VALUE = LI_COLUMNS.
  IF LI_COLUMNS IS NOT INITIAL.
*Get EBELN column
    TRY.
        LI_COL ?= LI_COLUMNS->GET_COLUMN( 'EBELN' ). "get EBELN columns to insert hotspot
      CATCH CX_SALV_NOT_FOUND.
      MESSAGE i001(00) with text-012.
    ENDTRY.
* Set the HotSpot for ebeln Column
    TRY.
        CALL METHOD LI_COL->SET_CELL_TYPE "set cell type hotspot
          EXPORTING
            VALUE = IF_SALV_C_CELL_TYPE=>HOTSPOT.
      CATCH CX_SALV_DATA_ERROR .
      MESSAGE i001(00) with text-012.
    ENDTRY.
  ENDIF.
*Register events
*Event handler method for ALV
***handle hotspot click
  LR_EVENTS = LI_ALV->GET_EVENT( ). "get event
  CREATE OBJECT GR_EVENTS.
  SET HANDLER GR_EVENTS->ON_LINE_CLICK FOR LR_EVENTS. "register event handler method
  IF li_alv IS BOUND.        "calling display method for ALV
    li_alv->display( ).
  ENDIF.
ENDFORM.                    " ALV_DISPLAY

Hi Neha,
If you didn't get the answer then follow this one. Yeah and sorry, i checked and found that really you were not getting every icons. I am giving here a sample program.
REPORT  zdc_factory_alv_test
TYPES: BEGIN OF ty_vbak,
           vbeln TYPE vbak-vbeln,
           erdat TYPE erdat,
           auart TYPE auart,
           kunnr TYPE kunnr,
        END OF ty_vbak.
DATA: gt_vbak        TYPE STANDARD TABLE OF ty_vbak,
       gs_vbak        LIKE LINE OF gt_vbak,
       gr_salv         TYPE REF TO cl_salv_table,
       gr_container   TYPE REF TO cl_gui_docking_container.
START-OF-SELECTION.
   CALL SCREEN '3000'.
*&      Module  STATUS_3000  OUTPUT
*       text
MODULE status_3000 OUTPUT.
   SET PF-STATUS '3000'.
   SET TITLEBAR 'FACTORY'.
ENDMODULE.                 " STATUS_3000  OUTPUT
*&      Module  ALV_OUTPUT  OUTPUT
*       text
MODULE alv_output OUTPUT.
   PERFORM get_data.
   PERFORM create_container.
   PERFORM display_alv.
ENDMODULE.                 " ALV_OUTPUT  OUTPUT
*&      Form  GET_DATA
*       text
*  -->  p1        text
*  <--  p2        text
FORM get_data .
   SELECT vbeln erdat auart kunnr
      INTO  TABLE gt_vbak
      FROM  vbak
      UP TO 20 ROWS.
ENDFORM.                    " GET_DATA
*&      Form  CREATE_CONTAINER
*       text
*  -->  p1        text
*  <--  p2        text
FORM create_container .
   IF gr_container IS NOT BOUND.
     IF cl_salv_table=>is_offline( ) EQ if_salv_c_bool_sap=>false.
       CREATE OBJECT gr_container
         EXPORTING
           side      = cl_gui_docking_container=>dock_at_top
           extension = 2000
         EXCEPTIONS
           others    = 1.
     ENDIF.
   ENDIF.
ENDFORM.                    " CREATE_CONTAINER
*&      Form  DISPLAY_ALV
*       text
*  -->  p1        text
*  <--  p2        text
FORM display_alv .
   DATA : lr_columns     TYPE REF TO cl_salv_columns_table.
   DATA : lr_functions   TYPE REF TO  cl_salv_functions_list,
          lr_layout      TYPE REF TO cl_salv_layout,
          ls_layout_key  TYPE salv_s_layout_key.
   TRY.
       CALL METHOD cl_salv_table=>factory
         EXPORTING
           r_container  = gr_container
         IMPORTING
           r_salv_table = gr_salv
         CHANGING
           t_table      = gt_vbak.
     CATCH cx_salv_msg .
   ENDTRY.
   lr_functions = gr_salv->get_functions( ).
   lr_functions->set_all( abap_true ).
   lr_columns = gr_salv->get_columns( ).
   lr_columns->set_optimize( 'X' ).
   lr_layout = gr_salv->get_layout( ).
   ls_layout_key-report = sy-repid.
   lr_layout->set_key( ls_layout_key ).
   lr_layout->set_save_restriction( ).
   gr_salv->display( ).
ENDFORM.                    " DISPLAY_ALV
Note:- Double click on screen name '3000' and it will ask you option of creating screen.
There i have created one module..
After clicking 3000 under output module create MODULE alv_output.
That will look like...
PROCESS BEFORE OUTPUT.
   MODULE status_3000.
   MODULE alv_output.
PROCESS AFTER INPUT.
* MODULE USER_COMMAND_3000.
This is the sample result..
Still if you have any problem, then feel free to ask..
Regards
Dhananjay

Similar Messages

  • HT1476 My new i phone5 is plugged in and powered off but I am not getting any charging icon on the screen. Any suggestions. Phone is new and not charged

    I have a new iphone5. I have it poweredoff and plugged into the wall, but I am not getting any charging icon. Any ideas?.. Bill Steed

    You will not get anything on the screen as your iphone is powered off.
    Ideas for what?

  • Not getting all my mail on the iphone

    Last week my iphone stopped receiving my email. There are some messages there, but not all. All of them are from yesterday and I can tell you that I have about 20 unread messages in my account, but only 6 are there (all from yesterday). I can send email - I sent myself a test message and it went out, but I haven't received it yet. Any ideas?

    Hi Carolyn,
    I did to that first before posting the forum. The issue is that I get some mail, but not all my mail, and there are no errors. The pattern I see is that all my mail seems to come to my phone when I am on the job site. But not in all parts of my job site. And I only get some messages at my home as well.
    Receiving all my messages has worked since I set the phone up (several months ago) and then about two weeks ago i only get some messages not all my mail. There is no rhyme or reason.
    I will probably blow away my mail account and set up fresh, but wanted to check with the forum users to see if there might be someone else who has experienced and what the solution might be.

  • How, please, can I get rid of the icons in the bookmarks toolbar so I have space for more bookmark names? Thank you

    I try to get as many items as I can in the bookmarks menu toolbar (typically using 3 letter names). F4 adds an icon next to each name - taking up valuable space. How, please, can I get rid of the icons in the bookmarks toolbar so I have space for more bookmark names? Thank you.

    If you remove the names then you may have a problem with organizing or searching for bookmarks.<br />
    If you do not want to use the extension then you can achieve the same effect with code in userChrome.css<br />
    That is what I would do.
    Add code to userChrome.css below the @namespace line.
    * http://kb.mozillazine.org/userChrome.css
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #personal-bookmarks .toolbarbutton-icon { display:none !important;}
    </nowiki></pre>
    * http://kb.mozillazine.org/Editing_configuration
    * ChromEdit Plus: http://webdesigns.ms11.net/chromeditp.html

  • Is there a userchrome code to remove the icon of the folder (left) and the sideways triangle (right) on a bookmark folder? Not the Toolbar

    I try to customize my firefox as much as possible and with that being said I am stuck trying to figure out if there is a way to take a new folder in the bookmark menu and take off the icon of the folder to the left of the folder and then on the right there is a little sideways triangle that basically opens up to another folder or link within.
    Curious if I can take that out as I already know there is folders/links in there it would just look better.
    If there is a way to take out the sideways triangle will it still work the same way just without the arrow? I have subfolders in there just do not see the point in having a triangle there to tell me.
    Enclosing a picture if do not understand what I mean.
    Not the toolbar, When you go to file, edit, view, history, bookmarks then drop that down all your folders are within that. Trying to remove the icon and right sideways arrow when you make new folders. The icon on left of a pic of a folder and then to the right the >.
    See pic I have spent hours on google and forums seems no one has asked this question before...

    Also posted here:
    *http://forums.mozillazine.org/viewtopic.php?f=38&t=2923433

  • Why the 2LIS_08TRTK extractor can not get  all data

    Hello, BW Gurus.
    Why the 2LIS_08TRTK and 2LIS_08TRTLP extractors can not get all data. I had used the RSA3 and get 10 registers, when a check at the VTTK table I had 20 registers, I didnt use filters at RSA3, could you help to know what happen o correct it.

    Is it because
    <i>
    Shipment documents and their dependent objects (shipment stages as well as shipment items [deliveries in the shipment]) are only extracted into BW when the Shipment completion status has been set.
    This is necessary because the numeric values that result from the delivery documents are only established at the time. If the data were already stored earlier in BW, the shipment data would not be updated if the delivery notes were changed in BW.
    </i>
    - from oss note 573470.

  • Hi I  newly started using Iphone 6, I am not getting all the applications list under Use Cellular date for to restrict my unwanted apps on cellular data

    Hi I  newly started using Iphone 6, I am not getting all the applications list under Use Cellular date for to restrict my unwanted apps on cellular data
    Please help me out

    Hi Rajesh778484,
    Welcome to the Apple Support Communities!
    I understand that some of your applications are not appearing under Settings > Cellular on your iPhone so that you can restrict or allow use of cellular data. If you have some installed applications on your iPhone that are not showing here, the first troubleshooting step I would suggest would be to reset your iPhone. Please refer to the attached article for information on how to perform a reset. 
    Restart or reset your iPhone, iPad, or iPod touch - Apple Support
    Best regards,
    Joe

  • I have a friend who was going to sync her phone with my computer to get the new update..  how do i add her phone with out her losing everything on her phone and not getting all my info on her phone..

    i have a friend who was going to sync her phone with my computer to get the new update..  how do i add her phone with out her losing everything on her phone and not getting all my info on her phone..

    First, create a separate login on your computer for your friend. Do this BEFORE you do anything else. Next, make sure iTunes is up to date. Then:
    1. Disable auto sync when an iPod/iPhone is connected under Preferences>Devices in iTunes.
    2. Make sure you have one contact & one event in the supported applications(Address Book, iCal) on your computer. These entries can be fake, doesn't matter, the important point is that these programs not be empty.
    3. Connect her phone, iTunes running, do not sync at this point.
    4. Store>Authorize this computer.
    5. File>Transfer Purchases(To make sure all purchased content on her phone will be in her itunes library).
    6. Right click in the device pane & select reset warnings.
    7. Right click again and select backup.
    8. Right click again & select restore from backup, select the backup you just made. When prompted to create another backup, decline.
    9. This MUST be followed by a sync to restore her itunes content, which you select from the various tabs, You'll get a popup regarding her contacts & calendars asking to merge or replace, select merge.
    You should be good to go.

  • I am trying to import standard midi file that I created in Band in a Box into Logic Pro 9.  I can not get all the track to play with internal instrument sounds... only the piano track.  how can I get the others to play... drums, bass etc????   Help

    I am trying to import standard midi file that I created in Band in a Box into Logic Pro 9.  I can not get all the track to play with internal instrument sounds... only the piano track.  how can I get the others to play... drums, bass etc????   Help

    Don't drag the midi into an open Logic project. The tracks won't set up correctly.
    'Open' the midi file with Logic as if it were a Logic project. Then all the tracks will be set up so you can start editing them and applying better saved sounds and instruments, but you'll be at a starting place where you can hear what's going on.

  • Evelyn question:    I Photo, I lost all my images and am getting nothing up on preview or iphoto.  I did drage the icons to the bottom of my monitor.

    Evelyn -  question:    I Photo, I lost all my images and am getting nothing up on preview or iphoto.  I did drag the icons to the bottom of my monitor from
    applications and nothing happened.

    Before anyone can help, they need information to work with. Basic stuff:
    - What version of iPhoto.
    - What version of the Operating System.
    - Details. What were you doing when the problem arose?
    - Did it ever work properly?
    - Are there error messages?
    - What steps have you tried already to solve the issue.
    Anything else you can think of that might allow someone else to understand your issue.
    With this kind of information somebody can develop a starting point for troubleshooting the issue.
    Posts that consist of "iPhoto doesn't work. Help" or "iPhoto won't print" or "Suddenly I have no photos!!!!!!!!!!" mean that any helper is simply guessing. With information, s/he may be able to get your issue resolved sooner.

  • I installed google chrome and added it to my applications folder and it works but my desktop still has the icon of the chrome volume/disk and when i right click it gives an option to eject but it will not delete how can I get rid of it?

    I installed google chrome and added it to my applications folder and it works but my desktop still has the icon of the chrome volume/disk and when i right click it gives an option to eject but it will not delete how can I get rid of it?

    Drag it to the trash icon in your dock.  This is a disk image, and you need to "eject" it, to get rid of it.  

  • I lost all the icons at the bottom of individual emails on my iPhone. How do I get them back???

    I lost all the icons at the bottom of individual emails on my iPhone. How do I get them back???

    Open the mail app then press and hold the sleep/wake button until the red slide to power off thing appears. Without sliding the bar, press and hold the home button until the app quits.
    Also clear the mail app from multitasking bar too. Then open mail app and check again

  • I am unable to configure my ipad 2 with my existing wifi of linksys though I have entered the all ip address as per my laptop but still I am not getting thru network kindly suggest the solution

    i am unable to configure my ipad 2 with my existing wifi of linksys though I have entered the all ip address as per my laptop but still I am not getting thru network kindly suggest the solution

    The ip-adress cannot be the same as your laptop. You have to make sure that your ip-adress is unique in the network. if your ip is 192.168.1.100 try 192.168.1.112 or somthing. More advanced is to check avalible adress in your router.

  • When I click the icon at the top left of the page, all I ever get is refresh or close , never the Moztlla Firefox page

    When I click on the icon at the top left of the page all I ever get is refresh or close. never the Mozilla Firefox page. I have downloaded Firefox , but never get any further. What can I do about this problem?

    Firefox supports Vista so that shouldn't be a problem. What version of Firefox are you attempting to install? (From the tags on this ticket it looks like 19.) Can you share the link from which you downloaded Firefox? Did you get it from http://www.mozilla.org/en-US/firefox/new/

  • For the last 10 days I have been unable to open the Mail account on my eMac (MacOS10.4.11). When I click on the icon in the Dock the only option I get is "Force quit" and the main Mail bar will not open any  choice. Any ideas?

    For the last 10 days I have been unable to open the Mail account on my eMac (MacOS10.4.11). When I click on the icon in the Dock the only option I get is "Force quit" and the main Mail bar will not open any  choice. Any ideas?

    You can setup Mail for iCloud on the eMac.
    Do not delete the old account yet. sign up for an iCloud account if you haven't.
    I understand .mac mail will still come through. Do not delete the old account yet.
    You cannot use .mac or MobileMe as type of Account, you have to choose IMAP when setting up, otherwise Mail is hard coded to change imap.mail.me.com to mail.me.com & smtp.mail.me.com to smtp.me.com, no matter what you try to enter.
    iCloud Mail setup, do not choose .mac or MobileMe as type, but choose IMAP...
    On second step where it asks "Description", it has to be a unique name, but you can still use your email address.
    IMAP (Incoming Mail Server) information:
    • Server name: imap.mail.me.com
    • SSL Required: Yes
    • Port: 993
    • Username: [email protected] (use your @me.com address from your iCloud account)
    • Password: Your iCloud password
    SMTP (outgoing mail server) information:
    • Server name: smtp.mail.me.com
    • SSL Required: Yes
    • Port: 587
    • SMTP Authentication Required: Yes
    • Username: [email protected] (use your @me.com address from your iCloud account)
    • Password: Your iCloud password

  • Just downloaded book but did not get all the way down now cant play it  any answers

    just downloaded book but did not get all the way down now cant play it  any answers

    in iTunes, access your purchase history via your account in the iTunes store, find the file in question, and click on the report a problem button. report the problem. more info in this support article. 
    clicking here  should take you directly to your iTunes store log-in window.

Maybe you are looking for

  • How to delete photos from synced albums?

    Hi, after a holiday I sync all photos taken with my iPad 1. I want to delete bad photos and resync them with my PC. But I can't delete photos from my iPad/iPhone. Is there any possibility to delete single photos? Thanks

  • Kdeinit error

    I am getting a kdeinit error when trying to start kde. I have tried reinstalling and uninstalled kdemod and installed the regular kde but still the same problem with both. When I start up kde in pauses at "initializing system" and then blanks to a bl

  • HT204053 How to get into voice mail

    Just like to know how to access my voice mail?

  • [zsh] cannot input non ASCII characters

    When inputing non-ASCII characters (Chinese, for example) under command line, it becomes something like ä½? what is really should be printing is 你好 I've searched a little bit on this, and answer has always been "zsh has unicode support already after

  • HT4972 why am i getting an error -48 when updating to iOS5 on my iPad

    why am i getting an error -48 when updating to iOS5 on my iPad and how do I fix it? Apple's suggestion does not work.