Refresh program cache

Hi,
i need to refresh program cache.
My problem is:
- run the program
- call a FM
- change data
- call the FM (again) to refresh data.
The fm gets the old data.
How can I solve?

This is the full source code...
FORM bom_carica_modello USING par_matnr
                              par_stlal
                              par_stlan
                              par_werks
                     CHANGING par_tab LIKE it_tab[]
                              par_wa  LIKE wa_tab.
  DATA: it_bom_item OCCURS 0 WITH HEADER LINE.
  REFRESH it_bom_item.
  DATA: BEGIN OF it_diba OCCURS 0.
          INCLUDE STRUCTURE stpox.
  DATA: END   OF it_diba.
  REFRESH it_diba.
  CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
   EXPORTING
     datuv                       = p_datuv
    capid                       = 'PP01'
     mehrs                       = ' '
     mtnrv                       = par_matnr
     stlal                       = par_stlal
     stlan                       = par_stlan
     werks                       = par_werks
    TABLES
      stb                         = it_diba
  MATCAT                      =
   EXCEPTIONS
     alt_not_found               = 1
     call_invalid                = 2
     material_not_found          = 3
     missing_authorization       = 4
     no_bom_found                = 5
     no_plant_data               = 6
     no_suitable_bom_found       = 7
     conversion_error            = 8
     OTHERS                      = 9
  IF sy-subrc <> 0.
    MESSAGE ID 'ZM' TYPE 'S' NUMBER 099
          WITH 'Alternativa richiesta come modello non valida'.
  ENDIF.
  REFRESH par_tab.
  CLEAR par_wa.
  LOOP AT it_diba.
    IF it_diba-datub GE p_datub.
    Cancella le posizioni scadute
      CLEAR: par_wa.
      MOVE-CORRESPONDING it_diba TO par_wa.
      MOVE it_diba-meins TO par_wa-meins.
    Conversione UM
      CALL FUNCTION 'CONVERSION_EXIT_RUNIT_OUTPUT'
        EXPORTING
          input          = it_diba-meins
        LANGUAGE       = SY-LANGU
       IMPORTING
          output         = par_wa-meins.
      APPEND par_wa TO par_tab.
    ENDIF.
  ENDLOOP.
ENDFORM.                    " carica_modello
I have also added a wait command, a commit work... but the problem still the same...

