How to put year and month in a variable
I want to create a variable that just shows the current year (like 2010) and another variable that shows the month and year (December 2010). I have had no luck. I tried modifying the definition of unneeded system variables. That works, but it seems prone to "slippage": when importing variables from one doc to another, it's too easy to overwrite the customized system variables. Or maybe there's something in Frame that is resetting them to the default. Anyway, I'd prefer to create new variables to do this. Here's some of what I have tried:
Variable Definition How it shows in the doc
<$monthname> <$year> <$monthname<$year
<$monthname\> <$year\> (it showed nothing)
<$monthname>> <$year>> <$monthname<$year
I am using Frame 8.0p277, with Windows XP SP3.
Any advice will be appreciated.
I am using Framemaker 9, and I, too, tried to create a user variable that incorporated the system variables. It did not wo
rk. So, as Janice, suggested, I just modified an existing system variable to suit my purpose.
Similar Messages
-
How to calculate year and month
Dear Friends
I have to make a customised report.In this report there are different buckets of one year from the year and month being entered by the user.
For example if user is giving input value for year and month as 200912 then system has to show data in first bucket for the period 200912 to 200901.In the second bucket system will show data for period 200812 to 200801.In this way system has to show data in 11 buckets for 11 years.
Is there any function module/BAPI in SAP through which system will calculate period of one year for different buckets for my report from the input value(year and month) being given by the user.
Moderator message - Please see The specified item was not found. before posting - post locked and Points unassigned
Edited by: Rob Burbank on Jan 5, 2010 11:03 AMHi Satish,
You can do this with a Standard function module.
I am providing my code below :
data : G_date type sy-datum.
CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'
EXPORTING
DATE = sy-datum " instead of sy-datum provide
" the select option here which user provides.
DAYS = C_fourty"45
MONTHS = C_MM "00
SIGNUM = C_Negative "'-'
YEARS = C_YY "00
IMPORTING
CALC_DATE = G_date. "G_date will have date less than 45 days
* " from the day program has been executed.
Now based upon the G_DATE, we can fetch remaining 10 buckets.
Regards,
Kittu
Edited by: Rob Burbank on Jan 5, 2010 11:01 AM -
How to Get the numeric equivalent of Year and Month with this format....
Hi Experts!
I just would like to know how to get the numeric equivalent of the Year and Month if the given format is like this....
31-May-07
where:
31 is the Day
May is the Month
07 is the Year
Is there a function in ABAP to do this? I wouldn't mind hardcoding for the Month, but what I'm after is the year.... they only gave me 2 digits for the year... and I would like to extract 4 digits from it... do ABAP still recognize it as '1907'? I think not...
Please help me on this experts and Thank you in Advance!!!
More Power!Hi Jayson,
You can require 2007 or 2017 or 2027..
or 1937 . or 1947 .. so on,
so just put a logic based on this. Just hard code as
lets say value is 31-May-07 (9 char field)
Case field+7(1).
WHEn 0.
concatenate '200' field+8(1) into year.
WHEN 1.
WHEN 2.
WHEN 3.
jsut code like this and check the syntaxes.
Reward points if useful.
Regards,
Atish -
How to capture the presnt year and month .Urgent!!
Hi all,
I need to take the present year and month from the system and have to populate in drodownlists. can any one help me how to get these two seperatly and populate. xxxxxx (please read forum rules)
regards,
Sharan
Edited by: Armin Reichert on Jan 17, 2008 10:23 AMHi,
If you are using DropDownByKey UI elements:
1. Let's say the context attributes bound to the selectedKey property are called year and month respectively.
2. To populate year:
Date current = new Date(System.currentTimeMillis());
IWDAttributeInfo attinfo = wdContext.getNodeInfo().getAttribute(IContextElement.YEAR);
ISimpleTypeModifiable modinfo = attinfo.getModifiableSimpleType();
IModifiableSimpleValueSet valset = modinfo.getSVServices().getModifiableSimpleValueSet();
valset.put("currYear",String.valueOf(current.getYear));
3. You can do a similar thing for month.
Regards,
Satyajit. -
Hi
How can I add 2 new metadata-fields to every photo in iPhoto ?
The new fields should state the age of my kids in years and months based on the date that they were born and the date that photo is taken.
Exampel:
My son is born 01.01.2010
My daughter is born 01.01.2012
Photo taken by data
Aage of son
Aage of daughter
01.07.2011
1 year 6 month
not born yet
01.01.2014
4 year 0 month
2 year 0 month
I would like to be able to search by kids age and get the info displayed when doing slideshows.
How to do this in iPhoto ?
Any alternatives to accomplish the same ?
Kind regardsIt can't be done with iPhoto. There are some DAM (digital asset management) applications that can write to other IPTC fields that iPhoto can't read. One such app is Media Pro 1.
However you would have to calculate the age for each date and add it to one of the fields. There are online age calculators that can do that for you: Age Calculators
If you go thru that much trouble then use iPhoto, make the calculations and add the age to the Description field. Then you can use Smart Albums to search for 1year 6 month text.
OT -
the last few times I imported photos, the backup location was set to "documents" with no sub-folders. How do I get them into sub-folders - like year and month?
Use the Subfolder pulldown to set the subfolders:
-
Key Figure format in Years and Months..
Hi,
Is there any Key figure similar to 0SRVCLENKYF (Length of Service (in Years)) part of Headcount and Personnel Actions, which should give me value in Years and Months..?
Thanks in Advance,
Thanks,
Madhu.For curiousity sake...if you use the FIMA_DECIMAL_MONTHS_AND_YEARS Function Module, the output that you'll get is a months and years in fractional amounts. So, how are you going to get the Years and Months from this?
For example, if the from date is 20000101 and the to date is 20090914, the results from this Function Module will be Months = 116.42740 and Years = 9.70228. If you do use this, I'd suggest taking the whole number from passed value for years (9 in this example) and then calculate months by taking the franctional amount of the passed value for years and multiple it by 12 (0.70228 * 12), you end up with 9 Years, 8 Months (8.42736 to be exact, but you're going to want to truncate it to 8 so that when it goes above 8.5, the value doesn't become 9 when it still should be 8). -
Hi
I have created a report with two prompts, they are "Enter Start date:" and "Enter End date:" where i take date values from a calendar while prompting.
For example:
Start date = 10/11/2003
End date = 10/10/2003
If i want to display the End date means, i ll use UserResponse("Enter End Date:") in the webi reports. What should i do to calculate Year and Month from this user response value,
i used these calculations below, but it is not working, showing me #ERROR message.
1) ToDate(UserResponse("Enter End Date:");"dd/MM/yyyy") = #ERROR
2) FormatDate(ToDate(UserResponse("Enter End Date:");"dd/MM/yyyy");"dd/MM/yyyy") = #ERROR
3) Year(UserResponse("Enter End Date:") = The expression or sub-expression at position 6 in the 'Year' function uses an invalid data type. (WIS 10037)
4) FormatDate(ToDate(UserResponse("Enter End Date:");"dd/MM/yyyy hh:mm:ss A");"MM/dd/yyyy") =#ERROR
so help me how to get the year and month values from prompts ?
Thanks
Dineshkumarto get the Month Value and year value in Webi
month name
=Month(ToDate(UserResponse("Enter End Date:");""))
month number of the year
=MonthNumberOfYear(ToDate(UserResponse("Enter End Date:");""))
to get the Year Value
=Year(ToDate(UserResponse("Enter End Date:");""))
good luck -
T:inputCalendar year and month only
Hej there,
I'd like to use t:inputCalendar to allow the user only to choose a certain year and month, so not including the day.
I'm not sure if it's possible at all, but I started out using this:
<t:inputCalendar renderAsPopup="true" popupSelectMode="month" popupDateFormat="MM" />
So now the user has a button, but when s/he clicks on it, the full calendar is shown, including the days.
How do I get rid of that?
Thanks,
DavidWhen you are not really using date, you might as well think of a different solution altogether.
Probably you can have two separate drop-down lists for selecting the month and the year.
DavidTarr wrote:
Hej there,
I'd like to use t:inputCalendar to allow the user only to choose a certain year and month, so not including the day.
I'm not sure if it's possible at all, but I started out using this:It is possible to convert the pattern using convertDateTime. But this only converts the text field display.
<f:convertDateTime type="date" pattern="MM-yy"/>
<t:inputCalendar renderAsPopup="true" popupSelectMode="month" popupDateFormat="MM" />
So now the user has a button, but when s/he clicks on it, the full calendar is shown, including the days.
How do I get rid of that?I am not sure if you can get rid of that. Obviously, no body would expect to see a calendar without dates. It does not make much sense.
>
Thanks,
David -
Hi,
I'd like to get only year and month field. E.g. 201409.
Could you please let me know how to do it?
ddwrt:FormatDate(ddwrt:Today(),0804,1)
Thank you.Hi Denis - Can you use like:
formatted date "=TEXT(pickdate,"m") & "/" & YEAR(pickdate)"
http://weekbeforenext-blog.blogspot.in/2011/06/extracting-month-and-year-from-date-and.html
-prs -
Formula to go across years and months to find the value
Hello,
I am having difficulty writing a member formula where the rate is supposed to come from anyplace that's available prior to that month and year. This is for Re-forecasting purposes.
The example of how the concept should work is shown below. I have tried @priors, @shift, and @rangelastval. None of these calculations have been able to go through multiple years at the same time to get the rate from previous years and month. It works in the same year across the periods but not both periods and years.
Any idea what calculation function or a combination of calculation functions I can use so the calculated amount goes back as many years and months possible until it finds the rate.
Year
Periods
Rate
Amount
Calculated amount
FY15
Jan
0
100
0
FY15
Feb
0
100
0
FY15
Mar
0.4
100
40
FY15
Apr
0
100
40
FY15
May
0
100
40
FY15
Jun
0
100
40
FY15
Jul
0
100
40
FY15
Aug
0
100
40
FY15
Sep
0
100
40
FY15
Oct
0
100
40
FY15
Nov
0
100
40
FY15
Dec
0.3
100
30
FY16
Jan
0
100
30
FY16
Feb
0
100
30
FY16
Mar
0
100
30
FY16
Apr
0
100
30
FY16
May
0
100
30
FY16
Jun
0
100
30
FY16
Jul
0
100
30
FY16
Aug
0
100
30
FY16
Sep
0
100
30
FY16
Oct
0
100
30
FY16
Nov
0
100
30
FY16
Dec
0
100
30
FY17
Jan
0
100
30
FY17
Feb
0.5
100
50
FY17
Mar
0
100
50
FY17
Apr
0
100
50
FY17
May
0
100
50
FY17
Jun
0
100
50
FY17
Jul
0
100
50
FY17
Aug
0
100
50
FY17
Sep
0
100
50
FY17
Oct
0
100
50
FY17
Nov
0
100
50
FY17
Dec
0
100
50
FY18
Jan
0
100
50
FY18
Feb
0
100
50
FY18
Mar
0
100
50
FY18
Apr
0
100
50
FY18
May
0
100
50
FY18
Jun
0
100
50
FY18
Jul
0
100
50
FY18
Aug
0
100
50
FY18
Sep
0
100
50
FY18
Oct
0
100
50
FY18
Nov
0
100
50
FY18
Dec
0
100
50
FY19
Jan
0
100
50
FY19
Feb
0
100
50
FY19
Mar
0
100
50
FY19
Apr
0
100
50
FY19
May
0
100
50
FY19
Jun
0
100
50
FY19
Jul
0
100
50
FY19
Aug
0
100
50
FY19
Sep
0
100
50
FY19
Oct
0
100
50
FY19
Nov
0
100
50
FY19
Dec
0
100
50
FY20
Jan
0
100
50
FY20
Feb
0
100
50
FY20
Mar
0
100
50
FY20
Apr
0
100
50
FY20
May
0
100
50
FY20
Jun
0
100
50
FY20
Jul
0
100
50
FY20
Aug
0
100
50
FY20
Sep
0
100
50
FY20
Oct
0
100
50
FY20
Nov
0
100
50
FY20
Dec
0
100
50
FY21
Jan
0
100
50
FY21
Feb
0
100
50
FY21
Mar
0
100
50
FY21
Apr
0
100
50
FY21
May
0
100
50
FY21
Jun
0
100
50
FY21
Jul
0
100
50
FY21
Aug
0
100
50
FY21
Sep
0
100
50
FY21
Oct
0
100
50
FY21
Nov
0
100
50
FY21
Dec
0
100
50
Thanks in advance!ELSE
IF (@PRIORS(SKIPMISSING, RATE) == #Missing)
IF (@ISMBR(&FcstYear7))
"Amount"=Amount*@PRIORS(SKIPMISSING,"Rate",(&FcstStartMo:"Dec"->&FcstYear1, "Jan":"Dec"->&FcstYear2,"Jan":"Dec"->&FcstYear3,"Jan":"Dec"->&FcstYear4,"Jan":"Dec"->&FcstYear5,"Jan":"Dec"->&FcstYear6)));
similarly repeated for the years 6,5,4,3,2 but it gave the following error "Error: 1200400 Error executing formula for [Check_1] (line 9): scalar double argument expected in function [@_UMINUS]"
How can I use XRANGE in this because the function has the following limitation?
@XRANGE can be used only in these functions: @AVGRANGE, @SUMRANGE, @MINRANGE, @MINSRANGE, @MAXRANGE, @MAXSRANGE, @STDDEVRANGE, @MOVSUM, @MOVAVG, @MOVMIN, @MOVMAX, @MOVMED, @SPLINE. -
I want to have a field that will calculate out the years and months a person has been employed at my business. I know the calculations for getting the years is:
if (HasValue(dob)) then
var currDate_ = Date2Num(currDate.formattedValue, "MM/DD/YYYY")
var dob_ = Date2Num(dob.formattedValue, "MM/DD/YYYY")
var diff = currDate_ - dob_
$.rawValue = Floor(diff / 365.25)
else
$.rawValue = null
endif
I want to find it put out so it says 5 years 3 months if that is possible, or something close to that.var intYears = Floor(diff / 365.25)
var intMonths = Floor((diff - (intYears * 365.25)) / 30.4375)
var strOutput = Concat(intYears, " years, ", intMonths, " months")
xfa.host.messageBox(strOutput); -
Alpha numeric numer ranges for Shopping Cart based on year and month
Dear All,
My client requirement is that Shopping cart number should be generated based on year and month specific.
Though it is possible through smart numbering, it should generate automaticaly.
For eg:- Shopping cart generated for March 2011 should be 1103SC00001 to 1103SC99999
Shopping cart generated for June 2011 should be 1106SC00001 to 1106SC99999
Shopping cart generated for January 2012 should be 1201SC00001 to 1201SC99999
Is thera any badi available for this.
Regards,
Rajuwhy dont you add this to description field?
-
How to put headers and footers in web analysis
Hi All,
Can anyone of you please let me know how to put headers and footers in web analysis...
Thanks & Regards
Ambica AtluriHi Anu,
I have already gone through the document. In that i dint find anything related to headers and footers.Only thing that is available is sorting the dimension headers.
Please let me know if you have any other info regarding this.
Thanks & Regards
Ambica Atluri -
Hi,
I have a huge table and it will keep growing. I have a date column in this table and thought of partition the table by year and month. Can any you suggest better approach so that partition will create automatically for new data also along with the existing
data? Nothing but automatically/dynamically partition should create along with file group and partition files.
Thanks in advance!
Palash Also this one
http://weblogs.sqlteam.com/dang/archive/2008/08/30/Sliding-Window-Table-Partitioning.aspx
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence
Maybe you are looking for
-
Calling RFC-enabled function as web service using XI 3.0
Hi, I have a problem when trying to use web services (sending a soap-req. to XI 3.0 based on the generated WSDL from Integration Directory). According to the message monitoring, all steps in the central pipeline executes just fine until the last step
-
Domain Created: Failed Restarting Managed Servers in a cluster
Hi, I tried creating a new domain from my local pc - by using the configuration wizard provided by weblogic.. the configuration used is like this - Admin Server - adminServer - 1.1.1.19 - on port 7001 Managed servers - machines:ip's - port 1. mgndSer
-
Adding a Tab in a PM notification
Experts, How do I go about adding a tab in a PM notification? I have a requirement of adding a 'causes' tab for capturing of the object part, damage etc. and also for entering user defined codes for capturing an RCA in SAP. see screen below
-
Please tell me the System Requirement for developing Iphone,Ipad,Ipod Apps ?
Hi All, can anyone please tell me the system requirement for developing Iphone, Ipad, Ipod applications. Thanks in advance :-)
-
Issue: workitem getting forwarded to all users sap inbox
hiiii sap gurus i have created workflow for PO RELEASE using the sap Standard workflow given, my problem is that the workitem is getting forwaded to all users. i have used custom Rule for agent determination and made the task as general task. Is thi