Blank line is appearing in the file in GUI_DOWNLOAD
Hi all,
i am downloading two lines into the text file. i am getting one blank line in between this two line if i use the 'GUI_DOWNLOAD' FM. This blank line is not appearing if i use 'WS_DOWNLOAD' FM. Please advise why the blank line is comming between this two downloaded line. Thanks
DATA: BEGIN OF OUTTAB OCCURS 100,
PROD_CODE(3),
LINE_DETL(2043),
END OF OUTTAB.
DATA:V_OUTPUT(2043).
DATA: space_character type c.
space_character = CL_ABAP_CHAR_UTILITIES=>MINCHAR.
DO 254 times.
CONCATENATE V_OUTPUT space_character INTO V_OUTPUT.
ENDDO.
OUTTAB-LINE_DETL = V_OUTPUT.APPEND OUTTAB.
call function 'GUI_DOWNLOAD'
EXPORTING
filename = OUTFILE1
filetype = 'ASC'
TABLES
data_tab = OUTTAB
Hi Pabitra,
My unerstanding of your requirement is " you are trying to download a file to local drive using GUI_DOWNLOAD and it give a blank line between 2 data and the same using WS_DOWNLOAD is not giving any line in between the data".
I have tried the code piece you have provide with both the FM's and both downloaded the similar file i mean both downloaded the data similarly. Please see the code below
DATA: BEGIN OF OUTTAB OCCURS 100,
PROD_CODE(3),
LINE_DETL(2043),
END OF OUTTAB.
DATA:V_OUTPUT(2043).
DATA: space_character type c.
space_character = CL_ABAP_CHAR_UTILITIES=>MINCHAR.
V_OUTPUT = 'Please print it'.
DO 254 times.
CONCATENATE V_OUTPUT space_character INTO V_OUTPUT.
ENDDO.
CONCATENATE V_OUTPUT 'testing' INTO V_OUTPUT.
OUTTAB-LINE_DETL = V_OUTPUT.APPEND OUTTAB.
CLEAR OUTTAB.
OUTTAB-LINE_DETL = V_OUTPUT.APPEND OUTTAB.
CLEAR OUTTAB.
*call function 'GUI_DOWNLOAD'
*EXPORTING
*filename = 'C:\test2.txt'
*filetype = 'ASC'
*TABLES
*data_tab = OUTTAB.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
FILENAME = 'C:\test1.txt'
FILETYPE = 'ASC'
TABLES
data_tab = OUTTAB.
I think the Blank line which you got would be a result of Word wrap property of the notepad.
If i did not get your question correctly can you please elaborate me.
Thanks & Regards!
Praveenkumar T.
Similar Messages
-
When i try to open itunes a hazard warning appears reading"the file itunes library.itl cannot be opened because it was created using a newer version of itunes" so i can't open my itunes on my computer
Try the following user tip:
Troubleshooting issues with iTunes for Windows updates
EDIT: My apologies ... it'd be better to start straight in with the following user tip:
Empty/corrupt iTunes library after upgrade/crash -
Name of files do not appear in the files section
I've been using Adobe Audition 3.0 for three years now and it has been FANTASTIC. (on a 3 year old Dell with the Vista OS).
However, something quirky happened this morning that is frustrating....when I drag an audio file onto my workstation, like I always do, the actual wave appears on my timeline, BUT, the name of the file no longer appears in the files section to the left of the workstation.
I've re-started my compter several times to no avail. Has anybody else ever experienced this problem?
Any help would be greatly appreciated! I have an impending deadline due for a large project and this sudden disappearance of file names has rendered my Audition virtually unusable.
Thanks again.
Kevin
Graduate Student
College of Mass Communication and Media Arts
Southern Illinois University
Carbondale, Illinois
[email protected]
Or.....[email protected]There are some buttons right at the bottom of the Files window under the Sort By box that allow you to show or hide different file types. Perhaps one of those has become unclicked.
-
Oracle Linux 6.6 I tried to edit the /etc/resplv.conf file on nano, gedit and VI but the result doesn't appear on the file when I cat it
Hi ! do you mean the file /etc/resolv.conf ? This file should be by default in the /etc/ diretory and contains the dns-name resolutions. http://linux.die.net/man/5/resolv.conf http://www.tldp.org/LDP/nag/node84.html http://en.wikipedia.org/wiki/Resolv.conf
-
How do I display the template chooser menu? It no longer appears under the File menu. I can see it only in the help mode.
File > New... opens the template chooser.
-
When responding to an email, how do I suppress the "line" that appears on the left side of the originations email text?
Would you post a screen shot of a message so people can see what you are seeing? Make sure you cover any personal information using Preview. Post the screen shot in a Reply using the camera icon. Copy and paste doesn't work.
Screen shots -
Hi,when click on a file, immediately a box appears around the file and the title of the file is read !so how is it possible to escape from the voice?Thank you for your advice
Turn off Voiceover!
System Preferences/Universal Access -
How to skip blank line (EOF char) at the end of the file while creating ?
Hi,
In my program I have to create a file in Text mode using OPEN DATASET statement. This file is being sent to a third party system for their processing. I came to know while creating the file using OPEN DATASET, one LF character is inserted end of the file resulting a blank line end of the file. Thus if my internal table contains 5 reocrds, in the created text file I can see 6 lines where last is a blank. My question is how to remove this blank line which is causing issue in the thirdparty system.
Here is the Code I have used.
TRY.
Write the file in Text Mode
OPEN DATASET lv_outpf FOR OUTPUT IN TEXT MODE ENCODING NON-UNICODE
WITH SMART LINEFEED
MESSAGE lv_msg.
IF lv_msg IS NOT INITIAL.
WRITE / lv_msg.
EXIT.
ENDIF.
LOOP AT itab_new INTO st.
TRANSFER st TO lv_outpf.
ENDLOOP.
CLOSE DATASET lv_outpf.
CATCH cx_root. "#EC No Handler
ENDTRY.an effective way to do it:
open your dataset in binary mode, transfer the records but between each record transfer the LF (or CRLF according to your need)
after the last record you don't transfer the LF -
Extra Blank Line gets added at the Beginning of the file by File Adapter...
Hello All,
I have created an RFC to File Adapter scenario in PI 7,1 and I am using Content Conversion in the File Adapter to convert the payload structure to flat text file. The input Structure is simple as follows:
<File>
<FName>some file name</Fname>
<Record>
<Data>
<Line>Text Lines</Line>
</Date>
</Record>
</File>
while using the following Content Conversion Parameters: While I have defined "Record" as Structure.
Record.addHeaderLine = 0
Record.fieldSeparator = 'nl'
Record.endSeparator = 'nl'
Here everything is working fine except that the text file getting generated has a blank line at the beginning. I was thinking that by adding "Record.addHeaderLine = 0" parameter, no header line will be added to the file but this seems to be not working. I tried to include the top element "File" with the same parameters and different combinations but was not able to achieve the result and it stopped the file creation altogether.
So, I'll appreciate if anyone can suggest something to get rid of the this blank line at the beginning of the file.
Regards,
AtharExtra blank line is actually provided for the FNAME node, but not displayed because of it has different structure with Record node.
Change the structure for FNAME to :
<FName>
<Data>
<Line>some file name</Line>
</Data
</Fname>
this way "some file name" will be dispalyed in the text file at the first line of file. To remove it use this trick, define the following values in Content Conversion Parameters:
in the Recordset Structure : FName,Record
FName.fieldFixedLengths = 0
FName.fixedLengthTooShortHandling = Cut
FNamee.fieldSeparator = '0'
FName.endSeparator = '0'
Record.fieldSeparator = 'nl'
Record.endSeparator = 'nl'
Rgds,
Triana -
I had to restore my hard drive to a date two weeks earlier to eliminate an issue I was having. For some reason, this buggered my Firefox browser. I uninstalled it then reinstalled it (several times, now). It appears the reinstall is successful; however, when I open Firefox, a pop-up appears in the center of my homepage. It is blank except for a tiny box that I can check and uncheck and a grey bar in its center that doesn't seem to do much of anything. There is no copy in the pop-up. There doesn't appear to be any way to close it and it prevents me from from taking any other action including closing the page. Any clue what this pop-up is and how I might eliminate it? It doesn't appear with any other of my browsers.
I can't take any action once my Foxfire homepage is open and the mystery pop-up appears, which is immediately. I have to restart my PC to close Firefox because the pop-up prevents my doing anything connected to Foxfire. I can open other browsers or do other functions, such as open documents, but Firefox is frozen on the homepage. And, although I can move the cursor around the page, I can't click on anything.
-
Setting Up The Way Tags Appear in the File Name
My original filename: Guns N Roses - Live and Let Die.mp3
After dragging this (and hundreds more) into iTunes,
the file name now appears as: 10 Live and Let Die.mp3
I have since unchecked the 'Keep iTunes Media folder organized', which I now know is the reason my files names have changed, BUT - it's too late for all those songs I added, since iTunes sucked them right in without leaving me my originals.
How can I get my original copies back to their original file names? I prefer the artist's name first, rather than the track number. Some 'automatic' way...not renaming them manually one by one, which would take all year long.
How d'ya like them Apples,
ZolettaHi, welcome to Apple Discussions.
Try http://dougscripts.com/itunes/scripts/ss.php?sp=appendartisttofilename - and if that doesn't quite do what you want there should be something else there that will...
tt2 -
Files not appearing in the File Sharing section
Hi Everyone,
I created a ringtone on the iPhone, using Ringtone Designer Pro. The problem is, when I connect my phone to the computer, the ringtone doesn't appear under the "Ringtones" icon in the file sharing section under my device in iTunes.
This problem is apparently prevalent with any app that supports file sharing in my case - I created a test document in Pages but that didn't show up either. The apps themselves are listed, but not the files created by them.
So far, I have tried uninstalling and reinstalling iTunes and all other Apple related software, without any improved results.
iPhone 4 32 GB, iOS 4.3.3;
iTunes 10.3;
Windows 7 Home Premium 64 bit.
Any help is greatly appreciated.Connect your device to iTunes, select it in the left-hand colum, select the Apps tab, scroll down to File Sharing, select the app in question, in this case iMovie. Your file will be in the panel to the right.
tt2 -
Add a line to end of the file using VBscript
HI
I am working with a software that only accept Vb script commands.
I have a file that has 8 columns. I need to add a line at the end of the file using VB script
I need this line to add numbers of amount column and put 22 in 7th column and leave the rest empty.
example:
2.01E+13
77008900
9.88
6/3/2013
1/14/2014
1/17/2014
2.01E+13
77008900
66.07
6/5/2013
1/14/2014
1/17/2014
added line
66.07+9.88=75.95
22
the files have different number of rows. please helpwhy in the word you think you are smart as the fact is that you don't know shit.
I explained to you that the software has the ability to edit the file using VBscript. Now if you cant do it dont say that it makes no sense. because others already help me to solve this.
do everyone a favor and don't answer my questions please, Well you never answered any, don't post any nonsense comments
I am sorry but I don't think any of us can understand what you are trying to ask. What software? VBScript is a scripting language that you use to write a script. It cannot modify a file that is open by another process.
We posted the suggestion to look into using the FileSystemObject to append a line to a file. The examples show you how to do this.
I suspect that the real problem is that, since you don't speak English natively, we are not understanding what you are trying to ask. I know that, for me, what you are asking doesn't make sense. Another guess is that you have a program that is able
to use VB to do things. Is that what you mean by "softwares". Are you saying that another program is written in VBScript and you want to modify it?
You have to clarify these things.
¯\_(ツ)_/¯ -
CS6 Photoshop: One newly-created PSD file won't print because the print dialog box won't appear after selecting File > Print. Then "Print" becomes grayed out. The file properties such as permissions, are the same as other PSD files that do print. This file also cannot be converted to Adobe PDF, which is not offered as choice under "Save as", whereas other can be. I've exited, reopened Photoshop, restarted computer, checked out other CS6 PSD files which do print, nothing changes. The 52 MB file has been flattened. OS is Windows 7. Thanks for any suggestions.
Sounds like the printer driver is having some problems.
Try holding the space bar down when you select Print (which makes the print dialog NOT load previously used settings). -
Received upgrade notification for Mozilla to 3.6.15 which we undertook. The computer after completing this activity now cannot stream video through our proxy provider from BBC I-player, even though we have ensured we have the latest Flash Plug-in. The system was working perfectly prior to this event. Even if we delete and re-download the update, the file loads and then when asked to run, "File Corrupt message appears. Please advise or provide solution if possible. Thanks
Received upgrade notification for Mozilla to 3.6.15 which we undertook. The computer after completing this activity now cannot stream video through our proxy provider from BBC I-player, even though we have ensured we have the latest Flash Plug-in. The system was working perfectly prior to this event. Even if we delete and re-download the update, the file loads and then when asked to run, "File Corrupt message appears. Please advise or provide solution if possible. Thanks
Maybe you are looking for
-
Checking checkboxes from XML data (Designer and LiveCycle Output)
Hello! I have over 3 thousand XML files containing information to be converted into PDF files. Among the info I have fields like: <REASON1>X</REASON1> <REASON2></REASON2> So on the XDP fields this translates as checkboxes. So I tried this
-
If I already of CS6 trial versions of my computer, do I need to download them again?
I had previously downloaded the 30-day trial of the CS Creative Suite 6.0. Now that I'm signed up for the Cloud, do i have to re-downoad or is their a way to register my software as is? Rob
-
"Database" - Sun ONE Directory server 5.2
The user manuals refer to the sun ONE "database". Where can I find the name of my directory server's "database" ? Is the default database name "db", as in the files stored in this path: ............/slapd-ala-devldap/db
-
Urgent job needed as abap fresher
hi all guys i urgently need a job i ab an abap certified consultant lookin 4 a job very desperately. mail me at [email protected] if anybody have any openings.
-
How i can add jar or dll file to VM lib by code or installer
iam working at project to interact with rs232 port using comm api to work program corectly i must insert some files(jar,dll,broperty files) to the VM by copy and past ... the problem is how i can do it by installer? iam will be very thanks if i get h