Get Current year in Query Designer
Dear all
I don't know how to determine current year in Query Designer.
I have a report, i want to see some indexs in bance sheet and income statement in current year and previous year. but, I can only assign with the fixed year (ex, 2010), this is not flexible. I want to get current year on system and calculate previous year.
Please help me solve this problem
Thanks
Hi,
You can use the SAP Exit variable 0CALYEAR for current year. For Previous year you can offset this by -1.
You can refer this link for more Information,
http://help.sap.com/saphelp_bw33/helpdata/en/3f/89533e5ff4d064e10000000a114084/content.htm
Regards,
Hari.
Edited by: Hari Krishnan K on Jul 20, 2010 10:36 AM
Similar Messages
-
Convert date to week of the year in Query designer
Hi,
I have a requirement to convert date ( a characteristic in the query) to week of the year. For eg. if the date is 01/11/2008 then the week to be displayed is 2008/44.
Please not that the week is not populated in the Infocube of the same. So i need to convert it in the query designer only.
Please suggest if you have ideas.
Regards
SapnaHi,
I am trying to get the data by using a virtual characteristic. The problem is i am not able to debug METHOD : IF_EX_RSR_OLAP_BADI~COMPUTE. Can u please help me to reach the breakpoint within this.
Done....
Sapna
Edited by: Sapna Jaiswal on Dec 2, 2008 11:21 AM -
Master data is not getting displayed in the Query Designer
Hi,
I have a DSO in which I have an InfoObject called Emp No. in the Data Field.
The Emp.No is being maintained as master with (Emp Name, Address, Telephone No, DOB) as attributes.
I have loaded the data in the Emp. No. master. Then tried loading the transaction data in DSO.
The Emp.No is there in the DSO active data, but in the query designer its not getting displayed.
Hope its clear.
Please help.
ThanksHi,
I have brought the Emp. No. in the Key Field and also have activate the master data again.
Yet my Query Designer doesn't have the Emp. No.
I have done a full load for both Master and Transaction.
Please advice me what the other alternative.
Thanks -
How to get grand total in query designer
Hi,
Antbody know how to get the grand total after the last row in query designer? I
ThanksHi,
If we select the very first Characterstic in the rows section and set the Supress result rows as "never".
That will show the overall result in the end of the report,
In the query properties tab ,check for display properties of the result.That should be set to bottom.
Hope this will work.
Thanks
Mukesh -
Fiscal Year Period - Query Designer - Characteristics Value
Hi Experts,
In query designer, characteristics value for 0FISCPER by default shows value of fiscal year variant V9. But for Fiscal year variant V9, 002.2014 is November 2013.
Now user want to display the correct period and its description (002.2014 is February 2014) which implies need to use different variant. Please let me how this can be changed.
Regards
Suresh KumarHi Suresh,
Try this
Path: Financial Accounting >> Financial Accounting Global settings >> Fiscal Year >> maintain Fiscal year variant (maintain shortened fiscal year)
Transaction Code: OB29
Regards,
Amit -
Dear Friends
I am writing a fast formula for medical reimbursement.
My fiscal year start will be 01-mar every year and end date will be 30apr every year.
Every year I need the current start date and end date like Accruals.
Can anyone please suggest me how to get this input.
Expecting your reply.
Thanks
SyedYou will need something like this to achieve the objective
Copying from pay_in_tax_utils.get_financial_year_start
<div>
if to_number(to_char(p_date,'MM')) >=4 then
l_year := to_char(p_date,'YYYY');
pay_in_utils.set_location(g_debug,l_procedure,20);
else
l_year := to_number(to_char(p_date,'YYYY')) -1 ;
pay_in_utils.set_location(g_debug,l_procedure,30);
end if ;
pay_in_utils.set_location(g_debug,'Leaving: '||l_procedure,40);
return (to_date('01-04-'||l_year,'DD-MM-YYYY'));
</div> -
In formula column - I am getting current year - but get numeric value error
Hello
I defined a formula column as folllows:
function CF_1Formula return char is
thisyear char;
begin
select to_char(sysdate,'YYYY')
into thisyear
from dual;
return thisyear;
end;
I get - Fatal Pl/Sql error. numeric or value error. What am I doing wrong here?Or replace the whole thing with
RETURN to_char(sysdate,'YYYY');
saving a pointless round trip to the database. -
I have a characterstic 'Deadline Date'. I have to calculate a formula 'Days Left' which is equal to
Deadline Date - System Current Date.
How can i do that in query designer?? How can i get system date in query designer??
Regards,
Aisha Ishrat
ICI Pakistan Ltd.Hi Philip,
Actually I needed the output on VC. so i simply created a date type variable and in VC , i mapped that variable to Now().
Regards,
Aisha Ishrat
ICI Pakistan Ltd. -
BEx Broadcasting in portal PDF format thrugh Query designer
hi,
i have a problem in sending a query as a mail using broadcaster in pdf format through portal
The steps to reproduce:
from Query designer executing a query , it takes me to portal screen, there right click on the report and Broadcast and Export->Broadcast Email..Then a new window opens with BEx broad caster.From that if i select the Tab Information Broadcasting, there is a Description :No BW object selected, select a template ,Query or a workbook. " If i open Setting Web Template Tab: and if i select from HIstory 0BROADCAST_TEMPLATE70 or Stanard Web Template for Broadcasting>Transfer-->then i am getting the new window as Distribution Type: 1.Broadcast Emai 2. Broadcast to portal.. , And Output type1.MHTML 2.HTML 3. Online Link to Current Data.
But i am not getting Output Format "PDF",
guide me what to do to get the PDF option as OutputFormat.
where i am getting these options in Query designer itself Query-->Publish. but not in portal when calling portal through query designer by executing a query..
Thanks in advanceHi,
Think these below links will help you.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/8053f46f-0701-0010-a697-9b33f8b7d2f5
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b03ff263-1e5d-2a10-0d89-a1d4424b101b
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40d5d4dd-5d55-2a10-0cac-8639377bd5b7
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/664db870-0701-0010-ed92-daa4ea9fde8d
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/296edc90-0201-0010-7982-c6dc0b288296
/people/sap.user72/blog/2005/12/23/summary-of-new-features-for-information-broadcasting-in-sap-netweaver-2004s
/people/community.user/blog/2006/12/28/exception-broadcasting-in-sap-netweaver-2004s
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0bfcac90-0201-0010-52a3-d5b270b86ef3
Kind Regards,
Shanbagavalli.S -
CURRENT YEAR PREVIOUS TWO MONTHS SALES+MDX
QUERY TO GET CURRENT YEAR LAST TWO MONTH SALES DYNAMICALLY IN MDX
assuming you are looking for data with the latest two months and taking adventure works DW 2008 as sample DB
try this
select [Measures].[Internet Sales Amount]
on 0,
{Tail(nonempty(descendants([Date].[Calendar].[Calendar
Year],[Date].[Month of Year]))).item(0),
Tail(nonempty(descendants([Date].[Calendar].[Calendar
Year],[Date].[Month of Year]))).item(0).prevmember}
on 1
from [Adventure Works] -
Pay_us_wages_w2_v is not picking current year data?
Hi,
pay_us_wages_w2_v tabe is not getting current year data, only is getting previous year data.
Like
SELECT sum(w2_wages_tips_compensation)
FROM pay_us_wages_w2_v puw
WHERE puw.assignment_id = 40291--:assignment_id1
AND
puw.year
= '2013'--TO_CHAR(:P_PAY_DATE_END,'RRRR');
Please let me know , if any body idea?. We have to run any Program?
Thanks,
RamuAt first I was not happy. I didnt understand how it worked. I wanted to keep my unlimited. It may not work out for everyone but it does for me. I have two accounts. one has 5 lines and the other has two. I pay 150 for two lines on one account. I have the 30 dllr 2 gig package. Then I have a dumb phone for the second line. My other account I have 5 smartphones. I pay around 350 for that account.
Now with the new plans I can combine BOTH accounts into one and make one BIG family plan. All the users in my account do not go over 2 gigs except one but he never goes over 5. Ill get a big data package and save some money. On top of that its UNLIMITED minutes and text which is what we use it for. Ill be paying around 350ish with a big data package..
That is 150 dllrs in savings!! Now since I can add usage controls I can control how much data that one person uses.
Not sure about you guys but to me this is #winning status! -
Ad-hoc Query & Ad-hoc Query Designer
Hi Experts,
Please present some information about following question:
1) Ad-hoc Query and Ad-hoc Query Designer.
2) Under which senario we go for Ad-hoc Query instead of normal query.
3) How it will be effective in reporting.
4) How to get into Ad-hoc Query Designer, coz i couldn't find anything in the Bex
points vl be rewarded.thank you.
Regards,
Vasanth.DHi,
Check out the following link:
http://help.sap.com/saphelp_nw70/helpdata/en/08/965b423be8de54e10000000a155106/frameset.htm
Regards,
Kishore -
How to get rowcount in a query which is built on Infocube
Hi,
I would like to show rowcount for a report which is built on Infocube.
If i have a query on DSO, i would get Rowcount in the query designer but how can we get this same Rowcount if i create a query on Infocube.
Thanks in advanceIf you want to just know the number of records without the need to offer this to users in a query, then use transaction LISTCUBE.
Make you "Field Selection for Output" via the button to tick the characteristics by which you want to count the number of entries and tick the box "Output number of hits" in the settings section of the selection screen, clear the "Max number of hits" field to make sure you get all rows in your result. On the result list the field counter shows the number of entries.
Best,
Ralf -
Current Year variable for 0CALDAY
Hi Gurus,
Instead of creating customer exit for Calendar day to get current Year do we have any standard variable to get the current Year if user inputs Calendar Day.
Thanks
Ganesh Reddy.
Edited by: Ganesh Reddy on Oct 17, 2010 9:04 PMHello,
Following link contains some SAP BI Content variables
http://www.sapks.com/2010/06/business-content-delivered-variables-in.html
0CYEAR is variable which contains current year
Regards,
Sharayu
Edited by: Sharayu Kumatkar on Oct 18, 2010 12:52 PM -
Current year Previous Year in Query
Hi,
I have to get the results of current year 12 months( 12 columns) previous year 12 month( 12 columns) in one report.
Once the user gives the current year , how to automatically populate the previous year. The PY varaint can be used for all months of previous year.
Any thoughts on this, please let me know.As venkat said , using offset is the best option, rather than jumping directly to custom exit variable.
for e.g.
you report display is
net qty.............net qty
current year...... previous year........
bil1
bil2
so u intend to see the net quantity for current year and previous year.
Bring net qty... in Columns in query designer.
Now right click and hit Edit
Now bring in time chara. that u wish to use and want to create variable for.................
for e.g. say fiscal period....
Now hit fiscal period with right click andhit Restrict.
Go for Interval variable if already exist or else create a new one.
hit okey..
now in query designer in columns copy ur net quantity
now paste there again.
in Second net quantity u can hit edit.
now where fiscal period is there hit restrict
in dialog box hit Select offset.
As ur intention is for previous year, keep the offset value as -12
also restrict fiscal year variant in selection.....
hit okey
test it...
if this doesnot work
then go for custom exit....
Maybe you are looking for
-
HT1364 can you move an itunes library from pc to mac?
Hi everyone, The days of my laptop are nearing the end and I'm strongly leaning towards purchasing a macbook. Can you transfer your media library from pc to mac? Can you export a copy your library onto an external drive as I don't know how much longe
-
I am trying to restore some elements of my iPhoto library using time machine. Apple instructions call for locating the file where iPhoto library is kept, and tells you where it is on your hard drive. But I've recently moved my iPhoto library to a ded
-
EO_INBOUND_PARALLEL - equally distribute the load
we have used EO_INBOUND_PARALLEL to increase the number of parallel processes at a single time, but when the processing started we did not see the load is equally distributed among all the Qs, few Qs are loaded more and few are less. Is there any oth
-
Problem of X200 with 15 feet USB cable
Hi, I have a X200 with the ultrabase and I used to use a 6 feet USB cable connect to a HP Laserjet P2015N printer but now when I use the 15 feet USB cable and the system says USB device not recognized. and I can use the 15 feet cable to connect to a
-
Filter or Collection for Metadata State
When trying to save metadata, LR sometimes reports a conflict about a file having been changed by another program or other error. It is almost impossible to track down those conflicts as the only indicator of which images have the problem is the smal