"\n" problem while downloading the file in unix environment
Hi folks,
I have some problem in uploading and downloading the file in unix environment..
This is my sample code i am using.
File userDataFile = new File("xyz".csv");
out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(userDataFile),"UNICODE"));
out.write("Name"+"\t");
out.write("Age"+"\t");
out.write("Dob"+"\t");
out.write("Contact"+"\n");
for(int i=0;i<retList.size;i++){
out.write("xyz"+"\t");
out.write("22"+"\t");
out.write("300399"+"\t");
out.write("xyzzz"+"\n");
as per this i wrote code for generating the reports. Its contains some 7k records.
Its works in Windows environment.
Some times in Windows environment if the contents size is 7000 records means
i got only the headers..
I am not getting any real records.
I am not sure.. my client is using may be an unix environment..
Please give the solutions for this..
Very thanks in advance.
Hi Jothi,
This is not an answer to your question. It is a question for you instead. I have tried to reach you on several forums regarding the HAP_DOCUMENT documentation you have.
Again, I am really sorry to contact you through a differente forum, but I really need the HAP_DOCUMENT documentation for my project.
Please send me a message to [email protected]
Thanks again.
JULIAN CASTRO
Similar Messages
-
Problem while dowloading the file from Application Server
Dear Experts,
I am facing the Problem while downloading the file from Application server.
We done the automatic function while saving the invoice, this will create an idoc, and this idoc is written in the Application Server.
I am running the Transaction AL11 and select the record, and from menu --> List, i am downloading into TXT format.
But for some segments, the length is long, and so the last 3 to 4 fields values are not appearing in the File. Even though i am unable to view the values in the file before downloading. But i can view in IDOC.
Please help me to solve this issue.
Thanks & Regards,
Srinibut our user will use the Txn. AL11 and they will download from there
Educate the user On a serious note, tell him this is not how data from app server should be downloaded. You can ask him to talk to the basis team to provide him access to the app server folder where the file is being stored.
I can set the Variant and put this in background, But always the file name will be change, Like we use Time stamp in the File name.
You can't automate this process by scheduling in BG mode. This is because the in BG mode you can't dwld the file to presentation server.
Hope i'm clear.
BR,
Suhas -
I have icloud and a new iPhone5 ! They work good , took pictures and a few short movies, plugged in my phone to my iMac transfered Items to iPhoto then inported items to iMovie. when getting to know what i was doing i decided to delete pictures and movies i no longer wanted. when i looked for a few missing items i opend Finder and there some where buyt i had already trashed them and deleted the doubles. Still could not find missing pictures and movies 3 items and today after calling yahoo about a different complant with sending feed back for Yahoo mail Applications login . i opened up Attachments Not the Large Attachments just Attachments and there were the 3 items i had been hunting for to Trash and delete. the mail Attachments file does not have the Option to delet Files and photos and movies. When i tried to Download the 3 items a window shows up that says Error While Downloading the Files, A Server Error has occured, please Try Again later. nothing works how do i remove the Trapped photo and movie Blank Files and trash them? Onece they get into my downloads i can do something with them as i understand. That part of it kind of keeps me in Question also because why should i have to down load my own files of Attachments / Pictures and movies if they are comming from my iMac? How much better is iLife11 then iPhoto08 and iMovie08 . Thanks Greg
Hello,
Thank you for your post.
This is a quick note to let you know that we are performing research on this issue.
If you have feedback for TechNet Subscriber Support, contact
[email protected]
Simon Wu
TechNet Community Support -
Facing a Problem while downloading the data from ALV Grid to Excel Sheet
Hi Friends,
Iam facing a problem while downloading the data from ALV Grid to excel sheet. This is working fine in Development server , when comes to Quality and Production servers I have this trouble.
I have nearly 11 fields in ALV Grid and out of which one is PO number of length 10 , all the ten numbers are visible in the excel sheet if we download it from development server but when we download it from Quality or Production it is showing only 9 numbers.
Can any one help me out in this case.hi...
if this problems happens dont display the same internal as u finally got.
just create new internal table without calling any standard data elements and domains... but the new internal table s similar like ur final internal table and move all the values to new int table.
for eg.
ur final internal int table for disp,
data : begin of itab occur 0,
matnr like mara-matnr,
end of itab.
create new like this,
data : begin of itab occur 0,
matnr(12) type N,
end of itab. -
I can not do the update , what should I do to fix this error ?
"There was a problem with downloading the file . For tips on troubleshooting , please go to Customer Support . ( Error code : 204 ) ." thanksHi,
Please refer to the help document below:
Error downloading, installing, or updating Creative Cloud applications
Regards,
Sheena -
Windows Media Player encountered a problem while playing the file...
I am running WMP 11.0.5721.5280. I am running XP SP3 with every update that has come out. I have 4 GB RAM and my processor is a Pentium 4, 2.6GHz.
I have a large collection of music file ripped from my CD collection. Almost every time I want to plat a music file I get a message; Windows Media Player encountered a problem while playing the file, For additional assistance, click Web Help. When this
error box is displayed, a red 'X' placed next to the file in WMP.
When I click the "Web Help" button, I am taken to a MS website (http://windows.microsoft.com/en-us/windows7/c00d11b1) which tells me that I should go to the sound device website and make certain I have the latest driver. All of the advice which
is given does not apply to me. My sound device works fine! I can play CD, DVD (movies), and MP3 files. Even when I use RealPlayer, the same thing happens, but not as frequently.
Can anyone offer a solution to this problem?They'll help you over here.
Windows
XP forums on Microsoft Answers
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights. -
Problem while downloading the alv output to excel file.
Hii,
While downloading the alv output to an excel file i am facing a problem. Either the output comes as 1.23456E+11 or the values get cut .
Cant put in txt file as the users require to calculate directy and i have even tried to increase the output length .But both doesnt help.
So what are the other ways to do so.
Edited by: mansi_v27 on Mar 24, 2010 12:35 PMHi,
Welcome to SCN!!!.
Please go through the forum rules. This has been discussed many times. You can search in the forum for this.
Infact there is no problem. Just expand that excel cell. You can see the full value. This is standard excel property.
Thanks,
Vinod. -
Problem in Downloading the file by using FM : GUI_DOWNLOAD in XLSX format
Dear Experts,
We are using FM: GUI_DOWNLOAD to download the data in .XLSX Format,But it is giving ERROR while opening the Excel file.
So,Please help me how to download the file in .XLSX format.
checked DC30 - for file extensions..there we were observed the suffix field is taking only 3 characters,it is not accepting 4 characters,kindly tel me how to increase the field size for SUFFIX field.
and USED : CL_GUI_ALV_GRID and CL_GUI_FRONTEND_SERVICES.
Still Not possible to download the data in XLSX format.
Kindly Provide the Solution.
Regards,
Nagarajuhi
Try to use like below
Display save dialog window
call method cl_gui_frontend_services=>file_save_dialog
exporting
window_title = 'FILE PATH'
default_extension = 'XLS'
default_file_name = 'CREDIT LIMIT DATA'
INITIAL_DIRECTORY = 'c:\temp\'
changing
filename = l_filename
path = l_path
fullpath = l_fullpath
user_action = l_result.
Check user did not cancel request
check l_result eq '0'.
call function 'GUI_DOWNLOAD'
exporting
BIN_FILESIZE =
filename = l_fullpath
filetype = 'ASC'
APPEND = ' '
write_field_separator = 'X'
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
CONFIRM_OVERWRITE = ' '
NO_AUTH_CHECK = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = ' '
TRUNC_TRAILING_BLANKS_EOL = 'X'
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
WRITE_LF_AFTER_LAST_LINE = ABAP_TRUE
SHOW_TRANSFER_STATUS = ABAP_TRUE
IMPORTING
FILELENGTH =
tables
data_tab = it_crdt_limit
FIELDNAMES =
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
endif.
endif.
Thanks
Gupta -
HT1338 Problem while downloading the update for the Macbook 10.8.2
Dear Mr/Mrs
This Abdelhameed Ata
I just bought A MACBOOK PRO, and I'm facing this problem that I can not shut down or restart the device because of this following reason.
The device it forze while downloading the software, I mean i can use the laptop but the downloading has stopped or forze . so please help me what am I suppose to do?Perform a Permissions Repair using Disc Utility...
Verify or Repair Disk Permissions
Then Restart your Mac.
Next...
Go here > http://support.apple.com/kb/DL1581 and Download and Install the Combo Update.
After a Successful Install be sure to Restart your computer. -
HP Pavilion g series (g6-1b50us Notebook PC), windows 7, 64-bit.
My media player keeps saying it encountered problems while playing a file. and little red x's appearing beside song titles. They did play before. Please help.Hi,
This may happen if the files were moved to a different folder or a different location.
Try this:
http://answers.microsoft.com/en-us/windows/forum/windows_7-sound/red-x-symbol-next-to-each-song-whil...
Note:
If you have HP Support Assistant installed on the computer(The Blue Question Mark) then open it ==> Complete all pending Updates & Tuneups==> Restart and Check. It may solve your problem
Although I am an HP employee, I am speaking for myself and not for HP.
**Click on “Kudos” Star if you think this reply helped** Or Mark it as "Solved" if issue got fixed. -
Problem while reading the file from FTP server
Hi Friends,
I have a problem while fetching files from FTP server.
I used FTP_Connect, FTP_COMMAND function modules. I can able to put the files into FTP server.
but I cant able to pick the files from FTP server.
anyone have faced similar issues kindly let me know.
Thanks
GowrishankarHi,
try this way..
for reading the file using FTP you need to use different unix command ..
Prabhuda -
Error while downloading the file
Hi, I have created a rssfeed file when i connect to iTunes and use my local webserver to look up the feed file it downloads all the episodes without any issues.
From the main webserver the feed file does not work,although the paths and everything is correct.get the message "There was a problem downloading ... . The URL could not be found on the server". the file exists on the server and everything is fine according to feedValidator ... any help this is making me crazyHi, I have created a rssfeed file when i connect to iTunes and use my local webserver to look up the feed file it downloads all the episodes without any issues.
From the main webserver the feed file does not work,although the paths and everything is correct.get the message "There was a problem downloading ... . The URL could not be found on the server". the file exists on the server and everything is fine according to feedValidator ... any help this is making me crazy -
Problem while downloading the data from servlet across SSL
Hi All,
I am trying to download the data with the help of servlet across https.
The below mentioned settings work fine if the application is on http.
httpservletresponse.setHeader("Cache-Control", "");
httpservletresponse.setHeader("pragma", "");
httpservletresponse.setContentType("application/text");
httpservletresponse.setHeader("Content-disposition","attachment;filename=Download"+dfileid+".txt");
But , if the application is on https the above settings is working fine if I am saving the file. But at the same time if I am trying to open I am getting the below error from Internet Explorer.
"Client( IE ) is trying to search the file from the local machine and showing an alert as listed below"
Alert from the browser
'C:\Documents and Settings\chalagen\Local Settings\Temporary Internet Files\Content.IE5\I9FGH0RI\Download196[1].csv' could not be found. Check the spelling of the file name, and verify that the file location is correct
If you are trying to open the file from your list of most recently used files on the File menu, make sure that the file has not been renamed, moved or deleted.
I have changed the options of Tools > Internet Options> Advanced > Do not save encrypted pages to disk.
Please do let me know the solutions for the above problem.
Waiting for response,
SonaShreehi...
if this problems happens dont display the same internal as u finally got.
just create new internal table without calling any standard data elements and domains... but the new internal table s similar like ur final internal table and move all the values to new int table.
for eg.
ur final internal int table for disp,
data : begin of itab occur 0,
matnr like mara-matnr,
end of itab.
create new like this,
data : begin of itab occur 0,
matnr(12) type N,
end of itab. -
Inserting Field Names as Header while downloading the file
Hi,
I am downloading one file using CALL METHOD cl_gui_frontend_services=>gui_download and wanted to add field names as header while downloading.I have the filed names in one internal table and have written the code as follows:
LOOP AT gt_import INTO gw_import.
gw_fldname-field_name = gw_import-field_name.
APPEND gw_fldname TO gt_fldname.
ENDLOOP.
Here gt_fldname has the field names.
l_descr_ref ?= cl_abap_typedescr=>describe_by_data( gt_fldname ).
CLEAR : l_counter.
LOOP AT l_descr_ref->components[] ASSIGNING <lfs_comp_wa>.
l_counter = l_counter + 1.
ASSIGN COMPONENT sy-index OF STRUCTURE gt_fldname TO <lfs_comp>.
IF sy-subrc = 0.
<lfs_comp> = <lfs_comp_wa>-name.
ENDIF.
ENDLOOP.
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
filename = pdir1
filetype = text-038
append = ''
write_field_separator = 'X'
CHANGING
data_tab = <lfs_comp>
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
not_supported_by_gui = 22
error_no_gui = 23
OTHERS = 24.
IF sy-subrc <> 0.
EXIT.
ENDIF.
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
filename = pdir1
filetype = text-038
append = 'X'
write_field_separator = 'X'
CHANGING
data_tab = <gfs_table1>
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
not_supported_by_gui = 22
error_no_gui = 23
OTHERS = 24.
IF sy-subrc <> 0.
EXIT.
ENDIF.
But it goes to dump at l_descr_ref ?= cl_abap_typedescr=>describe_by_data( gt_fldname ) where I am trying to make the filed names horizontal.
Can anyone help on this?The issue has been resolved after writting:
l_ref_table ?= cl_abap_tabledescr=>describe_by_data( gt_fldname ).
l_descr_ref ?= l_ref_table->get_table_line_type( ).
Thanks. -
Problem with Downloading the file.
Hi all,
when i try to download a file after including the flash swf file into java application it is showing the error as follows:
Here,http://localhost:8888/com.mymdworld.Application/ is the url of the java application and DynaAccess.swf is the flash .swf file.
SecurityError: Error #2148: SWF file http://localhost:8888/com.mymdworld.Application/DynaAccess.swf cannot access local resource D:/websites/mymdworld/backup_temp/P1/DownloadedFiles.zip. Only local-with-filesystem and trusted local SWF files may access local resources.
at global/flash.net::navigateToURL()
at MethodInfo-375()
at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::onComplete()
for downloading
Please Help me...Its urgent..
Thanks in Advance
SwathiHi doghouseJim,
Iam trying to access a zipfile .
Thanks,
Swathi
Maybe you are looking for
-
Remotely editing text files in Windows WinRM/PSExec/Powershell/cmd
Hi! How can I remotely edit a text file in Windows? I am running and administering a number of Windows 7 workstations and Windows Server 2012 machines. I would like to be able to remotely edit text files on any of these machines. I can connect to any
-
How to send a variable in the 'IN Clause' in a cursor?
Hi. I am new to this forum. My exact requirement is.. I need to select data with the help of a cursor and show it in the output. I have an input parameter which can be null or comma delimited value. If I am passing this comma delimited value as a par
-
Why Does Illustrator CS2 print Page Information Backwards & Garbled?
We just upgraded my comptuer & had to reinstall my CS2 suite. Im using Windows XP and my problem is occuring in Illustrator CS2. When I check off the "Page Information" box in the Marks & Bleeds printing preference it previews onscreen as it should p
-
Need Help with setting up this Filter
Hi, I need help making a filter sound like the one used in this youtube song. I tried setting it up but I've had no success; even though I know for a fact that this filter was made in Logic Pro 9 according to the maker of this song. I think there mig
-
Sep Sesam Backup in clustered environment
hello, has anyone here any experience on using sep sesam for backup of volumes in a (standard 2-node) sles10.3+oes2 cluster? Would be thankfull for any infos. Especially I can't get any info on install&config of sep for a cluster. h.