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

problem in GUI_UPLOAD function module

Former Member
0 Likes
1,086

Hi Folks,

I am in the BI system where I have limited scope of upload function module, So I used GUI_UPLOAD as a upload function module.

I am uploading CSV file and which have amount field (with comma ',' ) as one of the column , So it is truncating the other columns while retrieving data into internal table and giving wrong data in columns.

Any other Function module, or tricks to upload file which have ',' in one of the column.

Thanks

PP

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
847

Hi,

Well in this case you will have to change the file format i.e. Instead of CSV make it tab delimited etc.

Else change the amount value by replacing comma(which woud be a tedious task).

There is no other alternative.

Best regards,

Prashant

5 REPLIES 5
Read only

Former Member
0 Likes
848

Hi,

Well in this case you will have to change the file format i.e. Instead of CSV make it tab delimited etc.

Else change the amount value by replacing comma(which woud be a tedious task).

There is no other alternative.

Best regards,

Prashant

Read only

Former Member
0 Likes
847

Hi,

Before converting the file into CSV format, in excel chnage the cell format ( right click on the column & select Format Cell ) from Currency to Numbers then save the file as CSV format for uploading. This will remove the "," from the amount fields.

Hope this solves ur problem.

Read only

awin_prabhu
Active Contributor
0 Likes
847

Hi,

After getting data into internal table validate it and remove ','.

Using data type as string.

Use TRANSLATE for removing ','.

Ex:

TRANSLATE g_r_wa2-matnr USING '; ' .

Read only

Former Member
0 Likes
847

Hi,

Declare two structures one structure field take char and upload data. Once uplaoded data you use Write .....Curency statemtnet and change char amount field into correct format and append to the sencond structure.

Regards

Md.MahaboobKhan

Read only

0 Likes
847

Hi,

I used Text(tab delimited) file as a input and this problem is resolved.

Thanks a lot for your inputs.

PP