Read AMON1 from live cache

HI Gurus,
I want to read AMON1 data from live cache.Could you guys help me in this.
Regards

CALL FUNCTION '/SAPAPO/OM_ALERTS_GET_DATA'
EXPORTING
is_gen_params     = ls_gen_params
iv_simsession     = lv_simsession
it_peglist        = lt_pegid
it_alertid        = lt_alertid
IMPORTING
et_alerts         = lt_alerts
et_rc             = lt_rc
EXCEPTIONS
lc_connect_failed = 1
lc_com_error      = 2
lc_appl_error     = 3
OTHERS            = 4.
There is a new book on Programming in SAP APO. You might want to check that out.
http://www.flipkart.com/programming-sap-apo-1st/p/itmdgt9hbdh6auzu?pid=9781259028441&ref=bc49ea80-1a9b-403b-b9b7-9cf00d7f05db&srno=s_1&otracker=from-search&query=ankush%20agrawal

Similar Messages

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

  • Deleting orders from Live Cache

    Hi Gurus,
    Is there any way where we can delete orders directly from Live cache?
    I have a situation where Process orders are present in R/3 and not available in APO. It shows up in the CCR report, but when we push them it gets stuck in the queue with the error Order Type 6 and 'A table entry exists with this Secondary Key'.
    I verified these orders in OM16 transaction and these orders are available there, but I am unable to view them in RRP3. When I check in Tcode: OM19 this is availavble in ORDMAP Object.
    Is there any way I can delete them from directly Live cache ? or how can I make both the systems sync?
    Thanks in advance.
    Regards,
    Murali.

    Hi
    Check the following
    1)Use this Program /SAPAPO/DELETE_PP_ORDER and make sure the check box LV_EXECU is ticked and specify the time period of the orders. Becuase some times without specifying the above it will not display the details
    2) Use the Program /SAPAPO/RLCDELETE and execute. I'm not sure on this. But you can try
    3) Tell me- This Process orders are created in R3 and ciffed to APO or it got converted in APO from Planned order to Production order. Pls look at the origin of Process orders
    Hope this helps
    regards
    Vijay

  • MRP Data from Live Cache

    Hi
    Please let me know the FM/BAPI which will get me the MRP data from Live cache.
    My requirement is to get the date and quantity for each element, MRP elements to be used are VC,VE,LF based on the plant and material
    Thanks in advance
    Amit

    Hello Sebastian,
    FM '/SAPAPO/OM_PEG_CAT_GET_ORDERS' seems to cover my requirements and I'm happy I found out about it here. Unfortunately I have some problems testing with SE37:
    Specifying only PEGID together with needed categories was not successful. Searching for calling programs of this FM I found FM '/SAPAPO/ATP_DISP_LC_SINGLE' which additionally sets parameter IS_GEN_PARAMS-SIMVERSION to '000' and receives the correct values.
    Now I have the problem that with setting the same input values I still receive exception 'LC_APPL_ERROR' and don't know why. Since I'm new to APO it could be some basic setting, still I'm wondering why this could be. Hopefully you can provide some helpful information, otherwise I think I'm lost
    Thanks in advance,
    eddy

  • Get orders from Live cache

    Hi,
              I want to find out how many orders do we have in the live cache by orders.
    I have
    BAPI_MOSRVAPS_GETLIST3 to get Planned/Production orders together.
    But I want to get the number of Planned orders and Production orders seperately. How can I get that?
    I have BAPI_POSRVAPS_GETLIST3 to get Purchase requisitions/orders.
    How can i get a breakup of how many each are?
    Also I want to find out how many "Manual Reservations" are. is there a FM or BAPI for this?
    Thanks.

    Hi Visu,
    Base on ATP Category you can look for PO /PReq and Prod order and pld order .
    You can look for the right category in planning area : /SAPAPO/MSDP_ADMIN.
    Like :
    Purchase req: AG
    Purorder:BF
    Manish

  • Fetching order data from Live Cache

    Hi
    The requirement is to fetch order data from liveCache for a given product based on ATP category . (AY - dependent demands and AU - order reservations)
    I want to get information about the dates and order quantity.
    I have identified following two FM's.
    /SAPAPO/OM_PEG_CAT_GET_ORDERS
    /SAPAPO/OM_ORDER_GET_DATA
    Which one of the two FM is more suitable specific to my requirement ? Also what are the important parameters to be passed in the applicable FM ?
    I would also like to know the difference in these two FMs?
    Thanks in advance,
    Yogesh

    Hi,
    I tried FM PAPO/OM_PEG_CAT_GET_ORDERS
    I am giving the following inputs
    1. PEGID which I am getting from /SAPAPO/DM_MATERIAL_GET_PEGID for a given product location.
    2. ATP category in IT_CATEGORY = BM and CC
    3. V_SIMSESSION = 000
    4. IV_IONODE_PEG_SEL = 0
    But I am getting LC_COM_ERROR
    What parameters am I missing ?
    Regards,
    Yogesh

  • 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

  • Production orders not updated in Live Cache

    Hi All,
    We are currently facing a strange issue. Planned orders created in APO are converted into Production orders in R/3. When they are CIFfed to APO, those prodcution orders are captured in Product view but are not updated in either /SAPAPO/OM16 or Production list (/SAPAPO/PPL1). In these two transactions the production orders are not visible but their respective planned orders are showing up.
    When delta report is executed for Production orders with "Consider Requirements/Receipts" as sub-object, these orders are captured with Error code 501 (Requirement/Receipt for the order exists only in R/3). When pushed to APO, these orders are updated in the Live Cache.
    Can anyone share your thoughts on what could be the root cause for this issue.
    Appreciate your thoughts
    Thanks,
    Sai

    Thanks Vikas and Senthil,
    Its not the issue with all the Production orders. The issue is with only few orders and we are in the process of tracing out the pattern.
    Our Primary concern is that the orders captured in the delta report are visible in Product view even without taking any action in CCR but are missing in OM16. Its only after taking the action those orders are visible in OM16.  I believe the data in the product view is read from Live Cache and the Live Cache contents are displayed in OM16. So, whatever orders visible in Product view have to be displayed in OM16 which is not happening.
    Please let me know if I am missing anything.
    Thanks,
    Sai

  • 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

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

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

  • With Netscape all of the Webcam shots from live feeds were automatically saved in my cache folder and I could simply open my cache send the saved files into AcDsee and convert them into jpgs, It would save as many as I would allow space for. With firefox

    I cant retrieve my images from webcams that are cached any more with mozilla. With netscape all of the live webcam images from live cams were automatically saved in my cache folder and all i had to do was open it send the files to acdsee and turn them into jpgs. It would save them untill the Cache ran out of room no matter how many files or sites I had running. Mozilla seems to save what it wants when it wants and often dose not save any that I can retrieve because I believe it is bulking them into Cache 123 or 4 and those i cant open to retrieve the files. Sometimes it saves 100 or so and sometimes 2 or 3 sometimes 10 or more but i don't seem to have any control over what it does or does not save to retrieve no matter how much space i allow for the cache to save.
    == This happened ==
    Every time Firefox opened
    == I finally gave up trying to keep netscape due to all the ridiculess popups and continued reminders from you saying i had to switch over

    You have or had an extension installed (Ant.com Toolbar) that has changed the user agent from Firefox/3.6.3 to Firefox/3.0.12.
    You can see the Firefox version at the top and the user agent at bottom of the "Help > About" window (Mac: Firefox > About Mozilla Firefox).
    You can check the '''general.useragent''' prefs on the '''about:config''' page.
    You can open the ''about:config'' page via the location bar, just like you open a website.
    Filter: '''general.useragent'''
    If ''general.useragent'' prefs are bold (user set) then you can right-click that pref and choose ''Reset''.
    See [[Web sites or add-ons incorrectly report incompatible browser]] and [[Finding your Firefox version]]
    See also http://kb.mozillazine.org/Resetting_your_useragent_string_to_its_compiled-in_default

  • I am running windows 8 and have lightroom 5.5 and i have a error that says cant read from previous cache?  help

    I am running windows 8 and have lightroom 5.5 and i have a error that says cant read from previous cache?  help

    Using Windows Explorer, navigate to the folder that contains your catalog it's probably located in Pictures\Lightroom. In that folder you will find another folder with the extension .lrdata. You need to delete that folder and its contents, then start Lightroom again. And new previews folder will be created automatically, and you should be able to start using Lightroom normally.

  • 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

  • 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

Maybe you are looking for

  • Content selector is not loading content in application

    Hi all, I am working on weblogic portal 10.2 and MySQL 5. I have created one content selector using workshop and i can preview the content in workshop Same content I can see using weblogic portal admin console. And written a JSP to display the conten

  • 5g 30gb color ipod makes itunes close

    when i initially got the ipod and downloaded music into it everything was going smoothly...suddenly, after some downloads from the web (unrelated to ipod or itunes), itunes gives error message: "itunes has experienced a problem and must shut down" ev

  • Execution Time with Forge

    Is there any Performance improvements that can be applied to improve the run time with Forge? It takes us 90 minutes to complete.

  • Idoc inbound processing? from non-sap system?

    Hi experts, I'm confused with some functions below: IDOC_INBOUND_SYNCHRONOUS INBOUND_IDOC_PROCESS IDOC_INBOUND_SINGLE IDOC_INBOUND_ASYNCHRONOUS can you tell me what are the differences? when to use them? for sap outbound processing, we can only call

  • Visual Composer in EP

    Dear All, How to configure Visual Composer in EP. Please send step by step procedure. Thanks in advance. kaleem.