How to print previous date as current date
Hi ,
how to print previous data as current date in output with out any changes....
Hi Degala Hari Krishna,
Can you explain clear.
Similar Messages
-
FM to calculate date month & year six months previous to the current date
Hi All,
Is there any function module or code to calculate date month & year six months previous to the current date.
Thanks in advance.hi,
try this
data : date1 like vbak-erdat.
data : q type numc3.
selection-screen : begin of block blk2 with frame title text-001.
parameters : n like q.
selection-screen : end of block blk2.
if n > 0.
CALL FUNCTION 'CCM_GO_BACK_MONTHS'
EXPORTING
CURRDATE = sy-datum
BACKMONTHS = n
IMPORTING
NEWDATE = date1
selection-screen: begin of block blk1 with frame title text-001.
select-options : s_date for vbak-erdat default 'NEWDATE' to 'sy-datum' no-display.
selection-screen : end of block blk1.
write : date1.
Reward with points if helpful. -
How to print both normal and bold data in a single line
Hi ,
I have requirement wherin the data need to be displayed in a single line.
FAX: Z8525_text.
where FAX needs to be in bold and Z8525_text is a standard text and it shoould not be bold , both of this needs to be displayed in
a single line.
Can you let me know how to print both normal and bold data in a single line one of which is coming fro standard text.
Regards,
SenthilHi Senthil,
If you are using smartforms, have a character format created for BOLD and apply it to the text you want to highlight. The remaining text of the line could be applied with a Character format which is not highlighted.
Try and revert in case you need further assistance -
2 month old date from current date in red color only
Hi all,
How can I Highlight 2 month old date from current date in red color only at report level with using Alertr.
Example:-
Date
3/27/2014
4/3/2014
3/5/2014
4/1/2014
3/31/2014
5/24/2013
2/10/2014
4/11/2014
12/11/2013
9/25/2013
1/30/2014
2/18/2014
2/24/2014
1/6/2014
3/3/2014
Thanks
SamHello Sam,
are you using Universe for your report..if Yes..pls try below option.
Create two objects in the universe
Object1 syntax: current date() (Note:this object you can create at webi level)
Object 2 syntax:addmonths(sysdate;-2)
Now create a alert in webi report by using below conditions
Day is less than Object1
and
Day is greater than Object2
Please try this and let me know if any issues.
Regards,
Naveen D -
Dear All,
I face one issue, the old sales order (the delivery date before current date) has became VSF (independent requirement) in MD04, could someone let me know why and how to fix it?
Take 01.09.2014 as example, we have one 50PC's sales order with delivery date as 25.08.2014, in MD04, the system will show two independent requirements, one is 50PC's customer order and another is 50PC's VSF.
We are looking forward to your kind help and answer, thanks in advance!
Best Regards,
GavinHi Gavin
If I understood the issue correctly, system is showing both the sales order and the PIR on the same date, right?
If this is the case, it's probably a PIR consumption issue. Take a look on the following note, especially question 10:
772856
FAQ: Consumption of planned independent requirements
BR
Caetano -
How to get previous day of the date
Hi,
for a given date I need one day minus as a result date
my input would be any date
for example :
Input Date : 2006-03-22 ( yyyy-mm-dd)
Output should be : 2006-03-21
If my input is 1st of April 2006, output i would expect is 31st March 2006
Please suggest how to achieve this
Thanks in advance
NileshFind below the code to get previous day of the current date
import java.util.Date;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
public class PreviosDay
public static void main(String[] args)
DateFormat dateFormat = new SimpleDateFormat( "MM/dd/yyyy");
Calendar cl = Calendar.getInstance();
// you can use a Date object's getTime() method , which is initialiazed
// to desired date here directly ex: Date dt = new Date("10/10/2004");
// cl.setTimeInMillis(dt.getTime());
cl .setTimeInMillis(System.currentTimeMillis());
cl.add(Calendar.DAY_OF_MONTH, -1);
System.out.println("Previous date : "+dateFormat.format(
new Date(cl.getTimeInMillis() ) ) );
} -
Need help with SQL retrieval for previous month till current date
Hi ,
Need help generating statistics from previous month from date of enquiry till current date of enquiry.
and have to display it according to date.
Date of enquiry : 03/02/2012
Application Type| 01/01/2012 | 02/01/2012 | 03/01/2012 |...... | 31/01/2012 | 01/02/2012 | 02/02/2012 | 03/02/2012 |
sample1 20 30 40
sample 2 40 40 50
sample 3 50 30 30
Hope you guys can help me with this.
RegardsHi,
932472 wrote:
Scenario
1)If i run the query at 12 pm on 03/2/2012. the result i will have to display till the current day.
2)displaying the count of the application made based on the date.
Application type 01012012 | 02012012 | 03012012 | ..... 01022012| 02022012|03022012
sample 1 30 40 50 44 30
sample 2 35 45 55
sample 3 36 45 55Explain how you get those results from the sample data you posted.
It would help a lot if you posted the results in \ tags, as described in the forum FAQ. {message{id=9360002}
SELECT application_type as Application_type
, COUNT (CASE WHEN created_dt = sysdate-3 THEN 1 END) AS 01012012 (should be getting dynamically)
, COUNT (CASE WHEN created_dt = sysdate-4 THEN 1 END) AS 02022012
, COUNT (CASE WHEN created_dt = sysdate-5 THEN 1 END) AS 03022012
, COUNT (CASE WHEN created_dt = sysdate-6 THEN 1 END) AS 04022012
FROM table_1
GROUP BY application_type
ORDER BY application_typeThat's the bais idea.
You can simplify it a little by factoring out the date differences:WITH got_d AS
SELECT qty
, TRUNC ( dt
- ADD_MONTHS ( TRUNC (SYSDATE, 'MON')
, -1
) AS d
FROM table1
WHERE dt >= ADD_MONTHS ( TRUNC (SYSDATE, 'MON')
, -1
AND dt < TRUNC (SYSDATE) + 1
SELECT SUM (CASE WHEN d = 1 THEN qty END) AS day_1
, SUM (CASE WHEN d = 2 THEN qty END) AS day_2
, SUM (CASE WHEN d = 62 THEN qty END) AS day_62
FROM got_d
See the links I mentioned earlier for getting exactly the right number of columns, and dynamic column aliases. -
Been using Macs since before classic. Using MBP, OS 10.7.5. Trying to figure out how to print/save folder contents including what's not visible on screen (Name, Date Modified, Size Kind) in entire folder?
Screen shots are getting old hat.
Tried select all, copy, paste into pages, but it didn't display date modified, size & kind, and also included images of selected files, which is too large.
Any apps/shortcuts/utilities that can do this? Thanks in advance.Hello Achates:
I did not read the rather long post. If you wish to reinstall OS X 10.4, use your software install DVD. Backup is essential. To minimize your risk, I would use an archive and install:
http://docs.info.apple.com/article.html?artnum=107120
In that way, you will have a fresh copy of OS X and your current settings will be preserved.
Incidentally, I do not agree that the printer problem is best solved by reinstalling OS X. I have had HP printers for sometime and, on one occasion, had difficulty after an upgrade. HP technical support walked me through uninstalling all traces of the HP driver and then reinstalling.
Barry -
How to get the default date as current date in input filed in VC
Hi
In my VC application i have two date fields. we are allowing the end user to select the From Data and Todate though Data pickers, But the client asking to make the today's date as default date in Todate field , rather picking up from the data picker,
Unless the user wants change the todate from the current date. It should display today's date as default date.
can any body tell me how to do it.
Regards
VijayHi All,
I have an issue an implementing the "Exporting the Table data to Excel."
My VC version is 7.0
Portal version NW 2004s.
By refering the following link, i have implemented Export To Excell functionality in VC.
2) Another one that's in the Visual Composer WIKI:
https://wiki.sdn.sap.com/wiki/display/VC/Exportingdatafrom+VC
By refering to 7th page in the document. It is explained to add the data source object from the 'info' port and add the field called 'RAPTNAME'to the DATA source object.
But the RFC object which i added to the story board, i havent find any 'info' port in my added RFC. But still i have added the data store object and added field. then
copied the following given formula in the document in respective formula window ,Formula showin as valid. when i click on check button.
copied formula :
"pcd!3aportal_content!2fcom.sap.pct!2fplatform_a
dd_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.b
ex?QUERY=" & STORE@REPTNAME &
"&BI_COMMAND_1-
BI_COMMAND_TYPE=EXPORT&BI_COMMAND
1-EXPORTFORMAT=XLS&BI_COMMAND_1-
null="
i am able to run the application. After i run the application . once i click on the button 'ExportToExcel' i am getting the following error.
Portal Runtime Error
An exception occurred while processing a request for :
iView : N/A
Component Name : N/A
Could not find portal application com.sap.ip.bi.service.generic.
Exception id: 05:32_01/05/07_0001_18800950
See the details for the exception ID in the log file
Can u please tell me what is the problem
Regards
Vijay -
How to display the username and current date in OAF page Footer region
Hi,
I need to display the username and Current-Date in footer region.If anybody knows the procedure then please share with me.
Thanks
Divya AgarwalHi,
Read this Thread:--
You have to capture the UserName and Date in the Process Request Method of page Controller and invoke a method which will subsequently get and set the value in some attribute.
String userName = pageContext.getUserName();
How to populate Current Date and Time in OAF page through CO
Thanks
--Anil -
How to compare user entered date with current date
Hi all
my requirement is, user allowed select one date, in code i have compare this date with current day date. it should be 15days gap other wise display error message.
I am worried about how to get current date in code. Is there any code to get current date. please reply me with code or mail me at [email protected]
Thanx
keerthiKeerthi,
Use the method <b>getDifference()</b> of the DateHelper.java available here.<a href="http://www.koders.com/java/fid14A61FEB1B45A64E42E1DCAD7070B46AE46340BA.aspx">DateHelper</a>
1. Create a new folder, say Util under your src folder. (com.xyz.util)
2. Put this DateHelper.java file in that folder,(com.xyz.util) .
3. Now, write an import statement for this java class in the required view.
4. Use the getDifference() method of this class to the difference in days between two days.
Or
Simply use this code.
// Get msec from each, and subtract.
long diff = currDate.getTime() - selectedDate.getTime();
int noOfDays = diff / (1000 * 60 * 60 * 24);
where currDate is today's Date and selectedDate is the Date selected by the User.
Bala -
How to initiate java.util.Date with current date
Hi
Thank you for readingmy post.
how i can initiate a Date object with current Date ?
Thank youPlease refer to the API for this type of information
Date()
Allocates a Date object and initializes it so that it represents the time at which it was allocated, measured to the nearest millisecond. -
How to set default value to current date in Webcenter Imaging Application?
Hi
I have created an application in Webcenter Imaging and have a field called as ScanDate.
While uploading documents against that particular application, i want that ScanDate field should default to Current Date.
I tried setting the default value but it becomes a static date.
Can anyone suggest me what to do in this case?
Regards
ACMYou can't do that anyway. The default values are saved as part of the VI and a built application can not do that. Instead, you will have to do this yourself by saving the data to a file, loading it and wiring it into a local variable of the control. You can do this, for example, with the configuration file VIs or, if you want to rely on the good work that other people already did, you can go to the OpenG site and download their file package, which includes saving control values to INI files.
Try to take over the world! -
Odd Date for Current Date and Time
I am modifying a column in a list to get current date and time using =TODAY()+NOW() in the calculated field and get a time that is behind by 1 hour but the date is 4 months 114 years ahead (2128). How can I fix this field?
http://sharepointsolutions.com/sharepoint-help/blog/2011/04/how-to-add-and-subtract-hours-and-minutes-from-date-and-time-fields-in-sharepoint-lists/
-
Set List datefield to future date and disable all date behind current date?
Is it possible to set date to future date (atleast 2 week) and all prior date should be grayed out . User will not able to select behind current.
Is it possible with OOB option. JQuery work around also fine.
ItsMeSri SP 2013 Foundation
ItsMeSri SP 2013 FoundationFutureDate - datatype will be Datetype as Calculated column formula 'Today+14'
please 'Propose as answer' if it help you, also de-mark it if it didn't. Thank you!
Also Place a validation rule as below which will restrict all previous date
[FutureDate] > (Today()+14)
User cant save that item if future date is not greater that today play another 14 days.
Hope this will help !
please 'Propose as answer' if it help you, also de-mark it if it didn't. Thank you!
Maybe you are looking for
-
Asset accounting (urgent)
Hi Guru's Asset 474973 depreciation is not calculating correctly A write up was put on the asset in the month of January, then the depreciation was re-run, in total on the master data of the asset, the planed values for the year showing correct onl
-
VBA save as using information bar - download ribbon in IE11
Hi everyone.. I am using IE11 and Excel 2010. I am writing a code to download csv files from a website and to work with the downloaded data. Till now I have coded the part to select options on the webpage form and click on the download report button.
-
HI Experts, I have a problem, i am posting in this forum too. I am on Ep6.0 SP20. and trying to implement leave request. Necessary workflow templates are activated., in swfvisu, checked the launching of each task. I see the entries for approval task:
-
Can I add animated GIFs to my project and Publish as HTML5?
I've created several projects with Adobe Captivate 7 and have added animated GIFs to my project. When I publish, the GIF animations are only animated when played as SWF. When I play the HTML5 version the GIFs only show the first frame. Is there a way
-
User erxit error in quality server bt working proper in development
Hi , i enhanced user-exit in EXIT_SAPLEINR_002 for pass batch number in migo it is working in development correct and when i transport it to quality its not working . bt i check this function and execute it sepretely its working bt not working in mig