Quarter period
Hi All,
I have a requirement to display the date fields on selection screen as follows:
Taking into account todays date (10/01/2007), I need to display
Starting date: 08/01/2007 & End date: 10/31/2007
Please help me coding. Thanks in advance.
Satish
Hi,
Use the below code.
select-options: s_date for sy-datum.
initialization.
CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'
EXPORTING
date = sy-datum
days = 0
months = '02'
SIGNUM = '-'
years = 0
IMPORTING
CALC_DATE = s_date-low.
CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'
EXPORTING
day_in = sy-datum
IMPORTING
LAST_DAY_OF_MONTH = s_date-high
EXCEPTIONS
DAY_IN_NO_DATE = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
s_date-sign = 'I'.
s_date-option = 'BT'.
append s_date.
Similar Messages
-
How to Bring the Quarter Period and Previous Month Value for given Input
Hi to all,
I want bring Quarter Period and Previous Month value for the given Input. Plz help me on this
Example :
Input : 06.2008
Output:
Input Prev.Month Quarter 1 Quarter 2 Quarter 3
06.2008 05.2008 03.2008 12.2007 09.2008
12.2008 11.2008 09.2008 06.2008 03.2008
Is there any Standad Exit for this or we have to write coding ?
Regards,
SaranHi,
You can solve this by using Replacement path.There you have a option offsets.Here give the current period.Based on that give the number which previouse month you suppose to want.
I think this 'll help you
assign points if this helps
Regards
JT Goud -
How to Determine Quarter based on Fiscal Posting Period
Hi All,
Could you please help me on this issue.
I have a select option SO_PRD FOR S630-SPBUP. I know the logic to determine the fiscal period by using the FM DATE_TO_PERIOD_CONVERT.
Now I will fetch the data from following tables EINE, EINA,S630, T009, A017, EQUP.
After the fetching my internal tables will be having data on of them is PRICE. Now I want to display the price for each period which I can do easily. But there is another requirement where I need to calculate the average price for the quarter. For example if I enter 01/2009 to 02/2009. This belongs to 1st quarter and I need to fetch all the data from table based on the periods entered in the selection screen. SO I got the values for 01 & 02. But during quarter price it should also include 03/2009. Is there any FM available to determine the quarter periods based on the fiscal epriod. I do not want to do hard coding for this and system should automatically determine the quarters based on the dates entered in the selection screen.
Thanks & Regards,
Nagaraj KalbaviHi ,
Check this FM
TSTR_PERIODS_QUARTERS
Regards,
Pankaj -
Setting date ranges when Time dimension includes Period instead of Month
I hope I am missing something simple here - we are on OBIEE 10g, and I have a Time dimension defined as follows:
Year > Quarter > Period > Week > Day
A "period" is not equivalent to a calendar month - a period can include either 4 or 5 weeks, and always starts on a Sunday. Fiscal years start on the first Sunday in July.
I need to create a graph that shows Total Sales for the previous 13 periods (not including the current period). This needs to be a rolling 13 periods based on the current period.
Since this is Period and not Month, I am unable to use the Month(CURRENT_DATE) functionality. Do I need to have repository variables defined for the current period? Is there another way to calculate what the current Period in my Time dimension is in a filter SQL?
So I want to do something like "Where period between [current_period - 14] and [current_period -1] as the filter for Period.
Thanks in advance for any assistance.
RhondaSorry about that...
Periods are 1-12 (numeric).
Period 4 of FY 2012 for example has a begin date of 10/02/2011 and end date of 11/05/2011.
Right now we do not have unique combos created (like 4/2012, 5/2012, etc) so to get a unique value I have to specify both a year and period.
So on my dashboard today I will need to create a graph that covers FY2011 periods 6-12 and FY2012 periods 1-6 (translates to 12/5/2010 - 12/31/2011).
I haven't created repository variables before, but as the Period parameter will be used often I guess I will find out how.
Thanks in advance for the help.
Rhonda -
Customer exit to calculate previous quarter based on user entry in 0PCALMON
Hi,
I have written a CMOD code to calculate previous quarter based on user entry in 0PCALMON (0CALMONTH). That is if 09.2008 is entered for 0PCALMON, it should fetch the months 04.2008, 05.2008,06.2008.
But unfortunately I am getting all years and all months.
Could you please help me debug this code.
Global Declaration :
z_vcalmonth(2) TYPE n ,
z_vcalyear(4) TYPE n.
When 'YQV_LQ'.
if i_step = 2.
READ TABLE i_t_var_range WITH KEY
vnam = '0PCALMON'
iobjnm = '0CALMONTH'
INTO l_s_var_range.
if sy-subrc = 0.
z_vcalmonth = l_s_var_range-low+4(2).
z_vcalyear = l_s_var_range-low(4).
IF ( z_vcalmonth >= 1 AND z_vcalmonth <= 3 ).
z_vcalyear = z_vcalyear - 1.
CONCATENATE z_vcalyear '10' INTO l_s_range-low.
CONCATENATE z_vcalyear '12' INTO l_s_range-high.
ENDIF.
IF ( z_vcalmonth >= 4 AND z_vcalmonth <= 6 ).
CONCATENATE z_vcalyear '01' INTO l_s_range-low.
CONCATENATE z_vcalyear '03' INTO l_s_range-high.
ENDIF.
IF ( z_vcalmonth >= 7 AND z_vcalmonth <= 9 ).
CONCATENATE z_vcalyear '04' INTO l_s_range-low.
CONCATENATE z_vcalyear '06' INTO l_s_range-high.
ENDIF.
IF ( z_vcalmonth >= 10 AND z_vcalmonth <= 12 ).
CONCATENATE z_vcalyear '07' INTO l_s_range-low.
CONCATENATE z_vcalyear '09' INTO l_s_range-high.
ENDIF.
l_s_range-sign = 'I'.
l_s_range-opt = 'BT'.
APPEND l_s_range TO e_t_range.
endif.
endif.Hi,
U can use the FM SLIM_GET_QUARTERLY_PERIODS
Pass the variable first date of 0PCALMON ( 09.2009 => '01.09.2009') to get the table of all the 4 period ranges in PERIODS table in result
and read the Last entry to get the Previous Quarter period
PERIODS table
S OP LOW HIGH
I BT 01.07.2008 30.09.2008
I BT 01.10.2008 31.12.2008
I BT 01.01.2009 31.03.2009
I BT 01.04.2009 30.06.2009
Then pass this values in l_s_range-low l_s_range-high
Hope this helps
Sonal... -
Task hierarchy - period specific methods.
Dear Experts,
We have two data collection (flexi upload )methods one is specific to non quarter period & another is specific for Quarterly periods & I want to assign period specific methods for a task. If this task is executed in non quarter months it need to pick non quarter flexi method Like for non quarter periods 1,2,4,5,7,8,10,11and for quarterly periods like 3,6,9,12 another method
Is there any possibility?
Please advice.
Thanks
KamalHi,
I agree with Gregoire.
Some more information that can be helpful:
1. Create period category gruop e.g. 10 - 'Months&Quarters'
2. In this period category gruop create two period category e.g. 101 - 'Month other than quarter' and 102 - Quarter other than month'
3. For period category 101 set checkboxes for periods 1,2,4,5,7,8,10,11 and for period category 102 periods 3,6,9,12
4. Create one consolidation frequency, e.g. 500 - All months (for all period 1-12)
5. Create one task and assign cons. frequency. Choose period category 101 and assign data collection method for this periods then choose period category 102 and assign data collection method for quarters.
6. Save your changes
It usually works without problems.
I hope this helps.
Pawel -
OBIEE 11g Report-When drilling down to lower level, totals are not matching
Hi All,
I am creating a report in Analytics 7.9.6.3 , OBIEE 11g - Let’s say Budget Cost/Actual Cost based on the Date Dimension
Have selected the Fiscal Year Dim, Fact Budget Cost, Fact Actual Cost
FY BCost ACost
2011 100 120
2012 150 140
Total 250 260
But here when I am drilling down from Year to Quarter and Period - The values are not matching with the totals....
FY FY Qrt BCost ACost
2011 2011 Q1 80 100
2011 Q2 100 90
2011 Q3 110 120
2011 Q4 90 130
Total 380 440
Fiscal Year, Fiscal Quarter Budget Cost and Actual Cost are not returning correct results – When selecting cost's by fiscal year, or filtering on a specific fiscal year, the amount returned does not equal the fiscal year total;
when I am drilling down to Quarter and Period Level the BCost & ACosts are bumping the Numbers as above and not matching with totals
Any suggestions?Check out the query in both the times.Execute against database and try to sum the data for quarter/period and compare it with Year data.
Just try to differentiate is it a report total that is getting wrong or the data in the database table itself is getting wrong stored.
Mark as helpful if it helps.
Regards,
Veeresh Rayan -
When drilling to lower level - Totals are not matching in BI Analytics OOB
Hi All,
I am creating a report in Analytics 7.9.6.3 , OBIEE 11g - Let’s say Budget Cost/Actual Cost based on the Date Dimension
Have selected the Fiscal Year Dim, Fact Budget Cost, Fact Actual Cost
FY BCost ACost
2011 100 120
2012 150 140
Total 250 260
But here when I am drilling down from Year to Quarter and Period - The values are not matching with the totals....
FY FY Qrt BCost ACost
2011 2011 Q1 80 100
2011 Q2 100 90
2011 Q3 110 120
2011 Q4 90 130
Total 380 440
Fiscal Year, Fiscal Quarter Budget Cost and Actual Cost are not returning correct results – When selecting cost's by fiscal year, or filtering on a specific fiscal year, the amount returned does not equal the fiscal year total;
when I am drilling down to Quarter and Period Level the BCost & ACosts are bumping the Numbers as above and not matching with totals
Any suggestions?Check out the query in both the times.Execute against database and try to sum the data for quarter/period and compare it with Year data.
Just try to differentiate is it a report total that is getting wrong or the data in the database table itself is getting wrong stored.
Mark as helpful if it helps.
Regards,
Veeresh Rayan -
How to get month value from custom calendar without passing parameter from SSRS in MDX query
Could you please throw some light to achieve below requirement?
I need to filter the data between two periods dynamically . The date calendar here works differently(ex:-Date 26-Aug-2014 will fall in period 7 which is last date and 27-Aug-2014 will fall in period 8 and it is first date of period 8),so I cannot go
with system date period/Month. Date Hierarchy is like YEAR,QUARTER,PERIOD ,WEEK and DAY.
I cannot use SSRS for passing parameter. Requirement is to extract last 2 period of data dynamically in Power Pivot with MDX.
Thanks ChandanHi Chandan,
You might try something like this
Tail(null:
Extract(
StrToMember("[FYDay].[DATE].&[ + cStr(Format(Now(),"yyyy-MM-ddT00:00:00")) + "]")
*[FYDay].[DateHierarchy].[Day]
,[FYDay].[DateHierarchy]).parent.parent
,2)
What it is doing is multiplying Day by the current date, which returns a set of one date with cardinality of (Date,Day). The Extract is pulling out just the datehierarchy Day. the the Tail() is getting it and the previous day.
Hope that helps,
Richard -
[Extend DBI] specify the drill-down report for the custom report column
Hi,
I realized two custom reports by using the extend DBI tools:
1st report displays the sum of invoices amounts grouped by Operating Units.
2nd report display the details of invoices for all Operating Units
In the 1st report I specified a link on the column Operating Units to drill-down at 2nd report.
The problem is how specified the drill-down link so that the 2nd report display only the detail of invoices for the selected Operating Unit?
Thanks.Adding the time dimenstions like Year, Quarter, Period, Week is quite possible.
Steps would be:
1. make sure your data source (Table/View has these columns). If you don't have them you can generate them by joining the date of the data table with FIII_TIME_DAY.
2. Map these new columns to appropriate Dimesnions. (Lile Enterprise Year, Enterprise Quarter etc.)
Once you have done these two your report will work for the Time Dimensions.
I dont think its possible to get the Prior Period functionality unless you use a generated datasource.
Regards,
Sudeep -
AGO function problem 10.1.3.4
Hi,
Anyone have any suggestions on this please???
Still hoping for suggestions from anyone who has had similar problem with AGO function yielding strange results at certain levels of hierarchy??
I have a facts folder with both AGO and 'regular' columns of data.
I create a simple query with filters on period name and expense type.
When I add 'regular' columns (default aggregate SUM) - it works okay.
I then remove all 'regular' facts columns.
When I add AGO based columns - it works fine.
When I try any combination of AGO and 'regular' suddenly a lot of my data disappears.
I have tried experimenting with report based totals off and setting the function aggregation to SUM for the AGO columns, but nothing works.
i.e. AGO is pointing at previous period, so I have Yr, Qtr, Period in my time dimension and the AGO is linked to Period level (like a calendar month, but financial) and the AGO is -1.
Filter is on period name - so for example "PERIOD NAME" is equal to / is in 'NOV-11'
Any suggestions please??
thanks,
Robert.
Edited by: Robert Angel on 08-Dec-2011 06:02 to clarify ago usage
Further information; -
I have just discovered that this strange behaviour only manifests when the 2nd segment of our five segment chart of accounts structure is present.
I have checked the properties of this field and can see nothing strange, when compared to its (working) peers.
Could it be a problem related to the dimension hierarchy that is associated with this chart of accounts dimension>??
thanks for your input,
Robert.
Edited by: Robert Angel on 08-Dec-2011 07:30 additional detail
Edited by: Robert Angel on 12-Dec-2011 07:33
Edited by: Robert Angel on 19-Dec-2011 08:07To explain the structure first; -
Chart of Accounts Dimension
Trust Id
Cost Centre
Expense Type
Sub Expense Type
External Organisation
Each level of the hierarchy is from the same phyical table 'Chart of Accounts'. The dimension references the underlying field as the Key at each level.
Financial Periods Dimension
Year
Quarter
Period
Again all are from the same physical table, again all use the underlying field as the key at each level.
FACTS table has; -
Actual in Month, Budget In Month, Month Ago Actual in Month
Working scenario ; -
Add; -
Cost Centre, Actual in Month, Budget In Month, Month Ago Actual in Month
Filter on period_name = 'NOV-11'
Cost Centre in ('801040','801041')
results; - (works fine!)
Cost Centre, Actual in Month, Budget In Month, Month Ago Actual in Month
801040 50000 65000 55000
801041 15000 18000 19000To the above scenario I can add any of the other Chart of accounts segments and it works.
When I add Expense Type I get
Cost Centre, Expense Type, Actual in Month, Budget In Month, Month Ago Actual in Month
801040 3001 50000 65000 55000i.e. I still get results, but less cost centres than I had when only cost centre was included.... all other things being equal??!!
I can workaround this by pulling my concatenated version of all codes to get the full chart of account 'string' and then use substring to pull expense type only out of it, but this is less than ideal to suggest to a user community when it should work as is...
Anyone seen anything like this before, can give me anything to investigate that might be making the difference??
Edited by: Robert Angel on 13-Dec-2011 02:20
Edited by: Robert Angel on 14-Dec-2011 08:28 -
Question Regarding PS_EARNINGS_TBL
Hi All,
There is a table called PS_EARNINGS_TBL in HCM Peoplesoft...In that they are fields like
EMPLID
COMPANY
YEAR
QUARTER,
PERIOD
AMOUNT_YTD
AMOUNT_QTD
AMOUNT_MTD....
so if there is data like
QTD
12345 XYZ 2007 1 1 200 400 600
12345 XYZ 2007 2 5 400 700 1000
Is The cummulative QTD for 2 quarter is 400??....I mean value earned is 2 Quarter is 200 (i.e 400 -200) or value earned in 2 quarter is 400....Clarify me on this..Thanks.Please read all of the documentation and review the code. The docs tell you how to use the -OU parameter. It is an OU name and not a DB.
$DistName = Get-ADOrganizationalUnit -Filter 'Name -like $OU
Just use the OU name.
In my opinion it is a badly designed script.
¯\_(ツ)_/¯ -
16:49:12 ***Error Occured in BUILD_DRIVER: In
__XML_SEQUENTIAL_LOADER: In __XML_MNG_PARTITIONS: In __XML_MNG_REG_PARTITION: In __XML_CRT_REG_PARTITION_ITEM:
AW_OWNER.AW_TEST!TEST_DIMENSION_3 appears more than once in the
dimension list. (It is also a base dimension of
AW_OWNER.AW_TEST!TEST_CUBE_PERIOD_LVL_11200611_PRTCOMP.)
AW details are as follows:
Schema = AW_OWNER
Analytical Workspace = AW_TEST
Dimension = TEST_DIMENSION_3
Cube = TEST_CUBE
Level = PERIOD_LVL (CALENDAR dimension)
AW$ Table was created with 60 paritions.
11200611 is the PERIOD_ID, and can be subdivided as follows:
11 || 2006 || 1 || 1
ENTIYY_ID || YEAR || QUARTER || PERIOD
**************************************** The total number of Entities are 190, so for every Entity, there would be 12 periods for a single Year, which is 2006.
** When I try to limit the Entities to 10, the maintenance finish
The weird thing here is that when I maintain with fewer records, the maintenance of the dimension would be successful. I'm guessing that the partitions being created(which is based on PERIOD_LVL of CALENDAR dimension) is too many for the OLAP engine to handle?
Has anyone else got a solution for this?No. It uses the word "passphrase" (I don't know why this matters). This is completely unrelated to Windows and iPhone. Like I said, I am merely generating a CSR on my Macbook Pro which will EVENTUALLY become part of the iPhone development process. So this problem has nothing to do with an iPhone or even the SDK. It's just Keychain Access on the computer.
I tried to disable filevault as you suggested, but it appears that it was never enabled to begin with.
Message was edited by: Iamparker -
Generate Accelerati​ng Quadrature Pulses
Hi,
I need to generate pulses that simulate a quadrature encoder with acceleration. I have digital output and counter output NI devices available. I have done vi's that start with the quadrature pattern as a 1-D array of Integers and clock those out to a digital port. This is fine for fixed speed output. It allows me to output a fixed number of pulses at a fixed speed, but it doesn't easily allow acceleration.
I need to be able to do accelerating pulse trains. This would simulate, for instance, a real encoder attached to a motor that is accelerated from one speed to another. It would be most ideal if I could accelerate from a fixed speed to another fixed speed using a fixed number of pulses for the whole pattern. This would simulate a device that has distance, speed and acceleration control simultaneouly, and that is exactly the type of device I am simulating.
Max pulse frequency will be a bit under 130kHz.
The most ideal situation would be for the width of each pulse in the train to change proportionally as the frequency changes, i.e. a smooth frequency ramp.
Thank you.
Mark HolmMark,
This was a fun little challenge.
It steps through a range of periods from beginning period to ending period. Internally the quarter period is used to allow generation of the quadrature signal by dividing by the frequency by 4. All timing inside the loop is done with integers to simplify comparisons.
The acceleration increment, Tau, is used to determine when the period changes. The accelration rate, dT/dTau, determines the amount of change in period at each increment Tau.
When iteration counter i divided by the current period has a remainder of zero, the encoder value is updated. The encoder consists of two booleans on shift registers with logic to implement a two-bit grey-code counter.
The booleans are changed to integers and offset to display on both a chart and a graph. The small delay in the grey-code case structure sets the speed of the displays.
The loop will stop when the Ending period is reached or when the user presses Stop. With the default values it runs about 10-15 seconds on my computer.
The VI was developed in LV 2013 and saved back to LV 8.0.
Lynn
Attachments:
Accelerating encoder sim.vi 33 KB -
Unable to restrict a rolling char field in MDX Universe.
Hello!
I am trying to create a restricted Characteristic in a SAP BW OLAP Universe. The chararcteristic is a Quarter field and has to be restricted for some reports to not display the last quarter in a rolling quarter period.There are a few menthods I followed inorder to achieve this, which are as below:
1) Object - SELECT CLAUSE : <EXPRESSION>EXCEPT( [0CALQTR].[LEVEL01],[0CALQTR].[LEVEL01].CurrentMember.LastSibling)</EXPRESSION>. This gives and error messsage that the MDX expression is not valid.
2) Object - WHERE CLAUSE : <EXPRESSION>EXCEPT( [0CALQTR].[LEVEL01],[0CALQTR].[LEVEL01].CurrentMember.LastSibling)</EXPRESSION>. This gives and error messsage that the MDX expression is not valid.
3) Pre-Defined Filter -
<FILTER KEY="[0CALQTR].[LEVEL01]">
<CONDITION
OPERATORCONDITION="NotEqual">
<CONSTANT CAPTION="[0CALQTR].[LEVEL01].CurrentMember.LastSibling"/>
</CONDITION>
</FILTER>. This also does not work giving a MDX statement not valid error message.
However, the only thing that works in all of the above the is the predefined filter with the following expressions:
<FILTER KEY="@Select(Fisc. Year/Quarter\L01 Fisc. Year/Quarter)">
<CONDITION
OPERATORCONDITION="NotEqual">
<CONSTANT CAPTION="@Prompt('L01
Quarter','A','L01 Fisc. Year/Quarter',mono,constrained)"/>
</CONDITION>
</FILTER>.
Kindly suggest if I can avoid using the prompt and just restrict the Quarter characteristic (with rolling quarters) to avoid displaying the last quarter.
Any inputs are highly appreciated.
Thanks,
Vivek.Hi,
I believe you have to explicitly include a validate activity...
http://docs.oracle.com/cd/E25054_01/dev.1111/e10224/bp_appx_ref.htm#BABJDHEH
Cheers,
Vlad
Maybe you are looking for
-
why does my ipod crash all the time maybe I am charging it wrong?? it plays a few songs and than says it needs to be charge?? please help
-
Conversion of UNKNOWN files to mp3 or other readable format
After recording and saving my music to the desktop, I'm not able to open the files after storing them on a thumb drive. Also, if I email the files to myself, they won't open due to being UNKNOWN. I know there has to be something out there to fix this
-
X crashed, cannot open display in screen session for X apps
I had X crash and logged back in, and now in my screen session I can't open any apps that use X, ie.,: ~/.fluxbox # gedit keys cannot open display: Run 'gedit --help' to see a full list of available command line options. ~/.fluxbox # Must I start a n
-
Billing Enhancement - Condition Types
Hi Friends, I have got a requirement to determine condition types based on certain conditions through exits in VF01. The sceanrio is something like this... For each line item from a delivery document i got to determine condition types by cross-che
-
WHEN I TRY TO ENTER ITUNES STORE IT COMES UP AND THEN GOES BACK OUT. HOW DO I STOP THIS FROM HAPPENING?