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.
Similar Messages
-
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 -
Joining Actuals and Planned Work from Project Server
Hi,
I have an SQL based query which returns Actuals and Planned work from Project Server; however a number of records (generally generic resources based on the ResourceIsGeneric column) are excluded. I believe this is because my Actuals query does not return
generic resources as we are joining both sides of the query on ResourceUID. I have included a snippet below - is there a way to join Actuals and Planned work so I can return all Resource data?
Thanks
SELECT tl.ResourceUID
,tl.ProjectUID
,tl.ResourceName AS [ResourceName]
,CASE
WHEN tl.ProjectName = 'Administrative'
THEN tl.TaskName
ELSE tl.ProjectName
END ProjectName
,ruv.RBS AS [RBS]
,Sum(ta.ActualWorkBillable) ActualWorkBillable
,Sum(ta.ActualWorkNonBillable) ActualWorkNonBillable
,Sum(ta.ActualOvertimeWorkBillable) ActualOvertimeWorkBillable
,Sum(ta.ActualOvertimeWorkNonBillable) ActualOvertimeWorkNonBillable
,CASE
WHEN Sum(ta.ActualOvertimeWorkBillable) > 0
THEN Sum(ta.ActualOvertimeWorkBillable)
END [HOURS]
,DATEPART(year, ta.TimeByDay) AS [Year]
,DATEPART(month, ta.TimeByDay) AS [Month]
,DATENAME(month, DATEADD(month, DATEPART(month, ta.TimeByDay), - 1)) AS [MonthName]
,puv.[Project Status] AS [ProjectStatus]
,ruv.[Primary Role] AS [PrimaryRole]
,ruv.[Resource Department] AS [Department]
,ruv.ResourceIsGeneric
,ruv.[Cost Category] AS [ResourceType]
,puv.[SAP Project Code] AS [SAPProjectCode]
,CASE
WHEN tl.ProjectName <> 'Administrative'
THEN NULL
ELSE tl.TaskName
END TaskName
,puv.[Project Plan Type] AS [ProjectPlanType]
,puv.[GEM Project Manager] AS [GemPM]
,ruv.[Rate Code] AS [RateCode]
,ruv.[Cost Centre] AS [CostCentre]
,ept.EnterpriseProjectTypeName AS [EPT]
,puv.[I DO Phase]
,puv.ProjectOwnerName AS [ProjectOwner]
FROM dbo.MSP_TimesheetActual_OlapView ta
INNER JOIN dbo.MSP_TimesheetLine_UserView tl
ON ta.TimesheetLineUID = tl.TimesheetLineUID
INNER JOIN dbo.MSP_EpmResource_UserView ruv
ON ruv.ResourceUID = tl.ResourceUID
LEFT JOIN dbo.MSP_EpmProject_UserView puv
ON puv.ProjectUID = tl.ProjectUID
LEFT JOIN dbo.MSP_EpmEnterpriseProjectType ept
ON ept.EnterpriseProjectTypeUID = puv.EnterpriseProjectTypeUID
WHERE ta.TimeByDay >= @xDate1
AND ta.TimeByDay < @xDate2
AND tl.TimesheetStatus IN (
SELECT ParamValues
FROM @ParamTable
AND ta.ActualWorkBillable > 0
GROUP BY ...
) TimesheetActual
FULL JOIN (
SELECT ruv.ResourceUID
,puv.ProjectUID
,ruv.ResourceName
,puv.projectname AS ProjectName
,ruv.RBS AS [RBS]
,Sum(abduv.AssignmentWork) AS [PlannedWork]
,DATEPART(year, abduv.TimeByDay) AS [Year]
,DATEPART(month, abduv.TimeByDay) AS [Month]
,DATENAME(month, DATEADD(month, DATEPART(month, abduv.TimeByDay), - 1)) AS [MonthName]
,ruv.ResourceIsGeneric
,puv.[Project Status] AS [ProjectStatus]
FROM dbo.MSP_EpmResource_UserView ruv
INNER JOIN dbo.MSP_EpmAssignment_UserView auv
INNER JOIN dbo.MSP_EpmAssignmentByDay_UserView abduv
ON auv.AssignmentUID = abduv.AssignmentUID
AND auv.ProjectUID = abduv.ProjectUID
ON ruv.ResourceUID = auv.ResourceUID INNER JOIN dbo.MSP_EpmProject_UserView puv
ON auv.ProjectUID = puv.ProjectUID
AND abduv.ProjectUID = puv.ProjectUID INNER JOIN dbo.MSP_TimeByDay_OlapView tbdov
ON abduv.TimeByDay = tbdov.TimeByDay WHERE abduv.TimeByDay >= @xDate1
AND abduv.TimeByDay < @xDate2
AND ruv.ResourceName <> 'Unassigned Resource'
AND ruv.ResourceName IS NOT NULL
AND abduv.AssignmentWork > 0
GROUP BY ruv.ResourceUID
,puv.ProjectUID
,ruv.ResourceName
,puv.projectname
,ruv.RBS
,DATEPART(year, abduv.TimeByDay)
,DATEPART(month, abduv.TimeByDay)
,ruv.ResourceIsGeneric
,puv.[Project Status]
) TimesheetPlanned
ON TimesheetActual.ResourceUID = TimesheetPlanned.ResourceUID
AND TimesheetActual.[Year] = TimesheetPlanned.[Year]
AND TimesheetActual.[MonthName] = TimesheetPlanned.[MonthName]Hi,
you pasted just part of your query, e.g. is declaration of @ParamTable missing. Without complete query, it is difficult to see, what you are trying to do.
Could you please provide complete query?
Barbara
To increase the value of this forum, please mark the replies that helped to solve your issue as answer. If you find answers to questions from other forum participants to be helpful, please mark them as helpful. Your participation will help others to find
an appropriate solution faster. Thanks for your support! -
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 -
Joining cubes and relational data
Hi we run std 2008 r2. My experience is that voluminous dims have no place in olap cubes. If I remember correctly power pivot can join a cube to a relational table. Is that correct?
I'm contemplating going that route but wonder if the same performance issues u get when u incorrectly add a voluminous dim to olap will also occur if instead I set up pp to join that voluminous dim from a relational table to my cube.
Also worried about any other gotchyas pp brings to the table when a newbie thinks pp is going to be a viable self service bi tool for his user.
the customer dim i'm focused on has 158k values and is growing.Well, I didn't mean to run Tabular in a hybrid mode, but to switch your data model to tabular completely.
Good that you mentioned it. Don't think there's any advantage in doing a hybrid on that constellation.
Here are some links re tabular:
https://technet.microsoft.com/en-us/library/hh212940(v=sql.110).aspx
https://msdn.microsoft.com/en-us/library/hh994774.aspx
Don't know how much you actually tried to optimize query performance in your current environment - do you know this Whitepaper?: http://www.microsoft.com/en-us/download/details.aspx?id=17303
Maybe it would make more sense to use partioning on your current environment - but then an upgrade to Enterprise or at least Business Intelligence Edition (2014) would be needed (as it would be for running SSAS in Tabular anyway)
2008:
https://msdn.microsoft.com/en-us/library/cc645993(v=sql.105).aspx
2014: https://msdn.microsoft.com/library/cc645993.aspx
Imke -
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.
Maybe you are looking for
-
Variable Substituition throwing an error for empty payload
Hi All, I am using variable substituition in the receiver file adapter... Everything is working fine and the variable substituion is working and creating a file whenever the payload in the mapping has the filenode field for variable substituition. No
-
WebCenter Adapter for SharePoint - Transport error: 401 Error: Unauthorized
Hi All, Hi, I am trying to integrate MS sharepoint with webcentr, In JDeveloper(11.1.1.4.0) i updated oracle.webcenter.content.jcr.sharepoint.ear bundle(11.1.1.4.0), After that I'm createing webcenter portal application. When i'm creating Content Rep
-
Back-up via another access point
Hi I was wondering if it is possible to use another access point to back up from, rather than connecting directly to the time capsule, we have 3 access point routers in our house (all connected to 1 network), to provide adequate signal. So can the ba
-
Msi k9a2: unable to install win xp (sp3) on WD 150Gb velociraptor
I recently bought a MSI k9a2 V2 mobo, with 2x1Gb 1066 memory and AMD 9850. I installed win xp on a WD 150Gb raptor connected to sata1. Bios upgraded to 1.5, I got the mem to run on 1066 by changing the bios mem setting to 1:2.66. A week later I wante
-
Can I upload my iPod to my new computer?
My brother has been using my computer to manage his two iPods. He just bought a new computer and we would like to upload his iPod onto his new computer.