Truncate fiscal period text variable 0FYTCFP
Hello Everyone,
I am using variable 0FYTCFP and it displays, for example, 001.2006. I would like it to only display 06. Is there anyway to do this?
Thanks so much,
Colleen
Hi,
create a Ztextvar of length 2 and in the customer Exit code just truncate the Fiscal period to 5(2) . then u will get last 2 chars of fiscal period.
regards
santosh
Similar Messages
-
Hi All,
in our bw sysytem the fiscal period text is not displaying correctly.i.e for period 11.2006 it is displaying as feb 2006.it should display feb 2007. my fiscal variant is V3.
can any body help me.
Regards,
sekharAs per my knowledge we dont have master data for 0fiscalperiod,
i soved the problem by going to spro,
report relevant settings,
bw general seetings,,
F4 help and hierarchies change the fiscal period text to option 2 calender year
regards,
sekhar.
www.sapadvisors.com
Edited by: sekhar on Dec 31, 2007 4:47 PM
Edited by: sekhar on Dec 31, 2007 4:47 PM -
Special Periods and Variable Offset
Our fiscal year variant includes 12 periods and one special period (Period 13). I created a rolling 12 month query which uses variable offsets to define each column. If the user enters 3/2006, I would expect to see the next columns to show 2/2006, 1/2006, 13/2005, 12/2005....
Instead the query ignores the special period and jumps directly from 1/2006 to 12/2005 - therefore the postings for Period 13, 2005 are not displayed. From what I've found so far this is standard SAP BW functionality, but has anybody had any luck getting around this?
Thank you.Jeff,
If I enter 13/2005 into the leading column variable, I can see that there are transactions posted to Period 13 which are not included in the results of Period 12. We have another query where the user can enter a period range using an interval variable for 0FISCPER (i.e. from Period 10/2005 to Period 2/2006) and it brings back results for Period 13/2005. However this other query that uses the variable offset to define the rolling periods does not return the Period 13 results. I thought about adding Period 13/2005 to Table T009B, but I would prefer not to set this up in BW without doing the same in R/3, and I'm not quite sure about the implications of adding an extra (not special) period to the Fiscal Year variant in R/3.
Sven,
I use 0FISCPER for posting period, and I created a structure for the twelve periods. There is a variable (0P_FPER) for current posting period in the first column, and the rest of the columns use offsets to go back the 12 months. For example the second column is (0P_FPER - 1), the third column is (0P_FPER - 2), etc. It seems that my problem is related to the fact that the offset ignores the special periods, while the fiscal period interval variable recognizes these periods.
Thanks very much to both of you for your replies!
Janet -
Text variable for Fiscal year/period
Hi gurus,
We are on BI 7.0 (PL 15). In G/L i am using the standard 0FISCPER text variable 0T_FPERF in the columns, which should e.g. produce the text "04.2008".
However instead it displays "4 .0800". Adding Fiscal year/period 0FISCPER to drilldown shows a correct format in the rows "APR.2008", so the problem seems to be only with the text variables.
I have checked on a reference 7.0 system where the same variable is working fine, so i assume that some fix must be available. Any hints as to what should be performed to correct this display error?
Points will be rewarded.
BR
MortenHello Jamspam,
I had a similiar problem with indicators in BEX. I had an numerical indicator that displays me value in a very weird way.
My solution was to upgrade my frontend, with SAP Business Explorer patch.
Have you got the latest BEX patch (or others) on your frontend? No guarantees that will solve your case, but for me it worked
Regards,
Bruno -
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, -
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é -
Show the period value in column header using Text Variable
We are using Posting Period & Financial Year to calculate YTD & MTD, for current year and previous years. These posting period and financial year characteristics are custom created characteristics we are using due to customer specific requirement.
Input values are posting period, financial year and numeric value. To calculate previous year, I need to subtract numeric value from the input financial year. Every thing is working fine up to this.
In the report I need to show the posting period and financial year values dynamically in each column header of the report for MTD, YTD for current year & previous year. I tried to achieve this using Text Variables, but I didnt succeed. If some one can give me some idea to resolve this, it would be very helpful.
I am excellent in ABAP coding. If you can specify me to code in User Exit, I can do it.
Column headers should be 08.1999 Sales Qty, 08.2008 Sales Qty, 1999 Sales Qty, 2008 Sales Qty.Hi Abhinav,
Try using the content text variables 0T_FYEAR and 0T_FPER3, when used in the head these variable should display the year and period specified in the RKF.
e.g
&0T_FPER3&. &0T_FYEAR& Sales Qty = 08.1999 Sales Qty
If that doesnt work, try creating text replacement path variables referencing the variables you created for the year and period input. To do this click on the RKF and click on the dropdown by the yellow box next to the description on the general tab and select New Variable, enter the description, tech name and set processng by to Replacment Path, then select period as the ref. characteristic, then on the replacement path tab change replace variable with to variable and then select the variable you are using for the period input, save then hit ok, this is now a text representation of the variable your are inputing for period and can be used in the column headers, you will need to repeat the process for the fiscal year.
Hope this helps
Josh -
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 -
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 -
Using variable 0P_FPER to calculate YTD Fiscal period
Could someone please explain the procedure for creating a variable which will use the value entered from the variable 0P_FPER - Period/Fiscal Year (Single Value Entry, Required) to calculate the YTD Fiscal Period.
Regards,
Craig StephenYou have to create a Customer Exit variable for this :
<b>Customer Exit - > YTD from Fiscal Period</b>
<b>Let ZVCCYTDX be the tech name of Customer Exit Variable & 0P_FPER be the user entered variable for Fiscal Year Period.</b>
User Exit: ZVCCYTDX
Input: 0P_FPER
Output: Jan of Accident Year Range
Logic Description:
WHEN 'ZVCCYTDX'.
if i_step = 2.
clear loc_var_range.
loop at i_t_var_range into loc_var_range WHERE vnam = '0P_FPER '.
if sy-subrc = 0.
curr_year = loc_var_range-low(4).
concatenate curr_year '001' into jan_accidentyear.
CLEAR L_S_RANGE.
L_S_RANGE-LOW = jan_accidentyear.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
append l_s_range to e_t_range.
exit.
**endif.
endloop.
endif.
**Coding is not required if you can enhance the Datatarget with Fiscal Year and Posting Period. -
Error when using SAP Exit Variable for Current Fiscal Period (0FPER)
Hi Friendz,
My requirement is to execute a query for the current fiscal period. I am using the SAP Exit Variable 0FPER.
I placed this variable on char. Fiscal year/period 0FISCPER.
When I execute the Query, it is returning the error: No value could be determined for variable ZVBSYCUR; Variables Contain Invalid Values.
Please give inputs on how to use this variable.
Regards...
GaneshHello Dipika,
I am also getting the same error.
ERROR: Variable 0FPER could not be replaced.
Yesterday we created one customer exit. But this should not affect the SAP Exit right? Till yesterday the 0FPER variable was working fine. I tried re-installing from BI content, but still getting the same error. If anybody has a clue please let me know.
Thanks,
Harshal -
BEx Fiscal Period variables not working in Webi
Hello,
We have an BEx user entry variable for Fiscal period, that works correctly in BEx. In the prompt LOV, I get values from year 2003 to 2013.
When I run it in Webi, the LOV starts from year 0000 to 2040. Also there are 16 periods in a year, wheras the LOV displays 24 period, even after restricting on fiscal variant.
Has anyone successfully been able to make Webi work with BEx fiscal period variants?
Thanks,
NikhilI created a universe objects with following in the
"Select"
[0P_FPER].[NAME]
"Where" condition
<FILTER KEY = "@Select(Fiscal year Period\LovPeriod_Fiscal Year)">
<CONDITION OPERATORCONDITION = "Greater">
<CONSTANT CAPTION = "AB1000001"/>
</CONDITION></FILTER>
When I create a report with this object, I get no data.
I change the above to
"Select"
[0P_FPER].[NAME]
"Where" condition
<FILTER KEY = "@Select(Fiscal year Period\LovPeriod_Fiscal Year)">
<CONDITION OPERATORCONDITION = "Less">
<CONSTANT CAPTION = "AB1000001"/>
</CONDITION></FILTER>
I tried changing the CONSTANT CAPTION values, everytime "Less" works but "Greater" does not. Does "Greater" not work? -
Formula variable on Fiscal period
Hi All,
I am writing a query where I want to pass fiscal period (only period, not the year) in a formula.
I have crested a formula variable for the same and used the characteristic variable of fiscal year/period (SAP exit).
The code that I applied is as follows:
WHEN 'ZCURFP1'.
IF I_STEP = 1.
LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
WHERE VNAM = '0P_PRFP1'. //(previous period of current fiscal year)
CLEAR L_S_RANGE.
PERIOD = LOC_VAR_RANGE-LOW+4(3).
PERIOD = PERIOD + 1.
L_S_RANGE-LOW = PERIOD.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
APPEND L_S_RANGE TO E_T_RANGE.
ENDLOOP.
ENDIF.
But this code is not giving me current period.I am not good at ABAP
Pl help me with the code.
Thanks and Best regards,
SharmishthaHi,
[I have been reviewing the whole thread and as far as I understood you want to have the current period value (based on the current date) passed to your formula variable, correct?
Then then code below should work
you should use standard function modules for that;
try the following:
DATA:
ld_gjahr LIKE T009B-BDATJ,
ld_poper LIKE T009B-POPER.
WHEN 'ZCURFP1'.
IF I_STEP = 2.
CLEAR L_S_RANGE.
CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
EXPORTING
i_date = SY-DATUM
* I_MONMIT = 00
i_periv = 'K4' "enter your fiscal variant here
IMPORTING
e_buper = ld_poper
e_gjahr = ld_gjahr.
L_S_RANGE-LOW = ld_poper.
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'EQ'.
APPEND L_S_RANGE TO E_T_RANGE.
hope this helps....
Olivier.
Message was edited by:
Olivier Cora -
How to Create a selection variable for Fiscal period/year range
How to Create a selection variable for Fiscal period/year range. The idea is to filter the query results using a fiscal period/year range user input rather than a full fiscal year input.
Hi Priya,
Open the query in a query designer -> in the left hand side you would find the fiscal year period under the time dimension -> right click -> create variable -> create the variable.
The better option would be use any of the SAP provided variable. You would find them under the Fiscal year period in the left hand side in the query designer.
Bye
Dinesh -
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
Maybe you are looking for
-
JDBC Connection Using ColdFusion DataSource
We are using ColdFusion MX 6 and oracle 10g. I am trying to code a JAVA JDBC database connection class by simplely pass ColdFusion datasouce name. i.e, instead of passing URL, user id and password, I hope my JAVA class can recognize ColdFusion dataso
-
My phone just turned off and won't turn back on. I've read the posts saying to hold down the home and power button but my power button is broke. Any suggestions?
-
Hi , I have a question regarding writing data in a text file. I have a lot of classes which are having lot of println statements. Can we send data to a file which are coming from different classes. I need to update file in sequencial way which are co
-
hi guys, i have a Spry accordion panel, in the first panel i have some dynamic text and some dynamic images, when i open the other panel below, this opens over the top of the first panel (like it should) and the dynamic text is covered (like it shoul
-
Head phone jack broke off in the socket.. how can I remove it?
The headphone jack broke off in the socket so speakers are still off.. is there an easy way to get the broken piece out of the socket?