APO Live cache

Hi guru's,
         i just wanted to know what live cache means? How do  we mention live cache? If an APO person says that "data is stored in live cache " what does it mean? How do we extract data from live cache?
I will be very thankfull to you all if i get this answers.
Thanks a Lot
Regards,
Raja

Hello Raja,
For SAP liveCache documentation in English:
http://help.sap.com/saphelp_nw04/helpdata/en/f2/0271f49770f0498d32844fc0283645/frameset.htm  
( please see the liveCache terms 'Data Cache' & 'OMS Data' ) 
As you know objects in liveCache stored in the class containers can be                          
accessed and manipulated only via LCA ( liveCache Applications ) routines
( Database Procedures ) which are methods of LCA ( COM ) objects.
The registration of the LCA routines is done automatically when the liveCache
is started by the LC10, check the lcinit.log file.                                 
The shared ( dynamic linked )procedures in the LiveCache are written in C++                          
and shipped to the customers as binary shared libraries ( dynamic linked )                            
(COM-Routines or LCA-Routines) together with the LiveCache. The original                           
C++ source code of the libraries is not generally available to the customers.                                                                               
You can get the complete list of the stored procedures using SQL Studio
(shipped with the LiveCache):                                     
just connect to the LiveCache as Standard livecache user ( SAPR3 or SAP<LC-SID>
By default ) with the password 'SAP'( default ).                                                                
You can read the Config-Files ./sapdb/<LC name>/db/sap/xxx.lst                 
or check the information in the lcinit.log file.                                                                               
Names of all registered procedures, which have been called from ABAP, you can find
executing 'lc10' transaction on your SAPAPO system:                                             
LiveCache Monitoring ->Problem Analysis -> Database Procedures .                                        
If you need to see the interfaces of the procedures, you may use 'se80'
transaction and navigate in the Development class '/SAPAPO/OM'.                                                                  
The transaction /n/SAPAPO/OM16 is provided by SAP to get                                             
information about data stored in the LiveCache. If you                             
would like to get your own views, you should write a special report                
in ABAP using "/SAPAPO/OM"-development class functionality.                        
'/SAPAPO/OM16' itself calls a bunch of OM- functions to read                       
data from the LiveCache, e.g.:                                                     
/SAPAPO/OM_RESOURCE_GET_ALL                                                        
/SAPAPO/OM_ORDER_GET_ALL                                                           
/SAPAPO/OM_SETUPMATRIX_GET_DAT                                                     
/SAPAPO/OM_STOCK_GET_BY_UID 
You can get more information about liveCache and LCA object at the following links:                                    
Service.sap.com/scm ( -> mySAP SCM Technology )
Service.sap.com/liveCache
Thank you and best regards, Natalia Khlopina
Message was edited by: Natalia Khlopina

