Refresh clear.

hi mates,
     what is the difference bt refresh and clear. whats their usage in internal table. can anyone give sample code on usage of refresh , clear on internal tables.
regards
Manoharan

Hi
Clear will cleras the header information where as Refresh will also do same but it will remove all the BODY data available in internal table
CLEAR
Structures are set to their initial values component by component
means only header information
REFRESH
This statement sets an internal table itab to its initial value, meaning that it deletes all rows of the internal table. The memory space required for the table is freed up to the initial memory size INITIAL SIZE. For itab, you must specify an internal table.
To delete all rows and free the entire memory space occupied by rows, you can use the statement FREE.
The statement REFRESH itab acts for all internal tables like CLEAR itab[]. If an internal table itab has a header line, then the table body and not the header line is initialized. If the internal table itab has no header line, REFRESH itab acts like CLEAR itab. Therefore, you should always use CLEAR instead of REFRESH.

Similar Messages

  • What is causing this? Downloads do not complete, being partial and/or limited requiring refreshing/clearing History or stop-and-start Retry.

    Sometimes a download will not start at all if it is not small, (@ 1MB or greater) it will not download completely, requiring a Pause, then a Retry and/or clearing of the History and a reload of the page. Some downloads take as many a 5-10 such cycles to complete the download. This is also giving one particular secure site, my online college site, Argosy University Online, extreme issues just logging on to the Log-In page, and subsequent pages within the Online Campus.

    I checked  that yesterday and it wasn't set to do so... So I'm really confused. My fetch data is also on manually!

  • Refreshing/clearing iterator (ADF bug?)

    Hi,
    I have three cascading SelectOneChoice lists.
    List A
    List B
    List C
    The user can select a value in List A, which Populates List B and List C. The user can then select a value in List B, which then narrows down the contents of List C. The problem is that list C now contains the results from the List A event and the List B event, instead of just containing the results of the new query.
    I am using EJB3, ADF Faces
    many thanks
    R

    Just realised that it's not a problem of not being able to refresh the iterator - I can - it's that the iterator still contains the data from the previous query... AND then the data from the requery. All I need to know is how to empty the contents of the iterator?
    Come on expert Oracles, I'm feeling lonely here :-)
    R

  • Need to refreshing/clear browser cache after every updating of my site???

    Is it some feature in Muse that could force browser to check if site was updated? Always after updating site, visitors who were on site before, getting blanding pictures of old&new site.
    Its not pleasantly to always ask clients to press F5

    What version of Muse are you using?
    How are you doing updates? Are you updating one or more images but the names of the images are the same?
    Where's the site hosted? Does the hosting have unusual caching defaults?
    What's the URL for the site?

  • Clear and refresh

    Hi friends,
    I seem to have some confusion between clear and refresh. Do we use clear only for workareas and refresh only for internal tables?
    Can you give me an example of how these clear and refresh works for an internal table with and with out header line?
    Thank you,
    Krishen

    Hi,
      CLEAR resets to its initial values..
    1.
      For structure it will clear all the fields in the structure..
    EX:
    DATA: S_MARA LIKE MARA.
    CLEAR: S_MARA.
    2. For internal tables if it is declared with header line then it clear the header line otherwise it will clear the whole internal table..
      EX:
      DATA: ITAB TYPE STANDARD TABLE OF MARA WITH HEADER LINE.
      CLEAR: ITAB..  " THis will clear the header line..
      DATA: ITAB TYPE STANDARD TABLE OF MARA.
      CLEAR: ITAB..  " THis will clear the whole internal table..
    3. Refresh clear the internal tables irrespective of with or without header line.
    4. Clear can be used for variables, work areas and internal tables..
    THanks,
    Naren

  • VBA: Refresh and Clear with NO send and No dialogs

    BPC 5.1 SP3
    Scenario:
    An input schedule has a button on it to "build" the schedule (DRE). Once clicked, VB builds the DRE and then needs to refresh it.
    Problem:
    There doesn't appear to be any MNU macros that will:
    1. Clear input
    2. Refresh
    ...WITHOUT sending and without prompting the user in any way.
    MNU_eTools_Refresh
    Prompt the user to clear input, which is not desired.
    MNU_eSubmit_RefSchedule_Sheet_ClearAndRefresh
    Sends the data, which is definitely not desired.
    Is there a MNU macro that will refresh, clear, without sending and prompting? Or, does anyone know of a possible workaround?

    Hi John Kreps,
    Just Information for you. It's a VBA function:
    function abc( )
        application.Run("MNU_eTools_Refresh(..)")
    end function
    Notes:
    1. MNU_eTools_Refresh have the parameters, please read the sap bpc help.
    2. Please put the code into the module on Ms.Excel.
    Thanks,

  • How to clear the table contents for the new selection values?

    Hi,
    Im developing some very basic web dynpro applications.I have created one application to demonstrate use of SERVICE CALL.Now in one of the COntext Nodes,I have one attributes as TABLE.I have 2 input fields and when i enter any sel critteria in these 2 fields,the table is populated accordingly.Now when i change the value in the input fields,the new output gets appended in the output TABLE.How do I clear the contents of the OUTPUT table attribute  in the method?
    Can someone tell me the common methods used with context nodes like REFRESHING,CLEARING etc?How do I know which methods to call for what action of the nodes ...like for binding internal table to any context node we use the method BIND_TABLE...
    Any inputs will be highly appreciated.
    Thanks!
    BR,
    SRM tech.

    Hi,
    To clear the contents of the node, use invalidate method.
    data: l_node type ref to if_wd_context_node.
    l_node  = wd_context->get_child_node( 'NODENAME' ).
    l_node->invalidate( ). " all the data in the node will be cleared
    To clear a single attribute you can use set_attribute_null.
    Regards,
    Radhika.

  • I keep getting a big white box with an "!" within a circle even after constantly refreshing Firefox

    When playing a game on PCH I constantly get an interruption which is a large white square with a circle in the middle surrounding a ! symbol. Refreshing clears that up as it skips to a new game which will soon repeat the square, etc. I do get a message above that says an adobe plugin has crashed. Nothing I do seems to stop it for any length of time

    If you have problems with current Shockwave Flash plugin versions then check this:
    * see if there are updates for your graphics drive drivers
    '''https://support.mozilla.org/kb/upgrade-graphics-drivers-use-hardware-acceleration'''
    * disable protected mode in the Flash plugin (Flash 11.3+ on Windows Vista and later)
    '''https://forums.adobe.com/message/4468493#TemporaryWorkaround'''
    * disable hardware acceleration in the Flash plugin
    '''https://forums.adobe.com/thread/891337'''
    See also:
    * '''http://kb.mozillazine.org/Flash#Troubleshooting'''

  • Refresh functionality in portal

    Dear Experts,
    I'm facing issue regarding REFRESH functionality in WDP ..The issue is i have REFRESH(FPM Button) on my screen and when ever the user clicks on it , the screen should refresh(should come to initial state).
    And on refresh button event, i'm launching the screen by using below code.
    But, when appl'n is tested from portal, it is working incorrectly. If i pass parameter use_suspend_plug = ' ', first time on click of refresh button in portal,it is opening screen in portal it self, and on second click of refresh button in portal screen, it is opening screen in new window.
    Is it better to launch the appl'n or to refresh/clear all the screen element values and bind it again?... Here i have one more probelm, the ex-developer of the component has declared some attributes(nearly 15 attributes) in view controller(which cannot be access in component controller) and i cannot read those view controller attributes in component controller. so that i can read those attributes and clear the values( which is not possible now).
    Pls help me to achieve REFRESH(F5) functionality .
    Thanks
    KH

    Hi,
    My issue is resolved.
    Steps followed :
    1) Created an event in component controller( in events tab)
    2) In process_event of component controller, the created event is fired.
    3) And that event can be handled in any of the view controller's by declaring method in view controller
        with method type as event handler and in event->select the event created in component controller.
    4) Proceed further with the required functionality.
    Thanks
    KH

  • Materialized view refresh and rollback segment

    Hi all,
    maybe this is a dumb question but:
    We use a few materialized views (partitioned, on prebult tables) in our DB.
    The refresh method used is complete.
    Every refresh clears old data et the very beginning and leaves the table empty until new data is commited (can take up to 2 hrs). But what is use of specifying the rollback segment than?
    I would like to change this behaviour to keep the old data to the very moment of replacing with new one.
    Is there a way?
    Thanks a lot
    Petr

    Hi all,
    maybe this is a dumb question but:
    We use a few materialized views (partitioned, on prebult tables) in our DB.
    The refresh method used is complete.
    Every refresh clears old data et the very beginning and leaves the table empty until new data is commited (can take up to 2 hrs). But what is use of specifying the rollback segment than?
    I would like to change this behaviour to keep the old data to the very moment of replacing with new one.
    Is there a way?
    Thanks a lot
    Petr Oracle will truncate the MV and then effectively insert as select to populate your MV. In doing so
    Oracle needs to keep a read consistent view of the select it is executing. Here clearly you might consider specifying a specific rbs.
    Have you considered fast refresh or is this not a candidate? At least with fast refresh you won't have to compeletly rebuild the mv each time and it will be considerably faster.
    steve

  • Refresh Vo Iterator

    Hi,
    I m using Jdeveloper 11 g.
    My requirement is to refresh(clear the cache) Vo Iterator on page load.
    For that I tried Vo Object.
    1.
        ViewObject iterator =
                      ((DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry()).findIteratorBinding("CustCGUnmappedListVO1Iterator").getViewObject();
        iterator.clearCache();
        iterator.executeQuery();but this is not refreshing or clearing the cache of iterator.
    and also I used
    2. iterator.getApplicationModule().clearVOCaches(null , true);
    3. In VO, create the VO impl class and override the executeQuery method and executeQueryForCollection method.
    so please suggest is there any other solution to clear the cache then please replay.
    Thank You ,
    Dilkhush

    Hi,
    Sure,
    on my page there are three table's(A,B,C) of different VO Object's (V1,V2,V3).
    On page Load 'A' table has data and 'B' & 'C' tables are empty.
    on the first table selection (A) populates data in Other Two tables (B & C).
    Here I i Fire ExecuteWithParam on remaining VO to get data.
    when I change the menu and go on other page and come back to the previous page that time it show the last executed data in Table 'B' & 'C'.
    Here I required to clear both the table.
    Becoz unless n until user select the table 'A' Don't populate record in Table 'B' & 'C'.
    the Code which i had posted above was written in AfterPahse() Method of PhaseListener Interface.
    So please guide me.
    Thank you,
    Dilkhush

  • Clearing resource bundle cache - can it be done? how?

    How can I refresh/clear the resource bundle cache?
    I'm using JDK1.6 (under Tomact), been trying to use the ResourceBundle.clearCache(); method as indicated in the [International Enhancements in Java SE 6|http://java.sun.com/developer/technicalArticles/javase/i18n_enhance/#cache-expire] article with no effect.
    Code example:
    ResourceBundle.clearCache();
    ResourceBundle bundle = ResourceBundle.getBundle("conf.L10N.portal", ServletActionContext.getContext().getLocale());
    ...Change the resource bundle file made no effect and the same values kept coming from the cache.
    Does the clearCache method works? Am I doing something wrong?
    Thanks,
    Elad

    This works for me:
    import java.io.*;
    import java.util.*;
    public class ResourceBundleTest {
        public static void main(String[] args) throws IOException {
            ResourceBundle res = ResourceBundle.getBundle("res");
            System.out.println(res.getString("foo"));
            System.out.print("edit properties then type any char:");
            int ch = System.in.read();
            ResourceBundle.clearCache();
            res = ResourceBundle.getBundle("res");
            System.out.println(res.getString("foo"));
    }Could you need the version that takes a class loader? Have you tried using timetolive?

  • Clear Custom Control Area

    Hi Experts,
    I am using custom-control to embed an excel file in SAP. The problem is that when I m trying to open another excel file the one opened before still exists. I have debugged the program and found that the code is opening the new excel file but it is hidden behind the one opened before that file. I am using interface I_OI_DOCUMENT_PROXY and method 'OPEN_DOCUMENT' to embed the the excel file. I tried 'CLOSE_DOCUMENT', 'CLEAR_DOCUMENT' & 'CLEAR_SELECTION' methods but of no use.
    Below is the code I am using to embed an excel file into SAP. Hope this will help to understand the problem.
    ******Begin of Code**********************************
      IF NOT firsttime IS INITIAL.
        CLEAR firsttime.
        CLEAR: is_gui_container,
               l_document_url.
        lv_cnt = lv_cnt + 1.
        CALL METHOD c_oi_ole_control_creator=>get_ole_container_control
          IMPORTING
            control = g_control
            retcode = g_retcode.
        CALL METHOD c_oi_errors=>show_message
          EXPORTING
            type = 'E'.
        CREATE OBJECT g_container
          EXPORTING
             container_name = 'CONT1'
          EXCEPTIONS
             cntl_error                  = 1
             cntl_system_error           = 2
             create_error                = 3
             lifetime_error              = 4
             lifetime_dynpro_dynpro_link = 5.
        is_gui_container-application_name = 'Our test'.
        is_gui_container-container_name   = 'CONT1'.
        is_gui_container-rep_id           = sy-repid .
        is_gui_container-dynpro_nr        = '0100'.
        PERFORM pc_has_excel_or_excel2003.
        CALL METHOD g_control->destroy_control.
        CALL METHOD g_control->init_control
          EXPORTING
            r3_application_name      = is_gui_container-application_name
            inplace_enabled          = 'X'
            inplace_scroll_documents = 'X'
            parent                   = g_container
            register_on_close_event  = ' '
            register_on_custom_event = ' '
            rep_id                   = is_gui_container-rep_id
            dynpro_nr                = is_gui_container-dynpro_nr
          IMPORTING
            retcode                  = g_retcode.
        CALL METHOD c_oi_errors=>show_message
          EXPORTING
            type = 'E'.
        CALL METHOD g_control->get_table_collection
          IMPORTING
            table_collection = g_table_coll
            retcode          = g_retcode.
        CALL METHOD g_control->get_document_proxy
          EXPORTING
            document_type  = soi_doctype_excel97_sheet
          IMPORTING
            document_proxy = g_document
            retcode        = g_retcode.
        CALL METHOD c_oi_errors=>show_message
          EXPORTING
            type = 'E'.
        CONCATENATE 'file://' p_file INTO l_document_url.
        CALL METHOD g_document->clear_selection
          EXPORTING
            no_flush = ' '
          IMPORTING
            retcode  = g_retcode.
        CALL METHOD g_document->open_document
          EXPORTING
            document_url = l_document_url
            open_inplace = 'X'
          IMPORTING
            retcode      = g_retcode.
      ENDIF.
    ******End of Code*************************************
    Let me know if you want more details.

    Hi Rajesh,
      Try to Rrefresh that custom control, I had a similar problem with table control then i used the below method to solve that problem.
    set row & column to be stable after refresh
        CLEAR l_s_stable.
        l_s_stable-row = 'X'.
        l_s_stable-col = 'X'.
        CALL METHOD alvgrid->refresh_table_display
          EXPORTING
            is_stable      = l_s_stable
            i_soft_refresh = 'X'..
    if you search you may find out any other similar methods for your requirements..
    Reward with points if usefull..
    Regards,
    Srinivas.

  • I was told by Borders customer service that I have to add them as a "trusted site" to avoid an error message when sttempting to use the shopping cart. Is this true, and how do I do it?

    When I go to "checkout" on Borders.com, I get an error message. The message is as follows:
    [ServletException in:/ConsumerDirectStorefrontAssetStore/ShoppingArea/ShopcartSection/body.jsp] null'
    I have tried refreshing, clearing cookies, and everything I can think of. Customer service told me it had to do with security settings, and that I had to add it to my trusted sites. I have never had to do this before, so I'm jsut wondering if this was true, and how to do it.

    Are they multi-function units? Do they include a scanner? Most people call these multi-function copiers, not printers. Printers don't have a scanner in them.
    Give us some specifics as to the brands and models you have tried.

  • Correct ABAP Logic in Transformations-Start or Field Routine Error

    Hi
    I have written this code in start routine to split the data record into 2 if  bic/zdte_trm is not initial.
    But i am getting below error please correct me where i was wrong
    LOOP AT SOURCE_PACKAGE ASSIGNING <source_fields>.
          IF NOT <source_fields>-/bic/zdte_trm = ' '.
    * append a new record to source_package with this field initialised
            CLEAR wa_source.
            MOVE <source_fields> TO wa_source.
            CLEAR wa_source-/bic/zdte_trm.
            APPEND wa_source TO SOURCE_PACKAGE.
          ENDIF.
        ENDLOOP.
    At a LOOP over an internal table, the table is not allowed to be changed 
      in the loop tail as a whole.                                            
    SORT, MOVE, REFRESH, CLEAR are, for example, not allowed.

    Hi Saurov,
    Thanks for all the help.....
    The code is working fine but
    I got a strange issue while using this code
    DSO Data (Exisiting Data )
    Emp ID---Start Date--End Date
    1-----01/01/2008----
    Data from source system
    Emp ID---Start Date--End Date
    1-----01/01/2008----01/05/2008
    The code is spliting that record into 2 records
    1-----01/01/2008----
    1-----01/01/2008----01/05/2008
    and in source system in can see total 3 records
    1-------01/01/2008   (Exisisting Record)
    1-------01/01/2008   (New)
    1-----01/01/2008----01/05/2008 (New)
    The key fields in DSO is Emp Id and End Date
    Please,please update me how to resolve this issue

Maybe you are looking for

  • Performance issue - Pricing Report

    Hi Experts, I have developed an ALV report and I need to improve the performance in production. I have a relatively complex issue here. I have to fetch data for pricing from a pricing condition from all the respective underlying condition tables (AXX

  • How to block CIFed Transportation lane from ECC to APO

    Dear all, I want to know if there is any way to stop automatic creation of Transportation lane in APO when material master records, with  procurement type F: External Procurement and special procurement U, are registered or modified in ECC. Although

  • Can't create or open a project in Robohelp HTML 8

    Hi, I just installed RoboHelp HTML 8.0.0.203 trial on Windows XP (SP3). It's the first RoboHelp version I've installed on this computer. No error occured during installation the program starts normally. 1. When I try to create a new empty project the

  • What is the latest version of Firefox that will work with Windows ME?

    We were recently given an older Gateway laptop that we intend to use solely as an internet terminal. Alas, it is running Windows ME and I don't even know if it has all the specs to upgrade (and certainly not to Vista, which is the only thing we have

  • Configuring authentication in web proxy server

    We are using iPlanet Web Proxy Server 3.6 on WindowsNT 4.0 After installation of iplanet web proxy server 3.6, and making a request for internet access through browser it does not ask for authentication. There is no pop up window received for user na