Restriction according to Years
How to restrict the data on the basis of the Previous Years and the Current year?
thanks,
msh
Hi Mulla,
You have to restrict the value with in the range then.It should have a From date and to date.You can use a variable which holds this.Search for a variable of this type.
Regards
Karthik
Similar Messages
-
Acceptance & Restriction of Fiscal Year in SAP
hi
can you help me regarding the how many fiscal year a system allow to post , how many asset fiscal year and accounting fiscal year (OB52) allow to make a transection.
For example now i am in 2010 and i want to post the transection in 2007 and one more thing want to run the depn. for 2012. Will the SAP allow me to do the the above.
Here i want to know upto how many fiscal year will be restricted viceversa allow for the different business processess., say asset accounting, GL accounting, Controlling ETC.
Thanks
Prabin
Moderator: Please, avoid asking basic questionsHi,
There is no restriction from technical point of view to post in any fiscal year.
However as a business procedurre, you should keep only few periods open to enable the month endd and year end activities to generate the financial statements.
Generally for assets, current period and last period is kept open.
Regards,
Gaurav -
Restricting of Fiscal year period for Four days
HI Experts can you pls suggetst
we are providing a layout for an enduser for a particular period through web interface, so that he
can enter the plan data for that period, the issue is like we have a period of 15 days the end user
has to input the plan data for that period, the planning layout should enable for 5 days only, latter
if he want to input the plan data it should not edit or cannot input, how can i go head with this.Hi.
I suggest you to think about the next approach:
1. Create variable A (based on IO period) for determining a period (lets say it's input variable with range - this range will be 15 days)
2. Create layout in BPS0 when data columns are dynamic for period that has this variable A (in manual input click on "additional settings->in "data columns"->"dynamic for" select period)
3. Create another variable B (I guess it should be user exit variable that gets values from variable A and decides which values will be locked)
4. Create data slice and restrict it with variable B.
This way you will see in layout 15 days in period, but only some of days, depends on variable B, will be opened for input.
Regards. -
Cost centre Restriction according to Plant in ME51N
Dear All
My customer requirement is to restrict the cost centre during PR creation depending upon plant
If cost centre is not belongs to particular plant it will give error message
eg
if plant is X then cost centre must be between 310000 to 319999
else if its y then its between 410000 to 419999
Regards
ArunDear Arun,
create a customer table by mainainting the cost center and plant combination, ask your ABAP team to control through user exit that and write an error message that at the time of saving PR if plant and cost center combination match then it will save other wise throw an error message.
Regards,
qsm sap -
Online W-2 Restriction For Previous Years
Hi all,
We want our employees to be able to view only W-2s for 2007 but not the previous years W-2s. Any ideas/suggestions how to accomplish this.
Thank you,
OBHi
I am not sure the following note will solve your problem completely but you refer them to get some hint for your issue
https://metalink.oracle.com/metalink/plsql/f?p=130:14:921876726705183775::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,273220.1,1,1,1,helvetica
Regards
Ramesh Kumar S -
Restrict Query to Year To Last Fiscal Period
I have written a query that reports on Cost Centre line Item data. Up until now I had been using the variable 0I_CYFTD Year To Date for current fiscal year. However I now want to only report Year to then end of the last fiscal period. Anybody any idea how I would do this? The only way I can think of is to create my own variable with a customer exit. If that's the case where does the code go and what's the code involved as I'm no ABAP'er. Or is there another simpler way.
Hi Joel
You will probably need some abap code in here eventually,
but could you not use the Previous Period Of Current Fiscal Year (OP_PRFP1) SAP exit.
Eg. Create a range from 01.2008 to OP_PRFP1 as part of your key figure.
Regards
Nick -
TWice the same KF but with a different restriction of year
dear all,
when i put the same KF besides each order and i put a restriction on the first where year=2006 (and call it YTD-1) and the second year=2007 (and call it YTD), the output listing gives the correct figures per month for 2006,
BUT although there is NO data yet for 2007, the listing gives also the months of 2006 (under YTD) but with empty cells!!!
the restriction works but under YTD there should be nothing !!??!!
WHAT do i wrong ?????
regards,
HermanHI,
It is not possible and it should not happen.
If you have no value in the columns then it should not show up in the report.
Just check if you have certain restrictions other then year on the key figures that can cause value to go off.
Anyway if you want to remove them just set the properties of the key figures and chek "suppress zero" ->rows and columns.
it will the columns with blanks.
Hope it helps
Thanks -
Hi Guru's,
I wanna restrict fiscal year till my last year i.e in my selection screen .......if i give 2008 it should restrict till till 2007 values...........
i created avariable with interval & selection option ...........
i'm not able to restrict till last year.........in restrict screen..
when i take selection as value range........all my variable are disappearing.........
Could you help to getrid my problem.......
Thanks in advanc.........
Regards,
VijayHi,
You can define a variable of type range and set default value for from year 1900. Now whenever you put a selection in the query, it will fetch the data from 1900 to the year which you will be putting in the selection screen.
Try if this fits in your scenario.
Regards,
Yogesh -
Drill down by customer only for 1 year (only total then) in query designer
Hello experts,
I face a need I don't manage to fit with the query designer. It sounds easy, but I didn't find solution after few trials.
The target report has to look like that :
01.2010 02.2010 03.2010 04.2010 u2026 12.2010 Total
Customer
cust 1 ratio ratio ratio ratio ratio ratio Total
cust 2 ratio ratio ratio ratio ratio ratio Total
cust 3 ratio ratio ratio ratio ratio ratio Total
cust 4 ratio ratio ratio ratio ratio ratio Total
cust 5 ratio ratio ratio ratio ratio ratio Total
cust 6 ratio ratio ratio ratio ratio ratio Total
Year 2010 total total total total total total total
2009 total total total total total total total
2008 total total total total total total total
2007 total total total total total total total
The particular point disturbing me is to display detailled ratio according to customer caractéristique ONLY for the current year (2010) and ONLY TOTAL for past years.
Thanks in advance for help, points will be awarded.
GuillaumeHi Petiaux,
All the replies have been correct & all you need to do is a combination of a few. A step-by-step approach for your report, I'll explain in detail, and please correct me if I'm wrong.
01.2010 02.2010 03.2010 04.2010 u2026 12.2010 Total
Customer
cust 1 ratio ratio ratio ratio ratio ratio Total
cust 2 ratio ratio ratio ratio ratio ratio Total
cust 3 ratio ratio ratio ratio ratio ratio Total
cust 4 ratio ratio ratio ratio ratio ratio Total
cust 5 ratio ratio ratio ratio ratio ratio Total
cust 6 ratio ratio ratio ratio ratio ratio Total
Year 2010 total total total total total total total
So, the above is the first set of details you need to make. Follow up by using offsets for 1 variable followed up till the 12th month. Create a variable for 0CALMONTH (Cal Yr-Month) in a selection. Follow up by copying this variable 12 times, changing the offset of the input varaible to +1, +2, etc..
Now for the next set as below, there are 2 approaches.
2009 total total total total total total total
2008 total total total total total total total
2007 total total total total total total total
1. If you are using i/p variable as Cal-Month, then its best you can approach to find the differences by making a selection for the same variable in a range like New Var (EnterMonth -12 : Enter Month -23 ). Same fashion, approach to calculate (EnterMonth - 24 : EnterMonth-35) etc. But limitations are there for this approach, as you need to select ranges & with each year you need to update the query.
2. Use CELL Editor: At the top of the icon tray, you can notice a 'cell' symbol, wherein you can find the cell editor. Under the 2009, 2008, 2007 headings you can choose to create a selection with following restrictions: 0CALYEAR (Cal Year) as varaible. But the only thing here is the input variable for this query must be 2 seperate variables > One CALYEAR & another CALMONTH. So this is another approach, where user will have option to enter cal month & cal year seperately in 2 different text input boxes.
3. Perform the calculation for 2010. Copy the same for 2009,2008,2007 etc with offsets. You can try hiding the rest of the month feilds, after calculating the total for all months of the years in 2009,2008 etc using offsets. Although it sounds crazy idea, but sometimes if customers require such an output we need to do something crazy though. I hope it might work, but as stated its the last option if nothing works out. -
Hi Guru's,
I'm trying to make a report with the following key figures colums:
column 1: balance, restricted by fiscal year/month (with a variable, user entry), i have my own fiscal variant
column 2: balance, restricted by the last period last fiscal year (user exit)
<u>for example:</u> column 1 shows the values of period 005.2006, then automatically column 2 shows the period 012.2005
for column 2 i created a user exit variable ZVARLPLY, can anybody help me with the coding in the user exit? I already tried to use the variable "0P_BA102 --> ZP_BA102", but it didn't work. The error "Variable 0P_BA102 could not be replaced" will disappear when i check the input of the variables.
Can anyone help me?
Regards,
PieterAssign points if helpful!
You can use this logic and modify it accordingly
DATA: l_s_range TYPE rsr_s_rangesid,
loc_var_range TYPE rrrangeexit,
l_year TYPE n.
WHEN 'ZVARLPLY'.
IF i_step = 2.
LOOP AT i_t_var_range INTO loc_var_range
WHERE vnam = '<user entry variable>'.
l_year = loc_var_range-low(4). "Get year
l_year = l_year - 1.
l_s_range-low = l_year + '012'. "last year + '<last period of fiscal year>'
l_s_range-high = loc_var_range-high.
l_s_range-opt = loc_var_range-opt.
l_s_range-sign = loc_var_range-sign.
APPEND l_s_range TO e_t_range.
EXIT.
ENDLOOP.
ENDIF. -
How to present rolling months KF and do comparison over years?
Hi,
Below is a report that I have to achieve:
____________ Mar Apr ... Mar
MatA _ T.Yr _ KF1 ... ... KF2
______ L.Yr _ KF3 ... ... KF4
Total__ T.Yr _ KF5
______ L.Yr _ KF6
______ Diff _ KF7
Input variable: 03.2005
Row:
1)characteristic Material
2)T.Yr for this year (2005); L.Yr for last year (2006)
Column:
KF1 - KF sales for 03'2004 MAT A for this year 2005
KF2 - KF sales for 03'2005 MAT A for this year 2005
KF3 - KF sales for 03'2003 MAT A for last year 2004
KF4 - is the same as KF1
KF5 - total of KF for Mar and 'This Year'
KF6 - total of KF for Mar and 'Last Year'
KF7 - the difference between KF5 and KF6
Anyone has an idea on how to do this in Query Designer?Hi,
Look at the following -
1. restricted Key Figure
2. Claculated Key Figure
3. Offset
try this -
1. Create Restricted KF1 --> restrict it on year 2006 by selecting year.
2. Craete another restricted KF2 --> by copying KF1 & Offset it by -1 ( for last year, -2 for prev to prev year)
3. create another key fig - KF3( calculated KF) --> & define it as KF2 - KF1
Use KF1, KF@, KF3 in your report.
http://help.sap.com/saphelp_bw33/helpdata/en/f1/0a5a2ee09411d2acb90000e829fbfe/frameset.htm -->Restricted Key Figure Properties
& other links here should help.
VC -
Formula to calculate two fiscal year/period difference for non null quantit
We'd like to have a query result like the following:
Person -- Jan_2007 -- Feb_2007 -- Mar_2007 -- No. of Months
Tom --- 21 --- 54 --- 10 --- 2
John --- 0 --- 3 --- 15 --- 1
In the above query, the row is sales persons, the 1st three columns list the sales quantity by each sales person restricted by fiscal year/period and we would like to create 4th column "No. of Months" to calculate (will use formula) the month span (difference) for each sales person from his last sale activity (the last month he performed sales) and the 1st sale activity (the first month he performed sales) as listed in the above query result, e.g., Tom performed his first sales (sales quantity: 21) in the month of January of year 2007, and he performed his last sales (sales quantity of 10) in the month of March, 2007, then the "No. of Months" column value for Tom is 2. The calculation formula will be performed based on the last quantity value (> 0) to trace it's corresponding column fiscal year/period value (max of the fiscal year/period value with quantity value >0) and on the 1st quantity value (>0) to trace it's corresonding column fiscal year/period value (min of the fiscal year/period value with quantity value >0) and then do the subtraction between the max of the fiscal year/period value and the min one.
Would be appreciated if BEx experts here give the detailed steps on how to build up this formula to calculate the number of month difference and we will give you reward points!
Edited by: Kevin Smith on Mar 18, 2008 1:47 PMhi Danny,
I only gave an example of 3 columns, but actually, yes, the report can have more than 12 months, e.g. from Jan_1999, Feb_1999, ..., Mar_2011, Apr_2011.
In our simple example of 3 columns for the three consecutive months, if John had (3)(0)(15), then the No. of Months is 2, or the last month value he performed sales and 1st month he performed sales.
You said macro in Excel sheet? Not sure if macro will work on web since we will eventually run the reports on web browser, therefore we still prefer using Formula.
Any idea/solution?
Thanks! -
Fiscal year in the columns outside the key figure structure
Dear Experts
I have a report requirement to show the keyfigures in the columns from year 1 to year 10 and in each year there are 4 keyfigures each restricted to 1 quarter for 4 quarters.
So, there are too many keyfigures to create.
I am using fiscal year in the columns outside the Key figure structure containing the keyfigures restricted at each of 4 quarters.
So, when the report displays, all the 10 years will automatically be displayed.
The problem is one of the 4 quarter level keyfigures needs to be restricted by calendar year.
How can I read what is the fiscal year for each column at runtime so that I can reference this value to determine the calendar year ?
As you know, each FY spans 2 Calendar Years. So, i need to restrict this on the 4th keyfigure by calendar year but while having the FY outside the keyfigure structure i can get all the FY, I am not sure how to access this value at runtime so that eg.
if FY for column 1 is 2010, i can set calendar year to be 2010 to 2011.
Hope you can give me some clues.
Thanks you Gurus!
Best regards
JohnDear Sunnybt
Copy Riyes, I find your response interesting. Please could you elaborate your idea of using condition in more detail.
Sorry for my late response.
Allow me to clarify my statement, which you are right, is unclear.
By :
"if the current QuarterFY is less than the current QuarterFY"
I mean :
eg. user enters FY range : 2009 to 20NN (eg. 2017)
KF_column1_FY2009_Q1______KF_column2_FY2009_Q2____KF_column3_FY2009_Q3______KF_column_FY2009_Q4______KF_column_FY2010_Q1______KF_column2_FY2010_Q2____KF_column3_FY2010_Q3______KF_column_FY2010_Q4_____KF_column_FY_NNNN_Q1
For each column, where the FY can be any year range entered by user,
the Text Description of the Column should show either 'Actual' or 'Plan' based on what is the current FY Quarter at runtime.
If the FY Quarter (eg. 1st column is 200101) is before current FY Quarter (i.e 201103), then the Description of this column should be "Actual" , else "Plan".
In my current design, I am unable to use customer exit text variable to meet this requirement.
So, I like to check with you for fresher ideas.
If not , I would use a workbook, which I am avoiding as the user needs to drilldown and I believe drilldown is not possible in workbooks where report layout needs to be rigid or cell positions fixed. Of course, unless there is a way out of this which I do not know.
Best regards
Bass -
To get last year Net Value by fiscal period
Dear experts,
Since yesterday am trying to get solution where still unable to succeed.The report requirement is that they need Planned sales and actual sales qty of current fiscal year/period wise and in first column to get last year Actual sales for same period.(Ex:009.2006 to 011.2006 is input and in first coloumn 009.2005 to 011.2005)
This is the situation:
I have kept restricted W2 for fiscal year varient in filter and have created quantity sales(for last year) RKF with variable as "From fiscal year/period-13 and To Fiscal year/period-1"(with offset) and have placed in Key Figure structure in column section.Above this Structure have kept Fiscal year/period info object with variable "From Fiscal Year/period to To Fiscal year/period.This is because i need period wise breakup.
I understand that above we have "From Fiscal year/period infoobject" and below that in key figure structure u have the above quoted key figure with quantity sales of previous year.I want period wise it has to show me last year(period wise) quantity with current year Planned aty and sales Qty
Have gone through all threads and now it feels that i should to for variable exit ?...Do i have any option apart from variable exit?...If so could anybody can provide code for the same...Kindly gimme solution.
Maximum points will be awarded..
Thanks and Rgds
ChandruHi,
I hope, you are entering values 009.2006 to 011.2006 for the variable "From Fiscal Year/period to To Fiscal year/period". Am I right?
If so, Donot restrict the fiscal year period with "From Fiscal Year/period to To Fiscal year/period like as you mentioned:--
<i>Above this Structure have kept Fiscal year/period info object with variable "From Fiscal Year/period to To Fiscal year/period.This is because i need period wise breakup.</i>
To get the break up Priod wise, taking Fiscal year period characterstics above the structure is sufficient with ou any restriction.
Under the characterstic fiscal year period take two KF (same kf called SALES QTY two times with different heading like " last year Actual sales" and "current year Actual sales ") . First KF will be restricted with customer exit varible on Fiscal year period characterstic. Second KF will be restricted with user entry varible on Fiscal year period characterstic.
In case if you enter the value 009.2006 to 011.2006 as the iput to user entry varible, the code should generate the value 009.2005 to 011.2005 to Customer exit varible.
With rgds,
Anil Kumar Sharma .P
With rgds,
Anil Kumar Sharma. P -
POS data variation in bw report for fiscal year
HI ,
I got issue from User like ,In a BW report I have given sold to party as best buy with actual sel though and fiscal year form 2006 to 2008.I got some values with factory week 14/2009 for it.But when i selected fiscal year 2007 to 2008 i got some other value for factory week 14/2007 which is not matching with previous value when i drilled down fro Fiscal year 2006 to 2008.Please tell me hwo to proceed wiht this issue .If I would come across this problem, I would perform following checks.
- Run Query for 2006 - 2007 (Check and note down the value for 14/2007)
- Run Query for 2007 - 2008 (Check and note down the value for 14/2007).
MAKE SURE THAT YOU HAVE USED SAME SELECTION CRITERIA OTHER THAN YEAR.
Then check your cube data, put the same selection in the cube and check the data for the week 14/2007 and see which value of the above two noted value is correct.
You may also want to check if there is any other restriction based on year selection in the query. If any KFs are restricted by some more values based on the fiscalyear selection.
- Danny
Maybe you are looking for
-
When I try and open a project I started in CS2 and open it in CS3 it opens the project fine, but my Video and Audio tracks are gone and there is no way to add the Video and Audio tracks. Is there something I am doing wrong to make this work? Thanks
-
Outgoing Payment-Multiple a/c
Hi All, In SBO 2004 there is no option to pass outgoing payment into multiple a/c. I am trying to add new row in matrix.I could add new row in the matrix, but after selecting accounts from list, it shows only one row in that matrix. Code is given b
-
Dear All, Can you please explain me the importance of Project system in an ABAPer's perspective? In which phases of Project system, does an abaper come into picture? regards, Surya
-
Call / make a NACE-Message from an ABAP Program
Hi all, Does anyone knows how to call / make a NACE-Message from an ABAP Program? Is there a possibility to call a functionmodul with the needed basic informations (doc. number, sales-org etc.) which will start the NACE Message Procedure? Reason: We
-
Page not adjusting to browser size
I've had to edit this as my problem has slightly changed. The website I am working on is here Whenever I adjust the size of my browser window the content (the box in the middle) stays fixed and won't adjust to the broswer size. I know it's possible t