Values by fiscal period
Hi,
I have a column "Total Cost To Date" which gets all costs per project.
The actual value should be =Cummilated cost to last month. Say I am running the report in AUG any time the report should get the total cost till July.
I have used offsetting but does not work and have also used Variable 0FYTLFP but not getting the correct values.
the report gets only values for July not cummilayed values.
Please help.
Thanks
Niren
Use 0FPER variable.
Assuming you need to display the value till date and not Year till date.
Create a Restricted Key Figure and select your key figure and the 0FISCPER characteristic.
Right click on 0FISCPER and select restrict.
Select value range and Between from the Selection Drop down
Select Fixed value tab and transfer the lowest Fiscal period (e.g. Period 12 2006) available to the right. So you can see something like []012/2006; 012/2006
Select Variables tab and drag 0FPER on the second 012/2006 range. So now you can see the value like [ ]012/2006; 0FPER. Right click on that and select Specify variable offsets and select -1.So now the value looks like [ ]012/2006; 0FPER-1.
Save and execute the query.
Similar Messages
-
To get last year Net Value by fiscal period
Dear experts,
Since yesterday am trying to get solution where still unable to succeed.The report requirement is that they need Planned sales and actual sales qty of current fiscal year/period wise and in first column to get last year Actual sales for same period.(Ex:009.2006 to 011.2006 is input and in first coloumn 009.2005 to 011.2005)
This is the situation:
I have kept restricted W2 for fiscal year varient in filter and have created quantity sales(for last year) RKF with variable as "From fiscal year/period-13 and To Fiscal year/period-1"(with offset) and have placed in Key Figure structure in column section.Above this Structure have kept Fiscal year/period info object with variable "From Fiscal Year/period to To Fiscal year/period.This is because i need period wise breakup.
I understand that above we have "From Fiscal year/period infoobject" and below that in key figure structure u have the above quoted key figure with quantity sales of previous year.I want period wise it has to show me last year(period wise) quantity with current year Planned aty and sales Qty
Have gone through all threads and now it feels that i should to for variable exit ?...Do i have any option apart from variable exit?...If so could anybody can provide code for the same...Kindly gimme solution.
Maximum points will be awarded..
Thanks and Rgds
ChandruHi,
I hope, you are entering values 009.2006 to 011.2006 for the variable "From Fiscal Year/period to To Fiscal year/period". Am I right?
If so, Donot restrict the fiscal year period with "From Fiscal Year/period to To Fiscal year/period like as you mentioned:--
<i>Above this Structure have kept Fiscal year/period info object with variable "From Fiscal Year/period to To Fiscal year/period.This is because i need period wise breakup.</i>
To get the break up Priod wise, taking Fiscal year period characterstics above the structure is sufficient with ou any restriction.
Under the characterstic fiscal year period take two KF (same kf called SALES QTY two times with different heading like " last year Actual sales" and "current year Actual sales ") . First KF will be restricted with customer exit varible on Fiscal year period characterstic. Second KF will be restricted with user entry varible on Fiscal year period characterstic.
In case if you enter the value 009.2006 to 011.2006 as the iput to user entry varible, the code should generate the value 009.2005 to 011.2005 to Customer exit varible.
With rgds,
Anil Kumar Sharma .P
With rgds,
Anil Kumar Sharma. P -
Adding previous Fiscal Period YTD KF
Hi Gurus,
I have data in 2 IC as below:
IC : Current
*FiscalPEriod Amount* YTD
2011.01 100 100
2011.02 100 200
2011.03 100 300
2011.04 100 400
2011.05 100 500
2011.06 100 600
2011.07 100 700
2011.08 100 800
2011.09 100 900
2011.10 100 1000
2011.11 100 1100
2011.12 100 1200
2012.01 100 100
2012.02 100 200
IC Forecast :
*Forecast Version Fiscal Period Amount* YTD
2011.04 2011.04 200 200
2011.04 2011.05 200 400
2011.04 2011.06 200 600
2011.04 2011.07 200 800
2011.04 2011.08 200 1000
2011.04 2011.09 200 1200
2011.04 2011.10 200 1400
2011.04 2011.11 200 1600
2011.04 2011.12 200 1800
2011.05 2011.05 300 300
2011.05 2011.06 300 600
2011.05 2011.07 300 900
2011.05 2011.08 300 1200
2011.05 2011.09 300 1500
2011.05 2011.10 300 1800
2011.05 2011.11 300 2100
2011.05 2011.12 300 2400
2011.05 2012.01 300 300
2011.05 2012.02 300 600
2011.05 2012.03 300 900
2011.05 2012.04 300 1200
2011.05 2012.05 300 1500
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 YTD", So I need to go to master data and see forecast version against 'Current' and go to forecast cube abd select YTD under that Forcast Version. I did it with the help of Customer exit variable on Forcast Version. its displaying data as below:
2011.01 2011.02 2011.03 2011.04 || 2011.05 2011.06 2011.07 2011.08.......... 2012.01 2012.02 2012.03
300 600 900 1200 300 600 900
But I need query output as below:
2011.01 2011.02 2011.03 2011.04 || 2011.05 2011.06 2011.07 2011.08.......... 2012.01 2012.02 2012.03
700 1000 1300 1600 300 600 900
If you notice 700 = 300 from Forecast IC + 400 from Actuals IC for Fiscal Period 2011.04
1000 = 600 from forecast IC + 400 from Actuals IC for Fiscal Period 2011.04
so on..but when new year starts ( 2012)..it will only take data from forecaste IC. So basically we need to add YTD KF of month 2011.04 ( this reference Fiscal Period will be decided from master data) from actuals IC to coming months in forecast IC.
How can we achieve this?
Please guide me.
Regards
Aman
Edited by: AmanSharma123 on Jun 22, 2011 8:43 AMHi Rooki Sapbi,
Thanks again..Seems like this the way to do this, but still one more complexity. My structure of the query is as below:
Columns
|
| fiscal year
| Fiscalyear Period
| KF's
| Formula Current Forecast YTD (Formula1)
| |_Actual YTD filtered by FV1
| |_ RKF1
|
Rows |
GL_ACCOUNT
By you logic, I can get Kyfigure for 2011.04 but which against GL_account? There are many GL_Account, profit centers etc in the Actuals IC, I can find Keyfigure value for Fiscal period 2011.04 with the help of formula Variable, don't i need to provide GL_Account information etc?
Thanks again for your help. Waiting for your reply!
Have a good day!
Regards
Amandeep -
Option to show values up to last closed fiscal period or up to current date
Hello,
How would I create a query that would ask if I want it to calculate values 'up to the current date' or for the 'latest closed fiscal period'.
Currently I have setup a report, within which, has restricted key figures that will give the 'Period to date', 'Year to Date', and 'Last Year Year to Date' values for some RKFs, however, it would be very helpful if this report could be setup so that the user could choose whether the report provides:
1. Values only through the last closed fiscal period
or
2. Values up to the current date.
<b>For example</b> if we are in period 7 of 2006, the user could have the report show all values up to the last closed fiscal period, which in this case would be period 6 of 2006.
Or the user could have the report show all the values up to the current date.
Hopefully I have been clear,
Thanks,
Nick
Message was edited by:
Nick BertzNick,
What is the problem you are facing? As San mentioned you can only report till Last Fiscal Period using Customer Exit Variables(Calculate Current Fiscal Period using Current Month and Fiscal Year Variant).
Or as you mentioned you can create restricted Key Figures using Date or month (YTD etc)
If i miss your requirement, please guide me.
Regards,
Nagesh Ganisetti.
*Assign Points if it helps. -
Invalid value for Fiscal year/period
Hi all,
I have an user exit variable which populates the fiscal year period value from two separate fields.
1) Fiscal Period
2) Fiscal Year
But when I contatenate it and place it in the format 200601 the report in BEx gives me the error
"Value 200601 for user-exit variable ZRMA_FIP is invalid"
ZRMA_FIP is my variable name
The code I have is:
WHEN 'ZRMA_FIP'.
l_yr_zrma_fip = l_v_cur_year.
l_per_zrma_fip = l_v_cur_period.
CONCATENATE l_yr_zrma_fip l_per_zrma_fip INTO
l_calmth_zrma_fip.
r_vari-low = l_calmth_zrma_fip.
r_vari-sign = 'I'.
r_vari-opt = 'EQ'.
APPEND r_vari TO e_t_range.
ENDCASE.
I thought I had to take care of internal/external format but nothing is working...can anybody help?
thanksHi
I have demo code
hope that will help u.
WHEN 'ZMXFIPED'.
clearing the storage areas used above.
CLEAR: l_s_range , loc_var_range .
checking step if it is after inputing the variable value.
IF i_step = 2. "After selecting of input variable
looping at interval range table .
LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZMSFPER8'.
assigning values to year and period values.
l_year_exit = loc_var_range-low+0(4).
l_period_exit = loc_var_range-low+4(3).
putting the from and to values together with year and period values.
CONCATENATE l_year_exit '001' INTO l_s_range-low .
CONCATENATE l_year_exit l_period_exit INTO l_s_range-high .
sign I-> includes the range between.
l_s_range-sign = 'I'.
l_s_range-opt = 'BT'.
appending the fianl interval range table.
APPEND l_s_range TO e_t_range.
exiting after appending.
EXIT.
ENDLOOP.
clearing the storage area for next iteration.
CLEAR: l_s_range .
ENDIF.
by using tha logic u can try. -
Reports with variables on fiscal year and want to display the current fiscal period values
Hi
i wan to display the fiscal periods in one of the reports when i give input for fiscal year, let say i will pass the fiscal year as 2012 , then i need to display the revenue for 2012.01,2012.02,2012.03,....2012.12 and in another selection i need to restrict the revenue with the previous year.
how can we achieve that.Hi,
Refer this thread:Same thing has been discussed.
http://scn.sap.com/thread/3365593
Regards,
AL -
Value for last period in a reporting year
I have a requirement to create a key figure and restrict it by creating a user exit variable the details are as follows:
1. User inputs Fiscal Year: 2009
2. We create a Key Figure which is restricted (exit variable am able to do this) by FISCPER 0122009
Just to confirm that because we are in a period which is earlier then 0122009 it will show 0 if there are no postings for 0122009 and not the last period value say for 0042009
ThanksNitin,
Just to confirm that because we are in a period which is earlier then 0122009 it will show 0 if there are no postings for 0122009 and not the last period value say for 0042009
--> If restriction against 0122009 and no posting during that period, you will get Zero only.
Instead of year as User input, make it Fiscal Period as User input and derive Year.
Provide more details of requirement.
Srini -
Defining an exit variable for a specific day based on Fiscal Period
If I do not have Calendar Day time dimension available for reporting is it possible to define a customer exit variable for a specific day. The days are the first and last day of the financial year?
Example
User Input for Fiscal Period: 2009004
The exit is to define a value for 01.01.2009 and 31.12.2008 (end of last year)
ThanksHello Niten,
yes it is possible. Procedure:
- add a new column in the report structure
- hide this column
- create a new text variable in this column (for customer exit)
- now you can fill this variable during query execution based on 0FISCPER
You don't want to filter by this variable. Right?
Buy,
André -
HOW TO GET FISCAL PERIOD WISE DATA BY GIVING FISCAL YEAR AS INPUT
Hi All,
I am creating a report where input field is FiscYear(0FISCYEAR). My fiscal year is Oct to Sep and 4 spl periods.
If we give input as 2014 (current FY) it has to show all fiscal periods as on date. i.e., Oct’13 to Feb’14. Which should show in columns each period
separately, like Oct 13, Nov’13, …. Feb’14.
If we give 2013, it has to show all fiscal periods separately each period in columns. i.e., Oct’12 to Sep’13.
InfoProvider Data: We have a cube, containing data for 0CALMONTH and Fiscal Year. No fiscperiod in the cube.
Could any one assist here as it’s a bit odd scenario never come across. All your suggestions and assistance are highly appreciable.
Best Regards
Venkat...Hi Anshu,
I am getting the below error when I try to execute in Analyser.
"No value could be determined for variable". Here is my code in CMOD.
*Variables for ESAS Project
DATA: curr_yy TYPE /BI0/OICALYEAR,
input_yy TYPE /BI0/OICALYEAR,
prev_yy TYPE /BI0/OICALYEAR,
zmonth(2) TYPE N.
WHEN 'ZCALMONTH_ESAS'.
IF i_step = 2. "tried with i_step 1 also, same error message is showing
READ TABLE i_t_var_range INTO loc_var_range
WITH KEY vnam = 'ZFISCYEAR_ESAS'.
IF sy-subrc EQ 0.
curr_yy = loc_var_range.
prev_yy = curr_yy - 1.
zmonth = SY-DATUM+4(2).
IF SY-DATUM+0(4) = curr_yy.
CONCATENATE prev_yy '10' into l_s_range-low.
CONCATENATE curr_yy month into l_s_range-high.
ELSEIF prev_yy EQ loc_var_range.
input_yy = loc_var_range.
prev_yy = input_yy - 1.
CONCATENATE prev_yy '10' INTO l_s_range-low.
CONCATENATE input_yy '09' INTO l_s_range-high.
ENDIF.
l_s_range-opt = 'BT'.
l_s_range-sign = 'I'.
APPEND l_s_range TO e_t_range.
ENDIF.
ENDIF.
Everything is fine in CMOD. However, its giving error in execution. Any idea on this pls...
Best Regards
Venkat... -
Fiscal Period ----- in BEx Report
Hi All,
I have a small issue.
in my report i want to give single selection for fiscal period like 0102005.
for these selection i want to display all previous period data in separate column
like 0012005 0022005 ............ 0102005
KF value KF value KF value
If any know it please guide me step by step.
Thanks
samitHi Saha,
You can do this with the help of variable offsets. Either you can create a series of restricted key figures, or if there are more than one KF being used, you may want to create a Fiscal Period structure andplace it in the columns too.
What you will be doing in both will be the same. Restrict the Fiscal Period char with the single entry variable, and for other columns, take the same restriction and set an offset of -1. Keep on increasing the value of offsets for each previous selection that you want.
For more details on how to set offsets, refer to this post:
Re: TY POS
Look here too:
http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a563fe09411d2acb90000e829fbfe/content.htm
Hope this helps... -
How to Create Dynamic Columns based on Fiscal Period
HI BI World;) We are on BI &.0
I have a requirement to create a time series BI query
It must take the variable value (range) from the user abd create all months within this range in a time series displaying the key figure value for the respective periods.
I have so far added the fiscal year period characteristic to the columns with the key figure under this and the fiscal/year period is on a restiction in the filter area by a variable (range)
When I run this query it only shows the fiscal periods which have a value for the key figure. Is it possible to show all fiscal periods and have blank columns where there is no value for the respective key figure/period.
I have tried using master data for the fiscal period but this does not work as has some junk values.
Any ideas? I need to show alll periods between the dates whether they have values or not.
Best,
Stevo
Points will be awarded.
Thanks in advanceHi,
Try restricting the fiscal period inside the keyfigure and in the output format try drill across of fiscal period.
in tne fical period char properties try masterdata relationship option.
Thanks,
Arun. -
Issue creating planning query on cube partitioned by fiscal period
I have a cube that is partitioned by fiscal period (0FISCPER). This requires that there is a constant value for fiscal year variant (0FISCVARNT). When I try to create an agg level on this cube 0FISCVARNT is automatically pulled into the agg level. However, because 0FISCVARNT is set to a constant value it is not available in query designer to add into a planning query...as such, I cannot create a planning query on this cube.
I can repartition the cube (i.e. remove the partitioning), but does anyone know of any other work arounds?
Thanks.We resolved this.
-
Date range From Fiscal period range
Hi All,
How can we get the date range for a given fiscal period range?
please help.
Thanks
Gaurav Mittalhi
good
pls check this code
declare a range like
ranges: r_date for s021-spmon. (declare as per your data type for the date)
in initialization event write.
r_date-low = '012007'. (enter the required lower range of value)
r_date-sign = 'I'.
r_date-option = 'BT'.
r_date-high = '122007'.
append r_date.
now use the r_date field in the program code.
thanks
mrutyun^ -
Fiscal period to calender month FM
Hi Friends,
Is there any function module to pass the fiscal period and fiscal year value and get calender date, month and year.
Thanks & Regards,
Vallamuthu.mHi,
There are FMs for fetching first and last day of fiscal period.
* This Function Module will get Start date based on the Period, Year and
* Fiscal Year Variant
CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET'
EXPORTING
i_gjahr = rlv_gjahr
i_periv = rlv_periv
i_poper = rlv_poper
IMPORTING
e_date = lv_mfdate
EXCEPTIONS
input_false = 1
t009_notfound = 2
t009b_notfound = 3
OTHERS = 4.
* This Function Nodule will get End date based on the Period, Year and
* Fiscal Year Variant
CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET'
EXPORTING
i_gjahr = rlv_gjahr
i_periv = rlv_periv
i_poper = rlv_poper
IMPORTING
e_date = lv_mldate
EXCEPTIONS
input_false = 1
t009_notfound = 2
t009b_notfound = 3
OTHERS = 4.
Ganga -
Variable default period should be currenct fiscal period
Expert's,
Here is a requirement from ousite folks.where in the variable default should be current fiscal period.
I have to write a code in CMOD.Please any one give the code so, that I can pasted and modify based on my requirment.
Points will definitely assigned .
Thanks in advance.
vasu.Hi Vasu,
<u><b>Sample Code.</b></u>
When <Variable Name>
Data : l_p_range_test TYPE rrrangesid.
data: l_peri like T009B-POPER,
l_year like T009B-BDATJ.
IF I_STEP = 1.(This is for default value) before query execution.
--> use following function module to derive period from system date(sy-datum)
CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
EXPORTING
I_DATE = sy-datum
I_PERIV = <Fiscal variant>
IMPORTING
E_BUPER = l_peri
E_GJAHR = l_year
EXCEPTIONS
INPUT_FALSE = 1
T009_NOTFOUND = 2
T009B_NOTFOUND = 3
OTHERS = 4
Concatenate l_peri l_year into l_p_range_SSS-low.
l_p_range_test-sign = 'I'.
l_p_range_test-opt = 'EQ'.
APPEND l_p_range_test TO e_t_range.
endif.
Just written code, check datatypes and systax check.
Hope it Helps
Srini
Maybe you are looking for
-
I am building an application on a RT PXI system, and for one of the functions I would like the user to be able to use the browser button of the File Path Control to choose a directory on the PXI. However the browser button seems to only want open a f
-
How we can Open dialog box in form 6i
Hi How we can use file Dialog Box (Open Dialg,Save Dialog Etc) in forms 6i. Thanks & Regards
-
Font won't display -- strange behaviour
Hi all, I have a keynote presentation that I prepared last year, and it worked fine. I went to open it today, and the font does not render properly -- all the letters are compacted together and not legible. If I change the font size, I can read it ag
-
Hey, I am cutting a film about the history of cinema where I am using clips from all kinds of movies taking from dvd. Of course they all have different aspect ratios and most of them come in wrong so I change them with the aspect ratio slider. Now he
-
Transfer of JPG Attachment through web method using BASE64 encoding
Hello! I have an existing ABAP program which sends information (.txt file) by calling a web module. I need to change this program so that users can attach a .Jpg image. The image has to be sent along with the other information by calling the web mod