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

Similar Messages

  • 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

  • Live cache backup

    Hi Experts,
    I am beginner to SCM and Live cache technology.
    I have sucessfully installed SCM 5.0 and Live cache 7.6.29 on two different HP-Ux 11.23 servers.
    My first requirent is to take live cache backup. But there is no tape drive connect to any of the server,
    local file system assigned as  backup space, accordingly I have successfully taken online backup of SCM database by modifying entries like backup_dev_type to tape in  init<SID>.sap.
    Know I am facing a challenge to take live cache backup on local file system , infact dont know how to take online live cache backup.
    Another question is database manager gui is needed in unix environment, if yes please let me know the procedure how to configure this as In transaction lc10 upon double clicking database manager gui system generating error.
    Please help to solve the above two problems.
    Thanks & Regards,
    Maqsood Ahmed

    Hi Ahmed (no own SDN account? ).
    I'd like to make a few remarks on this:
    1. Backup to local filesystem w/o moving it to another location afterwards is next to useless. What happens when (when not if!), the local disk crashes? What backup can you use then?
    2. You can perform liveCache Backups from DB13C/DBACockpit after you've integrated the liveCache instance (DB59).
    3. If you like to administer the liveCache via DBMGUI - just install DBMGUI on your Windows Workstation and connect remotely to the liveCache. Actually this is the way how it was thought up.
    For detailed information how to work with liveCache I propose you check:
    The documentation [Backup/Recovery SAP Library - Database Administration in CCMS: SAP liveCache Technology|http://help.sap.com/saphelp_nw70/helpdata/EN/e9/dc1c3e46903b2ee10000000a114084/content.htm]
    The SDN Content on liveCache [https://www.sdn.sap.com/irj/sdn/livecache]
    The SCM Technology pages in the SAP Service Marketplace [https://service.sap.com/scm] -> SAP SCM Technology
    Good luck,
    Lars

  • Migration and Live Cache Doubts

    Hello,
    I need to migrate Windows 2003 Server 32-bit/MAXDB 7.6.0.035 for Windows 2008 Server 64-bit/MAXDB 7.6.0.035 and have doubts:
    1 - What is the best way to accomplish this migration? Via Sapinst? If there is another way, how?
    2 - In a note "1409895 - Windows 2008: TCP / IP communication MaxDB / liveCache is slow," reports to
    upgrade to a new version of SAP MaxDB / liveCache. If I upgrade to MAXDB7606_14-20001288.SAR (MaxDB 7.6.06.14
    Server Package) already solved?
        I'm confused about this because in the Live Cache "My Company's Application Components" SAP-SCM "-SAP
    SCM 5.0 Component-by-Entry SAP liveCache the last SAP MaxDB / liveCache 7.6.03.12 Security Patch
    is MLCSEC7603_12-10003432.SAR, but the version of MaxDB is 7.6.0.035
    Sorry my questions but don´t know very about MAXDB.
    thank´s for any help

    Hello Emerson Eduardo do Espirito Santo,
    1. It will be best for customer to create the SAP message and get the expert SAP support.
    2. Please check and answer on the questions to get clear on your project first:
    What is the version of your system which is planning to be migrated?
          SAP ECC 6.0 or SCM 5.0 ?
    What MAXDB software do you have on the Windows Server 2003 32-Bit?
        Post output of the command:
          sdbregview u2013l
    3. u201CI don´t know if I need the Live Cache.u201D
    ->Why you was writing about the liveCache?
    ->Could you ask the customer what versions of the systems they have in the landscape?
    ->If you login to the SAP ECC 6.0, top menu: system->status
    What is the database of the system?
    4. Please see the SAP notes 1014782 and 960769, if the customer have SAP ECC6.0/MAXDB 7.6 on Windows Server 2003 32-Bit and want to migrate SAP ECC6.0/MAXDB 7.6 on Windows 2008 Server 64-bit version.
    Customer can use backup and recovery to perform a homogeneous system copy of a MaxDB database instance, SAP Note      
    129352.  For more information about the procedure, please, see the installation documentation about the homogeneous system copy.
    5. Please give customer the reference to the SAP note:
                  1020175     FAQ: MaxDB installation, upgrade or applying a patch
    in case of question on how to apply the MaxDB kernel patch.
    Regards, Natalia Khlopina

  • Live Cache Crashed

    Hello Guru's,
    My Production system Live cache has been crashed. I am trying to restore the last backup which was taken yesterday night 8:00pm. I am able to restore the Live Cache however unable to restore the logs to recover PIT, as it is complaining about log sequence. I am not sure about finding the sequence number it is asking for.
    Crash happened today morning 7:00am. Backup restored last night 8pm and trying to do point in time recovery. Backup has been restored and trying to apply logs.
    Note;- log backup is for every 2 hours, so after the complete backup last night, we have log backup's for every 2 hours and trying to apply the same.
    Kindly suggest what can be done..
    Thanks,
    Sravanthi.

    Hello,
    1.
    You have questions how to solve the liveCache issues on the PROD system
    =>
    As already recommended Lars, please open the SAP message to the component BC-DB-LVC to get SAP support.
    It will be helpful to know the SCM/APO version, liveCache version and more details about the liveCache crash.
    2.
    In case you had the liveCache crash due the hardware problems, and the data or log volumes or liveCache configuration files are corrupted
    =>
    solve the hardware issues first or use another server
    Follow the SAP note  to create the liveCache instance:
        457425     Homogenous liveCache copy using backup/restore
       You need to create/initialize the liveCache instance for restore or run the Restore with initialization, restore the successful databackup, then leave the liveCache in admin status and continue the restore of the incremental databackup/logbackups in sequence if needed.
    *More information could be found in the SAP notes:
    1377148     FAQ: SAP MaxDB backup/recovery
    869267                     FAQ: SAP MaxDB LOG area
    820824          FAQ: SAP MaxDB/liveCache technology
    Thank you and best regards, Natalia Khlopina

  • Live cache backup question

    Hello Experts,
    Iam new to Livecache and AP0  and was trying to understand the process of backups reason i need to perform complete SCM 7.0 systemcoopy . In past i have done system copies and well aware of the procedures .
    Here it goes Presently we are on SCM 7.0
    Question  :--> I see our Livecache is installed on one machine and AP0 on another machine. Iam not aware how Livecache
                           was integrated with AP0.
                           Iam trying to understand how to take backup of livecache and then restore the same in Target.
    In LC10
    LCA --> ProblemAnalysis --> Logs --> DBA History
    i can see that the live cache backups are in getting successfully everyday.
    I see that Backup Label as DAT_000000<xxx> and Backup Template as bac214<xxx>.
    Where can i see this Backup Template defined ( the path ) .
    Can someone provide an insight regarding the live cache backups.
    Checked SAP Note 457425 .
    --> After system copy how would i integrate Livecache and AP0 .
    Thanks in Advance.
    Medha

    Hello Medha,
    1.
    a)
    Please review all recommended steps in the SAP note:
    886103     System Landscape Copy for SAP SCM
    when you are planning to do the SCM system copy.
    For SAP liveCache documentation please see the SAP note 767598.
    b)
    SAP link:
    SAP liveCache technology
    -> Best Practices for Solution Management: mySAP SCM
    review:
    "Checklist for Recovery of SAP APO liveCache >= 7.4"
    < It will be helpful to practice the steps of the document on the test liveCache instance first >
    2.
    Sessions: http://maxdb.sap.com/training/   
    =>
    Session 2: Basic Administration with Database Studio
    Session 3: CCMS Integration into the SAP System
    Session 11: SAP MaxDB Backup and Recovery
    Those sessions will help you. If you still have some questions after that => update the thread.
    4.
    Took classes for the MAXDB database administration or get the SAP consulting support.
    Regards, Natalia Khlopina

  • What is live-cache?

    Hi Experts,
    Can any one explain what is live-cache and eash access in supply chain management and what is customization in SCM?
    Cheers,
    Aanand.

    In Supply Chain Management, large volumes of data must be permanently available and changeable. For this reason, an addition has been made to the SAP DB OLTP relational database system to enable actual data structures and data flows (such as networks and relationships) to be mapped more easily and effectively. The product is called liveCache. The liveCache is object-oriented, and in contrast to SAP DB OLTP, stores its data in the main memory of the database system.
    The SAP liveCache technology significantly increases the speed of the algorithmically complex, data- and runtime-intensive functions of various SAP applications, especially within SAP Supply Chain Management.
    It combines the advantages of main memory-based data retention with a complete operating concept, including backup & recovery. The application functions are provided by database procedures (liveCache Applications) having an extremely fast access to all application data which can completely cached in main-memory and are organized in relational but mainly object oriented manner.
    The SAP liveCache technology can be characterized by a hybrid main-memory database with intensive usage of database procedure.
    For more information, please access the following links:
    SAP liveCache technology
    http://maxdb.sap.com/doc/7_7/f3/3edeb38ab14f9798d2a800b2c439c9/content.htm
    Have a nice day!
    Will
    SCM Moderator

  • Error during Live Cache Server Installation on SCM 4.1 system

    Hi All,
    I have an SCM 4.1 ABAP system running on MSSQL2005 and Win2003 server.I would like to install Live Cache Server on the same Server.Livecache client was installed as part of SCM 4.1 installation.
    I have installed MAXDB software and now when im trying to install Live Cache Server Instance i get the below error
    Im performing the installation with user root and it is an Administrator.
    WARNING 2011-12-09 11:01:25
    Execution of the command "change 'user' '/install'" finished with return code 1. Output: Install mode does not apply to a Terminal server configured for remote administration.
    Installation start: Friday, 09 December 2011, 11:01:23; installation directory: G:\SCM_4.1_Media\Media_Live_Cache\New_Media\51031447_2\CD_SAP_SCM_4.1_liveCache_64bit\SAPINST\NT\AMD64; product to be installed: SAP SCM 4.1> Additional Services> Install a liveCache Server instance
    Transaction begin ********************************************************
    WARNING 2011-12-09 11:02:33
    Error 3 (The system cannot find the path specified.
    ) in execution of a 'CreateProcess' function, line (265), with parameter (G:\SCM_4.1_Media\Media_Live_Cache\New_Media\51031447_2\CD_SAP_SCM_4.1_liveCache_64bit\NT\AMD64\SDBUPD.EXE -l).
    Transaction end **********************************************************
    WARNING 2011-12-09 11:02:34
    The step Fill_sapdb_db_instance_context with step key LIVECACHESERVER|ind|ind|ind|ind|ind|0|LC_SERVER_INSTALL|ind|ind|ind|ind|ind|0|Fill_sapdb_db_instance_context was executed with status ERROR.
    Has anyone seen this error before ? Any pointers would be helpful.
    Regards,
    Ershad Ahmed.

    Subprocess starts at 20111209154957
    Execute Command : C:\Program Files\sdb\programs\pgm\dbmcli.exe -n XXXXXXXXX db_enum
    Execute Session Command : exit
    > Subprocess stops at 20111209154957
    OK
    > Subprocess starts at 20111209155027
    Execute Command : C:\Program Files\sdb\programs\pgm\dbmcli.exe -n XXXXXXXXX db_enum
    Execute Session Command : exit
    > Subprocess stops at 20111209155027
    OK
    > Subprocess starts at 20111209155221
    Execute Command : C:\Program Files\sdb\programs\pgm\dbmcli.exe -n XXXXXXXXX db_enum
    Execute Session Command : exit
    > Subprocess stops at 20111209155221
    OK
    > Subprocess starts at 20111209155323
    Execute Command : C:\Program Files\sdb\programs\pgm\dbmcli.exe -n XXXXXXXXX inst_enum
    Execute Session Command : exit
    > Subprocess stops at 20111209155324
    OK
    7.5.00.31    f:\sapdb\liv\db
    7.6.06.10    f\sapdb\sdb\7606
    7.6.06.10    C:\Program Files\sdb\7606
    > Subprocess starts at 20111209155324
    Execute Command : C:\Program Files\sdb\programs\pgm\dbmcli.exe -n XXXXXXXXX inst_enum
    Execute Session Command : exit
    > Subprocess stops at 20111209155324
    OK
    7.5.00.31    f:\sapdb\liv\db
    7.6.06.10    f\sapdb\sdb\7606
    7.6.06.10    C:\Program Files\sdb\7606
    > Subprocess starts at 20111209161349
    Execute Command : C:\Program Files\sdb\programs\pgm\dbmcli.exe -n XXXXXXXXX inst_enum
    Execute Session Command : exit
    > Subprocess stops at 20111209161349
    OK
    7.5.00.31    f:\sapdb\liv\db
    7.6.06.10    f\sapdb\sdb\7606
    7.6.06.10    C:\Program Files\sdb\7606
    Regards,
    Ershad Ahmed.

  • Live Cache Failed (DBM error)

    Hi,
    I am getting following error while  starting live cache(LC10)
    "Error DBMCLI_COMMAND_EXECUTE_ERROR when starting liveCache LC1 on server system"
    Server: system
    Users: SAPUSER
    Logical Command: DBMRFC
    Parameter: exec_lcinit restart
    Name and Server     : LC1 - system
    DBMRFC Function     : DBM_EXECUTE
    Command             : exec_lcinit restart
    Error               : DBM Error
    Return Code         :     -24964
    Error Message       : ERR_EXECUTE: error in program execution#
    0,sap\lcinit LC1 restart -uDBM , -uDBA , -uSQL ,
    liveCache LC1 (restart)
    The liveCache state is OFFLINE
    DBMServer 7.6.00   Build 029-123-130-265
    starting LC1 into ONLINE
    ERROR : restart not possible [please check knldiag!!]
    ERROR : liveCache LC1 not started (see "d:\sapdb\data\wrk\LC1\lcinit.log")
    In Transaction  DB59 i tried  connection test "Connect. test with "native SQL"  ( LCA ) unsuccesful"
    how to restart Live Cache again? what will be the problem?
    regards
    Thennarasu

    Hello,
    what's wrong with the hint you already got?
    > ERROR : restart not possible [please check knldiag!!]
    Check the knldiag and then we might be able to do something about this issue.
    regards,
    Lars

  • 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

  • What is the significance of Live Cache in demand planning ?

    Hi all,
    Can anyone explain me significance of live cache in the demand planning. What are the issues will turn up for live cache if it is not properly maintained?
    Thanks
    Pooja

    Hi Pooja,
    SAP has come up with Live cache concept for storage and most important, quick and efficient processing of transactional data. Its a layer between data base and GUI and even the search methods and storage space has been optimized due to its structure. In DP it is used for storage of time series data whereas in SNP it can store both time series and order series data.
    Regarding your second query, it is recommended to have Live cache consistency on a periodic basis for synchrinising data between LC and database tables. You can face many issues due to LC inconsistency as incorrect time series generation, Transactional data discrepancy, COM routine errors during background processing etc.
    Let me know if it helps
    Regards
    Gaurav

  • BAPI to get the Quantity from orders in live cache.

    Hi Folks,
            Can any body provide me the BAPI to get the quantity value for the orders saved in the Live Cache. I tried using the BAPI
    BAPI_SLSRVAPS_GETLIST2 ...  but its not fetching any records for me. what else i need to provide it as input.
    Thanks in advance.
    Thanks & Regards,
    Ramana

    Check this thread.
    Delete In-Transits.
    In-Transit is not a particular order. Any Goods Movement from one location to another location will be considered as In-Transit.
    Let's say Plant A is sending Product P1 to DC B against a Purchase Order.
    In that case in plant A the stock will be reduced by the quauntity of goods being shipped.
    At DC B, the Purchase Order will become In-Transit Stock.
    Thanks,
    Somnath

  • DBM Error return code -11 in LC10 Administration in SCM System Live Cache

    Hello,
    We have installed SCM 4.1 on Solaris on one box and LC 7.5 on another solaris box.
    For kernel upgrade, we shut down Live Cache using LC10>administration on SCM server. After kernel patch, other patches for ABAP stack, we upgraded LC to SP11 build 35.
    Since then, we get following error in LC10.
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Name and Server : LCA - gva1073
    DBMRFC Function : DBM_EXECUTE
    Command : dbm_version
    Error : DBM Error
    Return Code : -11
    Error Message : tp error: Terminating. [nlsui0.c 1934] pid
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Also, in DB59, when we try to check connection, we get following error -
    General Connection Data
    Connection Name....: LCA
    Database Name......: LCA
    Database Server....: gva1073
    tp Profiles........: no_longer_used
    DBM User...........: CONTROL
    Test Scope
    1. Execute an external operating system command (DBMCLI)
    2. Determine status using TCP/IP connection SAPDB_DBM (DBMRFC
    command mode)
    3. Determine status using TCP/IP connection SAPDB_DBM_DAEMON (DBMRFC
    session mode)
    4. Test the SQL connection (Native SQL at CON_NAME)
    Application Server: gva1075_SCD_03 (
    SunOS )
    1. Connect. test with "dbmcli db_state"
    Successful
    2. Connect. test with command mode "dbmrfc db_state"
    Unsuccessful
    dbm_system_error
    Name and Server : LCA - gva1073
    DBMRFC Function : DBM_EXECUTE
    Command : db_state
    Error : DBM Error
    Return Code : -11
    Error Message : tp error: Terminating. [nlsui0.c 1934] pid
    3. Connect. test with session mode "dbmrfc db_state"
    Unsuccessful
    dbm_system_error
    Name and Server : LCA - gva1073
    DBMRFC Function : DBM_CONNECT
    Error : DBM Error
    Return Code : -11
    Error Message : tp error: Terminating. [nlsui0.c 1934] pid
    4. Connect. test with "native SQL" ( LCA )
    Successful
    ++++++++++++++++++++++++++++++++++++++++++++++++++++
    Can anybody please help?
    Thanks and regards,
    Vaibhav

    Hello Vaibhav,
    while using transaction LC10, the error 11 "tp error: Terminating. [nlsui0.c ...]" occurs. The user authorization with tp fails and the application server cannot connect to the liveCache.
    I assumed, that it's due to a library version mismatch, tp cannot use the liveCahe UNICODE libraries.
    Please check, that the tp call at the command line works properly. And a dbmcli call in the transaction SM49 with the tp options
    (dbmcli ::
    -d <LC-SID> -n <LC-servername> -tpp <profile> -tpi <system-SID>
    -tpc <connection - LCA/LDA> dbm_version)
    works also properly.
    I recommend you to update the liveCache client software on the Application server.
    If you've got access to OSS/Service Market Place, then please take a look at note
    649814 how to update the liveCache client software on the application server.
    < Please also review the SAP notes 847736 & 831108 > 
    Before the liveCache client version will be upgraded on the application
    server you can use the workaround by switching off the central authorization for the liveCache LCA/LDA connections:
    In transaction LC10, choose Integration and deactivate the option Central authorization, then save.
    If you are the official SAP customer, I recommend you to create the ticket to SAP on 'BC-DB-LVC' queue.
    Thank you and best regards, Natalia Khlopina

  • 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...

  • Data storage in Live Cache

    Hi,
         Can some1 explain me how the SNP data is stored in the live cache.
    I know it's by series of order. But tell me is there any mapping involved in it?
    Thanks,
    Siva.

    Order series data is used by both SNP and PPDS.
    While I do not know the exact way data is stored in liveCache the following helps me to explain and understand.
    Each record in liveCache for Order Series data is stored as
    Location Product combination-ATP Category-Quantity-Time Stamp.
    Unlike Timeseries data CVC is replaced by a location product combination only, keyfigure is replaced by ATP Category (each kind of Order elements has its own ATP Category) and Time Bucket is replaced by actual Time Stamp (in UTC ddmmyyyyhhmmss format).
    The mapping is essentially with ATP Category which maps to corresponding MRP elements in ECC or R/3.
    In the SNP Planning Area for each keyfigure the Category Group defines the grouping of ATP Categories for which orderseries data will be displayed in that particular keyfigure.
    Hope this helps.
    Thanks,
    Somnath

Maybe you are looking for

  • Does Bridge CC have more text animation presets then Bridge CS6?

    so I upgrade from CS6 to CC and did not install Bridge CC. Then while in After Effects CC I try to view the text animation presets, but window informs me I do not have Bridge CC installed. I then download and install Bridge CC and view the animation

  • File -- Export in oracle apps forms- headings missing

    We have a custom form for our custom billing processes. It lists all the draft invoices that are ready to be released along with multiple custom fields. We are using File -> Export to export the data to excel file. once exported, the some of the colu

  • Videos only show the upper left-hand portion of the image when playing.

    When I attempt to play a video in Firefox (23.0) on my Mac, all I can see is the upper left-hand fourth of the video image. When I attempt to view the same video in Safari it works fine. The entire image is rendered. Mac OS X 10.8.4

  • I can see I have mail, but I can't see the contents

    I am getting new mails but when I go into that mail to see the content, I can't see anything. Just empty. I can definitely see there is some word or sometimes attachment. I can not see those. Does anyone know how to solve this matter? Thanks you

  • Issues with Bootcamp.

    I have a Macbook Pro, and I'm having issues with Bootcamp. I have the Home Edition of Windows 7 that I just bought, the full copy. I've ran Bootcamp and created a partition, and when I attempt to install Windows 7 it says that none of the "Partitions