Offset variable to restrict by last 4 quarters on multiprovider (0FIAR_O03)
I have a requirement where I have to show debit/credit amount for last four quarters. The data granularity is at doc date, posting date level. The time chars in the multiprovider (built on 0FIAR_O03 and 0FIAR_O06) are fiscal year, fiscal year variant, fiscla year/period.
I plan to use offset variables to get the four quarters data, but I do not know what time char I should use to restrict the debit/credit amount on to get the quarters data. With the available time chars is it possible to do this?
Any help is greatly appreciated.
Thanks,
Vijayini
Hi,
Create a Structure in the Columns area.
Create a new selection(one for each quarter) with the following.
1. Debit/Credit Amount
2. Fiscal period/yr - restrict on customer exit variable which returns the last quarter.
Create the second selection with the following.
1. Debit/Credit Amount
2. Fiscal period/yr - restrict on customer exit variable which returns the last quarter and set offset value as -1.
Repeat the same for other quarters. Hope this helps.
Regards,
Suzitha.
Similar Messages
-
How to display only four last quarters
Happy New Year to all of you!
I have a data-set with two variable: Fiscal Year (FY 2011, FY 2012, ...) and Fiscal Quarter (Q1, Q2, Q3, Q4).
This data-set will be updated every quarter, and I want to make a table only display the four last quarters to use in the dashboard.
Is there any way to do that?
Thank you very much,
Best regards,
HByou could create a flag in your time-dimension like "WithinLast4Quarters"
then you use this Flag and filter on WithinLast4Quarters=True in your PivotTable or Report
hth,
gerhard
Gerhard Brueckl
blogging @ http://blog.gbrueckl.at
working @ http://www.pmOne.com -
Hi everybody,
Can anyone tell about how to create offset variable for sales (steps)?
Thanks,
SwethaHi,
you can achieve this by 0Calmonth info object... but if you want to create variable with offset then steps are:-
-->Right click on Key Fig.
>Edit>Drag Date Info object
-->Right Click on that and Restrict
-->in Show Select Variable
-->Click on Create New Variable
-->Enter Tech name and Description
-->in Details, select Single and mandatory
-->Select Value Ranges in stead of Variable
-->Select that variable in as lower and upper limit
>transfer it (>)
-->right click on that and select Set Offset for Variable
-->it will prompt two time one for lower and another upper.
Best Regards
Obaid -
How to Get Value from a Variable to restrict a Key Figure ?
I am trying to make a query in Query designer, we are running BI7.
I have a user entry veriable on the Fiscal year period, the user will need to enter a period they want the report for, i.e. 07.2008 for July 2008 report and 04.2008 for April 2008 report.
Based on what the user entered as the starting period (in the variable entry), I have to then use that initial value and show the Year to date value (of sales etc) in the next column.
To Clarify, if user entered 07.2008 then all the data from 01.2008 to 07.2008 needs to be in the next column. if user entered 04.2008 then all the data from 01.2008 to 04.2008 should be in the next column.
So to summarise according to my understanding, I want to get the value from a variable and pass it onto another variable to restrict a key firgure (sales amount)...
Can someone please clarify what i need to do here?
Many thanks in advance, points will be awarded accordingly.hi,
please follow the below steps:
1. Create a new varialbe , this variable should be processed by customer exit.
2. In the column section, create a new column and drag the sales key figure, also drag fiscal year period and restrict with the new variable.
3. In the cmod tcode write a customer exit code to extract the value of the user entry and assign it your variable, you can refer to the below code.
WHEN '< New VAR name>'.
IF I_STEP = '2'. "AFTER THE POPUP
LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
WHERE VNAM = '<Fiscal Year Period VAR Name>'.
CLEAR L_S_RANGE.
L_S_RANGE-LOW = LOC_VAR_RANGE-LOW(4).
L_S_RANGE-LOW+4(3) = '001'.
L_S_RANGE-HIGH = LOC_VAR_RANGE-LOW. "LOW E.G. 2001006
L_S_RANGE-SIGN = 'I'.
L_S_RANGE-OPT = 'BT'.
APPEND L_S_RANGE TO E_T_RANGE.
EXIT.
ENDLOOP.
ENDIF.
For ex- if the user enters 008/2008, this code will create as range assign 001/2008 - 008/2008 value to the variable.
hope it helps,
rgs,
Parth. -
How to restrict the last record and not moving to next reocrd
1) how to restrict the last record and not moving to next reocrd.
2) Also for the F6 key(for new record).When you are on the last record, next-record will create a new one, so that my question is do you want to forbid new record creation.
Francois -
Year Change by the offset variable
Hi,
I'm using a offset variable, does the offset variable take care of the year change. For example if have a calweek 200804 and if i use a variable offset of -10, does the offset take care of the calweeks in 2007.
Thank You!
AMHi Mayank,
Thank You for the reply. I haven't yet executed the query. I will post once i execute the query.
Thank You!
AM -
How to update bind variable and restrict values in a Model Driven LOV?
Hi Guys,
Using JDev 11.1.1.2.0
I've recreated an excellent Frank Nimphius article about restricting values derived from a model driven LOV (http://www.oracle.com/technetwork/developer-tools/adf/learnmore/44-restrict-lov-169186.pdf)
But my bind variable isn't updating. Deleting the bind variable gets me the entire LOV. Activate the code below and insert a bind variable into the where clause like Frank says and I get nothing back. Bind variable is blank. Any ideas? Code wasn't supplied with the article. It seems simple enough but the bind variable isn't updating in the SQL, even though the updated value shows up here...
public void onLovLaunch(LaunchPopupEvent launchPopupEvent)
BindingContext bctx = BindingContext.getCurrent();
BindingContainer bindings = bctx.getCurrentBindingsEntry();
FacesCtrlLOVBinding lov = (FacesCtrlLOVBinding)bindings.get("DepartmentId");
lov.getListIterBinding().getViewObject().setNamedWhereClauseParam("deptId","60");
System.out.println("lov name: " + lov.getName().toString());
System.out.println("lov Param Attrs: " + lov.getListIterBinding().getViewObject().getNamedWhereClauseParams().getAttribute("deptId").toString());
System.out.println("lov View Object: " + lov.getListIterBinding().getViewObject().getName().toString());
System.out.println("lov IterBinding: " + lov.getListIterBinding().getName().toString());
}Gets me ...
lov name: DepartmentId
lov Param Attrs: 60
lov View Object: _LOCAL_VIEW_USAGE_lov_model_queries_EmployeesView_DepartmentsView
lov IterBinding: DepartmentIdList_2That's a good idea, but it's still not working. Here is how I implemented it. It might be different from your suggestion as I'm still pretty new to this.
I have a recursive tree table. You select a node. You then click a button which calls the listener below. "findParents" is a method call to the AppModuleImpl class and it finds all parent nodes of your selection. "restrictPartBomLOV", also of the AppModuleImpl class, then modifies the model driven lists' View Object (partBomLOV) to exclude those parent node values.
The resulting model driven LOV on the popup should be updated, yeah? But it still isn't udpating. If I manually type in the updated Where clause in PartBomLOV.xml query tab, it works, but it doesn't programmatically.
public void insertPopupFetchListener(PopupFetchEvent popupFetchEvent)
BindingContainer bindings = getBindings();
OperationBinding operationBinding = bindings.getOperationBinding("findParents");
parents = (List)operationBinding.execute();
operationBinding = bindings.getOperationBinding("restrictPartBomLOV");
operationBinding.execute();
public void restrictPartBomLOV(List parents)
ViewObjectImpl vo = getPartBomLOV();
String wcl = "";
Object[] p = parents.toArray();
for(int i = 0; i < p.length; i++)
if (i == 0)
wcl = wcl + "PNUM <> '" + p.toString() + "'";
else
wcl = wcl + "AND PNUM <> '" + p[i].toString() + "'";
vo.setWhereClause(wcl);
System.out.println(vo.getWhereClause().toString());
vo.executeQuery();
Edited by: LovettWB on Nov 11, 2010 11:23 PM -
One Variable 2 Restricted key figures on 2 different Dimensions
Hi all,
Here is my problem:
I have a cube based on SD sales items. I want to calculate 2 retricted key figures on the 0net_value retricted by a date.
The first key would be restricted by the installation date, and the second one by the cancellation date.
Those two dates are set using a user input.
When I try to do this here the error message I get:
"Variable ZD_CSDATE is used in both (structure) element EL099Z0TL38F14TMC6AL7XKQD, and element EN4ZFAZEYGZ36B06JU04297W5 for various characteristics (0CANC_DATE, 0UCINSTDATE). This is not permitted as the characteristic is required for the F4 value help structure."
I created 2 variables set by customer exit, this solve the problem but is not convenient at all. So who could use one and only one variable or how can create a variable by copy of another one?
Thanks
Matthieu<FONT FACE = "Tahoma", Font Color = "Blue">
Hi
<Br>
I am sure you can make more than one Restricted Key Figures which are restricted to same variable value for some Characteristic. And secondly there is no easy copy and paste option to create 2 Customer Exit Variables. You need to find out the ABAP Code written using T-Code: CMODE for the Variable Exit and there you can copy and paste a part of this code to populate new variable. If you check the ABAP Code, you would understand what I am saying.<Br>
I am more surprised at that F4 Help in the error message. Please investigate more in that direction.
<Br><Br>Hope it helps.
<Br>
Cheers
Abhijit
<Br>* It's a good habit to reward someone with points in SDN if you think his/her
response was helpful to you
</FONT> -
How to Create a Selection Variable for restricting the querry output
Hi Gurus,
I have created a query in query designer on a Multiprovider and the output of the query is a Formula in a structure which calculates a % value, the client is looking for entering a range of number during the query selection screen and the output should be restricted to the given selection values.
Can any one tell me how i should create a selection variable that would take the input from the user during the query selection screen and then restrict the output to that value which user specified.
Is there a need to write any customer exit or is there any alternative way to make the query work as the requirement is.
I hope this explains my problem but if any questions please let me know so that i can give u specific information.
Thanks,
Nisha.Hi Nisha,
Firstly, in order to restrict the query output by a key figure value, you will need to create a condition on that key figure. This is done in the query deisgner. Now when you are creating the condition you can also use user entry variables (formula variables with user entry) to let the users enter the value that they want to see.
See here for more details:
http://help.sap.com/saphelp_nw04/helpdata/en/73/702e39074dc93de10000000a114084/content.htm
Hope this helps... -
Variable Exit for Displaying last transaction or opening bal
Dear Experts,
material year period amt qty
abc 2008 01 4545 878
abc 2008 03 5255 900
def 2008 02 4333 1212
def 2008 05 4551 1555
like wise data is stored in infocube , i am going to create a query based on the infocube . In query i define a variable for period and year respectively .if i give the input of period as 02 and year 2008 for the opening stock should get displayed as
abc 2008 01 4545 878
def 2008 02 4333 1212
if i give input of period as 10 and year as 2008 i should get the values as
abc 2008 03 5255 900
def 2008 05 4551 1555
and also pls let me know how and where to write the variable exit
PS: This is Go Live Critical
Thanks and regards,
rajHi Frank.
Im sure its possible to find the date last year, but it will involve some programming and thinking about time/dates etc, unless you can do a lookup in the factorycalendar or "normal" calendar, stored in the system AND having the number of day info.
But you want to do this on the fly, in the report? I think performance might take a hit...
regards
jacob
Edited by: Jacob Jansen on Oct 8, 2009 8:53 PM
Edited by: Jacob Jansen on Oct 8, 2009 8:54 PM -
Need help for report Variable to restrict the key figure value...
Hai gurus,
Now i have data in the cube as follows...
Reuisition HR INTW date LM INTW DATE TEL INTW DATE HR Count LM Count TEL Count
a1 01.01.2010 02.01.2010 01.04.2010 1 1 1
a2 02.02.2010 03.02.2010 02.02.2010 1 1 1
a3 03.03.2010 04.03.2010 03.03.2010 1 1 1
when i execute the report it shd ask the prompts with Date interval as in the below...
HR INTW date
LM INTW DATE
TEL INTW DATE
if i dont give any interval in the variable prompt it should display all the recors as follows
Reuisition HR Count LM Count TEL Count
a1 1 1 1
a2 1 1 1
a3 1 1 1
If i give LM INTW DATE interval as 01.01.2010 to 31.02.2010
then it should display all the other counts as in the output_1 , but for LM count for a3 it should show 0.
Reuisition HR Count LM Count TEL Count
a1 1 1 1
a2 1 1 1
a3 1 0 1
that means wherever i restrict the data depending on the variable that only that interval key figure value shd be in the report..
for this scenario, which variable i need to use... and how i need to restict the KFig value in the report...
Right now i am getting like this but it is restricting the records,,, where it should not restrict the records...in the report..
Please guide me for the same...
If any concerns about the scenario please let me know...
Regards,
VJhi chowdary ,
could you tell me the var. creation in detail and with which reference object i need to create ...
whether i need to take LM_DATE / 0DATE while creating variable...
and i kept this variables it in filter section, based on the LM_DATE Object.
i have tried both.. y'day when i take 0DATE it giving me some results...
But at the same time it is restricting the records..
i think it could be a problem with var.. properties?
need more inputs pls.
Regards,
VJ -
Reports - Variable Selection, Restriction Issue
Hi Experts,
I have an object (Region) in the variable selection screen, which is displaying South, East, North, West and some more junk value.
I want to have only South, East, North and West on the Variable screen of the Analyzer.
I have right clicked the Region Char. Variable on the Filter Section and have selected only South, East, North, West.
But when I try to select the region on the Analyzer. I'm getting all the values including the junk values.
Can anyone tell me how do I have only these 4 regions nothing apart from that.
ThanksHi All,
The data I'm getting is from the Data Provider.
But I want to restrict only 2 Zones like South and North in the Variable Selection Screen.
When I try to restrict it at Filter Pane ->select infoobject ->selection variable->right click it restrict.
Both the Zones are correctly being set on the restriction but when I try to execute it in Analyzer its not displaying me only those zone but all the values.
Hope its clear. Please reply.
Thanks -
Hi
I have a doubt and need to know if the offset functionality (replacement path) for variables (start and length) could be used?
I have the following business requirement:
There are two selection variables on the initial selection screen for a report. The first selection variable is planning year and the second selection variable is fiscal year. The values that can be shown in fiscal year variable dropdown depends on the value selected for plan year by the user.
For example, if the user selects 2007 for the plan year variable then the drop down for fiscal year should show only five years from 2007 i.e. 2007,2008,2009,2010,2011.
If the user selects plan year = 2010 then fiscal year dropdown should show only values from 2010 to 2014 i.e. 5 years from 2010.
Can offset functionality on variables (found in replacement path option) be used in this situation? I am doing the following things:
<b>Variable name for plan year:</b> ZPLANYR
<b>Variable name for Fiscal Year:</b> ZFISCYR
When creating the variable ZFISCYR I define the following properties for the variable:
<b>Processing by:</b> Replacement path
<b>Replace Variable from variable:</b> ZPLANYR
<b>Replace varibale with:</b> Key
<b>Offet:</b> 0 (so that it starts with the same year as plan year)
<b>Length:</b> 5 (and this would give the required 5 years from plan year)
<b>I have the option "Use for Intervals" <u>disabled</u>.</b>
Please comment.
Thanks,
Ameya KulkarniReposting the question for any suggestions.
Thanks,
Ameya Kulkarni -
Variable Vlaue restriction in a query
Hi,
I have an order type variable (0COORD_TYPE) as a part slection criteria in the query .
The Requirement is
I want to have the variable for order type have a default that excludes the certain order types ,BUT the user can change to include if they want.
I want to to exculde all the order types starting with J or A , cannot use the exclude statement as it impacts the perfomance of the query .
Please prvovide a detailed solution .
Your time & efforts are greatly appreciated .
Thank YouHi,
You can create two variables on order type. One is User Entry and the other one is Customer Exit. You have to read your user entry in customer exit variable and if there are entries you can pass those entries as filter. Suppose User doesn't enter any entries you can pass the default entries to be included in query.
Regards
Githen -
Query with variable and restriction
Dear All
I want obtain limited list.
Example,when I use in query
set @DataFrom = (select min(T3.TaxDate) from dbo.OJDT T3 where T3.TaxDate >= '[%2]')
I can choose data from firt to last Journal Entry.
What can I do when I what show data only from 2009 year?
Thanks in advance
TomHello
I am suggest to use FInancial Period from / To instead of booking dates, if it is possible. I mean if you need month end closing dates, it would work fine.
If you need dates, why are you using list, not dates as parameters?
Regards
János
Maybe you are looking for
-
TS1591 If I am unable to restore my IPad, what next?
The battery on my IPad dropped quickly to 1% from 5% AFTER I had put it on charge - it then flicked betwen my password screen and the Apple logo. I left it overnight and by morning I had the 'connect to ITunes to restore' symbols and message - I con
-
Illustrator CS5 drop shadow - blur not rendering correctly
I just got a new computer and have installed Illustrator on it. This is my first time using the program on this computer. I created this file on my old computer in Illustrator. When opening it today, in the newly installed version of CS5, the drop
-
How can i us the parallel port of the printer to control a frequenz-generator?
Hello all ! I like to control with LabVIEW 8 student-version, the Frequenz-generator gadget . For this challenge i like to us the parallel port of the printer. I need for data flow only 2 cable. The frequenz-generator gadget need two signal : Low an
-
How to make a key field manadatory, in a Z-Table (SE11)
Hi, I've created a Z-table is se11 and one of the key fields is IWERK. Now the user does not want this field to be blank when they enter data into the table via SM30. Does anyone know how to make this field so that a blank entry is not acceptable. Ma
-
I used to print things out from classic but somehow I can't print anymore. It tell me to go to chooser and choose the printer but I can't choose it. I tried to click on HP printer but no reponse. I tried to reinstall but no use. That reinstalling see