Current month and previous months of fiscal year period data
Hi All,
My requirement is end user will enter month ie (fiscal year period ) and in report my requiremnt is to show data in two columns 1.Current month data and
2.April till date.
Please let me know how to do this and please send the coding to be done in CMOS.
Regards
Hi,
In your query, you should have following object :
in filters:
fiscal period object, with an user entry variable on it (UE_MONTH)
in rows/ratios:
Current month column, with your KF and a restriction on 0calmonth2 with an customer exit variable on it (ie: CE_VAR1)
same for April column. (CE_VAR2)
in your customer exit, CMOD, step 2, add these two cases :
WHEN 'CE_VAR1'.
READ TABLE i_t_var_range WITH KEY vnam = 'UE_MONTH' INTO
intern_range.
CONCATENATE intern_range-low(6) sy-datum+4(2) INTO l_s_range-low.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
Same for April, add a new case and just replace sy-datum+4(2) by '04'.
Hope it helps,
Similar Messages
-
Text Variables to show Start and End Date of Fiscal Year Period
Hi,
I am creating a query that has user enter a starting fiscal year period and posts information by Fiscal Year Period going back 14 periods. I am able to put the fiscal year period in the heading for all periods, but would also like to add the start and end calendar day for each listed period. Can that be done using a replacement path text variable or is that something more for a customer exit variable?
Thanks in advance for any thoughts provided.
BillHi,
This is one of my exit that display the calmonth (offset -12). Usefull when I have to retrieve in a KF a complete rolling year depending one calmonth.
S_VMUCMN is my selection variable
S_TXTCMN_M12 is my text variable calmonth-12
S_TXTCMN_M0 is my text variable for selected calmonth.
WHEN 'S_TXTCMN_M12'.
IF i_step = '2'.
LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'S_VMUCMN'.
CLEAR l_s_range.
" First day of the selected month
CONCATENATE loc_var_range-low '01' INTO l_calday.
CALL FUNCTION 'YFRBW_FUM_CAL_DATE_IN_INTERVAL'
EXPORTING
date = l_calday
months = 12
signum = '-'
IMPORTING
calc_date = l_calday.
l_s_range-low = l_calday+0(6).
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
EXIT.
ENDLOOP.
ENDIF.
Thus, in KF header you have to put the two text variable to display the complete period.
Hope it helps, -
FM for month and year to Fiscal year period
Hello ABAP Experts,
Please suggest a FM to convert month+year to fiscal year period.
Suggestions appreciated.
Thanks in advance,
BWeruse the function moduleGM_GET_FISCAL_YEAR
pass date and fiscal year variant as 24..
see all the values of the fiscal year variant in the table T009
Check with fm FI_PERIOD_DETERMINE
Thanks
Seshu -
Using Fiscal/Year Period to get last year all months data
Hi,
Had a requirement to get Last Years 1-12 months data based on Fiscal/Year Period. So here i am using Fiscal/Year period as my input. Please let me know with code.
Regards,
VishnuHi ,
Where you want to write code ?
Well the basic logic will be like :
TYPES: BEGIN OF ty_range,
sign TYPE c LENGTH 1,
option TYPE c LENGTH 2,
low TYPE c LENGTH 8,
high TYPE c LENGTH 8,
END OF ty_range.
DATA : t_range TYPE TABLE OF ty_range,
w_range LIKE LINE OF t_range.
DATA :v_lastyear type c length 4 .
v_lastyear = sy-datum(4) - 1 .
w_range-sign = 'I'.
w_range-option = 'EQ'.
concatenate v_lastyear '001' t into w_range-low.
concatenate v_lastyear '012' t into w_range-high.
APPEND w_range TO t_range.
****it will select data from source package for last one year .Internally year and period store like YYYYPPP (2011001)
select SOURCE_PACKAGE WHERE 0fiscper IN t_range.
you can modify selection statement as per your requirement .
hope this will be helpful .
Regards,
Jaya Tiwari -
How to get last 35th fiscal year periof form current fiscal year period
Hi,
I want last 35th moths fiscal yesr periof from current fiscal yesr periog.
E.g. current month FISPER - 2010011 so required FISPER is 2010011 - 35 = 2007009.
Please help if any one know about it.
Marks will be provided.Hi,
Drag Fiscal year/period characteristic in the query and restrict it .
In the variables , you will find SAP delivered variable which willl give you current fiscal year/period.
Create range on the using this variable and give offset of -35.
For eg.
the name of the variable is 0PF_CP, then create range in the following way.
Lower range will be 0PF_CP - 35
and higher limit will be 0PF_CP.
So the range would be 0PF_CP-35 : 0PF_CP.
This will give you the last 35 fiscal year/period.
- Jaimin -
Current fiscal year period in BEx
Hi,
I have a requirment. i have a BEx query, that query is a source of APD and data is store in direct DSO.
i need to run this query every month and load current fiscal yer period data into the DSO.
i need BEx variable to filter the data for current fiscal year period.
I have fiscal year period char. in query definaton
Please help me to get this.
Thanks.
Edited by: Pria Gupta on Nov 24, 2011 2:18 AMUse variable 0F_CUFPE Current Period of Fiscal Year (Formula Variable)
Re: how to get default value fiscal year period in Variable
Regards,
Sushant -
Display Current Quarter and Previous Quarter???
Hi Gurus,
I Had a requirement to display only the current Quarter and previous quarter in the report level using single quarter column.
and my quarter value type is Q1 2013.
Please anyone help me out on this asap/
Thanks.Hi,
Using time serious function you can acheive this requirement.
http://obieetutorialguide.blogspot.in/2012/02/modeling-time-series-function-in-obiee.html
OBIEE 11g Time Series Function
or,
Using presentation variable you can achieve this.
Re: OBIEE 10g LY YTD returns YTD for past years
The above thread for year you can change to qtr.
Hope this help's
Thanks,
Satya -
Current Fiscal year/Period (0FISCPER)
Hello
I am using 0FISCPER in a stk query. In that I want to restrict this Char. by Current Fiscal year/Period. But I cant find ant SAP exit variable for this. How to restrict the query by Current Fiscal year/Period??????
Pls help. urgent.You can create a variable with customer exit and use this in your query for your purpose.
to get the current FISCPER you can use RSARCH_DATE_CONVERT Function Module in Customer Exit.
based on your system date this FM will calculate current FISCPER value -
How to get data for current week and previous week using customer exit in Bex.
Hi everyone,
I have a scenario in which I need to display data for current week and previous week (based on "sy_datum" the program has to calculate current week and previous week) in Bex using Customer exit. I have created one variable in Bex Query Designer and I have written code for the variable in CMOD. But it is not working fine, (I know that we can do the same by using offset value in Bex). Can some one guide me how to achieve my requirement using customer exit.
Thanks in Advance,
G S Ramanjaneyulu.Hi krishna,
Thanks for your quick reply, can you have a look at my code,
case i_vnam.
WHEN 'ZPWK_CWK'.
ranges : pre_week for sy-datum.
data : start_date type DATS,
end_date TYPE dats .
************FM TO GET FIRST DATE OF CURRENT WEEK ************************
CALL FUNCTION 'BWSO_DATE_GET_FIRST_WEEKDAY'
EXPORTING
DATE_IN = sy-datum
IMPORTING
DATE_OUT = start_date. " WEEK FIRST DATE
end_date = START_DATE + 6. " WEEK LAST DATE
END_DATE = START_DATE - 1. " PREVIOUS WEEK END DATE
START_DATE = START_DATE - 7. " PREVIOUS WEEK START DATE
**********PREVIOUS WEEK DATES IN PRE_WEEK******************
pre_week-SIGN = 'I'.
pre_week-option = 'BT'.
pre_week-LOW = START_DATE.
pre_week-HIGH = END_DATE.
APPEND pre_week.
CLEAR : START_DATE,END_DATE.
endcase.
Regards,
G S Ramanjaneyulu. -
Balance sheet required for current quarter and previous quarter
Hi Guys,
I am using 0FIGL_C10 cube for balance sheet report,i need to create balances for current quarter and previous quarter.
user will enter the fisper, based on fisper it has to show the current quarter and previous quarter balance.
how to calculate the quarter using fisper.you can use offset with ranges.
or
just offset of -1 , -2 & -3 seperately in 3 selections and add it in one column in formula (this will give u current quarter).
similarly offset of -4, -5 , -6 will give u previous quarter result.
total of 6 selection and 2 formulas. hide all selections from display. -
Difference between current row and previous row in a table
Hi All,
I am having a problem with the query. Can some of please help me?
I need to get difference between current row and previous row in a table. I have a table, which have data like bellow.
TABLEX
================
Name Date Items
AAA 01-SEP-09 100
BBB 02-SEP-09 101
CCC 03-SEP-09 200
DDD 04-SEP-09 200
EEE 05-SEP-09 400
Now I need to get output like bellow...
Name Date Items Diff-Items
AAA 01-SEP-09 100 0
BBB 02-SEP-09 101 1
CCC 03-SEP-09 200 99
DDD 04-SEP-09 200 0
EEE 05-SEP-09 400 200
Can some one help me to write a query to get above results?
Please let me know if you need more information.
Thanks a lot in advance.
We are using Oracle10G(10.2.0.1.0).
Thanks
Asif, nvl (items - lag (items) over (order by dt), 0)like in
SQL> with test as
2 (
3 select 'AAA' name, to_date('01-SEP-09', 'dd-MON-rr') dt, 100 items from dual union all
4 select 'BBB' name, to_date('02-SEP-09', 'dd-MON-rr') dt, 101 items from dual union all
5 select 'CCC' name, to_date('03-SEP-09', 'dd-MON-rr') dt, 200 items from dual union all
6 select 'DDD' name, to_date('04-SEP-09', 'dd-MON-rr') dt, 200 items from dual union all
7 select 'EEE' name, to_date('05-SEP-09', 'dd-MON-rr') dt, 400 items from dual
8 )
9 select name
10 , dt
11 , items
12 , nvl (items - lag (items) over (order by dt), 0)
13 from test
14 ;
NAM DT ITEMS NVL(ITEMS-LAG(ITEMS)OVER(ORDERBYDT),0)
AAA 01-SEP-09 100 0
BBB 02-SEP-09 101 1
CCC 03-SEP-09 200 99
DDD 04-SEP-09 200 0
EEE 05-SEP-09 400 200
SQL> -
Fiscal Year / Periods does not show properly in WebI and compunding
Hi,
I have few reports where I am using Fiscal Year /Period as filter.
I have created a Universe on the top of a SAP BI Query and did not do any customization.
Then I created a WebI report. In this report I created various filters beside Fiscal Year / Period. When I run report, filter window opens. I can select all other filters but when it comes to Fiscal Year / Period it does not show me the values I want to see. It shows AUG 0001, APR 0025 etc. I want to see AUG 2010, MAR 2009 etc so that I can select them and get the data of the required Fiscal Year / Period. In Cube I have the required data. If I select MAR 0010 etc I donu2019t get any data.
On the other hand if I put fiscal Year / Period in columns or rows it shows the right value.
If also run SAP BI Query and Fiscal Year / Period in Variable then on variable screen I can see the right value from where I can select and get the required result.
Do I have to do any step at Universe level or something else?
It seems that Fiscal Year / Period is compounding.
Is there any help?
Thanks
Bashir AwanIngo,
for thanks for igniting my thoughts in this regards.
Yes these values do exist in SAP BW.
It is some how compunding the values at filter level.
It does not let me see the whole value when filter screen popup in BOBJ.
In SAP whole value shows when variable screen popup, I see three columns Fiscal Year / Period. Text, Posting Period Key, and Posting Year Key.
Fiscal year / Period Text which shows Aug 2009, Posting Period Key which shows our period 1 to 16, and Fiscal year key which shows 2009 etc.
Is there any setting in BOBJ which compunds the year for variable screen so that we may see the whole values for filters?
thanks -
Up to the period : Fiscal year period Exit variable is not working
Hi Experts,
I have the following code to get the upto the Fiscal year period variable .It shoudl fetch the Values From the starting of the Fiscal period like 2009001 whatever the period user enters.But currnelty it is not woking.Please let me know am I doing any mistake in code.currently it is only fetching for the month user enters not up to the period.
Prasad
Variable Name : ZUPTOPER
User Entry Var : 0P_FPER
WHEN 'ZUPTOPER'.
IF i_step = 2.
LOOP AT i_t_var_range INTO loc_var_range
WHERE vnam = '0P_FPER'.
fper = loc_var_range-low.
fper+4(3) = '001'.
CLEAR l_s_range.
l_s_range-low = fper.
l_s_range-high = loc_var_range-low.
l_s_range-sign = 'I'.
l_s_range-opt = 'BT'.
APPEND l_s_range TO e_t_range.
EXIT.
ENDLOOP.
ENDIF.Hi Prasad,
This would be happening if you have put the user entry variable in the global filter of your query.
As a result the complete data set is restrcted to get the data only for one month.
Please use the variable for user entry month in a selection and not globally.
-Vikram -
ABAP routine for DTP fiscal year/period filter
Hi All,
Delta loads are which not possible for when the transformation source is an InfoSet. To limit the data in these loads, currently a filter is set in the DTPs on fiscal year/period so only load the current month and 2 prior months are loaded. This filter has to be updated each month for each of the DTPs manually. To eliminate this monthly task a dynamic filter (routine) needs should be used rather than a static filter. Can anybody help me in providing the logic
Regards
Siridata: l_idx like sy-tabix.
read table l_t_range with key
fieldname = give field name .
Data : Year(4) type n,
period1(2) type n.
period2(2)type n.
Currper = sy-datum+4(2) .
period1 = currper-1 .
period2 = currper-2.
year = sy-datum+0(4).
concatenate year currper to P1.
concatenate year period1 to P2. // define P1 , P2 , P3 as 0fiscper .
concatenate year period2 to P3.
l_t_range-sign = 'I'.
l_t_range-option = 'BT'.
l_t_range-low = P3.
l_t_range-high= P1. -
Hi all
We are currently using Fiscal Year Variant Z6(July - June, 4 special periods).
When we display the texts for Fiscal Year Period in a Query it displays as CALMONTH FISCYEAR. E.g. July 2004, which is FISCPER 01.2004 but Calmonth 07.2003 (July 2003). I want the texts to display as the correct calendar year month, not as a combination of calendar month with the fiscal year.
I have tried to maintain the texts of 0FISCPER, but I get the following message "The master data table of char. 0FISCPER is not generated, operation terminated"
Has anyone managed to solve this problem?
Thanks in advance
ChamiChami,
I see the problem. The Year Part of the Text is wrong.
Unfortunately this means that Fiscal Year cannot be used to display the texts.
The solution to your problem is to have the description from the calendar month/year in the column headings by adding the calendar period to the data target, convert the fiscal period to calendar period on data loading (using provided date conversion functions in the formula builder) and use it for display purposes. The fiscal year is still used as selection criteria (as a filter)
The other solution is to have text variables created from the Calendar period and used in the column headings
Hope that helps!
Rishi
Maybe you are looking for
-
CO-PA transfer from SD - conditional transfer
Hi, We need to implement a new flow for 'early start' SD orders. These are uncommited towards the customer, but certain enough to start procurement activities. The point is to use a flag on SD order header to control 'early start' that prevents updat
-
Odd problem with iPhoto always seeing my iPhone as connected when not
I have started having a problem with iPhoto8. When it starts it always goes to the import photos screen and has a couple dozen icons (with no image) and filenames to import from my iPhone. The problem is my iPhone is not connected. It shows up as mou
-
Need urgent help. I have been trying to resolve this problem to no avail. I am able to preview my sprymenu on my local browsers opera, google crome, and IE but when it is uploaded, the sprymenu squashes to the left hand side.
-
I want to use: as my default search engine. How do I do this?
I want to use: http://omrt.easysearch.org.uk as my default search engine. I have entered it into the relevant add-on section and "no result" is shown.
-
Hi, I have a jsp page used as a registration form, when displaying the form initaly it looks fine, however when entering a value in any field in the form and pressing the submit button. the next request (which is for the