APO Historical & Future forecast BAPIs

Hello Experts,
We are integrating SAP SCM / APO with a third party application for safety stock calculation. For this we would require the historical and future forecast data from SAP. We are using BAPIs to get this data.
From the available documentation we could find that the BAPIs BAPI_PIRSRVAPS_GETLIST provides the forecast data.
Can anyone kindly tell us how exactly to use this BAPI can be used to get forecast data aggregated per week?
Thank you,
Dilip

Hi,
   The forecast program assumes that the flat file is loaded in the application server for the APO system.  You do not need to create an interface but load data from the application server on to live cache.
This dpocument may be useful to get you started:
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/cc78cb7e-0701-0010-f990-940ca789f51e
cheers
Aveek

Similar Messages

  • APO DP - use of BAPI PlanningBookAPS

    I am using APO DP V5.
    I am using the standard BAPI PlanningBookAPS to update data in my DP planning area using Method ChangeKeyfigureValue2.
    If I have a successful update, I would expect a 'success' message to be returned by the BAPI, but instead I just have 'no entries' in the RETURN table of the BAPI.
    If I have an unsuccessful update, then the RETURN table includes all the relevant error messages.
    Is there a way of ensuring that a 'success' message is in fact returned?
    Thanks,
    Bob Austin

    Hi Bob - this particular BAPI will only return error messages. If sy-subrc = 0 and return is initial then you had a successful change. There is no way to turn on a success message. There is a BADI in the FM but it happens before the change (at the beginning of the BAPI) and during the error processing (towards the end of the BAPI). Errors that do occur do not stop the processing, each char combo is processed individually so the error messages that you see will be for all of the char combos that have an error. Following this logic, to produce a success message for each char combo that is succesful would create a very large return table.
    Regards
    Andy

  • APO DP Composite forecast and expost forecast

    Hi every body
    We want to use composite with standard mode with automatic correction of history by outlier. Univariates are univariates strategy 13 with moving average. It should be possible since I have seen doc explaining that we can store expost forecast for composite in a keyfigure
    In composite profile, we do not have the flag for outlier. So I maintained it in the univariates of the composite.
    I got no effect
    I am not sure of the place where to maintain the keyfigure for expost forecast for composite. I maintained the usual forecasting setting in the planning area with the field for forecast, corrected history, corrected forecast, expost forecast. But with composite, is there an other place since I did not got result ?
    Kind regards,

    no ext post forecast with planning strategies 13 and 14

  • APO basic ATP & Forecast

    Hi All,
    Kindly help,
    I config Basic ATP  agaisnt ATP check.
    Now Issue is my newly created sales order is not getting confirmed in APO.Although it shows stock & recipts.
    Regards
    V4B

    V4B,
    You say that the ATP screen shows 'nothing'.  That means that none of the items that you see in RRP3 (or in MD04 on the R/3 side) are being considered for ATP check, and therefore you will get no confirmation.  On the ATP screen, the column entitled ATP quantity should show a quantity, and the quantity should be equal to or greater than the Simulated requirements quantity, on the date of the Simulated requirement.  On this screen, you should have at least one row for 'stock' and at least one row which contains valid supply elements.  Since you have 'nothing', your stock & supply elements are not being considered.
    You also mention that you have stocks and receipts, and they show as onhand in //RRP3.  According to your ATP check, the only items that will be relevant for ATP are 'Valuated, Unrestricted Use stock' and 'advanced shipping notification'.  You have further stated that these are the items that exist in //RRP3.  Please confirm. On //RRP3, the stock should display the 'CC', which is the only type of stock mentioned in your 'Scope of check'.  You should also have one or more 'PO Memos'. 
    On the scope of check screen, you should at least have BM Sales orders selected as a requirements element.  Please confirm.
    I will assume that you are not using sublocations (storage locations in R/3) in your ATP check (scope of check screen).  Please confirm.  If you are using sublocations, all supply elements must be relevant for the same sublocation as the simulated requirement. 
    Finally, double check to make sure that the info you are viewing in /RRP3 is for the same product/location that you are using in your R/3 ATP check. 
    Best Regards,
    DB49

  • SCM 5.1 APO -DP Master Forecast Profile - Change Details

    Hi All
    If existing Master Forecast Profile has been changed by some authorised user, will it possible to view What changes has been made,when,by whom..etc....??...need functionality which should give all details.
    Current functionality giving only changed user name and date.
    Regards
    Poongunran

    It is not available.

  • Forecast Consumption in APO- No Data Available in Product View

    Hi Experts
    I facing some problem in Forecast Consumption in APO. The APO system is connected to a R/3 system. So data relevant for Forecast consumption comes from R/3.
    The allocation indicator in the requirement class assigned to the strategy maintained in the product master is set as " no consumption with customer requirement". and the same is transfered to APO.
    I have the changed the settings in APO and here are the setting maintained in APO to enable Forecast Consumption.
    Product Master Setting:
    a) Consumption Mode: 2 ( forward and backward)
    b) Consumption Period: ( 30 days both backward and forward)
    c) Strategy Group : 20 and assignment mode is set to "Assign customer requirement to planning with final assembly" and category group has sales order - BM
    d) The check mode setting in the ATP tab is set to "Assign customer requirement to planning with final assembly"
    I have a forecast for today's date and a sales order transferred from R/3 for the same date. But I do not see any data in the Forecast tab in the product view ( /sapapo/rrp3 Tcode)
    Please let me know if I am missing any setting in APO. Or the SAles order carries the strategy information from R/3 and influencing the consumption any way.

    Hi,
    What is your Forecast & Sales order quantity? If these are same then sales order consumed forecast, so you can not able to see in the rrp3.
      Second thing try to increse the forecast quantity than sales order quantity & then check it.
    Regards
    Sujay

  • APO Standard Forecast Consumption Condition in /SAPAPO/DM_BADI_CSP

    Hi
    I need to change the standard forecast consumption logic to meet the business requirement which is as follows.
    Forecast should be consumed based on the fiscal month window.
    Note: Standard SAP /APO functionality do not support forecast consumption based on the fiscal month window instead system uses consumption period [in calender days] in backward/forward direction and system do not restrict the forecast consumption window based on the fiscal month.
    Please provide inputs if you have faced such situation. I have got a BAdI  '/SAPAPO/DM_BADI_CSP' that most closely resembles to serve the purpose but then I don't know much about it. Any sample implementation will also be helpful.
    Thanks and Regards
    Zafar

    Hi,
    For Issue#1
    I have ran this utility multiple times, but its not correcting. Probably i need to raise OSS message to sort it out.
    For Issue#2
    I think i have confused you, i have two scenarios first where i have sales order/delivery coming from external system. I am not worried about them as i will not be doing PGI for such order.
    Second scenario which i am having is very standard scenario. I have forecast in APO and creating sales order/ delivery in ECC. When they come to APO they consume forecast. Till this point every thing is fine. As soon as i do PGI of delivery, then that quantity should move to withdrawal from allocated, but in my case its not going to withdrawal but getting removed from allocated. This is resulting in increase of forecast quantity. I am tring to resolve this issue and seeking your help.
    Thanks
    Akhilesh
    +91-9764341911

  • How to get the forecast data from SCM into BW

    Hello,
    Is there a table or Function module in SCM F&R  that can be used  to transfer the forecast data from SCM F&R into BW? I dont see any Business content datasources that has the forecast data.
    I would like to get the future forecast data. For ex, if there is a forecast for a material and Site for the next 52 weeks, I would like to retrieve
    the same from SCM. I dont see any business content. The closest would be 0FRE_ANA_WEEKLY_1. But it has only the past data, not the future data.
    Thanks,
    SBS.

    Hi,
    You would follow the same process as you would for getting data from a R3 system to BW, i.e generate datsources on the APO side and then set the extraction to flow from APO to BW. On the BW side, you'll need a source system for the APO, replicate datsources, set up update and transfer rules in the infosource and then load data to the data targets.
    Cheers,
    Kedar

  • DP Forecast transfer to R/3 for Specific Period

    Hi Friends,
    I have APO DP forecast ready to be transfered to R/3 demand management. When I transfer it to demand management even past forecast is transfered again. Is there anyway to restrict it so that only future forecast is transfered to R/3.
    Thanks and Best Regards, Manoj

    you need to use a release profile and schedule it as a mass processing job
    to restrict the time you can create a data view that has only the periods you need and use that in scheduling the mass processing job created above

  • Training Material on APO

    Hi,
    I'm a newbie to ABAP and APO.
    I'm looking for specific information / training documents / books / examples on:
    1.) What is Core Interface Function? Where is it used? How is it used?
    2.) Simple Enhancement and Modification examples in CIF and other APO programs
    3.) BAPIs in APO. Simple Examples.
    3.) Transactions used in APO.
    4.) Loading data into infocubes (steps) and the procedure to use infocube in a forecast
    5.) Livecache and it's usage. Checking if the Livecache is functioning properly.\
    6.) simple examples in using APO objects like Planning Area, Data Area, Planning Book, Forecast etc.
    Thanks.
    Sid.

    Hi ,
    SAP Advanced Planner and Optimizer (SAP APO)
    What is SAP APO?
    SAP Advanced Planner and Optimizer (SAP APO) is a key application component of mySAP.com and forms a technical foundation for several mySAP.com solutions.
    What is the benefits of using SAP APO?
    The benefits of the SAP APO, is that it provides the basis for an end-to-end supply chain management solution, seamlessly linking all key processes -- from order generation to production planning to transportation.
    SAP APO offers functionality for:
    Demand planning
    Supply network planning
    Production planning
    Detailed scheduling
    Available to promise
    Although SAP APO is no longer marketed as a separate solution, its functionality underlies mySAP Supply Chain Management, mySAP Customer Relationship Management, and mySAP E-Procurement.
    For more information, please check this links.
    https://websmp201.sap-ag.de/scm
    SCM 5.0:
    http://help.sap.com/saphelp_scm50/helpdata/en/12/3dfd81126e1c448c870f335f11d016/frameset.htm
    SCM 4.1:
    http://help.sap.com/saphelp_scm41/helpdata/en/12/3dfd81126e1c448c870f335f11d016/frameset.htm
    SCM 4.0
    http://help.sap.com/saphelp_scm40/helpdata/en/12/3dfd81126e1c448c870f335f11d016/frameset.htm
    http://help.sap.com/saphelp_apo/helpdata/en/7e/63fc37004d0a1ee10000009b38f8cf/frameset.htm
    Hope ths helps
    Please reward points
    Sunil

  • APO-DP : Change in Fiscal Year Variant for the year 2008

    As per earlier Fiscal Year variant configuration, the data has been forecasted in APO system till the end of Year 2008. But recently the fiscal year variant configuration modified in R/3 which has been impacting APO-DP storage buckets which are not matching with that of earlier fiscal year variant. So, there is a mismatch in the storage bucket profile where in the data already stored in “Weekly, Monthly and Posting Period” based on the earlier Fiscal year 2008 configuration.
    Now the system is not allowing to do any Interactive Planning.
    The business would like to use the latest fiscal calendar and also not ready to loose the forecasted data for the year 2008. So, we are not in a position to deactivate and reactivation of Planning Area and also we are not using back-up infocubes functionality.
    Please update me if anybody experienced this type of situation or know the solution.

    I think your suggestion should work but it takes more resource time and need more database size.
    I am thinking to retain some important forecast keyfigures data in the following workaround method;
    1) Now the Planning Area Initialized for 2yrs historical + 1Yr forecast horizon
    2) Run first set of new macros to copy from year (say 2008) to year (say 2006)
    3) Re-initialize the Planning Area (Jan'2006 to Dec'2007)
    4) Re-build the New Fiscal Calendar from R/3
    5) Re-initialize the Planning Area for history and forecast horizon (ex: from Jan'2006 to Jan'2009)
    6) Run second set of new macros to copy back ( ex: from 2006 to Year 2008) and wipeout the duplicate records in 2006
    7) The above macros can be utilized to run every year end when ever the new fiscal calendar introduced
    Suggestions are welcome

  • Generating a forecast in LIS Planning

    Hi,
    LIS Planning issue - really stuck and would appreciate any help.
    Created new infostructure to hold forecast and demand plan, with new planning type against it.
    Copied sales history into sales order qty key figure.
    Used macro to copy this data over to Sales Forecast key figure.
    Created Activity "prognose" to generate future forecast in Sales Forecast key figure.
    Problem - no forecast is being generated - SAP states (when I run the forecast interactively) that there is no historical data available - yet if I SE16 the infostructure I can see the data in the past.
    Can't see where SAP is told to look for the historical data - made assumption that it uses the field it is forecasting, but this makes little sense as an ex-post forecast will generally use sales as it's basis, and forecast in a different key figure.
    Am I missing something fundamental? Are there any LIS planning experts out there who can help a desperate man?
    Any help appreciated.
    Sean

    Hi,
    Is this in Flexible Planning.  Did you do a OLI7 to set up the info. structure? Execute with &("n" redetermine update groups, update documents, terminate 24 hrs. from start and give 99999 as faulty documents. When done then copy that version to 000 and then to any other version you want to create. if you did all of that already make sure your forecast profile goes back the correct number of weeks that you need.  Did you set up a key figure in the planning type with an update rule to pick up actual sales and previous year sales?
    Thanks,
    John

  • Sap pp-Forecasting

    How Forecasting is done in PP & how it is related with MRP/Planning?

    Hi,
    Pls find details about Forecast based Planning in MRP :
    Forecast-Based Planning
    Use
    Forecast-based planning is also based on material consumption. Like reorder point planning, forecast-based planning operates using historical values and forecast values and future requirements are determined via the integrated forecasting program. However, in contrast to reorder point planning, these values then form the basis of the planning run. The forecast values therefore have a direct effect in MRP as forecast requirements.
    Features
    The forecast, which calculates future requirements using historical data, is carried out at regular intervals. This offers the advantage that requirements, which are automatically determined, are continually adapted to suit current consumption needs. The forecast requirement is reduced by the material withdrawal so that the forecast requirement quantity that has already been produced is not included in the planning run again.
    Reducing Forecast Requirements
    Reducing forecast requirements by consumption
    If consumption is higher than the forecast requirements in the current month, then the system also reduces future forecast requirements.
    Reducing current forecast requirements by consumption
    If consumption is higher than the forecast requirements in the current month, then the system does not reduce future forecast requirements.
    Average reduction of the forecast requirements
    The reduction of the forecast requirements is based on average daily consumption. Actual consumption data is not relevant.
    The system calculates the average daily requirement first using the formula forecast requirement/number of workdays in the forecast period.
    The forecast requirements are then reduced by the quantity resulting from the following formula: number of workdays worked x average daily requirements.
    Period Pattern and Forecast Periods
    You can specify the period pattern for the forecast (daily, weekly, monthly or per accounting period) and the number of periods to be included in the forecast individually for each material. It is possible, however, that the forecast period pattern is not specific enough for planning purposes. In this case, you can define per material that the forecast requirements should be divided according to a finer period pattern for planning. You can also define how many forecast periods are to be taken into account during requirements planning. The splitting indicator is defined in Customizing for MRP per plant and per period unit and is assigned to the material in the material master.
    For a monthly forecast, the requirements date would be set on the first workday of the month because, for planning, it is assumed that the total requirement must be available at the beginning of the period. You can then divide this monthly requirement into either daily or weekly requirements.
    Forecast-Based Planning Procedure
    Prerequisites
    You have set an MRP type for forecast-based planning in the material master (MRP 1 view).
    You define MRP types in Customizing for MRP in the IMG activity Check MRP types.
    Process Flow
    1.The system copies the requirements quantities that it has forecast in the requirements planning run and calculates net requirements. During this calculation, every period is checked to make sure that the forecast requirements are covered either by available stock, by planned receipts from purchasing or by production. If a material shortage occurs, the system generates a procurement proposal.
    2.The system calculates the quantity recorded in the procurement proposal according to the lot-sizing procedure that you specified in the material master. Depending on the lot-sizing procedure, several forecast requirements are grouped together into one lot.
    3.For every procurement proposal, the system calculates the date on which it must be converted into a purchase order or a production order.
    Hope this helps.
    Regards,
    Tejas

  • Difference :Automatic Reorder Point Planning and Forecast based palning ?

    Dear MM Guru's,
    As we See in throtical Concepts that
    Automatic Reorder point planning and Forcast Based Planning Used the prevuious Historical Data.
    Please explain what is difference Between them.
    regards,
    A. S.

    Hi,
    Reorder Point Planning: -
    Use: -
    In reorder point planning, procurement is triggered when the sum of plant stock and firmed receipts falls below the reorder point.
    Features: -
    The reorder point should cover the average material requirements expected during the replenishment lead time.
    The safety stock exists to cover both excess material consumption within the replenishment lead time and any additional requirements that may occur due to delivery delays. Therefore, the safety stock is included in the reorder level.
    The following values are important for defining the reorder point:
    - Safety stock
    - Average consumption
    - Replenishment lead time
    The following values are important for defining the safety stock:
    - Past consumption values (historical data) or future requirements
    - Vendor/production delivery timelines
    - Service level to be achieved
    - Forecast error, that is, the deviation from the expected requirements
    Manual Reorder Point Planning
    In manual reorder point planning, you define both the reorder level and the safety stock level manually in the appropriate material master.
    Automatic Reorder Point Planning
    In automatic reorder point planning, both the reorder level and the safety stock level are determined by the integrated forecasting program.
    The system uses past consumption data (historical data) to forecast future requirements. The system then uses these forecast values to calculate the reorder level and the safety stock level, taking the service level, which is specified by the MRP controller, and the material's replenishment lead time into account, and transfers them to the material master.
    Since the forecast is carried out at regular intervals, the reorder level and the safety stock level are continually adapted to the current consumption and delivery situation. This means that a contribution is made towards keeping stock levels low.
    Forecast-Based Planning: -
    Use: -
    Forecast-based planning is also based on material consumption. Like reorder point planning, forecast-based planning operates using historical values and forecast values and future requirements are determined via the integrated forecasting program. However, in contrast to reorder point planning, these values then form the basis of the planning run. The forecast values therefore have a direct effect in MRP as forecast requirements.
    Features: -
    The forecast, which calculates future requirements using historical data, is carried out at regular intervals. This offers the advantage that requirements, which are automatically determined, are continually adapted to suit current consumption needs. The forecast requirement is reduced by the material withdrawal so that the forecast requirement quantity that has already been produced is not included in the planning run again.
    Reducing Forecast Requirements
    - Reducing forecast requirements by consumption
    If consumption is higher than the forecast requirements in the current month, then the system also reduces future forecast requirements.
    - Reducing current forecast requirements by consumption
    If consumption is higher than the forecast requirements in the current month, then the system does not reduce future forecast requirements.
    - Average reduction of the forecast requirements
    The reduction of the forecast requirements is based on average daily consumption. Actual consumption data is not relevant.
    The system calculates the average daily requirement first using the formula forecast requirement/number of workdays in the forecast period.
    The forecast requirements are then reduced by the quantity resulting from the following formula: number of workdays worked x average daily requirements.
    Period Pattern and Forecast Periods
    You can specify the period pattern for the forecast (daily, weekly, monthly or per accounting period) and the number of periods to be included in the forecast individually for each material. It is possible, however, that the forecast period pattern is not specific enough for planning purposes. In this case, you can define per material that the forecast requirements should be divided according to a finer period pattern for planning. You can also define how many forecast periods are to be taken into account during requirements planning. The splitting indicator is defined in Customizing for MRP per plant and per period unit and is assigned to the material in the material master.
    Example: -
    For a monthly forecast, the requirements date would be set on the first workday of the month because, for planning, it is assumed that the total requirement must be available at the beginning of the period. You can then divide this monthly requirement into either daily or weekly requirements.

  • In SOP- transfer forecasted values from material master to info structure?

    Hi All,
    I wanted to test out a few scenarios. Do you know the answers  / can you help simulate and check the below?
    1.     If I run the forecast using different models for different materials using the total forecast run (MP38), the forecast values will get updated in the material master. Can I get these values transferred directly into the SOP (standard or flexible), without re-running the forecast in SOP? What I am looking at is a possible scenario where individual materials have different forecast model, so do not want to run forecast from SOP using one model for all.
    2.       Can you have the capability of selecting diff model (say based on material master data) in SOP for diff materials? When I ran SOP, the model I specify there for forecasting is applied for all materials
    3.       If I upload historical values/forecasted values in the material master, can I directly transfer them to SOP without any change to the value?
    Appreaciate your inputs.

    Hi All,
    I wanted to test out a few scenarios. Do you know the answers  / can you help simulate and check the below?
    1.     If I run the forecast using different models for different materials using the total forecast run (MP38), the forecast values will get updated in the material master. Can I get these values transferred directly into the SOP (standard or flexible), without re-running the forecast in SOP? What I am looking at is a possible scenario where individual materials have different forecast model, so do not want to run forecast from SOP using one model for all.
    2.       Can you have the capability of selecting diff model (say based on material master data) in SOP for diff materials? When I ran SOP, the model I specify there for forecasting is applied for all materials
    3.       If I upload historical values/forecasted values in the material master, can I directly transfer them to SOP without any change to the value?
    Appreciate your inputs.

Maybe you are looking for

  • Upgraded to current iMovie but don't see videos from previous version

    Hi I have an iMac 27" mid 2011, and decided to upgrade yesterday to Yosemite 10.10.  The upgrade went fine, but then discovered that iMovie would not work, so i had to run the update for iMovie which is currently 10.0.06.  I have discovered that I ca

  • How Do You Display The Rendering Progress Bar In The Windows Dock?

    Is there a preference/setting in Windows that allows you to display a rendering progress bar on the the app icon in the dock for AE the way Premiere does?

  • Can't add artwork to album

    I have imported many cd's recently and since installing the latest Leopard update I have had a strange issue appear in iTunes relative to artwork. Some albums did not find artwork to download (par for the course), so I went out to Google images or Am

  • Question on Passing URL Parameters

    Thanks in advance for any responses to this question! I have a dynamic table (in a master page using javascript and asp) that links to a detail page, passing a parameter (the ID of a product) to identify the correct row to display in the detail page'

  • Windows 8.1 + Windows Phone 10 emulator

    Hi, when I try it I get an error about an unregistered class. Should the WP 10 Emulator work on Win 8.1 or does this don't work at all? Hanno