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

Upload file separated by commas

Former Member
0 Likes
442

How to uplaod a file separated by commas in BDC using GUI_UPLOAD.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
421

use split at ',' into itab-line1, itab-line2 etc

How to uplaod a file separated by commas in BDC using GUI_UPLOAD.

2 REPLIES 2
Read only

Simha_
Product and Topic Expert
Product and Topic Expert
0 Likes
421

Hi,

Take a variable of length some 1000 characters,in a internal table.

Then take another internal table of all the fields required.

Then looping the first internal table, split the table whereever ther is a comma,

in to second Itab.

It solves the problem.

Now the second table contains all the fileds with values and u can use it for further processing.

[or]

U can do like this also...

data: begin of itab occurs 0,

line(1000),

end of itab.

i assume that you upload the data to one itab ,

loop at itab.

it_bdc-field1 = itab-line+0(10).

it_bdc-field2 = itab-line+10(15).

dependingon ur field lengths.

....

.....

...

append it_bdc.

clear it_bdc.

endloop.

Cheers,

SImha.

Reward if useful..

Read only

Former Member
0 Likes
422

use split at ',' into itab-line1, itab-line2 etc