Dateformat, new line
Does anyone here knows if it is possible to put a new line in a dateformat? I need to do this duo to layoutreasons. Apparently something like DD/MM/YY <br> HH24:MI:SS, doesn't work.
Thanx. Barteld
It works in SQL*Plus ...
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Jul 10 17:00:30 2007
select to_char (sysdate, 'DD/MM/RRRR
HH24:MI:SS') dt from dual ;
DT
10/07/2007
17:00:30
1 row selected.Where are you trying it?
Joe Fuda
SQL Snippets
Similar Messages
-
How to print new line in jsp page
hi
how to print new line in jsp page
thanks\n - new line character is in java specific not HTML
specific.Well, if the correct line separator sequence (by far not always \n) would be used, it does add a new line to the HTML output. Too bad that you don't want to see HTML but formatted text. The BR tag is a formatting element for the displayed text, not a line break in HTML. ;) -
What is happening with my new line install?
Hi,
I don't normally post on anything like this, but feel I am being left no alternative, other than cancelling my order.
I am a new customer to BT and on the 14th of May I placed a order for a broadband and phone package, which was to include a new line installation on the 5th June between 8am and 1pm.
I also ordered a new phone system and dual wifi dongle which all turned up as expected.
On the 5th June I took a day off work and waited until just after 2:30pm for the engineer not to turn up.
I received no call, text or email telling me that the appointment had been cancelled, it took me to call BT and finally manage to get to speak to somebody human to find out that it had apparently been delayed.
First I was speaking to somebody from the UK the next I was put through to order management in India, which started to infuriate me more as the line was really bad and I was calling from my mobile for then to have them hang up on me.
I called back a further 3 times after being passed from pillar to post to eventually get put back in touch with a order management lady in India again.
She told me that the problem was with openreach as they reckoned they had tried calling me on the 14th May (when I placed the order) to which I replied I had not received any phone call from them.
They wanted to know if it was a first or second line installation, I replied 5 times with it is a separate line that needs to be installed and I still don't think she understood after that.
I was then told I would get an update on the 12th June between 8am and 8pm as to when the line was going to get installed, to which I did and again was a bad line as the call came from India just to be told there is another delay which will be the 19th June.
At this point I'm beginning to lose my patience, I had waited nearly a month for the line installation to happen to be told that there was another delay which would take another 7 days before somebody updated me again.
After I put the phone down I received a text from BT sms saying they had tried to contact me but we're unable to do so but not to worry they will be back in contact on the 22nd June?
Very strange seen as I had just spoken to somebody and was told the 19th June.
I rang back through to BT and got put through to India yet again where the signal was poor and asked that somebody call me from the UK as nothing seems to be getting sorted.
Within 10 mins I got a call back and was put through to BT in Dundee, I explained the whole situation over again and was told they would be looking into the problem and would get back to me later on the same day the 12th June.
It is now the 17th June and I still have no answer as to when the line installation is taking place, so I can start using the equipment I have paid for.
if I knew in the first place that this was going to be a problem I would have used a different provider other than BT, as a new customer I find their lack of communication and generally not seeming to give a **bleep** about customers poor, with my only choice then being if I don't get the answers I want on the 19th June I will cancel the order and send everything back for a full refund and would advise others not to use BT in the future.
Sorry for the rant and this being my first post but I am beginning to lose my patience any help would be appreciated.Hi lda1979,
Welcome to the forum and thanks for your post.
I am so sorry that your order has been delayed and you are not getting any information on this.
Can you send me in your details using the "Contact The Mods" link found in my profile and I will find out what is happening.
Cheers,
OlgaC
BTCare Community Mod
If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
We are sorry that we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)
If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’. -
Records are not getting imported due to new line charactor in the field
Dear All,
I am trying to load a file into target but the import is failing. The error thrown is as below;
During the import of leads into CRMoD through loading the New lead/Step lead file received from CA, leads have not been imported and we encountered the following
error message:
"Import field 'LAST_NAME' had a blank value for the required Oracle CRM On Demand field 'Last Name'. This record was not imported. Please enter desired values for
the required fields and re-import this record."
Reason:
Leads are not imported due to an additional new line (Enter) character, which results in the subsequent lines not being picked up and the error of import failure.
Please help me to resolve this to remove the new line charactor in the field so that import succeeds..
By the way, I am working on ODI 11g.
Thanks in Advance
Regards
SantyWhile i was reading your post i remembered an issue that madded me. I don't know Oracle CRM, but a possible workaround could be to create a temporary Oracle table and load all data inside it. After that load in CRM only valid rows.
-
Hi,
I am not clear about NEW CELL and NEW LINE in The Main window -> Table -> Footer -> Output options -> Output Table. Could any one help in explaining exactly what is the purpose of it.
Thanks
Ramwhen you are placing a text element, you need to specify whether you want this text element to be displayed in the next cell of the table. If the text element is to be displayed in the next line then you will have to check that as well. So, if you are displaying a list of fields in a row format then for the first field, you check both line and cell and for the rest of the fields you check just the cell.
Regards,
Ravi
Note - Please mark all the helpful answers -
PR...New line item not to be added
Hi,
I have a PR where release process is at line item. After approval (Release of the PR) the system does not allow any chnages to the PR Line item . BUt it allows to add new line item to the PR. How do we check that the new line item cannot be added to the PR.
Regards
NandiniHi
You can restrict changes to the PR after release by customisation. On OMGQ go to release indicator> choose the release indicator which once it is effected you do not want any changes...select the "details" then "changes after start of release process" - on the field changeability..enter " 1" for cannot be changed.
This will work perfectly since no additional items can be entered once the PR is approved. if you only restrict by changing the field selection screen, additional items can still be added.
if for any reason you want to make changes to the PR then the approver must reset the release.
regards
Nrikah -
General Ledger Accounting (New): Line Items of the Leading Ledger
Hello Guys,
We are planning to implement
General Ledger Accounting (New): Line Items of the Leading Ledger
0FI_GL_14
We are in ECC6 sap_appl 6.00 and BI 7.0 SP 14, BI Content 7.3 level 4.0
The new GL line item is available
Financial Accounting: General Ledger Accounting (FI-GL)
Available as of Release - SAP Enhancement Package 3 for SAP ERP 6.0
Shipment - SAP NetWeaver 7.0 BI Content Add-On 3 Support Package 08
Content Versions- 1.0; 703
Just we have to install SAP NetWeaver 7.0 BI Content Add-On 3 Support Package 08 and on ECC side SAP Enhancement package 3 for ERP 6.0 --. Financial accounting - SAP APPL 603.
Is it correct. Can you please confirm.
Thanks
SenthilHello Senthil,
Yes, thats engough, since SAP is recommending the same for that datasource 0FI_GL_14. I think you are already in that version.
See this SAP help document
[DataSource Transactional Data: 0FI_GL_14|http://help.sap.com/saphelp_nw04s/helpdata/en/45/4f8e8bbf3f4f63a5dd197ef7d53fa2/content.htm]
Thanks
Chandran -
General Ledger Accounting (New): Line Items 0FIGL_O14 Performace issue
Dear Forum,
We are facing a performance issue while loading the data to 0FIGL_O14 General Ledger Accounting (New): Line Items from CUBE ZMMPRC01 -> ODSO 0FIGL_O14 DSO.
Please see my requirement below for updating the data to 0FIGL_O14 DSO.
This report is generated to display Dry Dock and Running Repair expenses for the particular Purchase orders with respective G/L's.
1) The G/L DSO will provide us the 0DEBIT_LC and 0DEB_CRE_DC Foreign currency amount with signs (+/-) amounts and.
2) ZMMPRC01 Cube will provide us the 0ORDER_VALUE (Purchse order value)and 0INVCD_AMNT Invoice amount.
While we are loading the data from CUBE ZMMPRC01 -> ODSO 0FIGL_O14 DSO ,we have created nearly 19 InfoObject level routine to derive the below mentioned fields data for MM Purchase Order related records.
0CHRT_ACCTS Chart of accounts
0ITEM_NUM Number of line item within accounting documen
0AC_DOC_NO Accounting document number
0GL_ACCOUNT G/L Account
0COMP_CODE Company code
0COSTCENTER Cost Center
0CO_AREA Controlling area
0COSTELMNT Cost Element
0SEGMENT Segment for Segmental Reporting
0BUS_AREA Business area
0FUNC_AREA Functional area
0AC_DOC_NR Document Number (General Ledger View)
0AC_DOC_TYP Document type
0POST_KEY Posting key
0PSTNG_DATE Posting date in the document
0DOC_CURRCY Document currency
0LOC_CURTP2 Currency Type of Second Local Currency
0CALQUART1 Quarter
0CALYEAR Calendar year
For reference Please see the below logic to derive the data for PO related record.
DATA:
MONITOR_REC TYPE rsmonitor.
$$ begin of routine - insert your code only below this line -
... "insert your code here
types : begin of ty_FIGL,
CHRT_ACCTS type /BI0/OICHRT_ACCTS,
ITEM_NUM type /BI0/OIITEM_NUM,
AC_DOC_NO type /BI0/OIAC_DOC_NO,
GL_ACCOUNT type /BI0/OIGL_ACCOUNT,
end of ty_FIGL.
data :it_figl type STANDARD TABLE OF ty_figl,
wa_figl type ty_figl.
SELECT single CHRT_ACCTS
ITEM_NUM
AC_DOC_NO
GL_ACCOUNT from /BI0/AFIGL_O1400
into wa_figl
where DOC_NUM = SOURCE_FIELDS-DOC_NUM and
DOC_ITEM = SOURCE_FIELDS-DOC_ITEM and
/BIC/Z_PCODE = SOURCE_FIELDS-/BIC/Z_PCODE
and
/BIC/Z_VOY_NO = SOURCE_FIELDS-/BIC/Z_VOY_NO
and
FISCYEAR = SOURCE_FIELDS-FISCYEAR.
if sy-subrc = 0.
RESULT = wa_figl-AC_DOC_NO.
ENDIF.
clear wa_figl.
Please note the same kind of logic is applied for all the above mentioned fields.
Here is my concerns and issue.
For the all above all routines i am referring BI0/AFIGL_O1400
DSO and finally loading to the Same DSO(BI0/AFIGL_O1400
The worried part is my DSO 0FIGL_O1400 is currecnly having nearly 60 Lacks records and MM cube is having nearly 55 requests which are required to update to the Above DSO for PO related PO value and Invoice amount.
The big issue here is while uploading data from MM cube to DSO say for example if the request is having 25,000 records from this nearly 500-600 records will be updated to DSO.
But here it is taking huge time ( nearly 3 days for request ) for updating these records , like this i have to pull 50 more requests from Cube to DSO as per the requirement.
Please note as of now i haven't created any indexes on DSO to improve this loads.
Please note am facing this issue in Production environment and need your help ASAP.
Thanks & Regards,
Srinivas PadugulaHi,
If selecting data from 0FIGL_O14 is taking long time then you can create secondary indexes on DSO.
0FIGL_O14 would be huge as data volume directly corresponds to data volume in BSEG.
But for you requirement, I think what you can do is,
1. create multiprovider on top of DSO and Cube and create Bex report to give you the fields requried from both the infoproviders, you can then use open hub or APD approach to keep the data in the staging table or direct update DSO and then load the data to the DSO
2. Create secondary indexes on DSO so that fetching would be faster.
3. Do the enhancment at R/3 level to fetch fields from MM during load of G/L
Regards,
Pravin Karkhanis. -
500k profile after disruption and new line install...
Hello,
Status:
I have an open fault logged with BT;
Phone line ok but broadband speed low, profile appears stuck at 500k.
History: sporadic BBand connection and noisy phone line followed by outright failure of both.
Engineers visited and confirmed line between street and master socket probably corroded - they put it on leg+leg to get it working while we waited for a new physical line to be installed.
Pavement was dug up, new armoured cable run from street to house, and a proper master socket fitted (NT5 ? but no inbuilt ADSL filter).
In effort to ensure low noise, ALL other sockets in the property disconnected.
Digital phone (3 handsets off a single powered base) are run off the master socket using a filter.
Router is business hub - 2700hgv; f/w 6.1.1.48.1-enh.tm , h/w 2701-100589-005 .
Hub is connected to same master socket as phone (as it's the only socket now connected to the new line).
New line was installed approx 18 days ago.
Speed tests (speedtest.net) repeatedly show download of 480kbps, upload around 620kbps.
No change since new line was installed and all but the master socket decomissioned.
I use wireless to the router but also repeated tests with a Cat6 copper RJ45 cable and got same results.
Have taken all wireless devices offline and removed electrical items near phone line power supply and cable path to reduce potential noise and repeated tests.
I left the router on for two weeks and no increase in broadband speed.
I rebooted it twice this weekend to see whether it picked up a different profile - but no change.
BT speedtester repeatedly indicates a profile of 500k (full results further down).
Last year I had speeds about 512k on a DrayTek router before switching to the 2700HGV. The change to the BT hub upped the download speed to around 1Mbps, which made a huge difference.
I know I am "a long way from the exchange" but I've had 1Mbps last year and now have a new line into my property, so not much left that I can do to improve the situation.
I'd like to know what can be done to get me at least 1Mb download again.
I have an engineer visit due tomorrow but I believe that will be purely to finish putting paving slabs back over the armoured cable that's been installed (i.e. OpenReach dig team rather than line engineers).
After those slabs are done, I expect the fault will be closed but I'll still have a 500k profile and will need to raise a new fault all over again - that fault was opened 5 weeks ago.
Results of speedtester.bt.com run just now (1pm Sun 13th March 2011):
Download speed achieved during the test was - 363 Kbps
For your connection, the acceptable range of speeds is 100-500 Kbps.
Additional Information:
Your DSL Connection Rate :576 Kbps(DOWN-STREAM), 777 Kbps(UP-STREAM)
IP Profile for your line is - 500 Kbps
The throughput of Best Efforts (BE) classes achieved during the test is - 2.46:14.86:82.95 (SBE:NBEBE)
Upload speed achieved during the test was - 638 Kbps
Additional Information:
Upstream Rate IP profile on your line is - 777 Kbps
Router web interface shows:
Rate:
576 kbs
778 kbs
Max Rate:
2621 kbs
784 kbs
Noise Margin:
16.7 dB
7.0 dB
Attenuation:
62.8 dB
35.8 dB
Output Power:
16.1 dBm
12.4 dBm
Protocol:
G.DMT2 Annex A
Channel:
Interleaved
DSLAM Vendor Information
Country: {46336} Vendor: {IFTN} Specific: {48753 }
ATM PVC:
0/38
Rate Cap:
2621 kbs
Attenuation @ 300kHz:
62.8 dB
Uncanceled Echo:
-14.8 dB
Ok
VCXO Frequency Offset:
-2.0 ppm
Ok
Final Receive Gain:
34.5 dB
Ok
Impulse Noise Comp. Tones:
0
Ok
Excessive Impulse Noise:
0
Ok
I hope that's the information that someone might need to help me at least get 1Mbps back on my line.
Regards,
BKHi Bk1
Welcome to the Community.
Send me an email to the link in the about me section of my profile.
I can have this looked into for you further.
Cheers
Stuart
BTCare Community Mod
If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
We are sorry that we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-) -
CLIENT_TEXT_IO : cannot insert new line into a text file
Facts:
Developer 10g
AS 10g
Web utility
Problem:
i am traying to
Open a text file. using CLIENT_TEXT_IO.FOPEN
insert a record in to a text file using CLIENT_TEXT_IO.PUTF
insert a new line using chr(10) or CLIENT_TEXT_IO.NEW_LINE
or CLIENT_TEXT_IO.put_line
insert the next record
Close the file.
all work except insert a new line
Why !!!
it was Working fine in 6i, but now in 10g and Webutil is not working
plz helpHi you can put a new line in a text file using System.getProperty("line.separator"). This implementation will work for every OS.
import java.io.*;
class Demo{
public static void main(String args[]) throws Exception {
FileWriter fr = new FileWriter("FileDemo.txt");
fr.write("AAAAAAAAAA");
fr.write(System.getProperty("line.separator"));
fr.write("AAAAAAAAAAA");
fr.close();
} -
How to add a new line item to a Purchase Requisition number
Hello All,
Can anyone please provide me with some FM or BAPI to add a new line item to an existing Purchase Requisition number.
Can it be done using BAPI_REQUISITION_CHANGE; if yes, then how do I pass the parameters into the BAPI tables..?
Useful pointers would be appreciated...!!
Thanks & Regards,
Tarun Gambhir@Gautham,
Thanks for the quick reply.
I want to update the table EBAN, so should I use the parameter table XEBAN to put in the new line item and then execute..
Also to fill up this table I need to pass certain value, so can I use BAPI_REQUISITON_GETDETAIL and pass the same details as found from the same BAPI and create a new line item...
Regards,
Tarun Gambhir -
Want to know how to check for new line character in text file
Hi All,
I`m trying to read data from text file. However I`m not sure whether the data is in 1st line or nth line. Now I`m trying to read the text from the readline. But if text is "" and not NULL then my code fails. So I want to know how to check for new line character and go to next line to find the data. Please help.
Thanks
static int readandwriteFile(Logger logger,String filepath){
BufferedWriter out = null;
BufferedReader in = null;
File fr = null;
int get_count = 0;
try {
if(new File(filepath).exists())
fr= new File(filepath);
System.out.println("FileName: "+fr);
if(fr != null){
in = new BufferedReader(new FileReader(fr));
String text = in.readLine();
if(text != null){
get_count = Integer.parseInt(text);
in.close();
else{
get_count = 0;
else{
out = new BufferedWriter(new FileWriter(filepath));
out.write("0");
out.close();
} //Reading of the row count file ended.
catch(Exception e) {
e.printStackTrace();
finally {
try{ if (in != null) {
in.close();
if (out != null) {
out.close();
catch(Exception e) {
e.printStackTrace();
return get_count;
}You are calling the readline() only once which means you are reading only the first line from the file...
Use a loop (Do-While preferably)
do{
//your code
}while(text == "") -
Appending to new line in text file
I am trying to append text to a new line to a file. I set the append parameter to true and I try to output the new line character after I write the string to the file. However it is still appending the next string to the end of the first rather than in the line below. My code is below. Can someone please help me?
Thanks
public static boolean WriteToFile(String nameOfFile,
String contents)
FileWriter myFileWriter = null;
try
System.out.println("Attempting to write text to = " + nameOfFile);
myFileWriter = new FileWriter(nameOfFile,true);
myFileWriter.write(contents);
myFileWriter.write('\n');
myFileWriter.close();
return true;
catch (Exception e)
System.out.println("EXCEPTION thrown ");
return false;
}I am trying to append text to a new line to a file.
I set the append parameter to true and I try to
o output the new line character after I write the
string to the file. However it is still appending the
next string to the end of the first rather than in
the line below. My code is below. Can someone please
help me?
Thanks
public static boolean WriteToFile(String nameOfFile,
String
String
String contents)
FileWriter myFileWriter = null;
try
System.out.println("Attempting to write
ting to write text to = " + nameOfFile);
myFileWriter = new
eWriter = new FileWriter(nameOfFile,true);
myFileWriter.write('\n');
myFileWriter.write(contents); myFileWriter.close();
return true;
catch (Exception e)
System.out.println("EXCEPTION thrown ");
return false;
try the change what i have made in bold -
Hi -
Im using the FileWriter and BufferedWriter classes to output text into a .txt file.
The text I am writing is taken from another text file using the FileReader and BufferedReader classes.
The text is reading from the file, and will also output to the new text file, however it won't insert a new line, it only inserts an 'unprintable' character i.e. an empty square
My code is below - its only starting out so its farily simple at the moment, just reading from one file and outputting to another.
Is there a way i can get the actual new line/carriage return inserted instead of the empty square. (im running Windows XP)
Thanks in advance
import java.io.*;
public class Pad {
private String inputPath;
private String outputPath;
/** Creates a new instance of Pad */
public Pad() {
inputPath = "C:\\OUTBOUND.TXT";
outputPath = "C:\\04'06.txt";
* @param args the command line arguments
public static void main(String[] args) {
// TODO code application logic here
System.out.println("PAD File");
//Read PAD File
Pad p = new Pad();
p.readPADFile(p.inputPath, p.outputPath);
public void readPADFile(String inputPath, String outputPath)
inputPath = this.inputPath;
outputPath = this.outputPath;
//System.out.println(inputPath);
int recordCount = 0;
String record = null;
try
FileReader fr = new FileReader(inputPath);
FileWriter fw = new FileWriter(outputPath);
BufferedReader br = new BufferedReader(fr);
BufferedWriter bw = new BufferedWriter(fw);
record = new String();
while((record = br.readLine())!=null)
recordCount++;
//System.out.println(recordCount + ": " + record);
bw.write(record + "\n");
bw.close();
br.close();
fw.close();
fr.close();
}catch(IOException e)
System.out.println("IOException Error");
e.printStackTrace();
System.out.println(e.toString());
}I assume by using the
System.getProperty("line.separator") that this will
work independent of platform.Yes. And using bw.println() instead of bw.print() will already do it for you. So all you need to change in your program are two letters. -
PHP MYSQL and DW Question: Invalid characters and new lines entry/viewing
Hello all,
I have followed David Powers' two php/dw/mysql books and I've
set up PHP
pages that insert, edit, delete, etc. listings. Everything
works fine
except for invalid characters being inserted into the
database, and then
displaying with a question mark in firefox.
Is there a trick to cleaning up the data that a user may
paste into a
textbox on a web page for insertion in the database before
the data is
inserted or as it is inserted? Em dashes, en dashes, 'curly
quotes' etc.
are giving me problems.
Also, when I enter new lines into the php page while I'm
typing out
information for a record, these new lines are not being
displayed either
in the database (using phpmyadmin to view) or on the
resulting details
pages, even though I'm using nl2br, etc. Is there a way to
make this
work reliably?
Thank you for any help you may give me!
-JohnHello all,
I have followed David Powers' two php/dw/mysql books and I've
set up PHP
pages that insert, edit, delete, etc. listings. Everything
works fine
except for invalid characters being inserted into the
database, and then
displaying with a question mark in firefox.
Is there a trick to cleaning up the data that a user may
paste into a
textbox on a web page for insertion in the database before
the data is
inserted or as it is inserted? Em dashes, en dashes, 'curly
quotes' etc.
are giving me problems.
Also, when I enter new lines into the php page while I'm
typing out
information for a record, these new lines are not being
displayed either
in the database (using phpmyadmin to view) or on the
resulting details
pages, even though I'm using nl2br, etc. Is there a way to
make this
work reliably?
Thank you for any help you may give me!
-John
Maybe you are looking for
-
How to change airport settings in safe boot mode ?
At the moment my new macmini boots only in safe mode. I think its because of a faulty airport. Unfortunately, the safe mode does not offer a GUI for disabling airport for normal boot. The Apple Support page says "2. Remove the AirPort Extreme Card" b
-
iPhone 4. I set it up as Google calendar, but I don't like how it's working. I'd like to try using iCal and synching it to Google calendar, which has my husband's data. But I can't find iCal. The icon leads to Google calendar, even after deleting it
-
My macbook pro hacked by turning device computer into server
got hacked somehow. He (I think I know) turned computer name under "devices" the finder window and then overrided my admin capabilities. I tried to save a screen shot but it said I didn't have permissions now. I work 30+ apple computers and am ve
-
Auto certificate enrollment for computers not happening
Hi In my environment the auto certificate enrollment for computers not happening through GPO. Domain computers has permission of enroll on computer certificate template. Please suggest. Regards, Deepak S
-
I have an iPad 1 and 2 but I am having problems syncing different apps to each iPad. When I connect to iTunes it attempts to sync the previously attached iPad apps. Am I missing something obvious? Each iPad has a unique name. I would appreciate any a