Similar Messages

  • How to identify records deleted in APO live cache while loading into ODS

    I am doing FULL load of data everday for APO DP from APO live cache into a ODS. Users at time delete some data from DP planning area. This subsequently needs to get deleted from the ODS.
    How can I identify records that were deleted by the user and mark them as deleted in the ODS?
    Note that the extractor only returns records that exist currently in the Live Cache.
    Thanks for your help.

    Hi Jr,
       I need your help again to fix the below problem please.
       I have a query on Infoset with two ODS and linked with  BillingDoc which exists in both ODS.
       Sales Doc & Billing Doc Fields are in ODS1 and  Billing Doc & Amount are in ODS2.
      If matching BillingDoc is found in ODS2 then report should have Combined data (Sales Doc, Billing Doc & Amount), otherwise just Sales Doc & Billing Doc from ODS1 only. 
    Tried Inner Join and it gets only matching records. 
    Left Outer join with ODS1 on left side or Right side doesn't get the requested report.
    I found in SDN that with Left Inner join we could get all data from ODS1 and Matching data from ODS2.
    How could I get my requested data, PLEASE ?
    Thanks,
    Venkat.

  • BW reporting from APO live cache

    It has been 4 years since I have worked on a BW/APO project.  Back then, I know that in APO you could backup live cache and then use the backup as the datasource for reporting in BW.  Is this still the same or can you go directly against live cache now. 
    Thanks,
    Dean

    Hi Somnath,
    Can you pl. give me the reference where running reports from internal APO-BW directly is recommended by SAP?
    We have a similar situation with our client. It is possible to do reporting from APO cubes directly, but we are not sure since I found this in once of the SAP presentations
    SAP recommends for customer to prepare separate systems for APO and BW.
    Reasons
    The APO system will be tuned for optimal APO functionality performance such as calculating forecasts in demand planning or deriving ATP values
    The BW system will be tuned for optimal query performance in order to return results in a timely fashion.

  • Hi having a problem upgrading SCM 4.1 APO Live Cache

    Hi I am new to SCM and I came into a project that was already started, I am doing a SUM upgrade and its at the upgrade of Live Cache I need to run the report /SAPAPO/OM_LC_UPGRADE_70 and perform all steps in section A. when I try to run the report it comes back "No shared library for the database with ID LCA" I checked LC10 and saw in the Settings that the database is still pointing back to the source system it was copied from. Like I said I walked into this in the middle the they are upgrading from SCM 4.1 to 7.0EHP3 on SQL 2012 and Windows 2012 so they built the 2012 Vm installed the Central services and when they installed the DB it was an attach / detach method and I installed the DB instance. Question should any of the file directories have come with the attach db there are no sapdb in the directories do I just install the live cache and that installs the maxdb and makes the directories /sapdb/ because I see them in the source system? I tried installing the live cache that came with the original system but it had errors.

    Hi All,
    I went ahead with Option 0 and it asked me for Kernel file and i provided the files.
    I checked logs in /sapdb/wrk directory and i see that Installation of SAP livecache finished successfully.
    From LC10 i gave database connection name (LCA) and clicked on live cache monitoring and it comes back with an error
    Name and Server : LCA - XXXXXXX (XXXXX = Server Name)
    DBMRFC Function: DBM_EXECUTE
    Command: dbm_version
    Error: DBM Error
    Return Code : -4
    Errror Message: database instance not found.
    Application Server:  XXXXXX                     ( Windows NT )
      1. Connect. test with "dbmcli db_state"
         Error! Connection failed to node XXXXXXX for database LCA: database instance not found
         External program terminated with exit code 2
      2. Connect. test with command mode "dbmrfc db_state"
         Name and Server     : LCA - XXXXXXX
         DBMRFC Function     : DBM_EXECUTE
         Command             : db_state
         Error               : DBM Error
         Return Code         :         -4
         Error Message       : database instance not found
      3. Connect. test with session mode "dbmrfc db_state"
         Name and Server     : LCA - XXXXXXXX
         DBMRFC Function     : DBM_CONNECT
         Error               : DBM Error
         Return Code         :         -4
         Error Message       : database instance not found
      4. Connect. test with "native SQL"  ( LCA )
         For detailed information, see the developer trace for work process:          1
    From the OS level i gave command dbmcli db_enum and i get OK as reply.
    Can someone please let me know how to resolve this issue.
    Regards,
    Ershad Ahmed.

  • Unable to delete Order does not exist in live cache but in table POSMAPN

    Hi Experts,
    We are facing an issue where purchase order is not available in live cache (which means no GUID) but exists in database table POSMAPN. We have tried to delete it using standard SAP inconsistent order deletion program and also using BAPI BAPI_POSRVAPS_DELMULTI but not able to delete it.
    Can anybody suggest a method by which we can get rid of this order from the system.
    Thanks a lot.
    Best Regards,
    Chandan

    Hi Chandan,
    Apologize me for taking your question in a wrong perspective. If you want to delete the same then you need to Re-CIF the order from ECC so that it would come and sit in Live Cache. Once done, try using the BAPI.
    If you are not successful with the above approach try running the consistency report /SAPAPO/SDRQCR21 in APO system
    so that it first corrects the inconsistency between ECC and APO (Live Cache + DB tables) and then use the BAPI to delete the PO.
    Not sure if you have tried this way. If this does not solve your purpose you need to check SAP Notes.
    Thanks,
    Babu Kilari

  • ( very urgent ) read data from bw to live cache

    hi,
         i am very mew to APO LIVE CACHE. i need to read the data from BW to LIVE CACHE for forecasting. i now the transaction lc10 and lc11. but the problem is i need to know where i have to give the BW cubes or BW information into LIVECACHE.
    WOULD APPRECIATE UR HELP.
    RGS,
    SUGUNA.S

    Try TCode/SAPAPO/TSCUBE or Program /SAPAPO/RTSINPUT_CUBE
    Regards
    Krishna Chaitanya.P

  • Why we need live cache along with RDB in APO

    Hello Expert,
    I recently entered to APO module so want to know about live cache and why we really need comparing to RDB and what RDB cannot do that live cache can do?

    SRS,
    Functionalities are pretty much the same.  LiveCache is a relational Database, built on MaxDB.
    Advantage of LC is that most of the data is stored in memory rather than on disk storage.  Data access and retrieval is substantially faster from memory than from disk storage.
    Best Regards,
    DB49

  • Data movement from R/3 DB to APO DB and to Live cache

    Dear APO Experts,
    I have few questions on live cache and how it works, I understand that Live cache is memory resident database. below are my questions.
    1) What sought of data move from R/3 DB to APO DB and then to Live cache DB
    2) When data moves from APO DB to Live cache, till how much duration that data stays in live cache
    3) And how does data gets pulled in to live cache from APO DB
    4) Why do we require live cache logs while data never gets commited to hard disk
    5) Do we ever add a datafile to Live cache DB
    any info that you provide on this will be really helpfull to me
    Thanks,
    Chetan

    Hello Chetan,
    As you know, itu2019s MAXDB/liveCache forum.
    What is the version of your system?
    The is documentation available at:
       SAP liveCache technology
    < Please review document u201CWhat is SAP liveCache technology?u201D >
    Sap documents at service.sap.com/scm -> Technology:
    u201CliveCache overviewu201D and u201CIntegration overviewu201D
    For SAP liveCache documentation also see the SAP note 767598.
    Go to SAP link Best Practices for Solution Management: mySAP SCM at   SAP liveCache technology ...
    And Review the document u201CManage APO Core Interface in SAP APO (3.x) / mySAP SCM (4.x/ 5.0)u201D
    1. As you saw in the reference documents the data transferred from the connected R/3 system to APO.
    And the transactional data could be uploaded to the liveCache, if you downloaded them
    to the APO database cluster tables first. This procedure steps are running during the
    system upgrade < for example, from SCM 5.0 to SCM 7.0 ) u2013 report /SAPAPO/OM_LC_UPGRADE_70 steps. Or you want to migrate the          
    liveCache to another operating system or convert your system to Unicode,  
    and therefore you want to back up the liveCache data first so that you    
    can reload it into the liveCache afterwards - SAP Note No. 632357.                              
    2. Could you collaborate more on this sentence. Could you give examples?
    3.  u201CAnd how does data gets pulled in to live cache from APO DBu201D
        The data are not pulled from the APO DB to liveCache.
         When you changed the APO data on the system the LCA procedures have been called from ABAP. The objects stored in the class containers in liveCache can be accessed and manipulated only via LCA routines. The registration of the LCA routines is done automatically when the liveCache is started by the LC10. The LCA procedures in the LiveCache are written in C++                          
    and shipped to the customers as binary LCA libraries(LCA build) together with the LiveCache.
    < See more details in SAP Note No. 824489 or 1278897 as of SCM 7.0 >
    4. See the SAP notes:
                   869267     FAQ: SAP MaxDB LOG area
                 1377148     FAQ: SAP MaxDB backup/recovery
    5. You could run the quicksizer & estimate how much data you are planning to have in liveCache.
         Also the amount of data could be increased by the creation of the new data in APO by users
         Or another reason u2026
         In general you will add the datavolume to solve or prevent the DB_FULL issue,
         See u201C17. What do I do if the data area is full? u201C in SAP note 846890.
    Thank you and best regards, Natalia Khlopina

  • What is Live Cache in APO

    Hi Gurus,
    I am working on APO datasource in SNP,
    How do the live cache filled up? I have built a cube top of a custom datasource (9AZSNP), everything works fine and i want to know what is behind the live cache, is it directly a user entry planning version template or any underlying tables.
    Please advise.
    Thanks. Gowda

    Hi,
    The datasource will use only planning version template, and data will trabsfer from Planning area to BW. Regarding Liveche you talk to APO guys,,, it will store data and it is dynamic..
    Check
    Feeding Cube from Live Cache
    Re: Livecache for SCM/APO
    Re: what is the use of Livecache,why can't we go with relation databases...
    Thanks
    Reddy
    Edited by: Surendra Reddy on Mar 7, 2009 5:39 AM

  • LIve cache and why BW in apo

    helo  sap masters
    could u plz help me out ..
    1. Why should we maintain LIVE Cache separately despite of having in APO tool.???
    2. Why should we have BW in APO too in spite of having BW tool seperately ??

    Hi Dallyanusha,
    1) Livecache is a special inbuild device in APO which does
    speedy operations especially during optimisation and retrives
    data quickly from database.   For effective functioning of
    planning activities, livecache in APO is must.
    2) BW in APO serves and stores information on business
    master data and transactional data objects and can be
    extracted to create various queries and reports.   This is
    more useful during demand planning
    Regards
    R. Senthil Mareeswaran.

  • Is Live Cache System refresh required with APO refresh

    Hi APO Experts:
       I have a question concerning the refresh of an APO QAS system. \
       If I have an APO system refreshed from a production APO system, is it required that I refresh the Live Cache as well?
       We have just refreshed our APO QAS system from production and I was thinking it could be easier to just reinstall a new database for Live cache in QAS then refreshing it from production Live Cache......
    Please share your words of wisdom. Thanks! - Will S.

    Hi Will,
    I think LiveCach refresh with production is not required. But you need to down the LC and then start it.
    LiveCach is a temporary storage area and it will refresh with database.
    I suggest please post this in BASIS forum.
    Regards,
    Kishore Reddy.

  • How to see Live cache order number in planning book of APO ?

    I am trying to see the Live cache order number in Planning book by entering getio as T-code while in planning book.
    By this I am not able to see the LC details. Can anyone help me out on the same?
    Edited by: Wilian Segatto on May 16, 2010 2:52 PM

    Dear Rahul!
    Are you using correctly the transaction GT_IO? As per your first reply you are using GETIO.
    Try GT_IO!
    Will

  • Data fetch from live cache

    How can I retrieve data from live cache?This is in Demand Planning : SCM APO.
    Please suggest ways.
    Thanks & Regards,
    Savitha

    Hi,
    some time ago I worked on SAP APO.
    To read live cache, you first have to open a SIM session.
    You can do this as shown in this function module:
    FUNCTION ZS_SIMSESSION_GET.
    *"*"Local Interface:
    *"  IMPORTING
    *"     REFERENCE(IV_SIMID) TYPE  /SAPAPO/VRSIOID
    *"  EXPORTING
    *"     REFERENCE(EV_SIMSESSION) TYPE  /SAPAPO/OM_SIMSESSION
    CONSTANTS:
      lc_simsession_new       TYPE c LENGTH 1 VALUE 'N'.
    DATA:
      lt_rc                   TYPE /sapapo/om_lc_rc_tab,
      lv_simsession           LIKE ev_simsession.
      IF NOT ev_simsession IS INITIAL.
        EXIT.
      ENDIF.
    *--> create Simsession
      CALL FUNCTION 'GUID_CREATE'
        IMPORTING
          ev_guid_22 = lv_simsession.
    *--> create transactional simulation
      CALL FUNCTION '/SAPAPO/TSIM_SIMULATION_CONTRL'
        EXPORTING
          iv_simversion            = iv_simid
          iv_simsession            = lv_simsession
          iv_simsession_method     = lc_simsession_new
          iv_perform_commit        = space
        IMPORTING
          et_rc                    = lt_rc
        EXCEPTIONS
          lc_connect_failed        = 1
          lc_com_error             = 2
          lc_appl_error            = 3
          multi_tasim_registration = 4.
      IF sy-subrc > 0.
        CLEAR ev_simsession.
    *   error can be found in lt_rc
      ENDIF.
    * return simsession
      ev_simsession = lv_simsession.
    ENDFUNCTION.
    Then you can access the live cache.
    In this case we read an order (if I rememver correctly, it's a plan order):
    DATA:
      lv_vrsioid                  TYPE /sapapo/vrsioid,
      lv_simsession           TYPE /sapapo/om_simsession.
    * Get vrsioid
      CALL FUNCTION '/SAPAPO/DM_VRSIOEX_GET_VRSIOID'
        EXPORTING
          i_vrsioex_fld = '000'  "By default
        IMPORTING
          e_vrsioid_fld = lv_vrsioid
        EXCEPTIONS
          not_found     = 1
          OTHERS        = 2.
    CALL FUNCTION 'ZS_SIMSESSION_GET'
          EXPORTING
            iv_simid      = iv_vrsioid
          IMPORTING
            ev_simsession = lv_simsession.
      CALL FUNCTION '/SAPAPO/RRP_LC_ORDER_GET_DATA'
        EXPORTING
          iv_order      = iv_orderid
          iv_simversion = iv_vrsioid
        IMPORTING
          et_outputs    = lt_outputs
          et_inputs     = lt_inputs.
    If you change something in your simsession, you have to merge it back afterwards, so that your changes become effective.
    You can do this like that:
    * Merge simulation version (to commit order changes)
      CALL FUNCTION '/SAPAPO/TSIM_SIMULATION_CONTRL'
        EXPORTING
          iv_simversion                = lv_vrsioid
          iv_simsession                = lv_simsession
          iv_simsession_method         = 'M'
        EXCEPTIONS
          lc_connect_failed            = 1
          lc_com_error                 = 2
          lc_appl_error                = 3
          multi_tasim_registration     = 4
          target_deleted_saveas_failed = 5
          OTHERS                       = 6.
    I hope this helps...

  • In which table is the Live cache data stored?

    Hi experts,
       I am new APO .Can anyone let me know in which database table will the Live cache data be stored?
    Thanks in advance
    regards
    Ashwin.

    Hello Ashwin,
    the idea of the liveCache is to haev data permanently and quickly available without having to read/write from/to database. Therefore, the liveCache is <b>NOT</b> a physical database, it is a program in C++ that <i>simulates</i> a database and holds the data in the memory.
    However, it does need so called liveCache-anchors which are saved on the database, and which are similar to pointers.
    However, you can extract data from liveCache using BADIs or by creating a datasource on a planning area (for DP and SNP), manipulation can also be done only by BADIs or sophisticated programming (which basically uses RFCs).
    I hope this answers your question.
    Regards,
    Klaus

  • Live cache Recovery.....

    Hello all,
    This is related to SAP DB version 7.4.3.32 and it is running on Windows. My DBM GUI version is 7.6.00.12. On the recovery tab of the DBM GUI there is a option called "Recovery with Initialization". I have used this option to recover my SAP DB database and it was always successful. I used this option to intialize the existing database with a good full backup. This is a new option in 7.6.00.12 DBM GUI. It was not there in 7.4.3.30 DBM GUI. Though it is not a good option all the time but it is very good if your database is crashed and if you have latest good full backup then you can use this option for recovery.
    My question is that I have never tried this option (Recovery with Initialization) on our Live Cache database (SAP DB instance installed as Live Cache on Solaris). I do see this new option in DBM GUI in 7.6.00.12 DBM GUI as DBM GUI is same for both type of database.
    Is it possible to use this option for our SCM 4.0 Live Cache in same way I have used it for SAP DB database. It will be a very good option for Live Cache if we have one good backup and Live Cache is crached then we can use the latest full backup to restore the Live cache.
    Please let me knwo if anybody knwos about it or have tried it.
    I will really appreciate your help.
    Thank you.
    Sume

    Hi,
    with liveCache it's a little bit different as opposed to an OLTP instance. The most imporant difference being that when you're using liveCache, there's <b>always</b> another DB instance aswell, the SCM/APO instance. The consistency between these two instances is of the utmost importance. Therefor, after <b>every</b> recovery of liveCache, you should run certain consistency reports to make sure the data in liveCache and SCM DB are consistent.
    A normal liveCache recovery would look like this:
    - you've got a (successfully saved) full data backup
    - you've got several log backups
    Using the above backups, you can minimize the loss of important data when experiencing crashes.
    In your <b>first case</b>, you would recover using the last full data backup and could then continue to recover all available logbackups (either manually or automatically created).
    > You could do a recovery <b>without</b> initialization here aswell, because all changes should still be on the logvolumes.
    In the <b>second case</b>, you would just recover + init the data backup from Jan 1st.
    In <b>BOTH cases</b>, you should run the consistency reports afterwards!
    Regards,
    Roland

Maybe you are looking for