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

Similar Messages

  • 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

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

  • 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

  • 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

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

  • 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

  • Deletion of Purchase Order from Version

    Hi,
    I want to delete a resource at a factory. I have deleted all planning data related to this resource from live version 000 and Copied version.
    When I try to delele resource from the model it gives a message " Res. F313_HAND_RESO, plng ver. ALT_TEST21 has assignments in liveCache - action not possible", which indicates that the resource is still being used in a Purchase Order (PchOrd) which exists in a copied version.
    If I use /sapapo/rlcdel to delete these PchOrd from version, message is displayed "No orders exist in LiveCache". I even tried to delete these PchOrd using transaction "/SAPAPO/SDORDER_DEL" (ATP: (SD) - Delete Orders from the Database), but even this program is unable to delete this PchOrd.
    Can one of you throw light as to how i can go about deleting this PchOrd from version?
    Thanks for your help in advance
    Regards
    Amod

    Try report /SAPAPO/DELETE_PP_ORDER giving the appropriate version and select checkbox Products Planned Externally.
    Please note if PO is in active version then this report can not delete it.
    In that case you need to deactivate the appripriate Integration Model, run delta Report which should propose delete of the PO in APO.
    Hope this helps,
    somnath

  • 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

  • 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

  • When CSS wholly remove connection from internal cache

    Hi,
    I use RPC over TCP between client and server through CSS 11500.
    I have a question about when CSS remove this RPC connection from internal cache/connection table ?
    and does CSS generate and send back RST if same connection come in CSS after removing ?
    I do not change flow-timeout-multiplier parameter, so RPC's timeout value (Inactivity Timeout) is 16 sec.
    I understand CSS marked the connection as idle after 16 sec elapsed in this case.
    And, however CSS does not delete it from internal cache/connection table.
    Does it mean that this idle connection went in a list of resource that can be reused when same connection
    come in ?
    That is, the connection which marked as idle does not need 3 way handshake again to get create connection/flow
    entry because connection information remains on CSS in spite of the state is idle.
    Is it correct ?
    So when idle connection is wholly removed from internal cache/connection table ?
    That is, after how much time CSS wholly remove it from internal cache/connection table ?
    And after CSS wholly remove it, does CSS generate and send back RST when same connection without
    3 way handshake come in CSS ?
    Your information would be greatly appreciated.
    Best Regards,

    Your understand is correct.
    Once a flow is marked idle, it is moved to a list of resources that can be reused.
    While sitting in this list, the flow information can still be used to switch traffic belonging to this session.
    The flow data will move inside the list and then will be deleted to be used for a new connection.
    Depending on the number of connection/sec that you get, the flow data will move quickly or not inside the list. It is impossible to predict when it will be deleted.
    Once deleted, if data comes in for the old session, the CSS has no information about the flow and it should send a RESET back to the source.
    Gilles.

  • 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

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

Maybe you are looking for

  • Can we peek into System V message queue?

    Hi, there. I have to processes A and B, talking through system v message queue. For debugging purposes, I wish to attach a third process C to that message queue and print out what info process A and B are exchanging. Is that possible? thanks

  • Strange Error when checking a project into repository!

    Hello, I have a project that I checked out of repository, and when I try to check it back in I get an error that I have never seen before. It happened when it is going through the files to list for a check in. I get an error msg box that says, " An u

  • Auto creation of time based inspection points against in process required

    Hi We want system to create/generate inspection points automatically when process order is released and inspection lot is created. Currently we have to create inspection point manually using either QE71 or QE11. Previously when scheduling was active

  • Loop though all item in folder and outside folder using foreach.

    i have library having files inside folders some files outside folders, currently i am looping through library as below  foreach (SPListItem items in listItems) //My Code but this not looping through items in  folders ,Any pointer how to modify above

  • 2 iMac with 1 External HD

    I have an iMac 1.8 and a iMac Core Duo and I was wondering if there is anyway I can connect BOTH to the same external hard drives. I share data alot and I hate having to disconnect and reconnecting. My data is too big to efficiantly go via wireless o