How to print the Dates from starting date to ending Date?
can any one help me!!!
you can add a clause at the end if you want to print the end date
package mypackage;
import java.util.Date;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.GregorianCalendar;
* This program will iterate through last Monday (1/9/2005) and today
* (1/20/2005).
public class dateiterator
static SimpleDateFormat sdf = new SimpleDateFormat( "MM/dd/yyyy" );
static void printCal(Calendar _cal) {
System.out.println( sdf.format( _cal.getTime() ));
public static void main(String[] args)
// last monday
Calendar cal1 = new GregorianCalendar(2006, Calendar.JANUARY, 9);
// "today"
Calendar cal2 = new GregorianCalendar(2006, Calendar.JANUARY, 20);
if( cal1.compareTo(cal2) > 0 ) {
System.err.println("cal2 can't be greater than cal1");
System.exit(1);
while( cal1.compareTo(cal2) != 0 ) {
printCal( cal1 );
cal1.add(Calendar.DAY_OF_MONTH, 1);
}
Similar Messages
-
How to know the process chain start time and end time
Hi Experts,
How to know the process chain start time and end time .
Thanks in advance
Regards
Gutti
Edited by: guttireddy on Feb 23, 2012 11:30 PMHi Reddy,
You may find the run time of a PC using below steps.
1. Call SE38 > /SSA/BWT > Execute > Enter your PC , choose the date and time > Execute. Here Run-time of a PC is displayed. (or)
2. Call RSPC1 > Enter your PC > Execute > Goto Log view > Right click on the start Variant > Displaying Messages > Note down the start time in Chain Tab. Now Right click on the last Process type of the PC > Displaying Messages > Note down the End time in Chain Tab. The Difference b/w start time and end time gives the Run-time of your PC.
Hope this helps.
Regards
Sai -
How to stop the dispatcher from starting the server?
Hi all,
I am trying to disable the dispatcher from starting the server automatically, Both in the service or daemon, and in the go.bat files.
Thanks
JeremyRight now, I start the state from the go.bat script.
Then I start the dispatcher from the go.bat script
what happens next, (the default setting after intsallation) is that the dispatcher calls the server in cmdline mode.
I would like to be able to start the 3 independently for troubleshooting.
Even when I try to use windows services to start them, I can only start the "state" and "dispatcher" service. Some how the dispatcher is calling the server, regardless of how I start the dispatcher.
Thanks
Jeremy -
Adobe: How to print the documents more than once with different data.
Hi Experts,
I have a requirement to print the document of minimum 5 employee's at a time.
First we are displaying the list of employee's and then the user is provided an option to select the employee's and print their details.
A form has been created. We are able to print the document for a single employee. But now the requirement is to select multiple employee's and print their details at one time.
I am able to get the contents all the employee's in an internal table. But i am not getting to combine the contents together and print the document.
So could some one help me how to get the contents of all the selected employee's and print the document's.
Thanks.I don't understand whether you want to print several different documents in a row each with an employee or one pdf document with several employees in it.
If you want to print one document with multiple employees inside, then you have to recode your PDF to be able to handle a table containing each employee data.
If you want to print multiple pdf documents each containing one employee info, then this is done in abap. [see BC480]
i.e.
DATA:
gt_customers TYPE TABLE OF scustom,
gs_customer LIKE LINE OF gt_customers,
gt_bookings TYPE ty_bookings, "table of sbook
gt_sums TYPE flprice_t,
gv_image_url TYPE string,
gv_fm_name TYPE rs38l_fnam,
* parameters for calling the generated function module
gs_docparams TYPE sfpdocparams,
gs_outputparams TYPE sfpoutputparams,
Event START-OF-SELECTION:
* Please note that the error handling implemented here is very
* rudimentary!
*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
* Get name of the generated function module
TRY.
CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = pa_form
IMPORTING
e_funcname = gv_fm_name.
CATCH cx_root.
MESSAGE e004 WITH pa_form.
* No active form &1 available
ENDTRY.
*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
* Optional: Set output parameters
gs_outputparams-nodialog = space.
gs_outputparams-preview = 'X'.
gs_outputparams-dest = pa_prnt.
*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
* Open print job
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = gs_outputparams
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
MESSAGE e020.
* Form processing could not be started
ENDIF.
LOOP AT gt_customers INTO gs_customer.
* Set form language and country (->form locale)
gs_docparams-langu = pa_lang.
gs_docparams-country = pa_cntry.
PERFORM find_bookings_for_customer.
*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
* Now call the generated function module
CALL FUNCTION gv_fm_name
EXPORTING
/1bcdwb/docparams = gs_docparams
is_customer = gs_customer
it_bookings = gt_bookings
it_sums = gt_sums
iv_image_url = gv_image_url
iv_sending_country = pa_cntry
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
MESSAGE e021.
ENDIF.
ENDLOOP.
*>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
* Close spool job
CALL FUNCTION 'FP_JOB_CLOSE'.
In the above pay attention to the loop.
Cheers, -
How to stop the executable from starting when opened
Hi Guys,
I am building an exe with the application builder. I am not able to find a way to stop the exe from running when opened. I dont need the exe to run. I know I m missing a very basic step here but I m not able to do that.
Could anyone explain me how to do this.
Regards,
NitinHello,
This is Dominic L. from Applications Engineering at National Instruments. This was reported to R&D (CAR#41DAPUQU) and was fixed in LabVIEW 8.2.1. Here is a link to the current evaluation software download for LabVIEW:
http://digital.ni.com/demo.nsf/websearch/14f9ce475127ade786256ac60070926c?opendocument
This particular bug actually renders all the build options for source file settings unusable. While the other options can be set manually in the source VI properties, the start-up VI will always run when an executable is opened.
Here are three different workarounds to this:
Option 1 - Upgrade to 8.2.1.
Option 2 - Check "Enable debugging" and "Wait for debugger on launch" in the Advanced page of the build specification. One side effect is this will include the block diagrams of the VIs and extra code for debug tool support. Note that if you don't protect the source code (block diagram), it kind of defeats the purpose of creating an executable.
Option 3 - Use a dummy startup VI to launch the desired startup VI.
For the third workaround, the attached "Dummy Startup VI.vi" uses VI server to open the desired startup VI's front panel and then closes. To use the Dummy Startup VI follow these steps:
Add the Dummy Startup VI to the project.
Open the Dummy Startup VI and change "Main VI.vi" to the VI you would like to open but not run in the project and save.
In the source files page of the build, select the Dummy Startup VI as a startup VI and the VI you would like to open but not run as a support VI.
Build and run.
I hope this helps.
Have a great evening!
Best Regards,
Dominic L.
Attachments:
Dummy Startup VI.vi 12 KB -
How to select data from a table using a date field in the where condition?
How to select data from a table using a date field in the where condition?
For eg:
data itab like equk occurs 0 with header line.
select * from equk into table itab where werks = 'C001'
and bdatu = '31129999'.
thanks.Hi Ramesh,
Specify the date format as YYYYMMDD in where condition.
Dates are internally stored in SAP as YYYYMMDD only.
Change your date format in WHERE condition as follows.
data itab like equk occurs 0 with header line.
select * from equk into table itab where werks = 'C001'
and bdatu = <b>'99991231'.</b>
I doubt check your data base table EQUK on this date for the existince of data.
Otherwise, just change the conidition on BDATU like below to see all entries prior to this date.
data itab like equk occurs 0 with header line.
select * from equk into table itab where werks = 'C001'
and <b> bdatu <= '99991231'.</b>
Thanks,
Vinay
Thanks,
Vinay -
How to print the image data stored in object of 'java.io.File' Class in jsp
I have created a file object for the image file in the system temporary directory.Now I want to display it in my page. please tell,How to print the image data stored in object(in my program it is imgr) of 'java.io.File' Class in jsp
Create a servlet which gets an InputStream of the file and writes it to the OutputStream of the response and call this servlet in `src` attribute. That's basically all.
Here's an example which covers the most of the minimum needs: [http://balusc.blogspot.com/2007/04/imageservlet.html]. -
Hi gurus in BDC how to print the header on the top of the data
hi gurus in BDC how to print the header on the top of the data
hi,
while downloading the file using gui_download function module
in that function module in TABLES filednames parameter is used to get headings
example:
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
FILENAME = FILENAME1
FILETYPE = 'ASC'
WRITE_FIELD_SEPARATOR = 'X'
TABLES
DATA_TAB = T_ZETBR
FIELDNAMES = IT_HEADER
reward if useful,
thanks and regards -
How to change the year in a range of column dates to the new year?
How to change the year in a range of column dates to the new year?
Depends on the pattern of the dates. The last procedure will work for any pattern, or no pattern at all.
For examples.the dates are assumed to be in column A, starting at A2
Sequential dates?
Enter first updated date in the first cell.
Enter =A2+1 in cell A3. Copy the cell.
Select A3 to the end of the list. Paste.
With the cells still selected, Copy, then go Edit > Paste Values.
Evenly spaced dates?
Same procedure as above, but replace +1 in the formula with + and the number of days between dates in the list.
Randomly spaced dates?
Select cell B2. Press option-left arrow to insert a (temporary) column to the left of column B.
Click on the empty cell B2 in the new column. Enter the formula below:
=DATE(YEAR(A)+1,MONTH(A),DAY(A))
Copy the cell, then select B2 - Bn where n is the last ow containing a date to be converted. Paste,
With the cells still selected, Copy.
Click on A2, then go Edit > Paste values.
Click on the column B reference tab to select all of column B.
Hover the mouse over the right end of the reference tab, and click the black triangle when it appears.
Choose Delete Column from the menu that appears.
Regards,
Barry -
How to display data from a recordset based on data from another recordset
How to display data from a recordset based on data from
another recordset.
What I would like to do is as follows:
I have a fantasy hockey league website. For each team I have
a team page (clubhouse) which is generated using PHP/MySQL. The one
area I would like to clean up is the displaying of the divisional
standings on the right side. As of right now, I use a URL variable
(division = id2) to grab the needed data, which works ok. What I
want to do is clean up the url abit.
So far the url is
clubhouse.php?team=Wings&id=DET&id2=Pacific, in the end all
I want is clubhouse.php?team=Wings.
I have a separate table, that has the teams entire
information (full team name, short team, abbreviation, conference,
division, etc. so I was thinking if I could somehow do this:
Recordset Team Info is filtered using URL variable team
(short team). Based on what team equals, it would then insert this
variable into the Divisional Standings recordset.
So example: If I type in clubhouse.php?team=Wings, the Team
Info recordset would bring up the Pacific division. Then 'Pacific'
would be inserted into the Divisional Standings recordset to
display the Pacific Division Standings.
Basically I want this
SELECT *
FROM standings
WHERE division = <teaminfo.division>
ORDER BY pts DESC
Could someone help me, thank you.Assuming two tables- teamtable and standings:
teamtable - which has entire info about the team and has a
field called
"div" which has the division name say "pacific" and you want
to use this
name to get corresponding details from the other table.
standings - which has a field called "division" which you
want to use to
give the standings
SELECT * FROM standings AS st, teamtable AS t
WHERE st.division = t.div
ORDER BY pts DESC
Instead of * you could be specific on what fields you want to
select ..
something like
SELECT st.id AS id, st.position AS position, st.teamname AS
team
You cannot lose until you give up !!!
"Leburn98" <[email protected]> wrote in
message
news:[email protected]...
> How to display data from a recordset based on data from
another recordset.
>
> What I would like to do is as follows:
>
> I have a fantasy hockey league website. For each team I
have a team page
> (clubhouse) which is generated using PHP/MySQL. The one
area I would like
> to
> clean up is the displaying of the divisional standings
on the right side.
> As of
> right now, I use a URL variable (division = id2) to grab
the needed data,
> which
> works ok. What I want to do is clean up the url abit.
>
> So far the url is
clubhouse.php?team=Wings&id=DET&id2=Pacific, in the end
> all
> I want is clubhouse.php?team=Wings.
>
> I have a separate table, that has the teams entire
information (full team
> name, short team, abbreviation, conference, division,
etc. so I was
> thinking if
> I could somehow do this:
>
> Recordset Team Info is filtered using URL variable team
(short team).
> Based on
> what team equals, it would then insert this variable
into the Divisional
> Standings recordset.
>
> So example: If I type in clubhouse.php?team=Wings, the
Team Info recordset
> would bring up the Pacific division. Then 'Pacific'
would be inserted into
> the
> Divisional Standings recordset to display the Pacific
Division Standings.
>
> Basically I want this
>
> SELECT *
> FROM standings
> WHERE division = <teaminfo.division>
> ORDER BY pts DESC
>
> Could someone help me, thank you.
> -
How to set the Default values for Info Objects in Data Selection of InfoPac
Hi All,
Flat file Extracion:
How to set the Default values for Info Objects in Data Selection Tab for Info Package
ex: Fiscal Year Variant Info Object having values 'K4' 'Y2' etc in Flat file
Initially default value(not constant) for this info Object value should be 'K4' in Info Package
If I set data selection value for this info object K4 it will retreive records with this selection only? how to handle
Rgds,
CVHi,
suppose as your ex. if you are having fiscalyear variant in the dataselection tab then specify K4 in the from column, again the ficalyearvariant row and click on insert duplicate row at the bottom . you will get another row . In that enter Y2 in the from column. now you can extract K4, y2 values .
haritha -
How to reduce the size of file after delete some datas?
The size of the database file isn't smaller than ago after delete some data from database.
How to reduce the size of file after delete some datas?Hi,
What BDB release are you using? If it's one of the latest releases, then what you are looking for is the DB->compact() method:
http://download.oracle.com/docs/cd/E17076_01/html/api_reference/C/dbcompact.html
The DB->compact() method compacts Btree, Hash, and Recno access method databases, and optionally returns unused Btree, Hash or Recno database pages to the underlying filesystem. Please let me know if it helps.
Bogdan Coman -
How many method can pass data from Database to front-end(aspx)?
How many method can pass data from Database to front-end(aspx)?
By using ajax, I want show some data to aspx or html
Here is one of these method,
HTTP Handler(ashx):
we can json data, use HTTP Handler pass data to front-end
And can we do this by other method? Web API? or some fancy way?
Thanks for any replyHello TaiwanWei,
Try forums.asp.net.
Thanks for your understanding.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How can I print the calendar from my iPad?
How can I print the calendar from my iPad/iPhone 4? I would like each month on a separate 8 1/2 x 11 sheet of paper. Thanks!
What print app do you have? I think that you need certain printing apps in order to print the iPad calendar. The print feature is not built into the app itself ...As far as I know.
-
How do I stop iTunes from starting up in the other active Windows sessions?
I have multiple (3) user accounts on a windows (Vista) computer. When I start iTunes from one account iTunes wants to also start up on each of the active windows accounts and continues to attempt to start iTunes after some time period (90 seconds?).
I get a error screen on the attempts for the User that should not be starting iTunes that reads:
You cannot open the application "iTunes" because another user has it open.
Ask the other user to quit the application, then try again.
I want iTunes to run within only one account. How do I stop iTunes from starting up in the other active accounts?Connect iPhone - iTunes will launch
select iPhone in iTunes' left column
in iTunes' main window untick "Automatically sync ..." -
How can I Print the calendar from iPad with WiFi-Printer?
It's possible to print the calendar from iPad (1) to a WiFi-printer?
I also wish I could print my calendar from my ipad, it's crucial for my business yet they forgot to put a print option????? How hard would it be?? A screen shot doesn't help, on my wifi printer it reduces the image by one third? They say computers make like easier, but do they? We spend so much time just trying to get stuff to work, we can never really do what we need to, without having to talk to seven hundred people to find a hard to work solution.
Maybe you are looking for
-
Group Policy won't apply, No mapping between account names and security IDs was done.
I am using Group Policy Preferences to remove users from the local admin group and add a local admin account. This GPO is working on 90% of the Win7 machines on the network, but three laptops are not accepting the GPO. I get the following error: Lo
-
"General: Already in Use" error in 5800's Messagin...
Hi.I have a old SMS in my inbox which I can't delete it from my phone(5800).Even I tried to delete it via OVI Suite but the message is still in inbox, and even I removed the name and the number of the message sender from Contacts but it remains wit
-
Change Margins in PDF Expert Dialog
Hi, i use export to pdf function in WAD. There u can set some initial values for example portrait format or landscape format. So the end user can use the suggested format. My question is: Can you also set some initial the margins? Thanks best regards
-
Will sony s-air sw10ti work with airport extreme?
Hi There, I have the Sony S-Air SW10 Ti which has a great sound but the Aerial on it for DAB Radio is rubbish, it does have a docking station which also sounds good but no other connection parts. Would this perhaps work with " Airport or Aiport Expre
-
I download a movie in my Pc, but I can't see it.
I dowload a movie o my PC but I could not see it. I updated Itunes and the movie start ok. Today I open Itunes to finish the movie and I can't see it. Same problem as yesterday and I still 8 hours to watch the movie.