Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Upload txt file with spaces

Former Member
0 Kudos

Hi Experts,

I need to upload a .txt file with spaces at the end of each line but when i use the function 'GUI_UPLOAD' the itab is not respecting the blanks at the end of each line....

Do you have any suggestions pls......

5 REPLIES 5

mvoros
Active Contributor
0 Kudos

Hi,

have you tried with filetype = ' BIN'?

Cheers

koolspy_ultimate
Active Contributor
0 Kudos

for which transaction you are trying to upload?

and do you want spaces at the end of each line or at end of each word/spelling ..

if you want spaces after word/spelling try this

in gui_upload

uncomment HAS_FIELD_SEPARATOR = 'X'


    HAS_FIELD_SEPARATOR           = 'X'

thanks and regards,

koolspy.

Former Member
0 Kudos

Hi,

Use GUI_DOWNLOAD method of CL_GUI_FRONTEND_SERVICES and use parameter TRUNC_TRAILING_BLANKS_EOL parameter = space.

or

use in gui_upload

HAS_FIELD_SEPARATOR = 'X'

Regards,

Dhina..

0 Kudos

Thanks for your answers...

But no one is working, i have tried with filetype = 'BIN' and the others advice but is not working.... Look I have a user exit in tcode F110 and after 'download' is when i have to do the UPLOAD of the .txt file and what i want is to UPLOAD the txt whit the spaces at the end of each record like this:

000009100172262533MXP0000000001000.00012180001509308819TEST TEST TEST TEST TEST

As you can see at the end of the record, after the last word TEST i have some spaces.... those spaces are what i want in the UPLOAD

Any other suggestion plssss....

Former Member
0 Kudos

.