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

Similar Messages

  • 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

  • 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

  • Problem in getting the data from a cache in hibernate

    I am storing data inside a cache. When i am geeting the data from a cache its showing null.
    How can i retrieve the data from a cache.
    I am using EHCache

    Hi ,
    You have done one mistake while setting the input parameters for BAPI..Do the following steps for setting input to BAPI
    Bapi_Goodsmvt_Getitems_Input input = new Bapi_Goodsmvt_Getitems_Input();
    wdContext.nodeBapi_Goodsmvt_Getitems_Input().bind(input);
    Bapi2017_Gm_Material_Ra input1 = new Bapi2017_Gm_Material_Ra();
    wdContext.nodeBapi2017_Gm_Material_Ra().bind(input1);
    Bapi2017_Gm_Move_Type_Ra input2 = new Bapi2017_Gm_Move_Type_Ra();
    wdContext.nodeBapi2017_Gm_Move_Type_Ra().bind(input2);
    Bapi2017_Gm_Plant_Ra input3 = new Bapi2017_Gm_Plant_Ra();
    wdContext.nodeBapi2017_Gm_Plant_Ra().bind(input3);
    Bapi2017_Gm_Spec_Stock_Ra input4 = new Bapi2017_Gm_Spec_Stock_Ra();
    wdContext.nodeBapi2017_Gm_Spec_Stock_Ra().bind(input4);
    input1.setSign("I");
    input1.setOption("EQ");
    input1.setLow("1857");
    input2.setSign("I");
    input2.setOption("EQ");
    input2.setLow("M110");
    input3.setSign("I");
    input3.setOption("EQ");
    input3.setLow("309");
    input4.setSign("I");
    input4.setOption("EQ");
    input4.setLow("W");
    wdThis.wdGetWdsdgoodsmvmtcustController().execute_BAPI_GOODSMOVEMENT_GETITEMS();
    Finally inavidate your output node like
    wdContext.node<output node name>.invalidate();
    also put your code inside try catch to display any exception if any
    Regards,
    Amit Bagati

  • 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

  • Multiple users uploading data to Live cache

    Sorry posted in wrong thread. Please find this thread in Master data and general.
    Closing this one
    Hello ,
    Does APO has the capability to handle flat file uploads simultaneously to live cache  by 5 different users or does it throw out a message asking other users to wait until one upload is finished.
    We have a situation where users upload the flat files and based on these files the CVC creation process kicks off (If there are any new combinations). But every time more than one user tries to upload the file the system would nt allow other users to upload.
    Any help or input is highly appreciated.
    Thank you,
    Sai
    Edited by: st.sapscm on Jan 11, 2012 12:01 PM

    Thanks a lot of the prompt reply.
    Let me be more specific. The users upload sales data to APO (APO Info cube) in Work week versions. So the planners usually don't upload same CVCs but sometime they do upload all at once, say once every week or month.
    So when you say "Object" say the object in my case is APO BW infocube. The second part of your response compliments the idea that it might not be possible to do a simultaneous upload. Correct me if i am wrong. I am a little confused with the very first statement  ("Yes it is possible..." and the second part of you response about the locking.
    Can you please explain what would happen in each case when the recipient is 1. Info cube 2. Planning area
    Thanks a lot.
    Sai

  • Pulling differential data from the cache

    Hi,
    I am using LCDS 2.6 in my application. My application is using DMS to pull data from the EhCache which inturn gets refreshed from the database. Now once I receive a piece of data, it will not change in the future. Only new data would get appended to it. Hence I would just be needing the differential data and not the entire data. Currently after a regular interval, I use the DataService to hit the cache and get the whole data again which includes the older data as well as the newly appended data since I have the VOs mapped on both Flex and java ends using assemblers.
    What I now want is that I don't want to again pull the data that has already come in. I just need the new data that has got appended to the original data. Is there any way that the LCDS would itself get to know about the differential data and notify the client.
    Please note that the LCDS service hits the EhCache using assemblers and is not directly mapped to the database.
    I am currently in the design phase and would really need help on this.
    Looking forward to your replies on this.
    Thanks and Regards,
    Shally

    I believe data is being added to the store (in this case EhCache) from some other location. You need to notify LCDS that you are adding/removing/modifying data in the store directly, LCDS will then evaluate the change and send updates to relevant clients.
    You do this using the DataServiceTransaction API. http://help.adobe.com/en_US/livecycle/9.0/programLC/javadoc/flex/data/DataServiceTransacti on.html
    Inside the same webapp as the one in which LCDS is running, on adding an object, you need to begin() a DST, call createItem() to notify LCDS that you have added a new item and then commit() the DST to send messages to clients.

  • Import address book data from Metadata cache files?

    Hi,
    A friend of mine has a PM Cube and the hard drive got some bad sectors. I believe he still had 10.4.8 on it. I was able to pull off most of the data from the bad drive but I have no addressbook.data file. I do have all the cache files in the Metadata folder, is there any way to import these files? The new drive I installed now has 10.4.9 on it.
    Thanks for your help!
    Sawtooth G4   Mac OS X (10.4.9)  
    Sawtooth G4   Mac OS X (10.4.9)  

    ok, try the following:
    quit ab in leopard
    select that address book folder in your old tiger home directory, then bring it to your leopard homefolder in the same location, i.e. homefolder/library/application support/address book
    then in that newly moved ab folder locate the following two items and remove them: Metadata folder and AddressBook-v22.abcddb file
    then launch ab in leopard and see if that solves your issue
    hope this helps

  • 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

  • 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

  • How to query data from grid cache group after created global AWT group

    It is me again.
    as I mentioned in my previous posts, I am in progress of setup IMDB grid environment, and now I am at stage of creating cache group. and I created global AWT cache group on one node(cachealone2), but I can not query this global cache group from another node(cachealone1)
    thanks Chirs and J, I have done successfully setup IMDB grid env, and have two node in this grid as below
    Command> call ttGridNodeStatus;
    < MYGRID, 1, 1, T, igs_imdb02, MYGRID_cachealone1_1, 10.214.10.176, 5001, <NULL>, <NULL>, <NULL>, <NULL>, <NULL> >
    < MYGRID, 2, 1, T, igsimdb01, MYGRID_cachealone2_2, 10.214.10.119, 5002, <NULL>, <NULL>, <NULL>, <NULL>, <NULL> >
    2 rows found.
    and I create group ATW cache group on cachealone2
    Command> cachegroups;
    Cache Group CACHEUSER.SUBSCRIBER_ACCOUNTS:
    Cache Group Type: Asynchronous Writethrough global (Dynamic)
    Autorefresh: No
    Aging: LRU on
    Root Table: ORATT.SUBSCRIBER
    Table Type: Propagate
    1 cache group found.
    Command> SELECT * FROM oratt.subscriber;
    0 rows found.
    however I can not query this from another node cachealone1
    Command> SELECT * FROM oratt.subscriber WHERE subscriberid = 1004;
    2206: Table ORATT.SUBSCRIBER not found
    The command failed.
    Command> SELECT * FROM oratt.subscriber WHERE subscriberid = 1004;
    2206: Table ORATT.SUBSCRIBER not found
    The command failed.
    Command> SELECT * FROM oratt.subscriber;
    2206: Table ORATT.SUBSCRIBER not found
    this is example from Oracle docs, I an not sure where I missed for this. thanks for your help.

    Sounds like you have not created the Global AWT cache groupo in the second datastore? There is a multi-step process needed to roll out a cache grid and various things must be done on each node in the correct order. have you done that?
    Try checking out the QuickStart example here:
    http://download.oracle.com/otn_hosted_doc/timesten/1121/quickstart/index.html
    Chris

  • 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

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

  • Strange data from cache

    Hi,
    windows x64, TimesTen 11.2.2, direct connection from .net client.  TT Cache maps nclob field in Oracle to nvarchar field in TT.
    Sometimes when i update oracle field with string data shorter then previous value, after cache update i am getting mixed data from TT cache - new string (new and shorter) overlapped over old one. This happens only with direct connection.
    it looks like bug...
    Regards, Andrey

    So are you saying that if you use a client/server connection the problem does not occur? Do you see the same issue with ttIsql if you query the column value?
    Which *exact* version are you using (ttVersion output)?
    Chris

Maybe you are looking for

  • Editing the Customer Address using Open Interface

    Hi All, The requirement is to edit the address details(postal codes) of the customer using Open Interface and not the APIs. They are insisting on using open interface as the Vertex validation(Taxation rules) is taken care only by Open Interface. Will

  • Windows 8.1 client to Mac - can't open volumes

    I have a mini with a number of drives (two internal, a few more connected via USB3 and Firewire). I have filesharing turned on (+SMB). From any other Mac on my network, I can log in using my admin account and access every drive. However, from a new A

  • DIFFERENCE BETWEEN OPEN_DATASET AND GUI_UPLOAD

    WHY WE USE OPEN_DATASET TO FETCH DATA FROM APPLICATION SERVER WHERE AS WE USE ONLY GUI_UPLOAD TO FETCH FROM PRESENTATION SERVER?

  • Dreamweaver suddenly stopped and can't get it started anymore

    While i was working with dreamweaver it all of a sudden stopped and closed. I couldn't get it to work anymore. So I restarted my computer. No luck. I tried to reinstall dreamweaver, but after 20 minutes installing it came back that it couldn't be ins

  • Removing Automatic Backing Bean Updates in Jdev 11.1.2.2.0

    Hi, in the User Guide and in the book "Jdeveloper 11g Handbook" I'm reading: Remove Automatic Backing Bean Updates 1. Click page.jspx file tab. Click the Design tab 2. Select Design | Page Properties and click the Component Binding tab. Unselect Auto