Top of page data is repeated while going back from alv report

Hi,
   In my alv report , I call ed TOP_OF_PAGE.   Data regatding top_of_page is stored in internal table.
   After executing the report,while going back from report,  a screen containing top_of_page data is appeaing.
   Even though I cleared that table,still that data appeared.
  Please resolve this.

Hi all,
   I cleared that table previously .
   Still that screen appears.
This is my following code.
PERFORM top_of_page.            " Subroutine for Top-of-page
*Display Report
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
   EXPORTING
        I_INTERFACE_CHECK                 = ' '
        I_BYPASSING_BUFFER                = ' '
        I_BUFFER_ACTIVE                   = ' '
          i_callback_program                = lv_repid
        I_CALLBACK_PF_STATUS_SET          = ' '
        I_CALLBACK_USER_COMMAND           = ' '
          i_callback_top_of_page            = 'TOP_OF_PAGE'
        I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
        I_CALLBACK_HTML_END_OF_LIST       = ' '
        I_STRUCTURE_NAME                  =
        I_BACKGROUND_ID                   = ' '
        I_GRID_TITLE                      =
        I_GRID_SETTINGS                   =
        IS_LAYOUT                         =
          it_fieldcat                       = lt_fieldcat[]
        IT_EXCLUDING                      =
        IT_SPECIAL_GROUPS                 =
        IT_SORT                           =
        IT_FILTER                         =
        IS_SEL_HIDE                       =
        I_DEFAULT                         = 'X'
        I_SAVE                            = ' '
        IS_VARIANT                        =
        IT_EVENTS                         = it_events
        IT_EVENT_EXIT                     =
        IS_PRINT                          =
        IS_REPREP_ID                      =
        I_SCREEN_START_COLUMN             = 0
        I_SCREEN_START_LINE               = 0
        I_SCREEN_END_COLUMN               = 0
        I_SCREEN_END_LINE                 = 0
        I_HTML_HEIGHT_TOP                 = 0
        I_HTML_HEIGHT_END                 = 0
        IT_ALV_GRAPHICS                   =
        IT_HYPERLINK                      =
        IT_ADD_FIELDCAT                   =
        IT_EXCEPT_QINFO                   =
        IR_SALV_FULLSCREEN_ADAPTER        =
      IMPORTING
        E_EXIT_CAUSED_BY_CALLER           =
        ES_EXIT_CAUSED_BY_USER            =
   TABLES
          t_outtab                          = lt_meter
   EXCEPTIONS
          program_error                     = 1
          OTHERS                            = 2
IF sy-subrc <> 0.
  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
perform clear_data.
endif.
FORM top_of_page .
Declaration of local variables, structures and internal tables
  Data : lv_count      TYPE i,
         lv_count_c(9) TYPE c,
         lt_header     TYPE slis_t_listheader,
         wa_header     TYPE slis_listheader,
         lt_line       LIKE wa_header-info.
Title
  clear lt_header[].
  wa_header-typ  = 'H'.
  wa_header-info = 'Meter Readings Report'.
  APPEND wa_header TO lt_header.
  CLEAR wa_header.
Total No. of Records Selected
  DESCRIBE TABLE lt_meter LINES lv_count.
  lv_count_c      = lv_count.
  CONCATENATE 'Total Number of meters readed for given cycle: ' lv_count_c
     INTO lt_line SEPARATED BY space.
  wa_header-typ    =    'A'.
  wa_header-info   =    lt_line.
  APPEND wa_header TO lt_header.
  CLEAR: wa_header, lt_line.
*Display Top-of-page
  CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
      it_list_commentary = lt_header.
ENDFORM.                    " TOP_OF_PAGE
*&      Form  CLEAR_DATA
      text
-->  p1        text
<--  p2        text
form CLEAR_DATA .
data : lt_header     TYPE slis_t_listheader.
clear lt_header[].
endform.

