Calender year quarter
dear all,
i would like to get year quater from my 0fiscper... is there anyway to do that?
Hi,
You can write a simple code with the help of "if..elseif...".
For eg.g.
V_fiscper = 2010001
If v_fiscper+4(3) = '1' or
v_fiscper+4(3) = '2' or
v_fiscper+4(3) = '3'.
v_qrt = 2. (Calendar year quarter).
elseif v_fiscper+4(3) = '4' or
v_fiscper+4(3) = '5' or
v_fiscper+4(3) = '6'.
v_qrt = 3.
and so on...
Hope this willl help.
- Jaimin
Similar Messages
-
"non assigned" value for Calender year quarter not possible
All of us know that we can not assign "#" value to calender year quarter.
In my planning level (which is a part of multi planning area consinsting 2 cubes, Actual COPA cube and Plan COPA cube), I want to copy data from Actual copa cube to plan copa cube using planning function of formula type, but actual copa cube is not getting populated against calyear quarter.
I want to retain calyearquarter as a characteristic in my level as it is acting as a key to my plan data. What shoould be done in such a scenario?santoshkumar,
I would suggest you build a characateristic relationship exit on calendar year quarter, probably based on fiscal year period or 0calmonth.. Make sure you leave Calendar year quarter out of your planning level in the copy so it would derive it.
Hope this helps,
Mary. -
Balance Sheet or trail balance in Calender year
Dear Friend,
In Configuration in company code fiscal year variant is April to March.
The requirement is to get balance sheet and trail balance in calender year wise.
Can it possible to get above report in SAP standard ?
Please give your suggestion.
Warm Regards,
NrusinghaDear,
Yes dear it is possible in standard SAP.
If you have activated New G/L functionality then use Non Leading ledger to meet this requirement.
If you have not activated New G/L functionality then use Special Purpose Ledger.
You will have to create fiscal year variant for Jan-Dec and assign it to any of above ledger whichever you use.
Regards,
Chintan Joshi. -
Hello, I am working currently on crosstab and I do have a date object from universe, from that I need to get year ,quarter, but when i create a variable for the year it is working but when drag that into the report showing the multivalue error and dates of that object from jan 1 2011 to current date.Can you guys please give some idea.
thanks,
SanPlease check Variable "Year" that you have created should be Dimension object not Measure object.
-
dear all,
any function module in bw which returns me the calendar year quarter for 0CALQUART1 and 0CALQUARTER.
while we on the data subject, what does 0FISCVARNT do? thanks.Hello Amit,
thanks for replying once again.
i dont want current or previous quarter... nothing wanting to write my own routine, is there any function module in sap which e.g. throws in a date 21/02/2001 and it returns me the quarter. -
Querying the PRIOR YEAR Quarter QTy
Hi Friends and All,
I need your help in querying the PRIOR YEAR Quarter QTy.Please suggest me
Year Qrt QTY
1970 Q1 100
1970 Q2 75
1970 Q3 36
1970 Q4 46
1971 Q1 99
1971 Q2 20
1971 Q3 49
1971 Q4 60
1972 Q1 80
1972 Q2 39
1972 Q3 50
1972 Q4 49
2008 Q1 100
2008 Q2 200
2008 Q3 300
2008 Q4 400
2009 Q1 345
2009 Q2 456
2009 Q3 178
suppose if the user select year 2008, then the prvious year 2007 last quarter values should be displayed
Thanks in Adv,
Claoker
Edited by: user12146923 on Nov 4, 2009 10:53 AMHi,
Perhaps the best way is a self-join, where you act like one table (c in the example) containes the current year's data, and another table (p) contains the previous year's data, if any.
SELECT c.year
, c.qrt
, c.qty
, p.year
, p.qty
FROM table_x c
LEFT OUTER JOIN table_x p ON p.year = c.year - 1
AND p.qrt = c.qrt
ORDER BY c.year
, q.qrt
; -
Reg:-Previous Year Quarter
Hi All,
I need to build a new report on Balance Sheet Quarterly in Financials. My reqiurement is..Show the Quarterly Balance sheet comparing Curent Quarter and Previous year Quarter
i.e Current Qtr vs Previous Year Qtr.
In the report levl , I have used Presentation variable for Current Quarter:-FILTER("Facts - GL Balance"."Balance Global1 Amount" USING (Time."Fiscal Quarter" ='@{var_qtr}{2011 Q 1}'))
In the Dashboard, I used two filters Fiscal Year, Fiscal Quarter.. So if select Fiscal Quarter 2011 Q2 then the user should also be able to see 2010 Q2 data.
May I know how to achieve this.
Thanx in advance.Hi all,
I have built a report on Balance Sheet using following columns:
1) General Ledger Code
2) Current Quarter
3) Previous Quarter
4) Global Amount
Now I got a new requirement to add a column Variance to the layout which should be difference of (Current Quarter- Previous Quarter).
For current Quarter, we have used this formula :FILTER("Facts - GL Balance"."Balance Global1 Amount" USING (Time."Fiscal Quarter" ='@{var_qtr}{2011 Q 1}'))
For Previous Quarter , we have used this formula:-FILTER("Facts - GL Balance"."Balance Global1 Amount" USING (Time."Fiscal Quarter" = ( case when substring('@{var_qtr}{2011 Q 1}' from 6 for 8)='Q 1' then cast(cast(substring('@{var_qtr}{2011 Q 1}' from 1 for 4) as int)-1 as char(4))||' '||'Q 4' when substring('@{var_qtr}{2011 Q 1}' from 6 for 8)='Q 2' then substring('@{var_qtr}{2011 Q 1}' from 1 for 4)||' '||'Q 1' when substring('@{var_qtr}{2011 Q 1}' from 6 for 8)='Q 3' then substring('@{var_qtr}{2011 Q 1}' from 1 for 4)||' '||'Q 2' else substring('@{var_qtr}{2011 Q 1}' from 1 for 4)||' '||'Q 3' end)))
I need help how to calculate variance.. -
Report by year quarter or month
We have requirement where we may have to show some reports by either year,quarter or month.How this is supported in OBIEE answers ?
Mark's suggestion answers exactly what you asked, but when you select "quarter," for example, you'll get all quarters regardless of year. This would also be true if you selected "month." What I would suggest is building dashboard prompts for year, quarter and month. This way the user can select what year, then quarter, then month if needed, to constrain the data appropriately. By checking off "All Choices" in the dashboard prompt design, you user can see all quarters for a year, for example.
Another way would be to use drill down from Year to Quarter to Month.
Hope that helps you... :) -
Cal. Year/Quarter Values in Text
Hi All,
I have a report which displays Net Sales in Yearly Quarters wise
Ex: 20131 20132 20133 20134
Query has included Cal. Year/Quarter infoobject, I've done setting to display as 'Text' for Cal. Year/Quarter object properties in Bex.
But I'm expecting the report results as
Ex: 2013 Q1 2013 Q2 2013 Q3 2013 Q4.
Could you please suggest me what are the settings I'm missing.
Regards
SunilHi Anshu n Phani,
I was posted this discussion by checking "Mark this discussion as Question" check box. So it was posted as question. When I got the correct answer (immediate reply) I've checked that reply as 'Correct Answer' and after that I've posted some of my observations regarding my question.
Checking 'Correct Answer' will populate the question status as "this question has been Answered' and 'Useful Answer' will make the thread as not answered, but if the Author of the question make it as "Assumed Answer', then question status got 'This question is Assumed Answer'. And thread get closed. This is the only way I know to give the proper status of a question in SCN.
Phani Could you please explain, is there any other way to close the thread ?
As Anshu mentioned, it's been changed as Discussion (I donn know how it happened) , I'm unable to mark it as Correct and Useful, so mentioned in my reply as "Thread is Closing'.
Thanks
Sunil -
Offset issue for Fiscal Year Quarter
Dear All,
There is a requirement to develop a report for balance sheet to compare the fiscal year quarter like if user is going to give input 20143 then comparison quarter is 20142 where I did offset (-1) and if user give input as 20141 then the comparison quarter is 20134 where I am using offset as (-7).
So I have incorporated both offset in one variable. Now the issue is if I will run for any quarter then it is giving error in the run time. Could anyone suggest that how I could achieve this, whether I have used correct offset interval?
Query Key Figures Selections:
Bex Analyzer Selection Error:
Regards,
Abhishek JainHi,
I wouldn't do it in that way i.e. one column where you count previous quarter for quarters 2 3 4 (offset -1) and another column for counting previous quarter for quarter 1 (offset 7).
There should be just one column where you count just previous quarter. Use an EXIT to count previous quarter for any value of quarter.
Regards, Leszek
something like this can be used:
WHEN 'ZPREVQUARTER'.
* QUARTER(1) TYPE C.
* YEAR(4) TYPE C.
* have to be defined after DATA: keyword !!!
IF i_step = 2.
LOOP AT i_t_var_range INTO l_s_var_range
WHERE vnam = 'ZCURRENTQUARTER'.
EXIT.
ENDLOOP.
CLEAR: l_s_range.
YEAR = l_s_var_range-low(4).
QUARTER = l_s_var_range-low+4(1).
IF QUARTER = 1.
YEAR = YEAR - 1.
QUARTER = '4'.
ELSE.
QUARTER = QUARTER - 1.
ENDIF.
CONCATENATE YEAR QUARTER INTO l_s_range-low.
l_s_range-sign = 'I'. "loc_var_range-sign.
l_s_range-opt = 'EQ'. "loc_var_range-opt.
APPEND l_s_range TO e_t_range.
ENDIF. -
Customer Exit for Calendar year/Quarter
Hi Experts,
I had a scenario as I had a Time char 0Calquarter. Based on this I need to derive the current quarter headcount and Pervious year same quarter headcount. To get the headcount I defined a counter constant '1' for each employee at cube level.
In a Query
a) Assign a system date to 0Calquarter variable in query.
b) If the variable is blank till current quarter the headcount need to display and same as previous quarter headcount.
c) If the user enters any value (say 20083) tht quarter current headcount and pervious year quarter(20073) headcount.
For the above scenarios I need to write customer exit.
Thanks,Hi Shanthi,
Thanks for u r reply.
Headcount is defined as 'constant'. when Z_COUNT Keyfigure is dran & droped in rows it'll cumulate and display the current headcount.
hope u understand the headcount.
I require the cmod logic.
Thanks -
Enable fiscal year/quarter selection in a query
Hello all,
I want to have an characteristic fiscal year/quarter similar to fiscal year/period (0FISCPER) in my query. Unfortunately I can not find such a characteristic in the time infoObjects in my cube and in the administrator workbench.
Our Fiscal year starts in July. So the first quarter is July - September. The BW release is 3.5.
How canI enable a fiscal yearquarter selection in my query?
Any ideas would be great.
Thanks upfront and Best regards,
Stefanos from Munich/Bavaria/GermanyStefanos ...
A couple of options for the same :
1. Have 0FISCPER in your cube and map the same to the custom characteristic in the update rules.
2. Have the custom characteristic in the cube in a separate dimension
3. If you have the same in the cube - have a variable against that and execute your query...
By doing the above you can get the same in the query.
Arun
Assign points if useful -
Fiscal year variant V3 is not maintain for calender year
Hi,
when i was entered capitalization date in asset master (t.code AS01) the system given error message
(Fiscal year variant V3 is not maintain for Calender year) message No FGV002
I cheked the fiscal year setting and also assign the fiscal year variant to company code.
Its very urgent.
thanks
Kareemhi
Check your FYV settings. some inconsistency might be there
refer at
http://help.sap.com/saphelp_40b/helpdata/es/95/e42c7dd435d1118b3f0060b03ca329/content.htm
regards
Srilakshmi -
Re: Fiscal period to calender year
Hi Experts,
Please can ayone shed light on how to convert fiscperiod to calender year.If there is a routine please do give me the code.
Regards
MadhuHi Anil,
Thanks for the solution. Do we really need to sort the table it_tab.Can you tell whether the following code i wrote is the one you mentioned.
Please find whether the following code in startroutine and update routine is fine.
PROGRAM UPDATE_ROUTINE.
$$ begin of global - insert your declaration only below this line -
DATA: BEGIN OF it_tab OCCURS 0,
BDATJ LIKE T009B-BDATJ,
BUMON LIKE T009B-BUMON,
POPER LIKE T009B-POPER,
PERIV LIKE T009B-PERIV,
END OF it_tab.
$$ end of global - insert your declaration only before this line -
The follow definition is new in the BW3.x
TYPES:
BEGIN OF DATA_PACKAGE_STRUCTURE.
INCLUDE STRUCTURE /BIC/CSu2019myinfosource nameu2019.
TYPES:
RECNO LIKE sy-tabix,
END OF DATA_PACKAGE_STRUCTURE.
DATA:
DATA_PACKAGE TYPE STANDARD TABLE OF DATA_PACKAGE_STRUCTURE
WITH HEADER LINE
WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
FORM startup
TABLES MONITOR STRUCTURE RSMONITOR "user defined monitoring
MONITOR_RECNO STRUCTURE RSMONITORS " monitoring with record n
DATA_PACKAGE STRUCTURE DATA_PACKAGE
USING RECORD_ALL LIKE SY-TABIX
SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
CHANGING ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
$$ begin of routine - insert your code only below this line -
fill the internal tables "MONITOR" and/or "MONITOR_RECNO",
to make monitor entries
select * from T009B into corresponding fields of
table it_tab. * if abort is not equal zero, the update process will be canceled
ABORT = 0.
$$ end of routine - insert your code only before this line -
ENDFORM.
my update routine-------
ROGRAM UPDATE_ROUTINE.-----calender year in update routine
$$ begin of global - insert your declaration only below this line -
DATA: BEGIN OF it_tab OCCURS 0,
BDATJ LIKE T009B-BDATJ,
BUMON LIKE T009B-BUMON,
POPER LIKE T009B-POPER,
PERIV LIKE T009B-PERIV,
END OF it_tab.
$$ end of global - insert your declaration only before this line -
FORM compute_key_field
TABLES MONITOR STRUCTURE RSMONITOR "user defined monitoring
USING COMM_STRUCTURE LIKE /BIC/CS8YPSC_02
RECORD_NO LIKE SY-TABIX
RECORD_ALL LIKE SY-TABIX
SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
CHANGING RESULT LIKE /BIC/VYCSI_002T-PROFIT_CTR
RETURNCODE LIKE SY-SUBRC
ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
$$ begin of routine - insert your code only below this line -
fill the internal table "MONITOR", to make monitor entries
clear it_tab.
READ TABLE it_tab WITH KEY
POPER = COMM_STRUCTURE-POPER.
PERIV = COMM_STRUCTURE-PERIV.
RESULT = it_tab-BDATJ.
if the returncode is not equal zero, the result will not be updated
RETURNCODE = 0.
if abort is not equal zero, the update process will be canceled
ABORT = 0.
$$ end of routine - insert your code only before this line -
ENDFORM.
If this is okay i will go ahead.The table t009B has four keys--why do we need to sort the internal table. is it not sufficient if we do a read on it directly after being filled in start routine.
Kindly advice. I will assign you all the points.
Regards
Madhuri -
Demand Planning Ramadan Calender Year
Hi Gurus,
A in forecasting of Demand Planning, The scenario is,
Every year the calender year(Ramadan) is dropping by 11 days followed by the lunsr calender year and the peak sales calculation has to truncate with the existing and future year, How we can predict this.
Please let me know the solution and also let me know if any information needed.
Regards,
RajanHi Rajan,
We follow the fiscal year calender for the same. And this we will define in advance.
Check the OB29 Tcode, infact this can be updated from R/3 also, if you are maintaing the same in R/3.
For sure, the APO fiscal year should always be in line with R/3, i suggest take the finanace experts support, they are more familier with the fiscal year calender.
Yarala
Maybe you are looking for
-
Fade effect makes LiveCycle unusable
The last thread on this seems to have died so I am re-posting. I really need to find a solution for this as I would very much love to use the software I purchased. When designing a form - starting with a brand new form, empty page - every element th
-
Screen flashes black and then shows slide to power off
While playing music the screen repeatedly flashes to black then flashes to the slide to power off screen. When I tap cancel it usually works for a few min before doing it again but sometimes it flashes between the black screen and the itunes screen s
-
Using constraints w/nested tables
I read the documentation http://download-west.oracle.com/otndoc/oracle9i/901_doc/appdev.901/a88878/adobjbas.htm#454744 regarding constraints on nested tables. However, it supplies examples of unique and primary key constraints. Would someone please h
-
What to include while creating a framework
Hi All, I have a project and I want it to be as a framework. Now to create a framework, I create a new project of type 'cocoa framework'. My question might be a primary question, but still, I wanted to know 1) what do I need to include in the new pro
-
Formatting Failed. Building not successful. See log.
I keep getting a 'Formatting Failed. Building not successful. See log.' error every time I try to burn a project. I created the movie using Final Cut Pro, exported it to Compressor, and then submitting it using the DVD: Best Quality 120 minutes prese