Display difference of a Date field and today's date in the query
hi experts,
I have a query which has a date field called 'Effective Date.'
I just need to a add a column in the query that shows me the diffenrence between 'Effective Date' and the date the query is run (key date).
Do i need a custom exit to accomplish this?
The new column can either display the number days elapsed from 'Effective Date' to the key date or it can also display Number of Years/ Months / days.
Any ideas?
Thanks,
Check this if it helps:
http://www.sd-solutions.com/documents/SDS_BW_Replacement%20Path%20Variables.html
Similar Messages
-
Extract Year (only) from Date Field and Display in Text Field
I need to extract the year from a user entered date field and display the year in a text field. Can someone help me with the correct script to do this?
Hi,
that's quite easy to realize with FormCalc.
In you date fields exit event add the following code:
textField1 = Num2Date( Date2Num($.formattedValue, "MM/DD/YYYY"), "YYYY")
Note: This sample assumes that your date field formats the date with "MM/DD/YYYY". You may have to change the pattern to make it work at your end. -
DATE fields and LOG files in context with external tables
I am facing two problems when dealing with the external tables feature in Oracle 9i.
I created an External Table with some fileds with the DATE data type . There were no issues during the creation part. But when i query the table, the DATE fields are not properly selected though the data is there in the files. Is there any ideas to deal with this ?
My next question is regarding the log files. The contents in the log file seems to be growing when querying the external tables. Is there a way to control this behaviour?
Suggestions / Advices on the above two issues are welcome.
Thanks
LakshminarayananHi
If you have date datatypes than:
select
greatest(TABCASER1.CASERRECIEVEDDATE, EVCASERS.FINALEVDATES, EVCASERS.PUBLICATIONDATE, EVCASERS.PUBLICATIONDATE, TABCASER.COMPAREACCEPDATE)
from TABCASER, TABCASER1, EVCASERS
where ...-- join and other conditions
1. greatest is good enough
2. to_date creates date dataype from string with the format of format string ('mm/dd/yyyy')
3. decode(a, b, c, d) is a function: if a = b than return c else d. NULL means that there is no data in the cell of the table.
6. to format the date for display use to_char function with format modell as in the to_date function.
Ott Karesz
http://www.trendo-kft.hu -
Date fields and compare and get the later date of the fields
I am trying to compare these date fields and compare and get the later date of the fields
Tables are
TABCASER
TABCASER1
EVCASERS
Field
Are
TABCASER1.CASER_no
The dates are to be compared and then get the records with the highest or latest date value.
TABCASER1.CASERRECIEVEDDATE
EVCASERS.FINALEVDATES
EVCASERS.PUBLICATIONDATE
EVCASERS.PUBLICATIONDATE
TABCASER.COMPAREACCEPDATE
I have this code but I am trying to figure out what it all means.
I have several questions.
1.
1. greatest it is used here to compare right? How do I then output this ? do I store it to a var (coldfusion) ultimately , I wish to send it to a page of records
2. is it necessary to use todate? And to_date? What does this do?
3. decode, is this necessary too. What does this do? NULL?
4.
5.
6. when I do get the query results how do I send it to coldsuion and out put to a display.
Someone sent me this code.
is there abetter way of doing this? To compare the dates and store in a var to display. thanks
Here is my code below:
Greatest(
CASE
WHEN INSTR(TABCASER1.CASER_no,'-CE') > 0 THEN
decode(TABCASER1.CASERRECIEVEDDATE,NULL,TO_DATE('01/01/1900','mm/dd/yyyy'),TABCASER1.CASERRECIEVEDDATE)
WHEN INSTR(TABCASER1.CASER_no,'-ERNIE') > 0 THEN
decode(EVCASERS.FINALEVDATES,NULL,TO_DATE('01/01/1900','mm/dd/yyyy'),EVCASERS.FINALEVDATES)
WHEN INSTR(TABCASER1.CASER_no,'-MONIE') > 0 THEN
decode(EVCASERS.PUBLICATIONDATE,NULL,TO_DATE('01/01/1900','mm/dd/yyyy'),EVCASERS.PUBLICATIONDATE)
WHEN INSTR(TABCASER1.CASER_no,'-NADINE') > 0 THEN
decode(EVCASERS.PUBLICATIONDATE,NULL,TO_DATE('01/01/1900','mm/dd/yyyy'),EVCASERS.PUBLICATIONDATE)
ELSE
decode(TABCASER.COMPAREACCEPDATE,NULL,TO_DATE('01/01/1900','mm/dd/yyyy'),TABCASER.COMPAREACCEPDATE)
END
,decode(TABCASER.COMPAREACCEPDATE,NULL,TO_DATE('01/01/1900','mm/dd/yyyy'),TABCASER.COMPAREACCEPDATE))
between TO_DATE('#dateformat(form.startDate,"mm/dd/yyyy")#','MM/DD/YYYY') and TO_DATE('#dateformat(form.endDate,"mm/dd/yyyy")#','MM/DD/YYYY')
is there abetter way of doing this? To compare the dates and store in a var to display. thanksHi
If you have date datatypes than:
select
greatest(TABCASER1.CASERRECIEVEDDATE, EVCASERS.FINALEVDATES, EVCASERS.PUBLICATIONDATE, EVCASERS.PUBLICATIONDATE, TABCASER.COMPAREACCEPDATE)
from TABCASER, TABCASER1, EVCASERS
where ...-- join and other conditions
1. greatest is good enough
2. to_date creates date dataype from string with the format of format string ('mm/dd/yyyy')
3. decode(a, b, c, d) is a function: if a = b than return c else d. NULL means that there is no data in the cell of the table.
6. to format the date for display use to_char function with format modell as in the to_date function.
Ott Karesz
http://www.trendo-kft.hu -
Default date field to today but still allow user to change date if needed.
This is for a log that is usually accessed daily
Hi Joey...,
If you are looking for a formula that will automatically insert today's date in a cell, I don't think there is one tahat will do what you hope. TODAY() inserts todays date alright but it does that every time the cell updates. It would always be today's date.
If you are entering your data using a form in iOS then after you tap the day button you are offered the choice of "Today" on the number pad. It always seemed to me that this should be the default screen for a date entry.
This past week I finally discovered that if you choose a month on the date entry screen an go to the next field, the date field will populate with that month, the number of today and the year of today. So to enter today I only need to choose the month.
I am sure you moved on with this, but I had to let someone know.
quinn -
Hi,
Data fields and key fields are same as Characteristcs and key figures? Or they are diffrerent?
Thanks,
RadhaHI
Key Fields = Acts as Primary Key for The ODS like Primary of Tables in R3.
Data fields = Apart from Key fields We consider rest as data fields.
Ususally we use Characteristic info Objects and Dates in Key Fields and Key figures in Data fields.
It's decisive factor for overwriting property of ODS or DOS.
Hope this helps.
Regards,
Rangzz
Edited by: Ranganath Kodiugane on Feb 7, 2009 12:14 PM -
Purchase Order released date field and table name
Hi,
Please tell me the Purchase Order released date field and table name.
Regards
DeepakHi,
Table : EKKO.
Fields : FRGKE,FRGZU.
You can get release date of PO from CDHDR table.
give object value as your po number and check.dont forget to give leading zeros.
The udate will be date field and transaction will be me29n for relaesed po. -
F4 help for Date field and Validation
Hi Friends,
I am new to BSP programming .I knew getting F4 help in normal ABAP.But i don't know in BSP .
I want simple steps to get F4 for a field on Page as well as date field .
and How to valid those entered dates.
Presently i am using length 10 character variable for DATE without F4 help and No validation.
I think you guys will help me out.
Thanks,
Venkat.OWelcome to SDN.
for F4 help with validation for dates you can use the following code.
<htmlb:inputField id = "wf_ad_date"
type = "date"
showHelp = "TRUE"
value = "<%= sy-datum %>"
visible = "true"
disabled = "false"
required = "true"
maxlength = "10"
size = "10"
doValidate = "true"
design = "standard" />
For other type of fields check out this weblog by Thomas Jung
<a href="/people/thomas.jung3/blog/2005/08/22/bsp-value-input-help-popups-version-30 Value Input Help Popups Version 3.0</a>
Regards
Raja -
Auto Date field and Auto Number field
I am fairly new to this,
I have crated a form using the form wizard in Acrobat Pro 9.0 and I would like to make a field an Auto date field and another an Auto Numbering field. I have read a lot of the posts and there are a lot of recommendation to point the auto number to a database. This is fine but I do not know how to reference that field to an external database. PLEASE HELP!!!! Somebody GEEK me!!I am fairly new to this,
I have crated a form using the form wizard in Acrobat Pro 9.0 and I would like to make a field an Auto date field and another an Auto Numbering field. I have read a lot of the posts and there are a lot of recommendation to point the auto number to a database. This is fine but I do not know how to reference that field to an external database. PLEASE HELP!!!! Somebody GEEK me!! -
"Amount, currency, and date fields and service provider reset"
Hi all,
I am trying to save a trip request via TCode: TRIP but receive the following message:
"Amount, currency, and date fields and service provider reset" Messsage no. PTRA_WEB_INTERFACE150
The system is on ECC6.0 with IS-PS (i.e. Funds management activated).
Anyone encountered this previously - hope you can share your solution.
Thanks in advance.Hi
I am also facing the same and checked the table mention below and dates are same but still facing the error "Amount, currency, and date fields and service provider reset" along with other error message i.e "Expense type not allowed (T70S_RECEIPT)" .
Please guide .
V_T706B1
V_T706B1_A
V_T706B1_B
V_T706B4
V_T706B4_A -
Generic Delta without date field and without document number
Hi Experts,
I have created Funtion Module Extractor program, but my strcture not having any date field and document number fields.
Please let me know how to maintain the delta for extractor program.
Thanks in Advance.
Chandrahi,
it is not mandatory to have doc number or date fields for delta,
u must have other fields which could change and try to find those fields and try, chk with the business for their delta requirement else go with full load.
Ramesh -
My Apple TV is frozen on the time and date setting and then it goes to the screen saver I tried changing the batteries on the remote and it still doesn't make a difference someone help...has anyone else had these problems?
Hi i ran into the same problem Ithoght it was the control, i changed the batteries the the control, and stil did not work, in the same connection (network and everything) i installed a new one and it worked perfectly, i can deduct the unit is nit working properly
-
Addition of new fields and sub dields in ad hoc query
hey all,
hey friends i would like to know how to add additional fields and the sub fields in ad- hoc query.
i had tried sq02 and went on creating new field but it is nt adng there and no options of sub fields are visible.
note: i am entirely new to sap hr.. so plz try and help me out in a laymans language.At the Date Field, there is 1 node call the Additional fields.
Then Right click the Additional field and choose create >> additional field.
Then enter the field name, description, Data type and length.
After that right click the newly created field name and choose code
Then enter some simple code.
E.g.
For IT2006 the table does not provide the quota balance. If order to display the quota balance we can create an additional field call ZBalance. Then at code section enter the code ZBalance = p2006-anzhl - p2006-kverb. -
How to GRN date (MIGO) and Goods posting date (MB1C) as a Characteristcs
Dear All,
Our customer wants to include GRN date (MIGO) and Goods posting date (MB1C) as a Characteristic for a batch.
And he wants the system to pick up these dates automatically for batch.
So in batches will be sorted out based on GRN (MIGO) or Goods posting (MB1C) date.
Is there any standard characteristics available for these fields?
How to achieve this functionality.
Regards,
Mullairaja
Edited by: MullaiRaja on Jan 7, 2011 8:28 AMClosed
-
I have 2 different accounts at the same websites. Whenever I go to that website, one of my two user names (always the same one) pre-fills the user-name field and I can't access the other account. The website rightfully rejects my password. I cannot overwrite my pre-filled user-name because the second I hit enter to logon, the original user-name rewrites itself into it's field. Neither of the user names is being saved by firefox anywhere in the "tools"; Options, security, advanced or privacy menu fields.
I did notice that that website has installed a cookie onto my computer called "_rememberme" which contains the user-name that is plaguing me.
This is a website that I access for very sensitive and important information and I must have both accounts accessible at different times.
Thanks, Joshua
XP, sp3; FF3.6.3
== This happened ==
A few times a week
== I added the second account on this website.You need to clear that remember me cookie and make sure that you remove a check mark to remember you on that website.
Tools > Options > Privacy > Cookies: "Show Cookies"
You can disable the automatic fill of a name and password.
See:
http://kb.mozillazine.org/Password_only_filled_after_entering_user_name
http://kb.mozillazine.org/signon.autofillForms
To open the ''about:config'' page, type '''about:config''' in the location (address) bar and press the Enter key, just like you type the url of a website to open a website.
If you see a warning then you can confirm that you want to access that page.
Maybe you are looking for
-
Synch not working, ITunes won't recognize ipod mini
With a new pc, my mini is no longer recognized by my itunes set up, very annoying. Ipod is working, but now "locked" to old setting, won't reset or resynch with each charge. Have tried replugging in, flicking "hold" toggle, holding down select button
-
Use iMac speakers as center speaker?
Hi, i'm considering migrating from PC to an iMac (late 2013) but i don't want to lose my 5.1 setup which i spent my life building. I'm evaluating some alternatives and one of those is this one: I own a yamaha amplifier with DTS/Dolby decoder. I'd lik
-
4th gen click-wheel iPod not syncing
I have a 40GB 4th Gen click-wheel iPod that although works fine will not sync with my iTunes. I have done all normal troubleshooting items (5R's, restored factory settings, etc.). I am running it on an HP computer and have all software versions up-to
-
I have working Oracle Database for 4 years , I'm thinking to take some certification. Got confused which one to take Exam 1Z0-051 or Exam 1Z0-047. Which one would be beneficial , where I can put these certificated in my Cv.Recently I heard that for t
-
Why can't I view on iTunes in purchased the tv shows I purchased?
I updated my iPad to ios 5 but all I can do in purchases in the iTunes store is the music I purchased