Application Development and Automation 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: 
Read only

regarding flat file

Former Member
0 Likes
557

hi all

i got a flat file with some fields separated by space and some fields by comma .

how to handle the situation.

thnaks in advance

prasanna kumar

5 REPLIES 5
Read only

Former Member
0 Likes
539

From where are you getting this flat file?

M S DhanaLakshmi

Read only

0 Likes
539

first declare on itab: itab1

like filed(250).

declare another itab : itab2 (declare here what are field in falt file)

after that using split command and pass the filed value to correspoing

field of tab2.

afther using bdcdata, upload the db

Read only

Former Member
0 Likes
539

while downloading use field separator,

thn you will get same for all.

Read only

peter_ruiz2
Active Contributor
0 Likes
539

hi,

use the FM WS_UPLOAD.

your data will be saved on an internal table with only one field.

the field will then contain a line from your flat file. from there, use SPLIT to separate the values of the field.

regards,

Peter

Read only

Former Member
0 Likes
539

Hi

When you are downloading data from the flat file, use the field seprator.

it will resolve your problem.

Rewards Points if useful.

Thanks & Regards

Nikunj Shah