Actuals and Forecast Data
Hi BI Gurus,
I have a sales multiprovider(zsd_mc01) which contains the Actual data and forecast data.
Actual data is coming from my sales cube(0sd_c03) and Forecast data is coming from the Forecast cube,Integrated Planning (Zsd_for).
Now I have a keyfigure Actual quantity in Actual cube and forecast quntity in forcast cube.
If I create a query actual/forecast quantity on multiprovider I need to populate the actual and forecast data in a single row in the report.
Example:
If the user enters april 2007,
The data should be populated in a single row like this:
Jan2007,Feb2007,March2007,April2007 Actual quantity ...from May2007 to December 2007 Forecast quantity.
How I can Proceed for Populating Actuals and Forecast Data in a Single Row.
I am getting in Two rows but I need it in one row.
Please Suggest any solution on this...I will appriciate and rewarded
Thanks,
Hi Irwin,
I was not around for a few days, hence, delay in writing this to you.
I am going to give to some kind of a pseudo code here. You might need to take help from an ABAPer to close the open ends here (Please excuse me here incase you yourself have an expertise in ABAP, I am just assuming otherwise).
Going back to my earlier response to your question, I am considering two variables:
<b>ZC_ACTV: For Actuals
ZC_FORV: For forecasts</b>
You would need to create them as <i>Customer-Exit</i> kind of variables. They should be able to hold<b> dates</b>.
I am assuming that you already have a User Entry variable for entering month on the selection screen. I'll call it <i><b>ZP_MON</b></i> (Please substitute the actual name).
Now, the code in the include <b>ZXRSRU01</b>, within the <i>CASE-ENDCASE</i> statement, would look something like this.
* Some data declaration in the beginning, if already not there.
DATA: l_s_range TYPE rsr_s_rangesid.
DATA: loc_var_range LIKE rrrangeexit.
* For ZC_ACTV
WHEN 'ZC_ACTV'. " Variable name
DATA : v_year(4) TYPE n ,
v_mon(6) TYPE n , "This is assumed to be in format YYYYMM
v_amon(6) TYPE n ,
v_fday LIKE sy-datum ,
v_lday LIKE sy-datum .
IF i_step = 2.
LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZP_MON'.
CLEAR l_s_range.
v_mon = loc_var_range-low.
v_year = v_mon+0(4).
CONCATENATE v_year '0101' INTO v_fday. "This will create 1st Jan for entered year
ADD 1 to v_mon.
CONCATENATE v_mon '01' INTO v_lday.
v_lday = v_lday - 1. " This will create last day of the entered month
l_s_range-low = v_fday .
l_s_range-sign = 'I' .
l_s_range-opt = 'EQ' .
l_s_range-high = v_lday .
APPEND l_s_range TO e_t_range.
EXIT.
ENDLOOP.
ENDIF.
* For ZC_FORV
WHEN 'ZC_FORV'. " Variable name
DATA : v_year(4) TYPE n ,
v_mon(6) TYPE n , "This is assumed to be in format YYYYMM
v_amon(6) TYPE n ,
v_fday LIKE sy-datum ,
v_lday LIKE sy-datum .
IF i_step = 2.
LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZP_MON'.
CLEAR l_s_range.
v_mon = loc_var_range-low.
v_year = v_mon+0(4).
CONCATENATE v_year '1231' INTO v_lday. "This will create 31 Dec for entered year
ADD 1 to v_mon.
CONCATENATE v_mon '01' INTO v_fday. " This will create last day of the entered month
l_s_range-low = v_fday .
l_s_range-sign = 'I' .
l_s_range-opt = 'EQ' .
l_s_range-high = v_lday .
APPEND l_s_range TO e_t_range.
EXIT.
ENDLOOP.
ENDIF.
Once again, if the granularity of your cube is monthly, then this logic would change accordingly.
This should help. Feedback is awaited.
Best regards,
Sanyam
Similar Messages
-
Joining Actual and Forecast Data
Hi All,
I have two cubes one for actual and one for forecast data. In the actual cube data comes at 0MATERIAL, 0CUSTOMER, 0DIVISION, 0FISCPER level for for key figure 0AMOUNT (Actual Revenue). In the Forecast Cube the data comes at ZMATERIAL, ZCUSTOMER, ZDIVISION, ZFISCPER for the key figure ZAMOUNT (Forecasted Revenue).
How can i merge the two providers where in one single row i can show both the actual
and the forecasted amount for the same material, customer, division and fiscal period.
Thanks
Rashmi.Create a multiprovider consisting of your actual and forecast cubes. Within the multiprovider, include the desired info objects (e.g. 0MATERIAL, ZDIVISION, etc.). Within the multiprovider 'Identification' function, be sure to map the applicable info object(s) from each cube to the multiprovider info object.
For multiprovider 0MATERIAL: map Actual 0MATERIAL and Forecast ZMATERIAL.
For multiprovider ZDIVISION: map Actual 0DIVISION and Forecast ZDIVISION
You then build your query using info objects within multiprovider. -
Need to display different colors for Actuals and forecasting values in WAD
Hi Gurus,
My requirement in the report is, I need to display different colors for particular values like Actuals(say value type 10) and for forecasting values(say value type 20) , and data will uploaded from flat file.
Scenario : If I upload the data for March Month, I receive actual values upto March(Jan to March month) and from April to Dec(Forecast values with value type 20), Every month I will be getting file and similarly for subsequent months, i will get current month actual values and forwarding months forecasting values,
Now , my requirement is, When ever i execute the Report, Say if i execute for April Month, Upto April( Jan to April for actual values should be displayed in one color) and from May to Dec ( forecast values should be displayed in different color).
I had tried with following options like exceptions and could not display , as it runs based on key figure values where as my requiremnet is based on the CALMONTH , i need to show different colors for both actual and forecast values.
Kindly, help me out from this,
ThanksHi,
it is not necesseary that you need to do that in WAD , you can do the same in BEx platform, Since WAD is build above the bex reports. so automatially any changes done in Report will be replicated in WAD
Go for Exceptions in Bex. Give some range for Actuals and Forcasting at the creation of the exception.
if you do those changes in BEX automatically it will replicate in the WAD.
for more information please read this link
http://help.sap.com/saphelp_nw04/helpdata/en/68/253239bd1fa74ee10000000a114084/content.htm
hope this will solve your problem.
Santosh -
Actual and Forecast not visible from Planning App -- VERY CRITICAL ISSUE ,
this is a very critical issue.. need immediate help..
my customer cannot see the Actual and Forecast not visible from Planning App. please help me with the same. tell me the possible solns as i cudnt have a web confrerence with the custmer till now.
thanks/John ,
they are seeing the application in planning. they created a scenario dimension containing , budget, actual and forecast.. but in the planing application they can only see budget. the rest 2 are not visible.
thanks.. -
Authorization for Basic dates and Forecast dates
Hello colleagues,
My customer requires is to have separate authorizations for using Basic dates and Forecast dates within WBS Element, Network and Milestone.
Iv'e noticed that the rellevant autorization object to have this separation is C_PROJ_TCD ; field: PSARG ; activity: 111 & 112. However I wonder if this is relevant to all related objects in the project or only to the Project definition object.
If the answer is only to PD I will be glad to have an idea how to controll it within the other objects .
Thanks in advance
Best Regards,
Nir
Edited by: Nir Horvitz on Nov 23, 2010 10:32 AM
Edited by: Nir Horvitz on Nov 23, 2010 10:41 AMIt is for all the objects... but you can not control it on basis of only that auth object.
For network,
use object :
C_AFKO_ACT
and activity 22 Display dates
for Project def and WBS, use
C_PROJ_KOK, C_PROJ_PRC, C_PROJ_VNR
C_PRPS_KOK, C_PRPR_PRC, C_PRPS_VNR
Regards,
Amol Sarode -
Dynamic webform with actual and forecast scenarios data
Hello,
How to design a Plannning WebForm having 12 columns for months (Jan to Dec), displaying actual scenario data for past months, and allowing input of forecast scenario data for the current and future months ?
I guess i could put 12 substitution variables in columns titles : &scen_i = actual or forecast.
1) Is it OK ?
2) No way to use Planning variables instead of Essbase variables ?
3) Your solutions will be appreciated. Thanks
Philippe CuissetWell the idea of copying the actuals to fcst scenario is a good one. I have a similar issue currently where i have some actual months combined with FCST months. The problem is actual months must be read only and fcst must be writable. So even though i copy these actuals to Fcst, i cannot prevent users from changing actual months data.
Another solution that i found is to use shared members. Creating a seperate member with chiildrens as months.
I simply define Childrens of the member in the webform. After every month i add a extra child(month) without touching any of the webforms. I have not studied it entirely yet but sounds to be interesting Let me know your views.
Thanx
sam -
Difference between actual ,basic and forecast dates
hi,
wat is the difference between actual start date,basic start date and forecasted start dateAdy,
Can you give a little more info than this?
Regards
Gill -
Seamless Integration between Plan and Forecast Data at KF level
I have data in 2 IC like below:
IC : Current*
*FiscalPEriod Amount*
2011.01 100
2011.02 100
2011.03 100
2011.04 100
2011.05 100
2011.06 100
2011.07 100
2011.08 100
2011.09 100
2011.10 100
2011.11 100
2011.12 100
*IC : Forecast*
*Forecast Version Fiscal Period Amount*
2011.04 2011.04 200
2011.04 2011.05 200
2011.04 2011.06 200
2011.04 2011.07 200
2011.04 2011.08 200
2011.04 2011.09 200
2011.04 2011.10 200
2011.04 2011.11 200
2011.04 2011.12 200
2011.05 2011.05 300
2011.05 2011.06 300
2011.05 2011.07 300
2011.05 2011.08 300
2011.05 2011.09 300
2011.05 2011.10 300
2011.05 2011.11 300
2011.05 2011.12 300
Master Data for Forcaste Version:
*Forecaste Version FLAG*
2011.04 Prior
2011.05 Current
Now while creating Query, I need one KF called "Current Forecast Amount", So I need to go to master data and see forecast version against 'Current' and go to forecast cube abd selecet Amount under that Forcast Version. I did it with the help of Customer exit variable on Forcast Version. so its displaying data as below(From fiscalperiod 2011.05 it will pick 300):
2011.01 2011.02 2011.03 2011.04 2011.05 2011.06 2011.07 2011.08 2011.09 2011.10 2011.11 2011.12
300 300 300 300 300 300 300 300
Now requirement is to seamless integrate actuals with forcast data. Like let's take KF "Current Forecast Amount" we created above, so it should display data like below in the KF( From 2011.01 to 2011.04 it;s 100 from ACTUAL IC, from 2011.05 to 2011.12 it's 300 from Forcaste IC) :
===Data from Actual IC========== =================Data from Forecaste Cube==========================
2011.01 2011.02 2011.03 2011.04 || 2011.05 2011.06 2011.07 2011.08 2011.09 2011.10 2011.11. 2011.12
100 100 100 100 || 300 300 300 300 300 300 300 300
This Query has no variable restriction it means this will display data from all the years. And structure of the KF section is as below:
Fiscal Period
KF's.......
Current Forecast Amount
Can we achieve this at query level? Please help me, I am stuck here.
Regards,
Amandeep
Edited by: AmanSharma123 on Jun 20, 2011 10:50 AM
Edited by: AmanSharma123 on Jun 20, 2011 10:52 AM
Edited by: AmanSharma123 on Jun 20, 2011 10:53 AM
Edited by: AmanSharma123 on Jun 20, 2011 10:54 AM
Edited by: AmanSharma123 on Jun 20, 2011 11:11 AMHi Suman,
Thank you for your reply. Users will be using this query dynamically ( no parameters at all in the query). I need to find a dynamic solution for this.
Do you have any idea for below question:
Let's say my Column structure is as below:
FiscalYear Period
KF's
Amount
and we run this query without any parameter, and we get out as below:
2001.01 2001.02 .................2001.12............................2002.05..........................2010.01
100 100 10 20 30
Can we know by any chance what's the current value of fiscal year period for KF amount any time? Any way to find this?
If I get this value, I will be able to derive my KF.
Regards
Aman -
Hi gurus,
I am creating a query with actual and plan column and restricting each column with the value type object of actual and plan respectively,but the plan data is not been shown in the columns.
I checked the value type master data and it has the plan and actual inside but when I am trying to restrict with the value type object, it only gives me the actual option and I have to force the plan option to restrict for the plan column.Don't know why it is not showing, cos I am showing it in the master data object for value type.Any help?
Thanks in advanceHi Ravi,
Thanks for ur quick answer. I already tried that and the problem I have is that no data is coming for the plan column. I checked the Value type master data infoobject and saw both 10 and 20 in there,but when I am trying to restrict with the value type 20 in the query, it does not give me the 20 option.
I also checked the extractor in R/3 and could only see data for value type 10 and not 20, cos am using the datasource 0CO_OM_CCA9.Does that mean my datasource is not extraction data for value type 20 or how can I check for that?
Thanks -
Can we use actual and plan data for same cube?
hi friends,
can we use actual data and plan data in same cube in bps.
Thanking u
suneel.Hi,
Let us take std cube 0SD_C03 where we store billing info,sales order info and delivery info. But still in reporting we can get values without any mismatch in their respective KF. It is possible because of a cahracterstic called Documnet category which gets values in update rule by constant .
Similarly we can have 2 types of data (plan and actual) in a single cube by having different value for a characterstic. Most frequently used characterstics for this are 0VERSION and Value type.
With rgds,
Anil Kumar Sharma .P -
Hi,
May I know if I am correct for the below where
1)
KE26 or KE21N is meant for correction of actual data in copa and
KE13N or KEPM is to load copa planning to copa
2) we have many planning tcode like kpf6, kp06, kp26.
what is the difference between them and ke13n/kepm?
thanksKE13N is for mass upload of Plan data into COPA, COPA planning os for operating margin planning this is different from cost planning in controlling
KEPM is for input of planning data by the users in the system
Thanks
Naveen -
Actuals VS Forecast by Period indicator
My customers have a current BEX report that shows actuals and forecast data for the income statement for a 12 month time period. They have asked to have an indicator set to show what is actuals, and what is forecast. This will roll each month as time progresses. For example, if I am in period 5, periods 1 - 4 will show as Actuals, and 5 - 12 will show as forecasts. In period 6, 1 - 5 will show as actuals, and 6 - 12 will show as forecasts. They would like to color code the data to visually indicate if the values are actuals or forecasts.
We know we can do this with VB code in the workbook, but that doesn't transfer to the WEB when using the queries in the WEB. We also know that we could probably use JAVA script and the WAD to create something on the web. But - then there are two objects to maintain.
Has anyone else had this challenge, and how did you address it? Does anyone know if NW2004s has any functionality that would help us in this case?
We are on BW3.1c.
Thank you!
Chris Arthur
Rockwell Collins, Inc.Hi,
Thanks for your reply.
Please advise how do I save the excel layout in KP06 for upload?
I tried on plan data->format to print form. and Then List->export->local file.
Is this layout correct for upload?
I uploaded data with this format in .TXT , but I got an error file description ".... does not exist" -
Show actual values before current month and forecast values after
This is a tricky one (but I guess it will be easy for you clever guys out there), so my apologies for the heading.
Thanks for reading.
I need to build a report in BEx (BW3.5) that does the following:
I will get actual values and forecast values for a year, grouped per period.
But in the report, I don't want to display the actual and forecast values of every period.
I want to display the actual values for the past, and the forecast values for the future.
So, if we are now in period 6 (which is June) all the actual values must be displayed for Jan, Feb, Apr and May.
But from June onwards to December, only the forecast must be displayed for each month.
Is this possible?
Thanks in advance, points will be assigned
Rudolph
Edit: This might help. The actual value is based on KF 0AMOUNT, where value type = 10. The forecast is based on the same KF, value type = 20, version = F2Hi Rudolph,
No need to write any code for this one.
Have done couple of forecast reports using following logic.
Hope historical data getting from R/3 & Forecast values from APO.
these are seperate 2 keyfigures.
1.created restricted key figure (keyfigure1) for historical values & drag drop time characterstic with off set till date (means offset -6 to 0)
2.created restricted key figure (keyfigure2) for forecast values & drag drop time characterstic with off set till date (means offset +1 to +6).
create calculated keyfigure Add up above(keyfigure1+keyfigure2) two restricted keyfigure.
Thnx,
Vijay Reddy. -
Sales order actuals vs forecast
Hi,
I would like to have a report showing the difference between the sales order actuals and forecasted amount for a particular inventory item.I guess for the actuals, data can be taken from the oe_order_headers_all and oe_order_lines_all .
The tables mrp_forecast_updates,mrp_sales_order_updates seem to contain data which gets changed as the sales orders are created.From which table can i get the total forecasted quantity for a particular inventory item over a given period of time?
Thanks & regds,
NithyaHi,
Can you please clarify whether you are looking at consumption within APO or on R/3 side.
B/R,
Prem -
WBS Forecast dates disappears during scheduling after final confirmation
Hi dear Experts.I faced a problem with WBS dates.
The system overwrites forecast and basic dates on WBS after final confirmation of attached activities. And start to schedule wbs dates from dates of activities with no confirmation. Is there any way to solve this prolem?
In other words i need my WBS to take into scheduling ALL the operations forecast date. Moreover how the system can overwrite the forecast dates wich were entered manually by user?
Green - actual dates
Yellow (orange) - forecast dates
Bue - Basic dates
Please help.Hi Kirill,
Please check the control parameters for WBS Scheduling. Check if the scheduling method over here is WBS Determines Dates. If this is the case, irrespective of the scheduling that was carried out at the activity level, the system overwrites the basic and forecast dates present at the WBS level. May be in your case the scheduling method that had been used was "Network determines dates".
. Please change this and let me know if this helps.
Regards
Varun
Maybe you are looking for
-
Hi I need small clarification about difference between decode and case Thanks who visit my thread
-
One of sever glitches that led me to "downgrade" back to mountain lion. However, wasn't thinking and updated safari to 6.1 and I now have the same problem. It took me a while to figure out, but now it is completely reproducible. When I visit youtu
-
Where are the dictionaries located for CS3?
Mine seem to have disappeared.
-
How I can format a col in alv report. Suppose the col is like MSEG-menge and the value is 432,199.789 and I want to format it like '#####.##'. So it will display 432,199.79 in report. Is there any wayout?
-
SQL developer wont start on Mac OSX Lion
Hi there, hoping someone can help me with this one, I've been running SQL Developer 3 on the macbook no problems for about a year, I recently upgraded to Mac OSX Lion and now when I try to start SQL Developer it will not run. I have downloaded and in