Regarding Date Display
hi,
i'm writing code to display dates between fromdate and todate
for example 06-13-07 to 07-13-07(MM/DD/yy format)
i need to display dates between these dates
like
06-14-07
06-15-07
06-16-07
.so on upto
07-13-07
i'm fail to do this
i'm getting but it is not accurate
plz help me regarding this
thank you
one and all
Use an instance of Calendar, initialize it to the
start date and for each single new date call
add(Calendar.DATE, 1) on this instance until the end
is reached. What does your code look like so far?
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.io.*;
class DisplayDate
public static void main( String[] args )
String todate="7/13/2007";
String[] monthNames = {"january","february","march","april","may","june",
"july","august","september","october","november","december"};
// String jun=monthNames[5];
// String july=monthNames[6];
//String[] dayNames = {"0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15",};
TimeZone local = TimeZone.getDefault();
// SimpleDateFormat sdf=new SimpleDateFormat();
Calendar c=new GregorianCalendar();
// sdf.setTimeZone( local );
// String fromdate = sdf.format( new Date() );
// System.out.println(fromdate );
int month=c.get(Calendar.MONTH)+1;
int date=c.get(Calendar.DATE);
int year=c.get(Calendar.YEAR);
String fromdate=month+"/"+date+"/"+year;
System.out.println(month+"/"+date+"/ "+year);
System.out.println( todate);
int len =todate.length();
int len1=fromdate.length();
System.out.println(len+" "+len1);
for(int i=1;i<31;i++)
System.out.println(monthNames[5]+"-"+i+"-"+"2007");
for(int i=1;i<=31;i++)
System.out.println(monthNames[6]+"-"+i+"-"+"2007");
}by executing above code i'm getting output,here i'm displaying without using fromdate, todate
but i need to display by using fromdate ,todate
plz help me regarding this
Similar Messages
-
URGENT: REGARDING DATE DISPLAY IN REPORT
hi,
i am making a report in which i have to display that these are the persons who had released the requsitions at these dates,i am able to display the persons who had released the requsitions but i am not able to display the dates on which they had released the requsitions.
if any body who will provide me help for this solution he or she will be defiantely rewarded...hi ric,
i also tested and it gave this o/p.
28.11.2007
PROGRAM FOR TESTING
1
PUR.REQ DATE REQ.TYPE 1ST APPROVAL 2ND APPROVAL 3RD APPROVAL
PRESON DATE PERSON DATE PERSON DATE
10009603 19.07.2005 NB A1 19.07.2005
10010046 08.03.2006 NB R1 R2 08.03.2006
10010115 27.03.2006 NB EX 27.03.2006
10010116 27.03.2006 NB EX 27.03.2006
10010827 22.05.2006 NB G1 G2 22.05.2006
i think it is right...
what else you need to display? -
SE16 data display and authorizations.
Hi Experts,
I had few following questions regarding data display and authorization using SE16 :-
As example, SAP HCM solution for an enterprise is implemented in say 10 countries :-
- Is it that using SE16 the user has the authorization to display all data, including the data for different countries employee's?
- isn't the infotype data based on the country grouping settiings and shouldn't be displayed via SE16?
- Can the authorization be controlled, using User group or some roles being assigned while creating the user id?
Thank you for your help in advance.
Thanks and Regards,
Puneet LuthraPuneet,
If you assign SE16 tcode to a profile you can set further authorization object S_TABU_DIS - here you can set authorization groups such as PA for HR intptype tables and SC for PD infotype tables,
I do not believe that you can actually set infotype level access. i.e if you give pa tables then thay can see all pa tables you cannot restrict to just say, 0001 and 0007. This is independent of the P_ORGIN authorizations, so even if you restrict a certain infotype in P_ORGIN, they will be able to see using SE16.
One of the ways in which we have got around it in the past is to just create custom transctaions for each table they want to see, such as zse16_pa0001 and assign individual tables to those who need it. Only HR experts and Support users need this kind of access in the production system so it should be relatively easy to maintain individually.
Hope this helps. -
How to fetch the data & display the data if fields got the same name in alv
hi frnds, i need ur help.
how to fetch the data & display the data if fields got the same name in alv grid format.
thanks in advance,
Regards,
mahesh
9321043028Refer the url :
http://abapexpert.blogspot.com/2007/07/sap-list-viewer-alv.html
Go thru the guide for OOPs based ALV.
Use SET_TABLE_FOR_FIRST_DISPLAY to display the table:
CALL METHOD grid->set_table_for_first_display
EXPORTING
I_STRUCTURE_NAME = 'SFLIGHT' Structure data
CHANGING
IT_OUTTAB = gt_sflight. Output table
You can also implement
Full Screen ALV, its quite easy. Just pass the output table to FM REUSE_ALV_GRID_DISPLAY.
For controlling and implementing the FS-ALV we have to concentrate on few of the components as follows :
1. Selection of data.
2. Prepare Layout of display list.
3. Event handling.
4. Export all the prepared data to REUSE_ALV_GRID_DISPLAY.
Regd,
Vishal -
Large number of attributes reduces data display in Query (PLS HELP).
Dear Guru's
We have newly upgraded our system to 7.0, Currently i have a Query based on master data info object(0 equipment) which contain several attributes, due to huge number of attributes, i cannot see data for few attributes( Ex:-0service descrip), but data exists for these atrrib, when i check in RSA1. my client want to use heavy number of 0Euipment numbers(nearly 10000) in selection screen. thats the reason for data not to be seen.
WE are under SP 16 also(Note 562162 - Additional selection of attribute reduces query result set is allready exists), and did not found any proper note.
So guru's can any one please tell me how i can get the data in Query for these attribute by keeping the same selection option for Equipment numbers (10000).
Dude's give me some good suggestion please...client is waiting from 1 week
Thanks in adv
Dev
Edited by: Srinivas dev on Jun 10, 2008 11:52 AMDear Yogesh,
Thanks a lot dude...
I assigned points for your kindly help....
Got any idea about by initial post Large number of attributes reduces data display in Query
Thanks and Regards
Dev -
Hi,
I've developed a dynpro application which accesses a backend SAP system, sends a variant value and gets results as table.
When I run the RFC function module inside SAP system, result displayed as follow:
WEMNG MEI BAKORAN TOB
1.582,50 AD 68,20 AD
But when i displayed the same data via a dynpro application inside portal. Same data displayed as follow:
WEMNG TOB BAKORAN
158,25 AD 68,2
Please notice that WEMNG field vaules are displayed different. Why? and how can i fix dynpro application so it displays exactly as SAP?
regardsHi,
You can create a Simple Type, set the correct display format.
Use the simple type as the type of your context element attached to your view element.
Thanks & Regards,
Renjith. -
Hi
Is there a way to filter a drop down list by using the result main data display from"GetUserProfileByName" when open the form?
The second source has a huge list of company names that can be narrrow by email work.
background:SP 2010 and Infopath 2010
CRISTINA& MICROSOFT ForumI'm not sure if I understood your question clearly but here is a good resource on how to get attributes from "GetUserProfileByName" web services:
http://blog.mangroveweb.com/pre-populating-an-infopath-from-with-mysql-data-using-a-net-web-service/using-sharepoints-getuserprofilebyname-web-service-to-retrieve-ad-account-information/
Regarding filtering dropdown list then this could be done by applying form on-load rules.
Hope this helps -
Multiple Language : Data Display Problem
Hi ,
I have one problem regarding NLS_LANG, please advice.
I have a table on source machine which stores the data in different language (German, Danish, Russian Cyrillic) but these data shows as "???????" on command prompt as well as on Toad when access it from client machine.
I know that displaying any kind of data depends on local NLS_LANG but what NLS_LANG I have to set so that it can display different language together. I am able to display data separately for German, Danish and Russian Cyrillic when I change NLS_LANG and location in client accordingly but unable to display all language together.
Default setting for NLS_LANG on client machine is AMERICAN_AMERICA.WE8MSWIN1252.
Please advise common NLS_LANG for all three language (German, Danish, Russian Cyrillic).
Thanking YouPl continue the discussion in your original thread for continuity purposes.
Multiple data display problem -
HI ,
I have modified standard Purchase Order --> MEDRUCK Form.
i am finding problems for service po
1) Date Display is in mm/dd/yyyy format.
this is occuring only for po starting with number 47..... series.
I am getting for the rest of the PO's as in dd/mm/yyyy format.
which is correct and what i needed to display as.
can any one suggest, how do i correct this problem.
thanks in advance,
krishnaHi,
Just set date mask prior in your program lines and so that everyting will be in one format.
set date mask = 'dd/mm/yyyy'
Regards,
Narendra. -
How to load this value into the master data display attribute
Hi ,
Please share me the knowldege how to load this kind of data into master data display attribtes ..
Raj + Ravi Ltd (PCG: 13592)
While loading this data ,i got the error message stating that '+' should not be part of the attributes and () should not be part of the attribute ..but i need all the information as it is available in the example data .
Do i need to maintain RSKC Settings else some other things required ..
Please guide me ..
Regards,
RajHI,
Maintain these symbols in RSKC and try to reload the data.... -
Dear PM Experts,
I m facing a problem regarding equipments Master data display.
When I used t-code ih01 after getting the list of technical object when I click any of the technical object, in equipment master data structure tab I can see the functional location and superior equipment
But when I m seeing the same equipment No. through IE03 I m not able to see the functional location or superior equipment in structure tab.
One more difficulty hw to see the changes history effectively because when I see the changes history Extra---- Display Changes.there are no. of entry at a single time for example at 15:10:05 ( 15 hrs 10 min. & 05 sec ) there are ten changes in old value H & New value D . What it means please explain.
RCDear Pete,
I got the answer
1.In Ih01 Valid date i was taking in past so it was showing the past history of equipment.
2.whenever I m dismantling any functional location it is showing multiple changes at a single time.
RC
Edited by: Raju chauhan on Oct 12, 2008 3:31 PM -
Data display grid font selection
Does anyone know how to change the font that's used on the "Data" tab when displaying the content of rows in a table?
I'm trying to view chinese characters which are stored in UTF-8 unicode in the database. I have all the necessary fonts loaded on my machine and the correct NLS_LANG settings.
I can see western characters, arabic, russian, greek OK in the data-grid, but not chinese or other far-eastern languages. Instead I see little squares instead of the symbols.
I've checked for font setting in Tools -> Preferences but the only setting I can find is under the "Code Editor" section. This is set correctly (to Arial Unicode MS) and if I copy the "little squares" from the data grid and paste them into a code-edit tab I see the characters correctly displayed.
So it seems that the "Font" setting for the code-edit tabs isn't used by the data-display tabs.
Is there a way of making both code-editor window and data-display tab use the same font?i would create a standard report.
i presume the air pressure and humidity are from one field? if not create a formula to display that.
create groups
1- a/p humidity field or formula
2- time
3- ref-measure- error
not sure if they are the same field or different.
you can then place your data in the groups (formulas calcs etc)
then underlay the groups so they appear on the same line
then draw boxes around them.
hope this helps -
Hi Guru's
I've created a generic ds using fm for direct access.creating virtual cube and mapped accordingluy with ds.
Now when I do test extract on ds per a single posting day then it takes few secords to pull through the data and the no. of records are 45 on dev box.But I do data display on remote cub and it takes long and throughing a timed out error.
I dont have any routines on transformaions.
What could be the problem?
Nagesh.HI
here's the code in FM
Example: DataSource for table SFLIGHT
TABLES: BKPF,BSEG.
Auxiliary Selection criteria structure
DATA: L_S_SELECT TYPE SRSC_S_SELECT.
Maximum number of lines for DB table
STATICS: S_S_IF TYPE SRSC_S_IF_SIMPLE,
counter
S_COUNTER_DATAPAKID LIKE SY-TABIX,
Starting point for each data package
READ_NEXT LIKE SY-TABIX,
Total Number of Extracted Records
NO_RECS LIKE SY-TABIX,
Number read so far
TEMP_CNTR(9) TYPE N.
cursor
S_CURSOR TYPE CURSOR.
Select ranges
RANGES: R_BLDAT FOR BKPF-BLDAT,
R_BUDAT FOR BKPF-BUDAT,
R_CPUDT FOR BKPF-CPUDT,
R_BUKRS FOR BKPF-BUKRS,
R_GJAHR FOR BKPF-GJAHR,
R_BELNR FOR BKPF-BELNR.
DATA: GT_T_DATA LIKE ZFI_GL_4 OCCURS 0 WITH HEADER LINE.
DATA: GT_BKPF TYPE TABLE OF BKPF,
GS_BKPF TYPE BKPF.
DATA: COUNTER(9) TYPE N.
DATA: LV_MONAT(3).
Initialization mode (first call by SAPI) or data transfer mode
(following calls) ?
IF I_INITFLAG = SBIWA_C_FLAG_ON.
Initialization: check input parameters
buffer input parameters
prepare data selection
Check DataSource validity
CASE I_DSOURCE.
WHEN 'ZFI_GL_4'.
WHEN OTHERS.
IF 1 = 2. MESSAGE E009(R3). ENDIF.
this is a typical log call. Please write every error message like this
LOG_WRITE 'E' "message type
'R3' "message class
'009' "message number
I_DSOURCE "message variable 1
' '. "message variable 2
RAISE ERROR_PASSED_TO_MESS_HANDLER.
ENDCASE.
APPEND LINES OF I_T_SELECT TO S_S_IF-T_SELECT.
Fill parameter buffer for data extraction calls
S_S_IF-REQUNR = I_REQUNR.
S_S_IF-DSOURCE = I_DSOURCE.
S_S_IF-MAXSIZE = I_MAXSIZE.
Fill field list table for an optimized select statement
(in case that there is no 1:1 relation between InfoSource fields
and database table fields this may be far from beeing trivial)
APPEND LINES OF I_T_FIELDS TO S_S_IF-T_FIELDS.
ELSE. "Initialization mode or data extraction ?
Data transfer: First Call OPEN CURSOR + FETCH
Following Calls FETCH only
First data package -> OPEN CURSOR
IF S_COUNTER_DATAPAKID = 0.
Fill range tables BW will only pass down simple selection criteria
of the type SIGN = 'I' and OPTION = 'EQ' or OPTION = 'BT'.
LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'BLDAT'.
MOVE-CORRESPONDING L_S_SELECT TO r_bldat.
APPEND R_BLDAT.
ENDLOOP.
LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'BUDAT'.
MOVE-CORRESPONDING L_S_SELECT TO R_BUDAT.
APPEND R_BUDAT.
ENDLOOP.
LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'CPUDT'.
MOVE-CORRESPONDING L_S_SELECT TO R_CPUDT.
APPEND R_CPUDT.
ENDLOOP.
LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'BUKRS'.
MOVE-CORRESPONDING L_S_SELECT TO R_BUKRS.
APPEND R_BUKRS.
ENDLOOP.
LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'GJAHR'.
MOVE-CORRESPONDING L_S_SELECT TO R_GJAHR.
APPEND R_GJAHR.
ENDLOOP.
LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'BELNR'.
MOVE-CORRESPONDING L_S_SELECT TO R_BELNR.
APPEND R_BELNR.
ENDLOOP.
Determine number of database records to be read per FETCH statement
from input parameter I_MAXSIZE. If there is a one to one relation
between DataSource table lines and database entries, this is trivial.
In other cases, it may be impossible and some estimated value has to
be determined.
SELECT * FROM BKPF INTO TABLE GT_BKPF WHERE BLDAT IN R_BLDAT
AND BUDAT IN R_BUDAT
AND CPUDT IN R_CPUDT
AND BUKRS IN R_BUKRS
AND GJAHR IN R_GJAHR
AND BELNR IN R_BELNR.
LOOP AT GT_BKPF INTO GS_BKPF.
SELECT * FROM BSEG WHERE BELNR = GS_BKPF-BELNR
AND BUKRS = GS_BKPF-BUKRS
AND GJAHR = GS_BKPF-GJAHR.
MOVE-CORRESPONDING GS_BKPF TO GT_T_DATA.
MOVE-CORRESPONDING BSEG TO GT_T_DATA.
CLEAR LV_MONAT.
CONCATENATE '0' GT_T_DATA-MONAT INTO LV_MONAT.
CONCATENATE GT_T_DATA-GJAHR LV_MONAT INTO GT_T_DATA-FISCPER.
CALL FUNCTION 'BWFIU_GET_DOCUMENT_ORIGIN'
EXPORTING
I_AWTYP = GT_T_DATA-AWTYP
I_AWKEY = GT_T_DATA-AWKEY
IMPORTING
E_REFBELNR = GT_T_DATA-AWREF
E_REFGJAHR = GT_T_DATA-AWGJA
E_REFBUKRS = GT_T_DATA-AWBUK
E_REFKOKRS = GT_T_DATA-AWKOK.
Lcal currency calculations.
IF GT_T_DATA-SHKZG EQ 'S'.
GT_T_DATA-DMSOL = GT_T_DATA-DMBTR.
GT_T_DATA-DMSHB = GT_T_DATA-DMBTR.
GT_T_DATA-DMHAB = 0.
ELSEIF GT_T_DATA-SHKZG EQ 'H'.
GT_T_DATA-DMHAB = GT_T_DATA-DMBTR.
GT_T_DATA-DMSHB = GT_T_DATA-DMBTR * -1.
GT_T_DATA-DMSOL = 0.
ENDIF.
Foriegn Currency calculations.
IF GT_T_DATA-SHKZG EQ 'S'.
GT_T_DATA-WRSOL = GT_T_DATA-DMBTR.
GT_T_DATA-WRSHB = GT_T_DATA-DMBTR.
GT_T_DATA-WRHAB = 0.
ELSEIF GT_T_DATA-SHKZG EQ 'H'.
GT_T_DATA-WRHAB = GT_T_DATA-DMBTR.
GT_T_DATA-WRSHB = GT_T_DATA-DMBTR * -1.
GT_T_DATA-WRSOL = 0.
ENDIF.
APPEND GT_T_DATA.
ENDSELECT.
ENDLOOP.
DESCRIBE TABLE GT_T_DATA LINES NO_RECS.
READ_NEXT = 0.
TEMP_CNTR = 0.
ENDIF. "First data package ?
Fetch records into interface table.
IF ( READ_NEXT GT NO_RECS ) OR ( NO_RECS EQ 0 ).
REFRESH GT_T_DATA.
CLEAR:S_COUNTER_DATAPAKID, COUNTER, READ_NEXT, S_S_IF, NO_RECS.
RAISE NO_MORE_DATA.
ENDIF.
COUNTER = 0.
LOOP AT GT_T_DATA FROM READ_NEXT.
COUNTER = COUNTER + 1.
IF COUNTER GT S_S_IF-MAXSIZE.
IF TEMP_CNTR EQ NO_RECS.
CLEAR: S_COUNTER_DATAPAKID,COUNTER,READ_NEXT,S_S_IF,NO_RECS.
RAISE NO_MORE_DATA.
ELSE.
READ_NEXT = READ_NEXT + COUNTER.
ENDIF.
EXIT.
ENDIF.
MOVE-CORRESPONDING GT_T_DATA TO E_T_DATA.
APPEND E_T_DATA.
TEMP_CNTR = TEMP_CNTR + 1.
iF TEMP_CNTR GT NO_RECS.
CLEAR GT_T_DATA.
CLEAR: S_COUNTER_DATAPAKID, COUNTER,READ_NEXT, S_S_IF,NO_RECS.
RAISE NO_MORE_DATA.
EXIT.
ENDIF.
ENDLOOP.
S_COUNTER_DATAPAKID = S_COUNTER_DATAPAKID + 1.
ENDIF. "Initialization mode or data extraction ?
ENDFUNCTION.
If it's a code then why it's quick on rsa3?
Nagesh. -
Feature Request: Better dimensional meta data displayed
Aside from every other problem with how Bridge lets the user display, sort and interact with meta data (aside from the actual metadata palette), it would be way more useful to have the Dimension meta data displayed under an image shown in 'real world' dimensions.
For example: I'm looking at my 'final images' that have been converted to CMYK, and sized for delivery. At this point Pixel Dimensions are pretty useless. What I really want to do is quickly scan my images, seeing Inches (or CM) with a PPI. My clients never ask for pixel dimensions (unless we are talking about the web, which we aren't) - they ask for 8.76" x 5.34" at 266ppi. It would just be nice to use bridge to double check the image sizes before delivery.
thks
andyThanks for you feedback. You wish has been granted (dimensions can now be displayed in pixels, inches or centimeters. Go to Preferences > Thumbnails to select which dimension to display below the thumbnail, or Preferences > Metadata to customize the metadata pane). Check out the free beta of Bridge CS3 (http://labs.adobe.com/technologies/photoshopcs3/)
Cheers,
Arno.
Bridge Engineering Manager, Adobe. -
IPhoto 6 - Date Display Bug?
I've gone ahead and upgraded to iPhoto 6. Upon first launch, it asked to update the files which I did.
The new file hierarchy issues aside (Original/Year/Roll drives me nuts), I've noticed that while the calendar shows the correct pictures of the day selected, the Roll name is generic ("Roll 567", etc.) and the date of the roll is not correct.
For example, a roll taken on December 25, 2005 should have the date of 31/12/05 (or perhaps 12/31/05) but I'm seeing "12/05/05" and when I get info on a pic in that roll, the date taken is shown as "12/2005/2005".
I've deleted the plist but not sure what else I can try.Figured out that the "corrupt" date display is due to custom format display settings for Date in the International preference pane. Set that back to standard and the photos are back to normal.
Maybe you are looking for
-
Can you sync the apple watch to more than one phone?
Say I wanted to leave my phone at home. Could I sync my apple watch to my husbands phone but still get my texts etc???
-
INTRASTAT/ EXTRASTAT- OUTPUT FIELDS
Hello Experts, For intrastat and extrastat reporting , for italy, when i run MEIS for intrastat i get the following fields in the output. Our Italian client requires the intrastat to be sorted as per vendor VAT number and commercial code is this the
-
What is the best way to create a photo gallery?
Hi, I want to create a photo gallery in Dreamweaver without using any pre-built "web gallery" function. What's the best way to swap the images when I click the "next" button? Do I create a new Dreamweaver page for each photograph? Is there a more eff
-
I want to delete digital signatures as I've added several trying to get this right. I've followed the help instructions by going to tools, protection, ,more protection, security settings and there are no digital signatures on the left as the instruc
-
HT2500 How do I attach emails to another email?
I want to attach several separate emails and send them to someone rather than forward them all individually. I know I used to be able to do this on my old Dell. I am using microsoft office for mac [cant see this in the list below] and my internet pro