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

Similar Messages

  • 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

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

  • 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

  • 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

  • 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

  • How to get data from live site using C# on grid view

    hi, how am I able to get data from a website and display it in a grid view ?
    Can anyone show me how I would do this? Thanks

    Hello,
    This post does not fit to this forum, read the
    stickies.
    Regards, Eyal Shilony

  • 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

  • Clarification on details regarding getting data from APO into BW

    Hi Friends,
    I need some clarification in terms of getting data from APO into BW for reporting:
    I observed that SAP has provided standard data flows for PPDS module, where as for the Demand Planning and Supply Network Planning SAP has just provided some standard InfoCubes ex: 0APO_C07, 0APO_C10, 0APO_C11, 0APO_C12.
    Which makes me believe that for Demand Planning and Supply Network Planning we need to generate DataSources from the Planning books in DP & SNP and build our own custom data flows. In that case what is the use of above mentioned InfoCubes provided by SAP?
    Also in my current project the client has built a custom DataSource on top of a Planning Book in DP and created custom data flow in BW for reporting and also created a Back up cube in APO.
    My question on this is, what is the use of this Back up cube in APO, what is the need to maintain two same cubes in two different systems?
    My next question is, I have installed complete data flow for 0APO_C02 (Orders Data) in BW and loaded data. In SAP documentation it says when we try to load data for a particular date range using this InfoSource (0APO_PPDS_ORDER_01), it directly loads data from the live cache.
    Is there a way to know if the data is coming from Live Cache or from APO server, can we get data from live cache for 9A*** Datasources also, which we create on planning books in DP and SNP?
    Any comments and Info will be greatly appreciated. Thanks!

    Hi Sunitha, thanks for your inputs. So does that mean for Demand Planning and Supply Network Planning, SAP has not given any standard DataSources because it makes more sense to build DataSources from the planning books as each company has their own planning strategies based on how they do there business. Right?
    And for these modules there is no other way rather than generating DataSources from Planning Books and build the Data Flows based on it. Right?
    Also these generated DataSources i.e. 9A**** pull data from live cache itself right or is there any setting that we need to enable for it to get data from live cache?
    Thanks again for your valuable inputs hope to get answers to above questions as well.

  • 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

  • Live cache failed

    I got the error message of "Live chage failed" at run time. Even In the Live cache  monitor also I am getting the status "Live cache Inactive". What is the reason for this error and how to rectify it.

    Hi veeranan muthuppandi
    As you mentioned, liveCache seems inactive. (liveCache is down)
    So please start up livecache from LC10.
    Best Regards
    Keiji

  • 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

  • Live cache lock handler not available

    Hi we are frequently getting this error Live cache lock handler not available and this causes our process chains to fail.
    Can anyone please explain in details what this error refers to and direct to any good links for error resolution.

    Hello,
    1. As SAP customer, you could create the SAP message to the component BC-DB-LCA and get SAP support.
    2. If you set the flag 'activate livecache lock' in tcode /SAPAPO/MSDP_ADMIN for your planning area on SCM system, please run the connection test for the LEA connection in /ndb59 to check the LEA connection settings.
       The liveCache installation guide has additional information about LEA connection.
    Regards, Natalia Khlopina

  • WAAS Speed from local cache

    I have a WAAS demo setup in a test lab and have a simulated T1 span connecting two networks. When I transfer a file using CIFS or web initially, I see the traffic flow through the WAN. When I do the transfer a second time, I know it is getting the data from cache as there is no WAN traffic, but I am not getting it at wire speed. It is only coming to the client at about double the T1 speed. I expected almost line speed access when getting data from local cache. Is there a setting I missed or is this expected behaviour?

    Zach,
    Yes, I understand some things could break if you are careful with those commands, but doing some simple "show" commands (or using the gui) shouldn't hurt when troubleshooting without TAC. I've used some expert show commands to see which files are actively being accelerated through the edge device.
    A little off-topic, but how are the drives partitioned? Our WAE-512 edge has 2 250GB drives mirrored, the "Maximum Cache Disk Size" only shows 93GB. I understand there are probably OS, swap, and log partitions, but it would be nice to know more definitely how it is split up to explain to a customer why they don't get the "full" size of the drive.
    Thanks,
    Kevin

  • 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

Maybe you are looking for

  • ITunes 10.4.1 Failure to Sync

    I updated to iTunes 10.4.1 last night. We're running the latest verions of Lion as well. After the update, I bought an album, a few songs and synced my iPhone 4. After the sync, I CHECKED the iPhone to make sure that everything I wanted had transferr

  • Page rotate script not working(not allowed error security settings prevent access to this property)

    HI, I am using a script to rotate each pages in pdf file when clicking a button. I have added a script to rotate file in the rotate button's click event as a javascript.It is working in acrobat but not in adobe reader. Pleae see the script nStart = 0

  • Toolkits and Oracle AS 10g

    Hello, Do the XML and PL/SQL Web toolkits both come with Oracle AS 10g? Or do they need to be aquired separately? How about any Oracle PreCompilers like C/C++? Where a they 'bundled'? (I know it is not with Oracle AS) Thank u.

  • When I send an email it appears in my inbox

    Is there a way to stop this.

  • Which web dynpro I am using?

    Hi all,     I can not contact with my basis now, I want to know I am using ABAP web dynpro or JAVA web dynpro. How can I check it? Thanks~