Icon in toolbar repeats itself for every call

Hi;
i have implemented a toolbar for my ALV grid. Everytime i go back and return a copy of this icon is added on the toolbar. That means if i call the same screen ten times the same icon will be printed ten times in the toolbar. what have i missed? how can i reset?
thx
Ali

Hi;
This is where i set my grid (i have two grids but hte declarations are the same. i call according to a flag value(uzakdogu):
FORM alv_display .
  if uzakdogu = 'X' .
*----Creating custom container instance
    IF NOT gr_alvgrid IS INITIAL .
     call method gr_alvgrid->register_edit_event
       EXPORTING
         i_event_id = cl_gui_alv_grid=>mc_evt_enter.
     create object g_event_receiver type lcl_event_handler.
     set handler g_event_receiver->handle_data_changed for gr_alvgrid.
     set handler g_event_receiver->handle_hotspot_click for gr_alvgrid.
     set handler g_event_receiver->handle_toolbar for gr_alvgrid.
     set handler g_event_receiver->handle_menu_button for gr_alvgrid.
     set handler g_event_receiver->handle_user_command for gr_alvgrid.
     CALL METHOD gr_alvgrid->set_toolbar_interactive.
      CALL METHOD gr_alvgrid->refresh_table_display.
    else .
      CREATE OBJECT gr_ccontainer
        EXPORTING
          container_name = gc_custom_control_name
        EXCEPTIONS
          cntl_error = 1
          cntl_system_error = 2
          create_error = 3
          lifetime_error = 4
          lifetime_dynpro_dynpro_link = 5
          others = 6 .
      IF sy-subrc <> 0.
*--Exception handling
      ENDIF.
*----Creating ALV Grid instance
      CREATE OBJECT gr_alvgrid
        EXPORTING i_parent = gr_ccontainer
        EXCEPTIONS
          error_cntl_create = 1
          error_cntl_init = 2
          error_cntl_link = 3
          error_dp_create = 4
          others = 5 .
      IF sy-subrc <> 0.
*--Exception handling
      ENDIF.
    endif .
*----Preparing field catalog.
    REFRESH gt_fieldcat.
    PERFORM prepare_field_catalog CHANGING gt_fieldcat .
*----Preparing layout structure
    PERFORM prepare_layout CHANGING gs_layout .
    ls_variant-report = sy-repid.
    ls_variant-variant = '/UZAKDOGU' .
*§3.Optionally register ENTER to raise event DATA_CHANGED.
  (Per default the user may check data by using the check icon).
    call method gr_alvgrid->register_edit_event
      EXPORTING
        i_event_id = cl_gui_alv_grid=>mc_evt_enter.
    create object g_event_receiver type lcl_event_handler.
    set handler g_event_receiver->handle_data_changed for gr_alvgrid.
    set handler g_event_receiver->handle_hotspot_click for gr_alvgrid.
    set handler g_event_receiver->handle_toolbar for gr_alvgrid.
    set handler g_event_receiver->handle_menu_button for gr_alvgrid.
    set handler g_event_receiver->handle_user_command for gr_alvgrid.
   CALL METHOD gr_alvgrid->set_toolbar_interactive.
    CALL METHOD gr_alvgrid->set_table_for_first_display
      EXPORTING
        i_buffer_active               = 'X'
        i_bypassing_buffer            = 'X'
        IS_VARIANT                    = ls_variant
        I_SAVE                        = 'A'
      CHANGING
        it_outtab                     = itab[]
        it_fieldcatalog               = gt_fieldcat
      EXCEPTIONS
        invalid_parameter_combination = 1
        program_error                 = 2
        too_many_lines                = 3
        OTHERS                        = 4.
    IF sy-subrc <> 0.
*--Exception handling
    ENDIF.
set editable cells to ready for input
    CALL METHOD gr_alvgrid->set_ready_for_input
      EXPORTING
        I_READY_FOR_INPUT = 1.
  else .
and
this routine is called everytime i call the the relevant screen because it is inside PAI of the screen.
And here are my event handler declarations:
FORM handle_toolbar  USING    i_object type ref to cl_alv_event_toolbar_set
                              P_E_INTERACTIVE.
  DATA: ls_toolbar TYPE stb_button.
  CLEAR ls_toolbar.
  MOVE 2 TO ls_toolbar-butn_type.
  MOVE 'YAZDIR' TO ls_toolbar-function.
  MOVE icon_print TO ls_toolbar-icon.
  MOVE 'Belge Yazd&#305;r' TO ls_toolbar-quickinfo.
  MOVE 'Yazd&#305;r' TO ls_toolbar-text.
  MOVE ' ' TO ls_toolbar-disabled.
  APPEND ls_toolbar TO i_object->mt_toolbar.
ENDFORM.                    " handle_toolbar
FORM handle_menu_button  USING    i_object type ref to cl_ctmenu
                                  i_ucomm type sy-ucomm.
  CASE i_ucomm .
    WHEN 'YAZDIR' .
      CALL METHOD i_object->add_function
        EXPORTING
          fcode = 'ORDER'
          text  = 'Armatör Blg'.
      CALL METHOD i_object->add_function
        EXPORTING
          fcode = 'INVOICE'
          text  = 'Muhasebe Blg.'.
  ENDCASE .
ENDFORM.                    " handle_menu_button
FORM handle_user_command  USING i_ucomm type sy-ucomm.
  DATA: sonuc .
  DATA: kn TYPE i.
  TYPES: BEGIN OF t1,
          rowtype  TYPE lvc_rtype,
          index    TYPE lvc_index,
          END OF t1.
  DATA: lt_rows TYPE lvc_t_row,
        xrow    TYPE t1.
  DATA: pi_objky TYPE na_objkey,
        xkappl   TYPE na_kappl.
  IF i_ucomm EQ 'ORDER'.
    xkappl = 'V1'.
  ELSE.
    xkappl = 'V3'.
  ENDIF.
  if not uzakdogu is initial.
    CALL METHOD gr_alvgrid->get_selected_rows
      IMPORTING
        et_index_rows = lt_rows.
  else.
    CALL METHOD gr_alvgrid2->get_selected_rows
      IMPORTING
        et_index_rows = lt_rows.
  endif.
  DESCRIBE TABLE lt_rows LINES kn.
  IF kn GT 0.
    READ TABLE lt_rows INTO xrow INDEX 1.
    READ TABLE itab INDEX xrow-index .
    CHECK xrow-rowtype EQ ''.
    IF sy-subrc EQ 0.
      IF i_ucomm EQ 'ORDER'.
        MOVE itab-cnv_arm_belge TO pi_objky.
        IF pi_objky EQ ''.
          MESSAGE s020(zdhmsg).
          RETURN.
        ENDIF.
      ELSE.
        MOVE itab-cnv_mhs_belge TO pi_objky.
        IF pi_objky EQ ''.
          MESSAGE s021(zdhmsg).
          RETURN.
        ENDIF.
      ENDIF.
      IF pi_objky NE ''.
        CALL FUNCTION 'RV_MESSAGE_DIALOG'
          EXPORTING
            pi_kappl              = xkappl
            pi_objky              = pi_objky
          EXCEPTIONS
            cancel                = 1
            message_not_printable = 2
            no_message            = 3
            print_error           = 4
            preview_error         = 5
            invalid_preview_mode  = 6
            OTHERS                = 7.
      ENDIF.
    ENDIF.
  ELSE.
    MESSAGE s020(zdhmsg).
  ENDIF.
ENDFORM.                    " handle_user_command

Similar Messages

  • Is there a way to setup a repeating event for every 5th Sunday?

    I want to have a repeating event for every 5th Saturday, or 5th Sunday. Is there a way of doing that. I only see options for the first, second, third, forth, or last.

    Click get into on the event you have created, click repeat, and then custom. You can then choose "weekly" every (5) weeks and which day of the week to repeat it on.

  • HT4623 my iphone 5 is not getting audio during calls, im not hearing anything unless i put it on speaker. Can you help me is this a software problem its very annoying for every call i dial or recieve i have to put on speaker. Please help me apple please.

    my iphone 5 is not getting audio during calls, im not hearing anything unless i put it on speaker. Can you help me is this a software problem its very annoying for every call i dial or recieve i have to put on speaker. Please help me apple please.

    There's a whole lot to read in your post, and frankly I have not read it all.
    Having said that, this troubleshooting guide should help:
    http://support.apple.com/kb/TS1538
    In particular, pay attention to the mobile device support sections near the bottom, assuming you have already done the items above it.

  • Can't seem to customize repeat event for every Tu & Thu with OS 10.9.2 and iCal 7.0

    Used to be able to customize events in previous versions of iCal.  Now, trying to customize event for every Tue & Thu and even when I click "customize" on repeat event, only options are "daily, weekly, monthly, etc"  - not really flexible.
    Have tried removing p-list and restarting iCal and computer but no improvement.
    Currently using OS 10.9.2 with iCal 7.0.
    Does anyone have a solution?
    Thanks,
    MJ

    MJ,
    Where are you clicking on "customize?" Are you using the iPhone?
    This is what I am presented with when choosing "repeat" on my iMac:

  • Skype crash for every call i make

    Hello,
    I have a huge problem my skype crash when i try to call someone or receive a call.
    I searched for solutions and tried every solutions of this topic http://community.skype.com/t5/Windows-desktop-client/Skype-crashes-for-any-call-I-make/td-p/1764243
    nothing worked :/
    Help me please !! ;/
    Solved!
    Go to Solution.

    Kylar_Stern wrote:
    I'm on Windows 8.1 , 64 bits and with the last version of skype
    Please,  run the DirectX diagnostics tool.
    Go to Windows Start and in the Run box type dxdiag.exe and press the OK button. This will start the DirectX diagnostics program. Run this diagnostics and save the results to a file. Please, attach this file to your post.
    Be aware that you will have to zip this file before attaching it here.

  • Same caller image for every call

    I have an N8 with Symbian Anna. I have attributed an image to one of my contacts, but this image shows every time I recieve a call, regardless of who the caller is. How can I make my phone show the right image?
    Solved!
    Go to Solution.

    Fender77 wrote:
    Nice, it wasn't harder.
    And then you will have to apply the picture to contact instead.
    May you point out the step buy step guide on that too kingblue?
    Sure.
    First you make sure the image that you want to link to your contact is on your phone, by either taking a picture of the contact with the camera, or copying it into the Pictures folder on your N8 mass memory.
    After this you go to Menu -> Contacts -> open the contact that you want to change the image for -> click on the white image that represents a person -> select "Add image" -> select the image that you want to link to your contact.

  • Can i set a repeating event for every 5 days?

    Can a repeating event be set on the iPhone 5S running IOS 7.0x for an interval of less than a week but more than a day?

    ■ Easiest method, if you allow firefox to tabs you used then on restarting I believe it also retains the zoom settings
    * '''Tools -> Options -> General -> Startup = use current pages'''
    ■ There are also extensions that can be used, some allow individual sites to have individual settings. Look at the [http://support.mozilla.com/en-US/questions/772884 this thread] which also discusses related matters.
    ■ The best method if you need the same effest accross all sites is probably changing one of the preferences within the config files, it is discussed in the above linked thread and also in this MozzillaZine article http://kb.mozillazine.org/Layout.css.dpi

  • Is there any way to create a bookmark in safari that automatically creates itself for every user/account that logs into the computer?

    I am currently trying to add in a bookmark to Safari that will be automatically created on every account on the Mac.
    Is that possible? Or is the only way to do such a thing, to have to add it to each and every Safari on each individual account?

    HawkStreet wrote:
    I am currently trying to add in a bookmark to Safari that will be automatically created on every account on the Mac.
    Is that possible?
    No, unfortunately.
    Or is the only way to do such a thing, to have to add it to each and every Safari on each individual account?
    Yes.

  • Access 2010 Chart - Report returns an identical chart for every record in the underyling query

    Hi there, I hope someone can help me with this. I've created a stacked column chart in a Report. The chart seems to be working fine but my report is returning a chart for every record in the source query.  The chart adds up the days each vehicle in
    a fleet was used in a given time frame.  I'm not a code writer so wizarded my way to the following:
    TRANSFORM Sum(QVehicleDaysUsed.[DaysOfUseThisMonth]) AS SumOfDaysOfUseThisMonth SELECT QVehicleDaysUsed.[YearMakeModelPlate] FROM QVehicleDaysUsed GROUP BY QVehicleDaysUsed.[YearMakeModelPlate] PIVOT QVehicleDaysUsed.VehicleUseForMonthStarting;
    The chart seems to be producing exactly what I want but it's repeated once for every record in the source query. I don't know if this is the issue but I don't have a Master/Child field linking the chart to the report it's in - chart is unbound and therefore
    won't allow me to link fields. I'd sure appreciate any help you can offer! Thanks!
    (Incidentally VehicleUseForMonthStarting is a date field - ideally it should be shown as a DatePart MMMM but for whatever reason Access is balking at the Format expression.)
    Thanks!

    GOT IT! Hurray.  Obvious after giving it more thought... I had to make the report the chart was in Unbound. :) Leaving post up in case it helps someone else out.

  • Receiving Transaction Manager stop & start for every 1 min

    Hi Gurus,
    Current Setup:
    Ebiz instance is multinode setup
    DB - 2 node RAC
    CP - 2 node - PCP (DB and CP are same server but OS login different)
    W&F - 2 node - Load Balanced
    iRec - 1 node
    Ebiz version : 12.1.3 and db is 11GR2
    Issue: Receiving Transaction Manger,PO Document Approval Manager and INV Remote Procedure Manager are deactivated automatically and start by itself for every 1 min., rest other managers are up and running,
    pls help , thanks in advance
    Edited by: 929510 on Apr 23, 2012 4:31 PM

    Issue: Receiving Transaction Manger,PO Document Approval Manager and INV Remote Procedure Manager are deactivated automatically and start by itself for every 1 min., rest other managers are up and running, Was this working before? If yes, any changes been done recently?
    Can you find any errors in the CM/DB log files?
    Please run these scripts.
    Concurrent Processing - CMCLEAN.SQL - Non Destructive Script to Clean Concurrent Manager Tables [ID 134007.1
    Concurrent Processing - CCM.sql Diagnostic Script to Diagnose Common Concurrent Manager Issues [ID 171855.1]
    Thanks,
    Hussein

  • I copied a calendar item from Outlook to the Calendar app.  I can't delete it and the reminder for the meeting repeats itself every few seconds.

    I copied a calendar item from Outlook to the Calendar app.  I can't delete it and the reminder repeats itself every few seconds.  How can I stop the reminder?  How can I delete the calendar item?

    Can you access in on icloud.com and delete the event?  If not, and force-quitting didn't help, try going to System Preferences>iCloud, uncheck Calendars, choose Delete from Mac when prompted (they will still be in iCloud), then restart your Mac and go back and check Calendars again.

  • Ajax:callback function not called for every readystatechange of the request

    Author: khk Posts: 2 Registered: 2/17/06
    Feb 17, 2006 11:04 PM
    Hi
    I am working with an ajax program.
    In that i have defined a callback funtion
    but that function is not being called for every readystatechange of the request object for the first request .
    but it is working fine from the second request.
    function find(start,number){
    var nameField=document.getElementById("text1").value;
    var starting=start;
    var total=number;
    if(form1.criteria[0].checked) {
    http.open("GET", url + escape(nameField)+"&param2="+escape("exact")+"&param4="+escape(starting)+"&param5="+escape(number));
    else if(form1.criteria[2].checked) {
    http.open("GET", url + escape(nameField)+"&param2="+escape("prefix")+"&param4="+escape(starting)+"&param5="+escape(number));
    http.onreadystatechange = callback2;
    http.send(null);
    function callback2(){
    if (http.readyState == 4) {//request state
    if(http.status==200){
    var message=http.responseXML;
    alert(http.responseText);
    Parse2(message);
    }else{
    alert("response is not completed");
    }else{
    alert("request state is :-"+http.readyState);
    }

    Triple post.
    You have been answered here: http://forum.java.sun.com/thread.jspa?threadID=709676

  • Page headers repeat for every record on *.CSV export in Crystal 8.5

    I am a MAS 90 reseller.  I have encountered this issue:
    When I try to export a report to a *.csv format in Crystal Reports version 8.5 page headers repeat for every record in the export file.  The Sage MAS 90 database provides this solution:
    This is a known Crystal Reports issue. Download U2FSEPV.DLL, version 8.6.2.475, dated 11/28/2003 from the Business Objects Web site. For more information and a download link, see knowledgebase article c2014451 at support.businessobjects.com
    Note: Be sure to select the download link for Crystal Reports 8.x.
    I cannot locate this download anywhere in the new SAP site.  Can anyone direct me to this download?
    TIA for your help!

    I was finally able to get the uploaded file by right clicking on the file and selecting Save As.  However, when I replace all instances of this dll file with the new one (renamed as directed) I continue to get headers in the CSV file.
    This does not resolve the issue of getting headers only in the output.  Is this the correct dll file or is there another issue causing this output error?

  • Beep sound for every minute in call recordings

    Hi,
    I am using cistera convergence server for call recordings. For every recording, I am observing a beep sound before the recording starts and followed by exactly every 60 seconds. I didn't see any beep in live calls. This is only when I play the recording wav file.
    Cistera support guys said there is no problem on their server end and suggesting to check in CCM/IVR.
    Can anyone suggest me?
    Thanks,
    Mady

    I am not familiar with the recording system you use, but there is something in Call Manager that may be appropriate. This is often configured when you set up CUCM silent-monitoring for CTIOS.
    Monitoring Notification Tone
    A monitoring notification tone can be configured using the Service Parameter Configuration page in the CCM Administration Interface. There are two entries:
    Play Monitoring Notification Tone to Observed Target
    When set to true, this option will play the tone to the monitored party (usually an agent).
    Play Monitoring Notification Tone to Observed Connected Target
    When set to true, this option will play the tone to the party to which the monitored party is talking (usually a customer).
    A monitoring notification tone can be configured using the Service Parameter Configuration page in the CCM Administration Interface/ Select Server/ Select Cisco CallManger (active) for Service.  Look for "Clusterwide Parameters (Feature - Monitoring"). If these are set to true, set them to false and see what happens. A CM restart may be required.
    Regards,
    Geoff

  • Text/Label issue - being repeated for every record inside repeating frame.

    Hi
    I have a small issue:
    In the repeating frame, the label (text) for the column is being repeated for every record. How may I have the text (label) appear just once and not for every record?
    Thx!

    Move headings outside of the repeating frame.

Maybe you are looking for