Reg. JFormattedTectField & Date
Hello Friends,
I have a JFTF of Date set to simpleDateFormat(yyyy-mm-dd) format. when the user enters date in some other format - dd-mm-yyyy format, how can i trap that & force the user to enter date in specified format only.
Currently, as said the date format is set to a text field. Suppose the user enteres 11-11-1974,On retriving the text, I get 0017-03-27. While validating date, as it is a valid date, so no errors, but it is wrong. Such date cannot be saved in a database. If again i have to chk the year, day, & month then what the use of this format. So, I want to know, how and when an I trap this invalid/improper format input & inform user to enter data in specified format only. Do i have to handle any event or what?
I am really very curious, wondering about this, and at this point this is the biggest bug in my application. I tried my best to solve this bug, but couldn't find any solution. Does anyone over here have any idea. I would be very thankful for any help.
Thanks
Trupti
No dear, it doesn't help change any thing. As i had said, on lostfocus, it does some calculations and changes the format & value. Eg. if i enter 11-11-1974, it shows 0017-03-27. So that line makes no changes.
My Code is :-
// Set the DateFormatter with SimpleDateFormat
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
//sdf.setLenient(true);
dobFormat = new DateFormatter(sdf);
dob_tf = new javax.swing.JFormattedTextField();
// Set Format to the Text Field
dob_tf.setFormatterFactory(new DefaultFormatterFactory(dobFormat));Do u think, I am going wrong somewhere in the code.
Trupti
Similar Messages
-
Hi All,
My problem is that i need to retrieve some data from V_TTDS which is a VIEW in the ABAP-Dictionary.How can i accomplish this task.Hi,
this is a maintenance view
so you cannot write the select query
but you can write the select query on TTDS
TTDST tables
as these are the two tables involved in this
this is the condition maintained to get this view
TTDS MANDT = TTDST MANDT
TTDS TPLST = TTDST TPLST
select a~field
b~field1
from ttds as a inner join
ttdst as b on atplst = btplst
into table itab
where conditions
then it will work
regards,
Venkatesh -
Reg-Creating Data source in BI
Hi All,
I need to crate a data source in BI By using the following tables TBTCP, TBTCO, TRDIRT, TSTC..First two tables having common relationship, where as there is no relationship between TRDIRT and TSTC tables....For this i am planning to do by creating a Functional Module.
Using Functional Module any draw back's are there?
Let me suggest is there any alternative like BADI, BAPI........
With Regards
AswinSince there is no common field in the rest of the two tables, you wont be able to make view on them. FM is the option. There is no drawback, the only thing is that you need to write the code.
Thanks...
Shambhu -
Hi All,
Which is the function module which Extracts the data from the application document ( Sales order or quotes ) and populates to the SAP message type Idoc segments.
what are the SAP table involved in doing this mapping.
Thanks & Regards.
vijayUnfortunately the mapping is not in any table but in the source code as extracted here:
e1cuins-class_type cuins-class_type
e1cuins-inst_id cuins-inst_id
e1cuins-obj_key cuins-obj_key
e1cuins-obj_txt cuins-obj_txt
e1cuins-obj_type cuins-obj_type
e1cuins-quantity cuins-quantity
e1cuprt-class_type cuprt-class_type
e1cuprt-inst_id cuprt-inst_id
e1cuprt-obj_key cuprt-obj_key
e1cuprt-obj_type cuprt-obj_type
e1cuprt-parent_id cuprt-parent_id
e1cuprt-part_of_no cuprt-part_of_no
e1cuval-author cuval-author
e1cuval-charc cuval-charc
e1cuval-charc_txt cuval-charc_txt
e1cuval-inst_id cuval-inst_id
e1cuval-value cuval-value
e1cuval-value_txt cuval-value_txt
e1edk01-autlf xvbak-autlf
e1edk01-belnr ekko-ebeln
e1edk01-bsart ekko-bsart
e1edk01-curcy iso_waers
e1edk01-kzabs pekko-kzabs
e1edk01-kzazu xvbkd-kzazu
e1edk01-lifsk xvbak-lifsk
e1edk01-recipnt_no ekko-lifnr
e1edk01-vsart xvbak-vsbed
e1edk01-zterm ekko-zterm
e1edk02-belnr ekko-angnr
e1edk02-belnr ekko-ebeln
e1edk02-belnr ekko-konnr
e1edk02-belnr ekko-submi
e1edk02-belnr pekko-labnr
e1edk02-datum ekko-bedat
e1edk02-uzeit sy-uzeit
e1edk03-datum ekko-angdt
e1edk03-datum ekko-bedat
e1edk03-datum ekko-bnddt
e1edk03-datum ekko-bwbdt
e1edk03-datum ekko-ihran
e1edk03-datum ekko-kdatb
e1edk03-datum ekko-kdate
e1edk03-datum pekko-eindt
e1edk03-datum sy-datlo
e1edk14-orgid ekko-bsart
e1edk14-orgid ekko-bukrs
e1edk14-orgid ekko-ekgrp
e1edk14-orgid ekko-ekorg
e1edk17-lkond ekko-inco1
e1edk17-lkond xvbkd-inco1
e1edk17-lktext ekko-inco2
e1edk17-lktext xvbkd-inco2
e1edk18-prznt ekko-zbd1p
e1edk18-prznt ekko-zbd2p
e1edk18-tage ekko-zbd1t
e1edk18-tage ekko-zbd2t
e1edk18-tage ekko-zbd3t
e1edka1-bname ekko-verkf
e1edka1-bname t024-eknam
e1edka1-ihrez ekko-ihrez
e1edka1-ihrez ekko-unsez
e1edka1-ilnnr h_iln_vendor
e1edka1-lifnr h_pekko_werks
e1edka1-lifnr pekko-werks
e1edka1-orgtx t024e-ekotx
e1edka1-pagru ekko-ekgrp
e1edka1-paorg ekko-ekorg
e1edka1-partn ekko-lifnr
e1edka1-partn ekko-logsy
e1edka1-partn lfa1-lifnr
e1edka1-partn lfb1-eikto
e1edka1-partn pekko-kunnr
e1edka1-partn t000-logsys
e1edka1-partn xvbpa_we-kunnr
e1edka1-parvw 'EZ'
e1edka1-parvw h_parvw
e1edka1-parvw 'LF'
e1edka1-parvw 'WE'
e1edka1-spras ekko-spras
e1edka1-telf1 ekko-telf1
e1edka1-telf1 t024-ektel
e1edka1-telfx t024-telfx
e1edkd1-ekgrp ekko-ekgrp
e1edkd1-ekorg ekko-ekorg
e1edkp1-defpa xekpa-defpa
e1edkp1-ekorg xekpa-ekorg
e1edkp1-lifn2 xekpa-lifn2
e1edkp1-ltsnr xekpa-ltsnr
e1edkp1-parvw xekpa-parvw
e1edkp1-werks xekpa-werks
e1edkt1-tdid xt166a_del-tdid
e1edkt1-tdid xt166k_del-tdid
e1edkt1-tsspras ekko-spras
e1edp01-abftz ekpo-abftz
e1edp01-antlf xvbap-antlf
e1edp01-bmng2 ekpo-ktmng
e1edp01-bmng2 ekpo-menge
e1edp01-bpumn ekpo-bpumn
e1edp01-bpumz ekpo-bpumz
e1edp01-brgew e1edp01-menge*ekpo-brgew
e1edp01-evers ekpo-evers
e1edp01-gewei ekpo-gewei
e1edp01-kzabs ekpo-kzabs
e1edp01-lgort ekpo-lgort
e1edp01-matkl ekpo-matkl
e1edp01-matnr ekpo-matnr
e1edp01-menee ekpo-meins
e1edp01-menge ekpo-ktmng
e1edp01-menge ekpo-menge
e1edp01-netwr ekpo-netwr*cur_factor
e1edp01-ntgew e1edp01-menge*ekpo-ntgew
e1edp01-peinh ekpo-peinh
e1edp01-pmene ekpo-bprme
e1edp01-posex ekpo-ebelp
e1edp01-posguid xvbap-posguid
e1edp01-pstyp ekpo-pstyp
e1edp01-uepos ekpo-uebpo
e1edp01-vprei ekpo-netpr*cur_factor
e1edp01-werks ekpo-werks
e1edp02-belnr ekpo-aktnr
e1edp02-belnr ekpo-konnr
e1edp02-belnr ekpo-labnr
e1edp02-belnr h_xvbkd-bstkd_e
e1edp02-belnr xvbap-werks_ext
e1edp02-belnr xvbkd-bstkd_e
e1edp02-bsark h_xvbkd-bsark_e
e1edp02-bsark xvbkd-bsark_e
e1edp02-ihrez h_xvbkd-ihrez_e
e1edp02-ihrez xvbkd-ihrez_e
e1edp02-zeile ekpo-ktpnr
e1edp02-zeile h_xvbkd-posex_e
e1edp02-zeile xvbkd-posex_e
e1edp03-datum ekpo-abdat
e1edp03-datum ekpo-agdat
e1edp17-lkond ekpo-inco1
e1edp17-lkond xvbkd-inco1
e1edp17-lktext ekpo-inco2
e1edp17-lktext xvbkd-inco2
e1edp19-idtnr ekpo-ematn
e1edp19-idtnr ekpo-idnlf
e1edp19-idtnr ekpo-matnr
e1edp19-ktext ekpo-txz01
e1edp20-ameng xeket-ameng
e1edp20-ameng xeket-wemng
e1edp20-edatu xeket-eindt
e1edp20-ezeit xeket-uzeit
e1edp20-wmeng xeket-menge
e1edpa1-partn ekpo-kunnr
e1edpa1-partn xvbpa_we-kunnr
e1edpd1-bednr xekpo-bednr
e1edpd1-bstae xekpo-bstae
e1edpd1-insmk xekpo-insmk
e1edpd1-knttp xekpo-knttp
e1edpd1-kzabs xekpo-kzabs
e1edpd1-labnr xekpo-labnr
e1edpd1-lgort xekpo-lgort
e1edpd1-mahn1 xekpo-mahn1
e1edpd1-mahn2 xekpo-mahn2
e1edpd1-mahn3 xekpo-mahn3
e1edpd1-mwskz xekpo-mwskz
e1edpd1-prsdr xekpo-prsdr
e1edpd1-schpr xekpo-schpr
e1edpd1-spinf xekpo-spinf
e1edpd1-uebtk xekpo-uebtk
e1edpd1-uebto xekpo-uebto
e1edpd1-untto xekpo-untto
e1edpd1-webre xekpo-webre
e1edpd1-werks xekpo-werks
e1edpt1-tdid xt166p_del-tdid
e1edpt1-tsspras ekko-spras
e1eds01-summe ekko-ktwrt*cur_factor
e1eds01-summe pekko-netwr*cur_factor
e1eds01-sunit iso_waers
Whenever you have qualifiers, the segments appear multiple with diefferent fields.
Regards,
Clemens -
Reg : export data from ALV to excel file
Hi All,
I am using REUSE_ALV_GRID_DISPLAY to display the output. I have total 73 columns getting displayed in output but when i export the data to the excel file using (ctrlshiftF9) I am getting only first 43 columns in the first row and from 44th column on wards the data is populated in the 1st column of second row.
Please let me know is there any particular setting by which I can get all the 73 columns in a single row.
Thanks in advance.
VIJAYHi vijay,
You can try setting your line width to 255 in your abap program.
Otherwise, you can try an alternative:
1. Put a customize button on the ALV toolbar.
2. Go to se41 to create th buttons
2. do i_callback_program in ALV function. or SET PF_STATUS
3. Then in sy-ucomm, use 'GUI_DOWNLOAD' to xls.
Hope this helps you.
Thanks
William Wilstroth
Edited by: william wilstroth on Dec 18, 2007 5:06 PM -
Reg: Convert Data in LSMW
Hi,
Upload Purchase Order data using multiple flat file through LSMW
in LSMW it's working fine upto Display Read Data.
After that enter into the convert Data it will ask the Transaction Number.
I didn't understand what's related Transaction Number.
I tried to enter the some values it will show the error like "Use Date format in the user master". After that i tried to enter the date formate but it's not working and shows blank .
Please anybody help me regarding this transaction number
Thanks & Regards.
Edited by: Praveen SatyaSai on Dec 28, 2011 3:28 PMIf you leave it empty, all your records will be converted. If you enter 1, the first set of records (or transaction) will be converted.
basically, you can use it to only convert a specific set of data (or transaction). -
Reg: No Data In database view
I have created a database view with three tables T001K , TKA02, T001W.
The view is consistent. But it doesnt return any data. I have checked it that common records exist between these three tables. What else could be the problem ?
Kindly help.
Regards,
SriHello Ravi ,
The issue got solved. One of the conditions in the view was to check for null values. Null values seem to be represented in diff ways in diff database versions.
Thankyou. -
Reg : Master Data Mapping ( 0GL Account and CS Item)
HI Sivakumar and Gurus,
Thanks for your information.
we have created all Group GL masters and assinged with Oper.GL Masters in R/3.
1.Now please guide me how to map 1 to1 of Group GL and CS_Item.I am using 0BCS_C10 cube for my consolidation.
2. We have not implemented new GL , Still can i use " 0BCS_C10 standard Cube for my LC and MC ( Profit Center).?
Thank you very much for your help.
Regards
Annajanardhana annapureddy wrote:>
> HI Sivakumar and Gurus,
>
> Thanks for your information.
>
> we have created all Group GL masters and assinged with Oper.GL Masters in R/3.
>
> 1.Now please guide me how to map 1 to1 of Group GL and CS_Item.I am using 0BCS_C10 cube for my consolidation.
>
> 2. We have not implemented new GL , Still can i use " 0BCS_C10 standard Cube for my LC and MC ( Profit Center).?
>
> Thank you very much for your help.
>
> Regards
> Anna
Hi Anna,
It all depends on how your Group GL account is linked to Operational GL account in BW. In the BW, you can make Group GL account Info object as an attribute of Operational GL account Info object (0GL_Account). Then in the Load data stream method configuration, you can map 0CS_Item to Group GL account as an attribute of 0GL_account, on 1 to 1 basis. You have to be sure that in the Source Data Basis, you have Operational GL account data available with the attribute of Group GL account.
2. Non-implementation of new GL does not make a difference. -
Reg:loading data into cube getting error
Hi,
When i am loading data intothe cube i am getting following error.
record1:fiscal year variant not expected.
error 4 update.Recently, I experienced following error:
fiscal year variant K4 not expected.
following process fixed my issue
In the transfer rules, select field '0fiscvarnt' 'Tp' click
Enter K4 for Constant................Save and Activate
Also check the following-------
in R/3 (SE16), make sure K4 exists in table T009
in Bw, select source system --> transfer global settings -
Reg: End Date equivalent in OIM 11g
Hi All,
In OIM 11g, what is the equivalent of end-date in GTC Flat file reconciliation? What is the format it will accept?
Can someone suggest
Regards,
KaranThe OIM, though reads the date value in YYYY/mm/DD hh:mm:ss - It returns only date without timestamp.
So, Get the string value, Append the value with 00:00:00
Store the appended value in a temp variable.
Then, use your code to change the string to date vaue.
Cheers,
Vamsi. -
iam unable to fetch the WBS data for MEXICO orders with the follwing query
*.select all date activities found for the WBS
SELECT afvcprojn afvcaufpl afvcaplzl afvuusr00
INTO TABLE gt_sid_hod
FROM afvc INNER JOIN afvu ON
( afvcaufpl = afvuaufpl AND
afvcaplzl = afvuaplzl )
FOR ALL entries IN lt_vbup_vbap
WHERE afvc~projn EQ lt_vbup_vbap-pspnr
AND afvu~usr00 IN ('SID', 'HOD',
'RRD', 'ITD', 'SDD', 'DDQ', 'DID' ).
Can you please advise..there is any constaraints..
But the sale orders are aviable with Project and its activites
Thanks
RamHi ,
Thanks for answering
WBS element is not avilable in the AFVC table for the mexico orders,but it will update the WBS for the ohter organization.
please let me how the WBS can updated in the AFVC table.
Thanks & Regards
Ram -
Reg:Document Date Blank in FB03(Print Preview)
Hi All,
When i display the G/L Account Document in FB03 Transaction, and give the Print Preview i don't want to display the document date, it should be blank is there any way to achieve this scenario?Figured it out. It had nothing to do with the software levels of Safari or Adobe Acrobat. Here's the fix:
Open Finder/Applications
Search "Internet Plug-Ins"
Move any Adobe plug-ins to the trash
Quit Safari
Launch Safari
Your pdf document should now render in Print Preview and print properly. -
Reg: Import data tab in PO
Hi,
Any one knows how to determine the import data complete in PO ? is there any user exits / configuration to be done?Check user exit MM06E005 or Badi ME_PROCESS_PO_CUST.
-Alpesh -
Reg caluclating date range?
hi friends
my requirement is i have to retrive data based on the one month date range given on the date in my selection screen . how to caluclate one month range for the given date ? is there any function module available ? can i use hr function modules in abap ?
thanks & regards
deepurdFirst You told this;
>
deepu rd wrote:
>actually my requirement is i have to retrieve the data which is entered from the last one month of given date >in selection screen? whatsthe function module for getting this
>ex: suppose i given 20-11-2008
>i have to retrieve the data between 20-10-2008 to 20-12-2008
Now you are telling this;
>
deepu rd wrote:
> hi sravanthi
> when i was trying to use the HR function module its giving dump .
> my requiremnt is
> if selection screen input date is 25-12-2008 i have to retrive documents posted within 1 month range . data between 24-11-2008 to 25-12-2008.
>
> regards
> deepurd
Do you know that thus you are effectively wasting yours as well as others time?
Can't you use the above codings and FM's given by all to achieve your requirement.
First of all you come to a conclusion on what you want, then you can arrive at the solution using all the above inputs and ideas.
Regards
Karthik D -
Reg Keyfigures data type in Transfer structure
Hi Guys,
When we create a transfer structure for a falt file source system, keyfigures data type is getting converted into CHAR automatically and even the length is assigned . Whats the reason behind this?? How do we get the lenght of a keyfigure?Hi Reddy,
CSV stands for "Comma Separated Value". This file format is often used to exchange data between disparate applications. The file format, as it is used in Microsoft Excel, has become a pseudo standard throughout the industry, even among non-Microsoft platforms whereas
<u>ASCII codes</u> represent text in computers, communications equipment, and other devices that work with text.
<u>The CSV File Format</u>
Each record is one line ...but
A record separator may consist of a line feed (ASCII/LF=0x0A), or a carriage return and line feed pair (ASCII/CRLF=0x0D 0x0A).
...but: fields may contain embedded line-breaks (see below) so a record may span more than one line.
Fields are separated with commas.
Example John,Doe,120 any st.,"Anytown, WW",08123
Leading and trailing space-characters adjacent to comma field separators are ignored.
So John , Doe ,... resolves to "John" and "Doe", etc. Space characters can be spaces, or tabs.
Fields with embedded commas must be delimited with double-quote characters.
In the above example. "Anytown, WW" had to be delimited in double quotes because it had an embedded comma.
Hope it helps...let me know
regards,
R.Ravi
Maybe you are looking for
-
Wireless Printer says it is busy when trying to print wirelessly
Hi, I just got the HP Photosmart Premium c310 printer. I am able to get on the wireless internet and go to apps that are on the printer its self. My Macbook Pro which is running on the Lion OSx connects to the printer wirelessly but anytime i try to
-
hi, Standard PM Transaction IW22 is giving dump the use entered the correct data. There is a select statment from table VIQMEL(notification header),to fetch data from this table it's taking lot of time and going to dump.This select statment is
-
I store my images in folders on my desktop. When I want to process photos in lightroom, I import to my laptop via network. Now I have a long line of sources and can't seem to import any more images. Now getting a message saying "unable to process
-
I've just created a script that copies the text I have selected in Safari, pastes it into a new Textedit document, and also pastes in the URL of the current page from Safari. It works fine when I open it up in Script Editor, and then run it. But when
-
How do I increase the size of a font from the internet when printing?
When printing from a webpage, the printing is so very tiny. If I increase the font under internet options it helps, but increases the font so large on the website that it doesn't fit on the viewed page. Help! I read a lot of the questions about this,