Similar Messages

  • I would like to view my data usage per month going back at least 6 months. is it possible?

    I would like to view my data usage per month going back at least 6 months. is it possible?

    Data usage is only available for the past 90 days:
    On the left-hand side of the My Verizon page, click View Bill.
    Use the drop-down to select the appropriate bill.
    Click the Calls/Messages/Data tab.
    Use the drop-down to select the appropriate line (if applicable).
    Click the blue Data button.
    There's also a blue Download to Spreadsheet button below the data logs.

  • How do i cancel my subscription when i go to the page on adobe it just goes back to the previous page. is there an email address i can contact the customer support?

    how do i cancel my subscription when i go to the page on adobe it just goes back to the previous page. is there an email address i can contact the customer support?

    I don’t know the email address, but this page might help:
    Cancel your membership or subscription | Acrobat.com online services

  • TS3274 Google loads but web pages will not load, just goes back to homescreen

    Google loads but web pages will not. Just goes back to home screen.

    Any time you introduce new networking hardware (regardless of the reason) it is always a good idea to perform a complete power recycle of that hardware. Check out the following AirPort User Tip. Please post back your results.

  • Exporting data from ALV Report...

    Dear All,
    While I am exporting data from ALV report to any other Format (Excel, Txt, HTML) it only export the data of last column, but the heading is comming properly and also the column heading is displaying properly.
    So how to rectify it. (the report is Object Oriented).
    Regards,
    Dahrmesh

    Hi Davabap,
    Refer this sample program "BCALV_GRID_VERIFY" . I hope it is problem with structure mismatching.
    Otherwise can you paste your code ?
    Regards,
    Vicky
    PS: Award points if helpful

  • X200s sometimes hangs/freezes when goes back from sleep

    There is a confirmed bug in ubuntu jaunty/karmic running on lenovo x200 series notebooks. Shortly, it sometimes hangs/freezes when goes back from sleep mode.
    https://bugs.launchpad.net/ubuntu/+source/linux/+bug/479842
    Does anyone know anything  about it? How do i contact lenovo engeneer about it?
    Here is filled bug report in ubuntu bugtracker: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/479842

    There is a confirmed bug in ubuntu jaunty/karmic running on lenovo x200 series notebooks. Shortly, it sometimes hangs/freezes when goes back from sleep mode.
    https://bugs.launchpad.net/ubuntu/+source/linux/+bug/479842
    Does anyone know anything  about it? How do i contact lenovo engeneer about it?
    Here is filled bug report in ubuntu bugtracker: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/479842

  • I want to see out put of data  'plant wise' as  vertical left in ALV report

    I want to see out put of data  'plant wise' as  vertical left in ALV report.
    Can anybody suggest me with coding.
    thanks
    naresh

    Hiiii
    Sorry ...however could u be rather specific ..what u want ... unable to under stand ur requirement ...
    earlier also u asked some thing similiar query..i think that didnt solve ur issue ...
    is that u want a tree structure report ??????or what type of o/p do u want to have .....le tthat be more explanatory ....
    regards
    chandu reddy

  • Alv top of page date chopped

    Hi Experts,
                 In my Alv report top-of-page, i have a date . with name "Open Items As key Date" but i cant see
    full text and if the date is 11.07.2008. its showing 11.07.20. so how to do this.
    Correct answers will be fully rewarded.
    Regards
    Sunita.

    Hi,
    data : lv_bldat(10) type c.
    write p_bldat to lv_bldat.
    pass  lv_bldat inside of p_bldat.
    What about this thread
    ALV Top-Of -Page Display  No respose for this.
    If u got the solution close the THREAD.
    Thanks,
    Durai.V
    Edited by: Durai V on Jul 11, 2008 12:04 PM

  • ALV Top of Page Date format problem?

    Dear All Abapper,
                        I have placed date(12.12.2007) format in ALV Top of Page, but it displayed
                      <u> <b> 20071212</b></u> in this format.
                        Pls, give me the suggestion to reclaim my problem.

    Hi,
    Cjeck the following code:
    V_DATE = 'Run Date:'.
      CONCATENATE  V_DATE SY-DATUM6(2) '.' SY-DATUM4(2) '.' SY-DATUM(4)
       INTO V_DATE .
      REFRESH ITHED.
      CLEAR SHED.
      SHED-TYP  = 'A'.
      SHED-INFO =  V_DATE.
      APPEND SHED TO ITHED.
      CLEAR SHED.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
           EXPORTING
                IT_LIST_COMMENTARY = ITHED.
             I_LOGO             =
             I_END_OF_LIST_GRID =
    ENDFORM.                                                   
    Hope this helps.
    Reward if helpful.
    Regards,
    Sipra

  • How can I disable the touchpad and mouse shortcuts for go back a page? I keep accidentally going back a page and losing tons of data because of it.

    I've looked in both Windows 7's system options and Firefox options for ways of disabling this autoshortcut for going back a page, but there doesn't seem to be one. I'll be using the touchpad, sliding my fingers across, when I somehow activate a shortcut for "Go Back a Page" and end up losing tons of data on a form or chat or game.

    You can set mousewheel.with*.action pref(s) like mousewheel.withcontrolkey.action to 0 to perform a scroll.
    mousewheel.withcontrolkey.action
    mousewheel.withnokey.action
    mousewheel.withshiftkey.action
    mousewheel.withaltkey.action
    mousewheel.withmetakey.action
    See:
    * [http://kb.mozillazine.org/About:config_entries#Mousewheel.]
    * [http://kb.mozillazine.org/about:config]

  • Lost search engine bar at top of page, how do I get it back?

    Right top of page used to have a search engine bar. Now it's gone. Nothing in it's place. I have to type a search engine name on the top bar in order to get a search going. Help!
    Thanks

    *if missing items are in the Customize palette then drag them back from the Customize window on the toolbar
    *if you do not see an item on a toolbar and in the Customize palette then click the "Restore Defaults" button to restore the default toolbar setup

  • When ever i open a wab page in full screen it goes back to small size....

    when i want to view a page in full screen, it last about 3 seconds then goes back to original size. this is when i am playing a zynga based game. this never happened before i updated to new browser. it still works good on safari, but i like firefox. hope you can guide me in a direction to resolve this.

    If you need to adjust the font size on websites then look at:
    * Default FullZoom Level - https://addons.mozilla.org/firefox/addon/6965
    * NoSquint - https://addons.mozilla.org/firefox/addon/2592
    Your above posted system details show outdated plugin(s) with known security and stability risks.
    *Shockwave Flash 10.0 r45
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/

  • Date parse error while importing users from OIM to OIA (SRM 5.0.3)

    Hi All,
    Env Details:
    OIA (SRM 5.0.3), Weblogic and Oracle 10g DB
    We have integrated OIM to OIA with extended attributes mapping by modifying iam-context.xml file to load users. Its done successfully. But when we map "Date" related attribute, its giving "Date Parsing error" and its not loading the users.
    We have tried loading users using flatFile mechanism, its also giving same result.
    Please suggest me. Thanks in Advance !!!
    Regards,
    Ravi G.

    Hi,
    Its a problem with OOB's OIMIAMSolution.class file, which is called while importing users from OIM. It used DateParse () conversion method only for all attributes which OIA attributes' name is ends with "Date". It defined, the conversion of date from (yyyy-MM-dd). So its expecting the input value should be in defined format(yyyy-MM-dd), if not, it gives a parse error.
    We found work around for this as follows,
    We have used other related OIA attribute which name ends other than "Date" string.
    Thanks,
    Ravi G.

  • ALV OM - keep filter while deleting lines from ALV

    Dear all,
    I'm using an ALV (cl_salv_table) to get a proposallist of materials and substances to be linked. When a material is linked to a substance, all lines for this material are deleted from the ALV. So far, so good.
    When a user sets a filter on a certain column and links a material, the filter icon on top of the column is shown while the records are not filtered accordingly. When the user selects the column again en pushes the filter button, the value that was set in the first place, is shown.
    edit : I've "solved" this problem myself by getting a list of all filters, clearing lr_filters and filling lr_filters up again from this list.I        don't think this is a very clean sollution to the problem, but it works.
    How can I resolve this problem in a better way? Thanks in advance.
    Cheers.
    Luk
    Edited by: Luk Declerck on Dec 16, 2009 4:28 PM

    U can do all validations in the event data_changed_finished.
    ****----EVENT HANDLING.....*****
    *------Class definition
    CLASS lcl_event_handler DEFINITION .
      PUBLIC SECTION.
       METHODS handle_data_changed_finished FOR EVENT data_changed_finished
      OF cl_gui_alv_grid IMPORTING e_modified ET_GOOD_CELLS.
    ENDCLASS.                    "lcl_event_handler DEFINITION
    *-----Class implementation
    CLASS lcl_event_handler IMPLEMENTATION.
                      "handle_usercom
    **----DATA changed
      METHOD handle_data_changed_finished.
        PERFORM handle_data_changed_finished USING e_modified
    et_good_cells
      ENDMETHOD.
    ENDCLASS.                    "lcl_event_handler IMPLEMENTATION
    FORM handle_data_changed_finished using i_modified type char01
                                            i_good_cells type LVC_t_MODI.
    data: wa_good_cells type lvc_s_modi.
    // Perform ur validation here
    endform.

  • Going back from scene 2 to particular moment in scene 1

    Hello all,
    I have encountered a problem, and I need help from more experienced flash users.
    I am creating a webpage in flash, and for now, it consists of 3 scenes. First one is a loading bar, scene 2 is a main page with all menus, and on 3rd scene there is a gallery. I plan to make many galleries, each in different scene. Everything is ok to the moment, when I want to go back from scene 3 to scene 2. Scene 2 consists of many layers and movieclips, however, the main timeline consists only of one frame. When, in scene 2, I will get to the moment from which I am going to scene 3, so to some gallery, then after I am comming back to scene 2 (via gotoAndPlay('Scene 2', 1)), I am getting to scene in a state, as I see it just after loading bar disappears. But I want to be in a place, from which I went to scene 3. How do I achieve this? I think, there should be a way of remembering status of the scene 2 in such a way, that after comming back from scene 3 I would be in the same place from which I left to the mentioned scene 3. Be advised, that scene 2 is in one frame, and all movement in the scene 2 is done by actionscript and movieclips. I am using AS2.0.
    I hope I explained it in understandable way, let me know if there is a need for clarification.
    please help me before I will go crazy
    thanks!

    When you use scenes, which I am recommending you don't mainly because they can be unpredictably problematic when it comes to mixing in navigation, when you compile the file, everything gets clumped into one long timeline anyways, so your reason for using them isn't holding.
    If you plan to have galleries, then going with a design that loads them dynamically rather than storing the content in the file is the best way to go.   If you take a movieclip approach you can create your whole design in just one frame of the main timeline, loading your galleries when called for, and controlling other content via changing visibility or other properties.
    But even if you spread things along the one scene's timeline, you can have variables that you assign status info to that can be retained for the length of the timeline so that if you return to a section you can use those variables to set things back up to whatever status they should have.

Maybe you are looking for

  • How to run Forms5.o Applications on WEB using OAS 4.0.7

    I Have Oracle Application Server 4.0.7, installed, up and running on an NT Box. I have installed Forms5.0 Deployment server & Client on It. I was able to Run a forms module usning the Non Cartridge Method. I am not able to figure out how to create a

  • Cannot Display Chinese Word if pdf preview for PLD layout.

    Hi, I am facing a problem when user pdf preview the pld layout with chinese word, the content will be blank, it will not be displayed. Print preview work fine for chinese wording. I had tried to change the font to every chinese character through the

  • Photoshop Lightroom CC - Windows

    Photoshop Lightroom CC Windows-  displays a region request, then shows a serial number (not our CC serial number) on first run for every user. How do I stop this happening and will Adobe fix this behaviour?

  • Help! Cannot sign into app store with updated apple id.

    Hello there, I hope someone could help me resolve the following problem. So I've been using my Apple ID with a hotmail address for a long time. Today I changed the primary email address of my Apple ID to a gmail address. I DIDN'T create a new Apple I

  • Getting help with email

    my outgoing email is not working. I've reset ports. Help