Similar Messages

  • After REFRESH the cached object is not consistent with the database table

    After REFRESH, the cached object is not consistent with the database table. Why?
    I created a JDBC connection with the Oracle database (HR schema) using JDeveloper(10.1.3) and then I created an offline database (HR schema)
    in JDeveloper from the existing database tables (HR schema). Then I made some updates to the JOBS database table using SQL*Plus.
    Then I returned to the JDeveloper tool and refreshed the HR connection. But I found no any changes made to the offline database table JOBS in
    JDeveloper.
    How to make the JDeveloper's offline tables to be synchronized with the underling database tables?

    qkc,
    Once you create an offline table, it's just a copy of a table definition as of the point in time you brought it in from the database. Refreshing the connection, as you describe it, just refreshes the database browser, and not any offline objects. If you want to syncrhnonize the offline table, right-click the offline table and choose "Generate or Reconcile Objects" to reconcile the object to the database. I just tried this in 10.1.3.3 (not the latest 10.1.3, I know), and it works properly.
    John

  • Event-driven refresh of cached shared datasets

    We have a growing business intelligence solution deployed on SQL Server 2008 R2.  All reports are in SSRS and are executed via web browser by the end-users throughout the day.
    We have been investigating how to improve performance and so far it appears that converting report datasets to shared datasets and then caching those shared datasets provides the greatest opportunity.  (We can't snapshot or cache the individual reports
    themselves as they all contain customized content based upon the end user's roles and permissions).
    Creation of the shared datasets and setting them to be cached is easy, and we're seeing really nice performance improvements.
    However, we haven't been able to find a way to refresh the cached data without using the SSRS calendar-based schedule.  Our ETL process completes anywhere from 8 am to sometime after noon depending on data availability from source systems, so we can't
    just pick a point in time to refresh the cached data.
    Ideally we'd like to add commands to the end of the SSIS workstream that loads the database, and have these commands expire the existing cached datasets and refresh their data.
    We've been able to use the SetCacheOptions stored procedure to expire the cached datasets, ensuring that the next run of the top-level report will pull new data - but the performance hit on that first execution is significant.  We'd rather have the
    caches refresh systematically when ETL completes so that our end users are always seeing the fastest performance with the most current data.

    Hi GottaLoveSQL,
    As we know, there is no explicit setting for conditionally expiring the report cache. To work around this issue, you can use a stored procedure for the report dataset and create a parameter you can pass from the report to indicate that you should explictly
    flush the report instance cache. Then, in the stored procedure, check this parameter and expire the cache using the sp_start_job. After that, in the SSIS package which performs the ETL process, add a SQL Task which start a subscription job which will reload
    the dataset cache. For more information, please see:
    http://social.technet.microsoft.com/Forums/en-US/sqlreportingservices/thread/eb0dd2a6-9d2f-4430-9e88-020377e4fafd.
    Regards,
    Mike Yin
    TechNet Community Support

  • Refresh toplink cache from tirgger

    How to update the toplink cache due to change in the database by some external process or procedure?
    This question was posted some time back and one of the suggestion was to create a trigger on the table holding the data and implement callout to the toplink cache to refresh. I will appreciate if any one can let me know where I can I find more information to implement such a callout method from trigger on the database table.
    We are accessing the toplink objects from OC4J container from where a singleton is managing the calls to the toplink objects. We already have methods in place to refresh the cached object based on timeouts but now the new requirements are to refresh the objects only if the data is changed in the database.
    Thanks
    Ahmad

    I have url error on this thread : How to refresh cache in TopLink, turn off cache
    [b]Discussion Forums Error
    We cannot process your request at this time. Please try again later.
    Thank's

  • How to refresh SLD cache ?

    We have to change Business system names defined in SLD, we deleted Business systems and created them again.Still XI is picking name of the old system, which is clearly visible in sxmb_moni.
    We executed sxi_cache, is there something else for refreshing SLD cache ?
    regards
    vishal

    Try SXI_CACHE / Goto - Business System / Delete Cache content.
    regards,
    Craig

  • Refresh Ahead Cache with JPA

    I am trying to use Refresh-ahead caching with JPACacheStore. My config backig-map config is given below. I am using the same JPA example as given in the Coherence tutorial. The cache is only loading the data from the when the server starts. When i change the data in the DB, it is not reflecting in the cache. I am not sure I am doing the right thing. Need your help!!
    <backing-map-scheme>
                        <read-write-backing-map-scheme>
                             <!--Define the cache scheme-->
                             <internal-cache-scheme>
                                  <local-scheme>
                                       *<expiry-delay>1m</expiry-delay>*
                                  </local-scheme>
                             </internal-cache-scheme>
                             <cachestore-scheme>
                                  <class-scheme>
                                       <class-name>com.tangosol.coherence.jpa.JpaCacheStore</class-name>
                                       <init-params>
                                            <!--
                                            This param is the entity name
                                            This param is the fully qualified entity class
                                            This param should match the value of the
                                            persistence unit name in persistence.xml
                                            -->
                                            <init-param>
                                                 <param-type>java.lang.String</param-type>
                                                 <param-value>{cache-name}</param-value>
                                            </init-param>
                                            <init-param>
                                                 <param-type>java.lang.String</param-type>
                                                 <param-value>com.oracle.handson.{cache-name}</param-value>
                                            </init-param>
                                            <init-param>
                                                 <param-type>java.lang.String</param-type>
                                                 <param-value>JPA</param-value>
                                            </init-param>
                                       </init-params>
                                  </class-scheme>
                             </cachestore-scheme>
                             *<refresh-ahead-factor>0.5</refresh-ahead-factor>*
                        </read-write-backing-map-scheme>
                   </backing-map-scheme>
    Thanks in advance.
    John

    I guess this is the answer
    Sorry for the dumb question :)
    Note: For use with Partitioned (Distributed) and Near cache
    topologies: Read-through/write-through caching (and variants) are
    intended for use only with the Partitioned (Distributed) cache
    topology (and by extension, Near cache). Local caches support a
    subset of this functionality. Replicated and Optimistic caches should
    not be used.

  • Manually Refresh Toplink cache

    Gurus,
    Can we write some servlet which will alllow to manually refresh toplink cache, on click of button.
    Do we have to change any settings in session.xml or server.xml.
    Please point me in right direction.
    Thanks
    gbk

    There is no straight forward way of refreshing all the objects in the cache (short of looping through all the objects in the cache and manually refreshing them).
    The most common approach to this issue is to determine which queries need refreshing and refresh those.
    If this solution isn't what you were looking for, please provide more detail and I will be happy to help you further.
    Peter

  • POWL: Refresh the cache results of POWL during page load.

    Hi Friends,
    I am using a feeder class for my POWL. Whenever the user clicks opens the POWL, he sees the cached data/results and he is expected to do a manual refresh to see current/new data. I want to eliminate this by refreshing the cache during the page load itself and show user current data. I already know about the exporting parameter in handle_action method which is used to do refresh. But it does not work in this case.
    Pls help.

    Hello Saud,
    In which release you are? in new release you can do refresh by personalization where options are there.
    There are other options also to refresh
    1) By passing URL parameter refreshA=X it will refresh all queies when loading
    2) By passing refreshq=X, it will refresh the current query
    best regards,
    Rohit

  • Error while refreshing the cache ...

    Hi,
    In cache R/3 side shows me two red triangles: unable to refresh content and an error during last update. The error id BUSINESS_SYSTEM and the message is: NO INTEGRATION SERVER.
    Please help me resolve this.
    Regards,
    Mahesh.

    Hi Mahesh,
    perform SLDCHECK even try this SXMB_AMD
    pls do chk this links
    /people/sravya.talanki2/blog/2005/12/02/sxicache--ripped-off
    /people/sravya.talanki2/blog/2006/12/19/unable-to-read-integrationdirectoryhmiundocumented-bug-sxicache
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1a69ea11-0d01-0010-fa80-b47a79301290
    /people/sravya.talanki2/blog/2005/11/03/cache-refresh-errors--new-phenomena
    if found worth pls do the req
    Thanx
    Sampath

  • Periodic refresh of cache

    Hi
    Will the below ensure that distributed (internal local cache scheme) is refresh at regular intervals by setting high-units, low-units to zero.
    The use case is to expire all entries in cache at regular intervals, and reload them from cache store.
    <distributed-scheme>
    <scheme-name>example-distributed</scheme-name>
    <service-name>DistributedCache1</service-name>
    <backing-map-scheme>
         <read-write-backing-map-scheme>
         <scheme-name>DBCacheLoaderScheme</scheme-name>
         <internal-cache-scheme>
         <local-scheme>
    <high-units>0</high-units>
    <low-units>0</low-units>
                             <expiry-delay>60s</expiry-delay>
         </local-scheme>
         </internal-cache-scheme>
              <cachestore-scheme>
              <class-scheme>
                   <class-name>com.test.DBCacheStore</class-name>
                   <init-params>
                                  <init-param>
                                       <param-type>java.lang.String</param-type>
                                       <param-value>locations</param-value>
                                  </init-param>
                                  <init-param>
                                       <param-type>java.lang.String</param-type>
                                       <param-value>{cache-name}</param-value>
                                  </init-param>
                   </init-params>                     
                   </class-scheme>
              </cachestore-scheme>
              <read-only>true</read-only>
              <refresh-ahead-factor>0.5</refresh-ahead-factor>     
         </read-write-backing-map-scheme>
         </backing-map-scheme>
         <thread-count>10</thread-count>
    <autostart>true</autostart>
    </distributed-scheme>
    I see with above config, that all objects are being expired at 60s(expiry delay) * .5 (refresh-ahead-factor) = 30 secs, (as low-units and max-units is set to zero). Please clarify if this configuration works in all cases.
    Thanks
    sunder

    Hi sunder,
    refresh-ahead does not on its own guarantees refresh.
    Refresh-ahead is only ever consulted if there was a get()-like operation (read operation specifically directed against the entry... queries are not suitable for triggering refresh-ahead) against the entry within the interval designated by the refresh-ahead-factor.
    Let's suppose you have refresh-ahead set to 0.25, and expiry-delay set to 1 minute, then if you have a get against the entry in the last 15 second (= 0.25 * 1 minute) before it expires, then there is going to be an asynchronous fetch of the entry from the cache store. This means that the triggering read will see the old value, but once the asynchronous fetch completes, it will replace the old value with the newly fetched value in the cache.
    But if there are no triggering reads, then it will simply expire instead of refreshing.
    Best regards,
    Robert
    Edited by: robvarga on May 9, 2011 1:56 PM

  • EVDRE: refresh dimension cache files each time user saves or refreshes data

    Hi experts,
    We're facing a performance trouble with our input schedules, so we pretend to decrease response times.
    We've noticed an unexpected issue when users work with input schedules. Each time they save or refresh data into any input schedule, it seems to execute a dimension files refresh. Since they push Save buton till standard success message appears, we see diferent text messages in excel messages bar, in the bottom of excel window. And for a while, we can see a message where we can read "Load dimension cache".
    Does anyone know if this is an standar behaviour? Is there any way to avoid that, so we can decrease response time regarding input schedule performance?? Is there any dimension files refresh while we save data from an input schedule?
    Thanks in advance.

    I see these, too, running Fx12 on Windows 7. They are described in the (extremely voluminous!) about:cache interface as page thumbnails. I've attached some screen shots.
    The text is extremely difficult to see, so I don't know whether it is a serious privacy/security risk. I would be curious to know how long they linger.
    I think these support the Windows feature of showing a preview of a window or tab when you float over a taskbar button. (No idea whether there is a similar preview feature on Mac.) This feature is not enabled by default; users need to enable it in about:config. However, add-ons may be able to use the thumbnails because they have privileged access to the cache.
    (Note: This feature was added pursuant to [https://bugzilla.mozilla.org/show_bug.cgi?id=497543 497543 – Provide a thumbnail service]. It "landed" on or about Jan. 28, 2012, so its first appearance in a released version of Firefox might have been Fx12.)

  • (Automatic) Refresh of Cached object after insert/update

    Hi,
    (I am using Toplink 9.0.3 against an Oracle Database)
    I am inserting and updating records in the database through objects registered in a TopLink UnitOfWork. I happen to know that certain database columns will get a (changed) values because of Database triggers.
    Is it true that the only way to get these changed values reflected back to the TopLink cache is by explicitly executing a
    session.refreshObject();
    call for every object changed in the UnitOfWork?
    Is there no way to inform TopLink (for example through the descriptors for the relevant classes) that for certain classes after the insert/update an automatic synchronization with the database must be performed?
    I have not been able to find such a setting, but I may have overlooked it - I hope I did.
    Thanks for your help,
    Lucas Jellema (AMIS)

    In this case use a postMerge event -- it will get called after the merge of the cache and then you could update the object explicitly.
    Ultimately, the way to achieve the behavior you're looking for is events or refreshing.
    - Don

  • Refreshing TopLink cache problem

    Hello,
    Assume I configure TopLink to cache Class1 and Class2 objects. Class1 is related with Class2 with one-to-one relationship, and Class2 is related with Class1 with one-to-many relationship, Class2 is parent of Class1. When I invalidate instance of Class1 and its parent instance of Class2 with
    session.getIdentityMapAccessor().invalidateObject(object);
    session.getIdentityMapAccessor().invalidateObject(object.getParent());
    and read Class1 by Id with ReadObjectQuery, object of Class1 is refreshed from database, however, if I try to access its parent with Class1#getParent(), that parent is stale, it is not automatically refreshed from database. When I read it (invalidated parent object) with ReadObjectQuery by ID, it is refreshed from database.
    Is there any way to force TopLink to refresh objects that have been invalidated automatically without querying them by ID? If object A of type Class1 has been invalidated, object B of type Class2 has been invalidated, object A references its parent B and I query A by ID, I would like TopLink to refresh not only A, but B object too.

    If the parent is invalidated, then when you access the refreshed Class1's parent the parent should be refreshed. Are you sure you are invalidating both the Class1 and its parent before reading Class1?
    Otherwise I am not sure why you are seeing it not being refreshed.
    Perhaps try this on another object to see if it is something specific to how you have mapped the object.
    Otherwise enable FINEST logging and include the TopLink log.

  • How do I invalidate an entry so I force coherence to refresh its cache

    Hi,
    This is the use case: An entry in DB got update (through an update sql), I know the key of this DB entry, if I can:
    1. Invalidate this entry in Coherence cache
    2. do a "get" (which will force Coherence to do a read-through, and thus get the updated value.
    Is this possible if not what are my options.

    I'm assuming you have a cache store implementation? One solution that might work is to make erase and eraseAll noops.
    This means that when you remove a cache entry, it won't propagate down to the database. If you have implemented
    this with read-through (i.e. CacheLoader interface) the get operation will see that there is no entry and will refresh from
    the database.

  • GP Work Items are not coming in UWL after refresh the cache.

    Hi All,
    We are facing strange problem. We have cleared the UWL Cache for the GP connector and after that workitems releated to GP are not showing up into the UWL.
    Any Idea.??
    Thanks
    Dheerendra

    Hi Dheerendra,
    Are you using Federation by any chance? I mean, your GP runs on one server and you are using the UWL on the other server via federation? If yes then please check if the federation has been configured correctly and is working fine.
    The other thing you can check is that the GPConnector is deactivated by mistake. If yes, then activate it.
    Another check can be done in the System Configuration of the System Alias you are using for the GPConnector. Check whther it is pointing the correct sustem configuration. check whether the connection tests to that system are successful.
    Also check whether the GPWorkItemProvider Web Service is working.
    Regards,
    Ajay

Maybe you are looking for

  • Trying to get iTunes to work on an external drive.  Help?

    Okay, so my computer's main hard drive is pretty full, so I've been moving all my music to an external drive. The issue I'm having is that I can't get iTunes to work on that drive. I know I'm probably not phrasing this very clearly, sorry. But anyway

  • Trouble compiling with JWS 2.0

    Hello, I have a servlet written with JDeveloper that compiles and runs fine with JDeveloper. I am attempting to get it to run using Sun's Java Web Server 2.0. Other servlets run in JWS by just copying the class file to the JWS servlet directory. I fi

  • Macbook Pro mouse touchpad in Vista?

    I just bought a Macbook Pro and because of certain applications that I need for work I have Vista Ultimate x64 running on Bootcamp. Everything works great except for the built in mouse touchpad. I can move the cursor fine but I can't tap on the touch

  • Re:Deemed export

    when iam creating create licenct iam geting the issue is enter the valied sold to party, ship to party how can i solve this issue please help me

  • How to see network activity

    What program do I open to see all my network activity such as programs sending/receiving data? Thanks Sean