Current fiscal year and previous fiscal year restriction in Query Customer
Hi ,
My requirment is disply current year qtrs and previous year qtrs in the report . User will not enter year , date , month or qtr . system should calucualte and disply curremt year qtrs and previous year qtrs .
I have created ZFISCYEAR reference of a 0FISYEAR year . now I would like to write customer exit for Current fiscal year and previous fiscal year to display current year qtrs and previous year qtrs.
Could you please provide customer exit code if you have or recomend if you know any other options.
Appriciate you help
Thanks
hi try this
take into account that I don't know th periv you use could be K4 or one defined by you so I have commented it.
The coding here is for the current fiscal period for the previous year just to another l_year varibale and populate with offset for instance l_year = l_year - 1.
so for current year
WHEN 'CURRPERIOD'.
current_date = sy-datum.
CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
EXPORTING
i_date = current_date
' i_periv = ''
IMPORTING
' e_buper = l_period.
e_gjahr = l_year.
l_s_range-low = l_year.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
for previous period
WHEN 'PREVPERIOD'.
current_date = sy-datum.
CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
EXPORTING
i_date = current_date
' i_periv = ''
IMPORTING
' e_buper = l_period.
e_gjahr = l_year.
l_year = l_year - 1.
l_s_range-low = l_year.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
bye
Boujema
Similar Messages
-
FM to get previous fiscal month/year and calendar month/year for a date.
Hi All,
I am having a requirement to extract some data based on either the previous fiscal month/year or the previous calendar month/year. There is no company code input to find the fiscal/calendar month/year.
At selection screen, user can select either fiscal or calendar selection.
Based on the selection, the data will be extracted.
For the system date, we need to calculate previous fiscal month/year or previous calendar month/year and populate the calculated data back to the selection-screen.
Can you one of you please suggest an FM to find previous fiscal month/year and previous calendar month/year.
Thanks in Advance,
Regards
GowthamiHi Gowthami,
You can use following function module to calculate previous / next day or month or year.
call function '/SAPHT/DRM_CALC_DATE'
exporting
date = sy-datum
days =
months =
sign = '-'
years =
importing
calc_date = .
Here, you can give '-' to sign, if you want previous day / month / year.
Here, you can give '+' to sign, if you want next day / month / year.
And depending upon your requirement, you can pass suitable value to days / month / year.
e.g. To calcualte last month,
call function '/SAPHT/DRM_CALC_DATE'
exporting
date = sy-datum
days =
months = 1
sign = '-'
years =
importing
calc_date = wv_prev_month.
so it will give '23-01-2008' . Then convert it in the required format as per your requirement using string function concatenate.
Hope this help you.
Regards,
Anil -
BEx - Display current year and previous year by day on the same row
Hello experts, need some help/suggestions on how I can accomplish the following please.
We have a requirement to show MTD revenue by day for the current year and previous year. The desired result will have the following columns
Calendar Day | Current MTD Revenue | Prev MTD Revenue
11/01/2009 | 15,131,005 | 15,138,668
11/02/2009 | 15,055,345 | 15,523,762
However, the result is showing up as follows:
Calendar Day | Current MTD Revenue | Prev MTD Revenue
11/01/2008 | | 15,138,668
11/02/2008 | | 15,523,762
11/01/2009 | 15,131,005 |
11/02/2009 | 15,055,345 |
The number of rows for Calendar Day varies depending on the date the user selects. We only want to display the days for the current year with the Previous Year Column on the same row.
Can someone please let me know how I can get the results to display on one line for each day?
Thanks,
DavidI have the same issue on my end, and am interested in responses. I searched the forum and found this suggestion in another post; not sure if this solution will help, but it looks like it might. This was a response from poster RadhaN:
RadhaN
Posts: 390
Registered: 8/27/09
Forum Points: 876
Re: a simple query to show sales versus last year on daily basis/
Posted: Sep 21, 2009 9:53 AM in response to: Shlomi Weiss Reply
HI Shlomi
Create a virtual characteristic in your infoprovider that can calculate the day from calendar Day. In ZXRSRZZZ while adding code for this virtual characteristic use the function module DATE_COMPUTE_DAY to compute the day for every calendar day.
For calculating Sales Current year, create a restricted ky figure with Sales as the key figure. Add 0CalDay to this RKF and create a variable for this infoobject(Eg: ZCURYEAR) that will receive input from the user for the range of dates eg: 08/16/2009 - 08/22/2009.
For Sales Prior year, create another restricted key figure with Sales. Add 0CalDay to this RKF and add a customer exit variable. In the Customer exit code use the ZCURYEAR variable and offset it to prior year in both the upper and lower limits. This should work.
I hope this helps.
Thanks. -
Parameter for current year and previous year
Hi all,
I currently have 2 reports where the query is the same except in the where clause I have it filtered to current year and previous year based on the List_Date. I would like to make this one report with a parameter of Current or Previous year.
Would I create 2 more datasets one for current and another for previous? I would think there is a easier way. Any help or direction would be great.If you define a parameter in SSRS, you can use it's value in your query. Just make sure the parameter name, and CASE (SSRS is case sensitive when it comes to parameters) are the same in SSRS and your query. There's a parameter tab on the dataset properties.
It SHOULD auto fill, but it never hurts to check, just in case.
Don't forget to mark helpful posts, and answers. It helps others to find relevant posts to the same question.
Yes it did auto fill the parameter tab in the dataset and I get a parameter to enter the year when I preview the report. Still a little confused on how I do current or previous year. Are the next steps what I need to do?
@yearParam parameter:
1) Create Available or Default values
2) Current and Previous year as label
3) For Value do I need to use a expression for current year =Year(now()) and previous Year?
4) Add a filter on the tablix for list_date? -
Displaying current and previous 5 Year data in a bar graph
Hi ,
My requirement goes like this .....
I have to show revenue (measure) data based on current year (period dimension) selection (from a dashboard prompt) and previous 5 year data's as well .
i.e. if user selects 2013 , the bar graph will display 6 bars ... 2013,2012,2011,2010,2009,2008.
I am trying to achive this with filter on Year column , on the main report ....*"is based on results of another analysis"*
But haven't made any progress .
Thanks
sayaksayak wrote:
Hi ,
My requirement goes like this .....
I have to show revenue (measure) data based on current year (period dimension) selection (from a dashboard prompt) and previous 5 year data's as well .
i.e. if user selects 2013 , the bar graph will display 6 bars ... 2013,2012,2011,2010,2009,2008.
I am trying to achive this with filter on Year column , on the main report ....*"is based on results of another analysis"*
But haven't made any progress .
Thanks
sayakFollow this link. It will give you greater flexibility for you end users and therefore a better report.
http://oraclebizint.wordpress.com/2008/03/11/oracle-bi-ee-101332-rolling-yearmonth-and-date-filters-moving-window-filters/ -
Displaying current year and previous year's data.
hi all,
we have fields like doc.no, company code, costcenter, posting date, year etc... in a query.
we are using this query to display data in VC,
how can i display the current year and previous year's data in two different tables using the available fields.
any help will be highly appreciated.
thanks,
RkHi Rk,
You can achieve your requirement using 'Filter' operator. Drag one 'Filter' operator into visual composer story board and drag the output into filter and add condition(Check year=2008) and drag one table from filter. For another table use another filter and change the condition.
Hope it helps...
Regards
Basheer -
Current year and previous year
Hi All Grus,
i have a one requirement user will give input 30.04.2009 . the output should show last ten days including user entered date like 21.04.2009 to 30.04.2009 for current year and previous year
this current year and previous should show column wise in row wise i need year like given below
user input: 30.04.2009
row column
21.04.09 22..04.09. 23..04.09 .............................................................. 30.04.2009
2009 100 200 300 ............................................................... 500
2008 200 300 600 ................................................................. 1000
Edited by: kek.uthayakumar on Aug 4, 2009 7:57 AM
Edited by: kek.uthayakumar on Aug 4, 2009 7:58 AMHi
You need to have customer exit variable on this calday and write code to obtain your logic. Search in SDN for sample codes:
enter information required in search forum SAP Business Explorer (SAP BEx)
Regards
Ravi -
P & L report for current period,YTD and previous YTD
I am trying to create a P & L report with the columns for current period,YTD and previous YTD, I have include the measures as the key of columns, which by using period or YTD we can retrieve the current period and YTD column, is there as easy way to get the previous YTD? although I can get it by using evtim to het every month and calculate the previous YTD.
resolved, just need to bring both time and measures in the columns
-
Creating a fiscal date table that includes Day of Year and Week of Year column
Hi,
Our fiscal year runs between 1st October through to 30th September and I'm trying to create a date table that I can use to represent this in Powerpivot (I'm using Excel 2013). I had no probably creating columns for Fiscal month or fiscal year, however I am
having issue breaking it down more than that, specifically I cannot work out how to calculate:
- day of the year
- week of the year (with week one starting on the first day of the year rather than the first Monday)
I worked out how to do the day of the year until I had to try and account for leap years which broke the formula I had! Can anyone please recommend solutions, I cannot see anything online about this. Obviously I know that it is simple to do this for a normal
calendar year but this approach doesn't work with a custom fiscal year.
Whilst it is useful for several reasons, my main reason for wanting week is so that I can plot my Pivotcharts more smoothly (although I may have missed an easier way to do that).
Thanks,
JamesFor my example I started with 1 column in Power Pivot called [Date]
I created the following Columns
[DayofMonth] =Day([Date])
[MonthNumber] =Month([Date])
[Fiscal Year] =IF([MonthNumber]< 10, Year([Date]), (Year([Date])+1))
[Fiscal Day] =[Date] - DATE(([Fiscal Year] -1), 10,1) +1
[Fiscal Week] =RoundUp([Fiscal Day] / 7, 0)
Change [Date] to whatever your date column is and those DAX formulas will get you what you need -
Key figure comparision between current year and previous year
Hello collegues,
I have created a WEB Intelligence report with key figure ROI (return on investment which is calculated out of three other key figures (capital, revenue and costs). I would now like to calculate the percentage period (year) differences between key figure ROI - between current year (month) and previous year (month).
Do I have to add coding within a key figure formula within WEBI Rich Tech client or within universe builder.
The key figures were extracted from SAP BW and added to a universe which is basis for WEBI rich tech client report.
thanks and regards,
ChristianHi Stratos,
so I see - i have to use the variable Editor and then define a measure and add coding in the formula field. Do you have an e-mail address ín order to send you the report and explain in more detail what I would like to see - here it is not possible to upload a report...
thanks and regards,
Christian -
Current Year and Previous Year (derived) data comparison
Scenario:
Dimension Table for Date:
-Current Year
-Previous Year
-and other date related fields
Fact Table:
-Sales (contains current year sales depending on the filter set)
*Filter on Year
Would anyone know how will I create a measure for Previous Year Sales?
So that whenever my report shows the current year (for example: 2009) data of my sales, I can also have a column that would also display the previous year data and it will automatically know that it would display the previous year data of the Current year displayed in my report.
Also, how to derive the percentage change of this 2 columns.
Year: 2009
Branch --- Current Year Sales (Sales from Fact table) 2009 --- Previous Year Sales 2008???
I want to add the Current Year Sales And Percentage Change of Sales in the Business Model/Mapping Section. so that it would be available in the presentation layer of Oracle Answers.
Thanks.
Edited by: user12074468 on Oct 16, 2009 4:38 PMUse column filters. Click on the fx button on your Sales column. Click on the Filter button. Now go to the Time.Year column you have and click on it. When the filter window comes up, click on Advanced and convert the filter to SQL. Now insert the Current Year column so that you have Time.Year = "Current Year" Click "OK."
Get another Sales column and put it in your workspace. Follow the above procedure except this time use th Previous Year column.
Now you have two Fact columns, one that filters for the Current Year and one that filters for your Previous Year.
Now for your variance, click on one more column and place it in your workspace. Click on the fx button. This time click on the "Column" button. You will see a list of your columns. From this, create the (Current Year)-(Previous Year)/(Previous Year)*100.00. In the Data Format tab, change the format to percentage.
You also have the option of creating the above calculations in the BMM layer too. -
KE30 with currnt year and previous year columns
I continually get memory low when I run a KE30 report. I have made some changes to see if I can determine the possible cause. What I noticed was the following: If the report is just for the current year and I look at KEDT the number of actual record read is approx 1,500,000. If the report is just for the prior year the actual records read is approx 1,800,00. If the report is for current year and prior year the actual records read is approx 9,000,000. 9,000,000 seem to be aprox the total number of PA records, i.e. the actual records is the total number of PA records.
This is a complex report with aprox 120 rows and 9 columns, reading record types F,D and B.
Has any one had a similar problem and that may be able to help.
Regards
Rob ViljoenI assume the other 6M records is years prior to the current year?
You have two options, investigate the selection criteria that results from the report, and try and stop it selecting the other 6M records as well. Something is happening in the report that contains both years, which opens up the net effect of the selection criteria.
I am certain that you will find something in the aforementioned. If not, try and split the report into pieces, where a summary report is called first, and then the user drilldown into the detail report. -
Current period load and previous period load
Hi
when I look into some cube, its loading the full load data for Previous period as well as Current period.
the next day we r deleting the both over laping request and loading the same current and previous load .
could any one explain why this selection in infopackage in full loading.
why dont't we load with last posting period / Fiscal year selection into infopackage selection for full load.
Thanks
Ram
Message was edited by:
ramIs the datasource is non delta enabled ?
If yes , den Full load is done always using the Overlapping Request Deletion in the Infopackage or DTP in BI 7.0 - so as to make all data available .
If ur willing to change the dates in the Infopackage filter daily ( u can rite some routine though ) den u can do that but if u want to automate all this process u go with Overlapping feature. -
What is the difference between credit memo in invoice year and in next year
Hi!
I'm new here.I'm study SAP ERP.I don't know what is the difference between credit memo in invoice year and credit memo in next year (asset accounting).Can you show and give me an example, please!
Thanks and best regards!
Edited by: dinhtuan on Jun 28, 2010 3:10 PMHi,
Maybe have a look at the SAP Help for further information (http://help.sap.com) : e.g. 'Posting Credit Memos Integrated with Vendor' or 'Posting a Credit Memo Offset Against a Clearing Account'
Transaction type 105 for credit memo on current acquisition made in the current year, posting key 75. Or transaction type 160 for credit memo on acquisitions from prior years. posting key 75.
Note: determine if the asset was acquired in the current fiscal year or in a closed fiscal year (Display asset values).
If the asset was acquired in a fiscal year that is now closed, correct the past depreciation using a write-up (in that case check out and refer to Posting Write-Ups).
I hope this helps.
Kind regards,
Brigitte -
Differences between the current base station, and previous gen
Besides the 802.11n, what are the features that Apple added to the current gen AirPort Extreme Base Station from the 802.11g (UFO style) ones? I ask because I'm looking to replace my router, and being a poor college kid, if the new one doesn't offer enough, I'm just going to get a an older one used.
I don't particularly need the 802.11n, as I don't have any devices that can take advantage of the technology. Thanks for your help! I hope to give some points soon.
-BrianTime Capsule is the only Apple-supported TM backup to a NAS.
Time Machine backups to AirDisks (e.g. USB HDD attached to Extreme) is unsupported, but has been successful by some. As well, once you decide to move any old TM backups (HDD connected directly to the Mac) to an AirDisk, you cannot continue backing up to your previous TM backup. The format it saves to vs. a local HDD is different. The folder structure you see becomes a sparsebundle/disk image via the AirDisk.
If you are interested in proceeding with your plan, check these links out:
http://discussions.apple.com/thread.jspa?messageID=8225748�
http://discussions.apple.com/thread.jspa?messageID=8650723�
http://jamesshore.com/Blog/How-to-Accelerate-Time-Machine.html
Maybe you are looking for
-
Can I change the primary email associated with my icloud account
Can I change my primary email address associated with iCloud? Not the icloud address but the one you log in with. I had to switch email addresses because my email got hacked and I just paid for 25g of memory in icloud. I just want to change my email
-
Is it possible to sort by two Key Figures?
Hello experts, This is our situation: On a Key figure we have created a condition to display the BOTTOM N by value and by giving it some value which will be never met by within this key figure wed like to sort a second one to display the TOP N, some
-
Transfer iphoto library to external hard disk
My iPhoto library of 320 GB has is filling the internal disk on my MacBook Pro. I copied the library intact to an external hard disk, checked to make sure the external library works with iPhoto and everything was ok, then emptied the trash. This did
-
Hi All, We have the data in the backend as follows. Course Prim instru second instru No. of Responses Java Course Instruc1 Instruct2 12 BW Course Instruc3 10 ABAP Course
-
My little one year old likes to watch his daddy or mommy on our Macs. He also likes to come over and start "whacking",on the keyboard. Today when he did it, he also did something that now makes my window jump all over the place. The window moves in t