In file adapater how to divide the o/p to come on 2 lines from a single lin
Hi ,
Currently my o/p is coming like
2006/03/17,9:32:10,U123577,000000000000100338,24043350,X,Y,S,06,017,UL Int. PO-FGDR U created under the number U123577
i would like to break my output as
2006/03/17,9:32:10,U123577,000000000000100338,24043350,X,
Y,S,06,017,UL Int. PO-FGDR U created under the number U123577
which means i would like my o/p to come on 2 lines
how do i make this happen
But how do i now were i have to give nl .
the out put is just one string .
structure of my file is like this
DT_File_Output
Output
Data
Date
a
b
c
i want date and a to come on one line
and b and c to come on a diff line
ie i want my o/p to be like
date a
b c
date a
b c
date a
b c
is there a way can i specify a line to come after the out put
Similar Messages
-
Who knows: How to divide the request.getInputStream()?
I use a form in a web page to update files, the form code is
<form action="/Mywork/servlet/fileupdate1" method="post" enctype="multipart/form-data">
<p>
Please select a file1 to upload: <input type="file" name="foo">
</p>
<p>
Please select a file2 to upload:<input type="file" name="foo1">
</p>
<input type="submit" value="Upload File!">
</form>
and the "fileupdate1" servlet which the "action" in the form tag refers to will get the inputstream by
"ServletInputStream servIn = request.getInputStream();", and create new OutputFileStream in the disk. But
new files which the servlet stored always have some additional codes "
-----------------------------7d419320202be
Content-Disposition: form-data; name="foo"; filename="H:\Documents and
Settings\administrator\desktop\ee.java"
Content-Type: application/octet-stream
If I updating two files, each file will has these kinds of codes and the two files only have one inputstream. I don't
how to remove these additional codes and how to divide the stream into pieces according to the updated-file-size.
I don't know wether I say it clearly?And
does anyone know the reasons and can help me?
Thank you very much.Use something like Jakarta Commons FileUpload to process the multipart/form-data request:
http://jakarta.apache.org/commons/fileupload/ -
How to divide the request.getInputStream()?
I use a form in a web page to update files, the form code is
<form action="/Mywork/servlet/fileupdate1" method="post" enctype="multipart/form-data">
<p>
Please select a file1 to upload: <input type="file" name="foo">
</p>
<p>
Please select a file2 to upload:<input type="file" name="foo1">
</p>
<input type="submit" value="Upload File!">
</form>
and the "fileupdate1" servlet which the "action" in the form tag refers to will get the inputstream by
"ServletInputStream servIn = request.getInputStream();", and create new OutputFileStream in the disk. But
new files which the servlet stored always have some additional codes "
-----------------------------7d419320202be
Content-Disposition: form-data; name="foo"; filename="H:\Documents and
Settings\administrator\desktop\ee.java"
Content-Type: application/octet-stream
If I updating two files, each file will has these kinds of codes and the two files only have one inputstream. I don't
how to remove these additional codes and how to divide the stream into pieces according to the updated-file-size.
I don't know wether I say it clearly?And
does anyone know the reasons and can help me?
Thank you very much.Well, if you know the format, you'd know that the file data starts after the first blank line (\r\n\r\n).
But why don't you just use Jakarta Commons File Upload or some other existing free package to handle multipart forms and save yourself the trouble. -
How to divide the partitions in AIX 5L
Hi Guru's
Friends i am installing AIX 5L, How to divide the partitions in AIX5L
please tell me if anybody know.
ThanksWhat kind of partitions do you mean? Do you mean logical partitions?
Message was edited by:
Ivan Kartik -
How to divide the CRM transaction data by company cord?
How to divide the CRM transaction data by company cord?
CRM transaction have not company cord, so how to divide the data on BI report by company cord?
Do I have to get the sales organization from customer master?
Some transactions have not master data like lead. I want to know your experience.Hi
This is self reply.
I should use the sales organization instead of company cord.
But some business like lead from contact from customer can not separate the company, in situation one call center for multiple companies.
We should use another field to divide the company. Ex. Product, campaign, etc.
If someone knows better way to solve this issue, let me know the reply.
Regard
u1 -
How to divide the iview into frames?
Hi Experts,
Please tell me how to divide the iview into frames.Kindly provide the steps.Its urgent.
Regards,
NutanHi Nutan,
Now its clear!!
If I understand right. You want an overview page full of links to go to your different pages?
Or maybe you want a link form each page to go to another page?
In Portal Navigation through hyperlinks is possible.
You can either do that using EPCM.doNavigate("ROLES://...") {check for EPCM API of help.spa.com}
Or you could do that by simple
<a href="http://www.sdn.sap.com/irj/portal/myql">CLICK</a>
{check for Quicklinks on help.sap.com}
Either way you'll have to make a small JSP for that.
Hope this helped
If so kindly reward with points
Prem -
I have a Macbook Pro Apple . My photos are in iPhoto files. How do transfer the file I want to work on onto Photoshop?
Where iPhoto Pictures are Located and How to Access the iPhoto Library and Picture Files
-
How can I transfer photos from my Windows computer to my Ipad.
I already have the photos transfered into a photo stream file.
How to activate the transfer ?Hey Juergen119,
I would recommend syncing your photos from your computer to your iPad by using iTunes:
iTunes: Syncing photos
http://support.apple.com/kb/HT4236
First, if you want to set it up to work via iCloud, I would check and make sure My Photo Stream is set up correctly on your devices:
To use My Photo Stream you need an iCloud account, compatible devices, and up-to-date software:
iPhone, iPad, or iPod touch with iOS 5.1 or later
Mac with OS X Lion v10.7.5 or later and iPhoto 9.2.2 or Aperture 3.2.3 or later
Apple TV (2nd generation) with Apple TV Software Update 5.0 or later
PC with Windows 7 or later and the iCloud Control Panel 2.1 or later for Windows
For complete iCloud setup instructions, visit How to set up iCloud.
Then, once it is set up, you can upload your photos to My Photo Stream by following these directions:
PC with iCloud Control Panel 2.0 or later: Open a Windows Explorer window and under Favorites select iCloud Photos if you are using iCloud Control Panel 3.0 (or Photo Stream if you are using 2.0 to 2.1.2). Open My Photo Stream. Click the "Add photos" button. Select the photos to import to My Photo Stream, then click Open.
via: iCloud: My Photo Stream FAQ
http://support.apple.com/kb/HT4486
Welcome to Apple Support Communities!
All the best,
Delgadoh -
How to get the values of all elements and sub elements from following xml
how to get the values of all elements and sub elements from following xml...
<?xml version="1.0" encoding="UTF-8" ?>
<List_AML_Finacle xmlns="http://3i-infotech.com/Cust_AML_Finacle.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://3i-infotech.com/Cust_AML_Finacle.xsd List_AML_Finacle.xsd">
<TransactionID>TransactionID</TransactionID>
<Match>
<Src_Matched_Field>Src_Matched_Field</Src_Matched_Field>
<List_Matched_Field>
<FSFM_Matches>
<NUMBER>NUMBER</NUMBER>
<TERROR>TERROR</TERROR>
<TU>TU</TU>
<NAMEU>NAMEU</NAMEU>
<DESCRIPT>DESCRIPT</DESCRIPT>
<KODCR>KODCR</KODCR>
<KODCN>KODCN</KODCN>
<AMR>AMR</AMR>
<ADDRESS>ADDRESS</ADDRESS>
<SD>SD</SD>
<RG>RG</RG>
<ND>ND</ND>
<VD>VD</VD>
<GR>GR</GR>
<YR>YR</YR>
<MR>MR</MR>
<CB_DATE>CB_DATE</CB_DATE>
<CE_DATE>CE_DATE</CE_DATE>
<DIRECTOR>DIRECTOR</DIRECTOR>
<FOUNDER>FOUNDER</FOUNDER>
<TERRTYPE>TERRTYPE</TERRTYPE>
</FSFM_Matches>
<OfacMatchDetails>
<UID>UID</UID>
<TITLE>TITLE</TITLE>
<SDNTYPE>SDNTYPE</SDNTYPE>
<REMARKS>REMARKS</REMARKS>
<ID_UID>ID_UID</ID_UID>
<IDTYPE>IDTYPE</IDTYPE>
<IDNUMBER>IDNUMBER</IDNUMBER>
<IDCOUNTRY>IDCOUNTRY</IDCOUNTRY>
<ISSUEDATE>ISSUEDATE</ISSUEDATE>
<EXPIRATIONDATE>EXPIRATIONDATE</EXPIRATIONDATE>
<ADDRESS1>ADDRESS1</ADDRESS1>
<ADDRESS2>ADDRESS2</ADDRESS2>
<ADDRESS3>ADDRESS3</ADDRESS3>
<CITY>CITY</CITY>
<STATEORPROVINCE>STATEORPROVINCE</STATEORPROVINCE>
<POSTALCODE>POSTALCODE</POSTALCODE>
<COUNTRY>COUNTRY</COUNTRY>
</OfacMatchDetails>
</List_Matched_Field>
</Match>
</List_AML_Finacle>avoid multi post
http://forum.java.sun.com/thread.jspa?threadID=5249519 -
How to change the status of test cases in Test Plan from Design to Ready using Excel VBA
HI,
How to change the status of test cases in Test Plan from Design to Ready using Excel VBAThanks Florin,
Your piece of code has worked alot, and it was very helpful in changing the Status of the Workitem to "READY" for all the Users fo the workitem.
Points have been rewarded for your help.
Process: We have acheived this using the "Work Item Exits", Usng "AFTER_EXECUTION" Method.
Note: The Exit will be executed if "exit_cancelled" statement is present/used in the work item method. if not it is not taking to the exit code. I'm unable to find the reason for it. Florin can u please explain this point.
Please check the link for adding the code in Work Item Exits.
http://wiki.sdn.sap.com/wiki/display/ABAP/ProgramExitsIn+Workflow
Please find the Code:
method IF_SWF_IFS_WORKITEM_EXIT~EVENT_RAISED.
Get the context of the workitem
me->wi_context = im_workitem_context.
After execution of the workitem call the method AFTER_EXECUTION
if im_event_name eq swrco_event_after_execution.
me->after_execution( ).
endif.
endmethod.
METHOD AFTER_EXECUTION.
This method acts as the Event Handler for SWRCO_EVENT_AFTER_EXECUTION
DATA: LCL_L_WID TYPE SWW_WIID,
L_STATUS TYPE SWR_WISTAT-STATUS,
L_NEW_STATUS TYPE SWR_WISTAT,
L_SWR_MESSAG TYPE STANDARD TABLE OF SWR_MESSAG,
L_SWR_MSTRUC TYPE STANDARD TABLE OF SWR_MSTRUC.
Get work item
CALL METHOD WI_CONTEXT->GET_WORKITEM_ID
RECEIVING
RE_WORKITEM = LCL_L_WID.
L_STATUS = 'READY'.
CALL FUNCTION 'SAP_WAPI_SET_WORKITEM_STATUS'
EXPORTING
WORKITEM_ID = LCL_L_WID
STATUS = L_STATUS
USER = SY-UNAME
LANGUAGE = SY-LANGU
DO_COMMIT = 'X'
IMPORTING
NEW_STATUS = L_NEW_STATUS
RETURN_CODE = SY-SUBRC
TABLES
MESSAGE_LINES = L_SWR_MESSAG
MESSAGE_STRUCT = L_SWR_MSTRUC.
IF SY-SUBRC EQ 0.
ENDIF.
ENDMETHOD.
Thank You Once Again,
Ajay Kumar Chippa -
How to make the vendor column have figure in GRIR line item with RE document type?
Dear Experts,
Could you tell me how to make the vendor column have figure in GRIR line item whose document type is RE?
Thanks!
Xinling ZhangHi ,
You are using FAGLL03 .
FAGLL03 report vendor code is blank
vendor number in new FAGLL03 tcode (offsetting account information)
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30b96fed-eb5d-2e10-1792-f3ff9f65df8a?QuickLink=index&…
Also check OSS note
Note 112312 - Line item: Display of offsetting a/c information
Note 1034354 - FAGLL03: Display of offsetting account information
Many Thanks -
How to make the GL account discription possible in FAGLL03 line item display?
Dear Experts,
Could you tell me how to make the GL account discription possible in FAGLL03 line item display?
I checked the layout, there is no account discription.
How should I do?
Thanks!
Xinling ZhangHi
One you execute FAGLL03, go to Settings>Layout>Current Header Rows
You can add some predefine characteristics here.
I am not sure why the hyperlink is not working at your end. But you can search the SDN for special fields in FAGLL03 and you can get lot of posts for this document.
Regards
Sanil Bhandari -
How to read the position in an linear encoder, model AT112 from mitutoyo?
Hello,
any one knows how to read the positon in a linear encoder, model AT112 from mitutoyo, that have the signal out in the sinusoidal form?
thanksHello Hugo,
In order to help you efficiency, please contact National Instruments (01.48.14.24.24) with the reference number 409230.
I will personnally help you to connect your linear encoder.
Regards. -
how to recover the deleted SMS message, Contacts, CallHistory and Photos from ipad.
If you did the backup of your data before deleting then you can easily get back the data by the following steps:
1. First don’t connect your iPad directly to computer because the iTunes only saves the most recent backup
2. Now make sure that you have a valid backup as listed iTunes> preferences> devices
3. Before connecting your iPad make sure to check iTunes>preferences> devices "prevent iPad from syncing automatically." Because this will ensures we don't erase the previously stored backup. Then select ok and close the window after checking " don't sync"
4. Now connect your iPad to your computer .
5. Select the iPad as seen in the left bar of iTunes, as listed under the devices .
6. Select version and click on restore from options.
7. It takes a while to for iPad to erase itself, reset and restart.
8. After the iPad is restart you will see Set Up Your iPad in iTunes on your computer, and now just click the restore from the backup and click continue. It will take 10 to 12 minutes to recover your data from iPad, including the deleted sms, notes, photos, music, contacts etc.
Here is a step by step guide for you: http://www.video-converter-mac.org/recover-deleted-ipad/ -
I have the code to read from a file but my problem is how to prompt the user for the file name at run time.
import java.io.File;
import java.io.FileNotFoundException;
import java.util.InputMismatchException;
import java.util.Scanner;
public class FileRead {
public static void main(String args[]) {
Scanner scan = null;
File file = new File("Results.txt");
String number;
try {
scan = new Scanner(file);
while (scan.hasNext()){
number = scan.next();
System.out.println(number);}
catch (FileNotFoundException ex1){
System.out.println("No such file");
catch (IllegalStateException ex2){
System.out.println("Did you close the read by mistake");
catch (InputMismatchException ex){
System.out.println("File structure incorrect");
finally{
scan.close();}
}Any hints would be greatly appreciated. Thank you in advanceI have read through some of the tutorials that you have directed me too and they are very useful, thank you. however there are still a few things that i am not clear about. I am using net beans 5.0 I have placed a text file named Results.txt into the project at the root so the program can view it.
When I use the code that you provided me with, does it matter where the file is, or will it look through everywhere on the hard drive to find a match?
This code compiles but at run time it comes up with this error
run-single:
java.lang.NoClassDefFoundError: NamedFile
Exception in thread "main"
Java Result: 1
BUILD SUCCESSFUL (total time: 3 seconds)
import java.util.Scanner;
import java.io.*;
class NamedFileInput
public static void main (String[] args) throws IOException
int num, square;
// this Scanner is used to read what the user enters
Scanner user = new Scanner( System.in );
String fileName;
System.out.print("File Name: ");
fileName = user.nextLine().trim();
File file = new File( fileName ); // create a File object
// this Scanner is used to read from the file
Scanner scan = new Scanner( file );
while( scan.hasNextInt() ) // is there more data to process?
num = scan.nextInt();
square = num * num ;
System.out.println("The square of " + num + " is " + square);
}his is the code that i used. It is the same as the code you posted for me (on chapter 23 I/O using Scanner and PrintStream) Sorry im just really stuck on this!!
Maybe you are looking for
-
Does anyone know how to enable editing on a new computer? I only have an 8gb phone and over 4gbs of music, half of which I don't even listen to anymore. I really want it off my phone, but when I plugged it into my new macbook nothing would delete. My
-
After upgrade to Maverick, Preview sometimes doesn't respond to scroll
When I use two-finger scroll, sometimes it doesn't work, you have to wait or put arrow to other apps and change back to Preview so as to scroll. Is it bug of Maverick? Anyone also face this problem?
-
Hello everybody! I found badi of MIGO. -> "MB_MIGO_BADI". but this within exit have a method, namely PBO_DETAIL. when use this method i found have a problem! as follows! DATA: GF_CLASS_ID TYPE MIGO_CLASS_ID. GF_CLASS_ID = 'MIGO_BADI_IMPLEMENTATION
-
Installing Adobe Flash Player 11
I have successfully installed Adobe Flash Player 11, but am unable to play favorite games on Facebook. (Messages keep telling me to install, although I've already installed several times)? What am I doing wrong?
-
Playlists will not sync onto iPod nano 7th gen
Since the very beginning of iPods, I subscribe to a number of podcasts that refresh in iTunes automatically. Once a day I transfer the "recently added" podcasts to a created playlist for my daily listening. This allows me to cull out music downloads