FM to find date 1 year prior to current date.
Hi All,
Can anyone suggest a Function Module to fetch the date 1 year prior to current date?
Thanks in advance,
Anjum.
Hi,
these r the variable names we can use it in reporting side..
i have given the link for all the sap exit variables..
http://help.sap.com/saphelp_nw70/helpdata/EN/99/ae22419e2ab167e10000000a155106/frameset.htm
0CYTCD - is the variale name can be used for 1st date to current date of the year
i think u r also looking for the same..
for any further clarifications please reply to this message
Regards,
Vijay.
Similar Messages
-
Web-Outlook appointments which are one year before the current date are removed
Hi,
my Web-Outlook works fine with my iPHONE4s but the appointments which are one year befoer the current date are removed.
Is there an option to keep all appointments?
regards
AndreasFor the OST problem, delete the OST file and let Outlook create a new one. But your problem may be that Outlook connects to Exchange 2013 using Outlook Anywhere only--MAPI RPC is gone--and for that you need a valid certificate. So the self-signed
certificate is likely your main problem.
For a self-signed certificate to work, you must add it to every client as a trusted certificate. That is hard to do with mobile devices, which is why it's recommended to obtain a certificate from a trusted public certificate authority. You'd
probably find Go Daddy to be reasonably priced, and there are others.
Ed Crowley MVP "There are seldom good technological solutions to behavioral problems." -
Adding a year to the current date field
Hello,
Can any one please help on how to add a year to the current date field.
e.g 7/19/2011 plus a year = 7/19/2012
Thanks,
Han DaoIf you had a field DateTimeField1 and wanted to display the following year in DateTimeField2, you could do the following in JavaScript;
var d1 = util.scand("yyyy-mm-dd", DateTimeField1.rawValue);
if (d1 !== null)
d1.setFullYear(d1.getFullYear()+1);
DateTimeField2.rawValue = util.printd("yyyy-mm-dd", d1);
Good luck
Bruce -
How can I validate date to be half year later than current date?
Can anybody help me with validating date selected by user with Date picker?
If the Date is later half year from today - it is valid, otherwise invalid. I need to keep focus within the field if invalid input supplied.
Thanks inadvance,
Peter.In essence time in javascript is stored as a long (just like in java) this means that increasing this number by 1000 increases the date by 1second.
We know that 1 day = 24 hours = 1440 mins = 86400 seconds (*1000 for ms)
So what you need to do is calculate the number of days you have during those months and multiply this by 86400000 and add this to the date.
I would also suggest calculating the max time (date + 6months) up in front, if the user specifies a higher date (userdate - currentdate > date_in_6_months), it's actually invalid and you could just replace the userinput by your calculation. This way the end-user is never able to store a date further in time and your validation is already done. You could also try replacing when user_date < current_date, but thats up to you, i don't know your business-logic.
If possible try to provide this data using XML binding, this way you could do the calculations in java/.net or whatever programming lanague you use. JavaScript is one of the most horrible environments to work with dates. It's just a hint. -
Restrict creation of Service Entry Sheet if the Date is Prior to PO Date
Hi,
I need to restrict from posting a Service Entry Sheet whose Document date and Posting Date are Prior to the Document date of a Puchase Order...Can any one please suggest...
Regards,
SabitaHi,
Better to go release streatgy in SES Release. Give the right of revoke to some other as per business.
also
make the error in
Application Area SE , system msg 155 Not possible to cancel release with code & as error
Restrict the user with release Code and release Grp in M_SRV
Regards,
Pardeep Malik -
Copying files to my new MBA (early 2011) running 10.6.7 results in their 'modification date' to change to the current date. Any idea what may be causing it. It happens only to some of the files (there is no pattern to it.). I have not seen it previously in many other macs I have owned.
Hi all
I am bumping this thread again because I can't believe that I am the only one experiencing this issue. At times it is costing me hours repeatedly copying files until eventually the date doesn't show as modified.
I thought I had cracked it earlier by changing the Sharing & Permissions settings, and applying to enclosed items the ability for Everyone, Me and Staff fo have Read & Write permissions - but that doesn't seemed to have changed much.
Copying in smaller batches helps sometimes, but then other times it makes no odds, and the Date Modified date shows as the original date for a few seconds, only to change to today's date. Driving me nuts because there is no pattern to it.
Files which I have copied and show their original modified date, when moved to a subfolder, then have their date changed to today!!! Copying other files into the folder results in files that were previously OK having their Date Modified changed!
Am I on the only one? -
Mat doc cancellation date is prior to po date
suppose my po date is 10.04.2007
GR date or Mat doc date is 10.04.2007
But doc cancellation date with ref to purchase date is prior to 10.04.2007 (09.04.2007)
how it can be possible and how can we stop this?
thanksHi
IT0045 config depends on the requirement of the client and mapping of it.
Please go thru the document for reference .. it is very explanatory.
http://help.sap.com/printdocu/core/print46c/en/data/pdf/PYINT/PYSOME_LOAN.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/HRINF/HRINF.pdf
R K -
User exit for vf01 for delivery date should be a current date
Hi Experts,
I won t allow to save vf01 delivery date mismatch with system date. Delivery date must equal with system date. kindly give any userexit for this issue.
regards
G.VendhanHi Vendhan,
Probably we are waiting for your Reply.......
You didn't replied to MxG question.....that whether writing VF01 for delivery was a typing mistake or you actually mean it.
Your reply will help us to answer your thread.......in case you already solved the problem by yourself.....I suggest you to close the Thread......and you may share the solution implemented/used ...so as to avoid a redundant thread creation in the future. -
How do I find out what is the current data rate on my wifi card?
I have a macbook pro running OSX 10.8.2. When I go to system profiler I see that the card is in 802.11n mode, but how do I find out the current rate? There is a 'Transmit Rate' parameter but there is no unit next to it.
The data rate depends on if it is using the 2.4 GHz band or the 5 GHz band, both are possible with n-protocol unless you have limited your wireless to only one band. The data rate in 5 GHz is double that in 2.4 GHz. Also, you have to know what the protocol of the network is, the AirPort card can only transmit at the rate of the network, so if you are on a g-protocol router, that is the fastest rate you can see.
And then interference, attenuation, etc. will drop that rate. -
I need date that is three months prior to current date or sy-datum
Hi All,
Please help me in this issue.
In the selection screen the lower limit of the select option should be last three months and on high it should be the sy-datum for ex
30.06.2007 30.09.2007
thanks in advance
thanks & regards
KreddyHi,
you got the date
now subtract 3 from the month
and use this fm this will give the last day of the particular month
for eg
current month required
3 12 and -1 for year
4 1
5 2
like this
for
2 11 -1 for year
1 10 and -1 for year
then use it
CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'
EXPORTING
DAY_IN = R_FDATE-HIGH
IMPORTING
LAST_DAY_OF_MONTH = G_LTDT
EXCEPTIONS
DAY_IN_NO_DATE = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
regards,
Venkatesh -
Parameter for Last Week, Last Month & Last Year from the current Date
I have a crystal report that has a StartDate & EndDate parameters from the stored procedure that I am calling. Now i got a new requirement saying that my user wants a drop-down parameter in which they need to be able to select last week (Sunday to Saturday), last month, last year instead of manually selecting start date and end date parameters? Can anyone please explain me how to do this?
(FYI, I am using Crystal 2008)Hi Naveen,
You'll need to handle the logic in the Stored Proc's where clause.
If you're using oracle, I have something like this in the Stored Proc's where clause for our reports:
Where {Date_Field} Between
Decode('{?Relative Date}',
'Yesterday', sysdate - 1,
'Last Week', Tunc(sysdate, 'IW')-7)
AND
Decode('{?Relative Date}',
'Yesterday', sysdate,
'Last Week', Tunc(sysdate, 'IW'))
where 'Relative Date' is a prompt in the Stored Proc and 'yesterday'. 'last week' are the 'static values' in the prompt.
-Abhilash -
Schedule backup on the date 1year later from current date
I am a BASIS guy. I want to schedule a DB *backup on 21st december, 2012*. Is it possible? If possible then how to do it? Please help.
Hi,
Which SAP release you are using ? SAP_BASIS release/patch level ?
In Older SAP releases (e.g SAP ECC 5.0), you can change the display of planning calendar in DB13 (Calendar -> Calendar Display) by changing value of No. Of weeks Displayed to 99 , value of Index of current week to 2 and Number of items per day to 4 under Calendar Display sizes.
In New SAP Releases with latest BASIS patch level, you will find small calender display near to Action Pad in DB13. You can navigate to the desired Year/Date within that calendar and you can schedule the required actions on that specific date.
Regards,
Bhavik G. Shroff -
Data changed based on current date in Bex
Hi Gurus,
Hope you are all doing good ! I have a scenario in queries in Bex. When the query is executed the current system date must be captured and the data must be divided by the count of the previous months.
For instance if the query is executed today the data must be divided by 1 ( for jan)
if it is executed next month, then the data muset be divided by 2 ( jan + feb ).
Is there any COUNT variable in Bex ? Any idea how this could be done?
Points would be assigned for sure.
Regards,
Sunitha.RSunitha,
You should create a variable which is not user entry and user exit as processing type. Based upon the date entered you should write code in CMOD to derive the figure with which you can divide the amount.
The logic can be something like this:...
If the user enters period like 02.2207(feb 2007), then you can pass value as 2 for the variable newly created. This is a simple code which can be written easily if you have ABAP knowledge.
Try it out..... -
How to view data for MD05 before current date
Hi SAP Gurus!
We need to check what we entered for the past weeks forecasts. We currently use MD05 to view that.
Right now, we are currently in week 47 now and would like to view data for weeks 40-46. For some reason SAP is only giving us week 47 onwards. Is there another report that can give us these values?
Hope to hear from you soon!
Thanks in advance!
PJDear,
You can get this report by using below FM
MD04 Details - MD_STOCK_REQUIREMENTS_LIST_API
MD05 Details - BAPI_MATERIAL_MRP_LIST
or you may pls execute transaction MD73.
Pls select option "3 :History Planned ind reqmnts " in the display options and execute the report.
Regards,
R.Brahmankar -
When I move a file the date changes to the current date
I have old files that I moved from a pc to a jump drive then to my mac. It seems like sometimes the modified date seems to change on its own. Sometimes it changes the update date if a file is renamed, but sometimes all it takes is moving the file.
It frequently happens when I move pictures.
Any ideas?
ThanksTrash Permission Error
Trash Permission Error (2)
Maybe you are looking for
-
Management Console with Multi App Servers (BPC 7 SP06)
Hello everyone, I recently upgraded to BPC 7 SP06 from 5.1 and was wondering how Management Console suppose to really work... We have multiple Application Servers running behind load balancer, so when I login to http://<loadbalancer>/ManagementConsol
-
How to install Sun solaries 9 or 10.
Hi, I am trying to install Sun solaries 9 or 10.over AMD 64. Please guide me to install sun on AMD. Any help greatly appreciated. Thanks, Chandan.
-
8.0.1 restarting CF?
We installed the new update for CF8, and since that time CF has been restarting once every 24 hours. This was not happening before. Is this a new "feature", or is there some other hidden problem we are not aware of? Thanks.
-
Back to school promotion problems
I purchased a MacBook Air at Sep,12 with educational offer on Apple online store. Should I get a FREE $100 gift card? I checked my Invoice Receipe, there is some thing I didn't understand. I try to call 1-800-676-2775, they said the transaction just
-
Dear expert, in my project, i want to to achieve the following function in T-Code VL02N: sb can change outbound delivery document but can't post goods issue, sb can post goods issue, but can't change the outbound delivery. please help advise me how t