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

Former Member
0 Likes
638

Hi gurus,

I have a requirement where I need to upload a file from the legacy system, I have to write a program that is good enough to deal with the input file generated from the legacy system in the different formats, such as .txt,.xls,.csv. So can you please help me out which function module should I use, as of know I am looking forward for ws_upload.

Thanks

Rajeev Gupta

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
572

Hi,

In which version are you coding..

GUI_UPLOAD also can be used.

If you are uploading .CSV file the scenario will be different compared to .XLS and .TXT files.

.txt nd .xls file you can upload directly with the FM.

.csv you need to split the fields accordingly where comma

(,) exists.

Thanks,

Deepak.

3 REPLIES 3
Read only

Former Member
0 Likes
573

Hi,

In which version are you coding..

GUI_UPLOAD also can be used.

If you are uploading .CSV file the scenario will be different compared to .XLS and .TXT files.

.txt nd .xls file you can upload directly with the FM.

.csv you need to split the fields accordingly where comma

(,) exists.

Thanks,

Deepak.

Read only

0 Likes
572

Thanks For the reply, well I am uploading in 6.0, can you suggest me different function module.

Thanks

Rajeev gupta

Read only

Former Member
0 Likes
572

Hi Rajeev,

You can use FM 'ALSM_EXCEL_TO_INTERNAL_TABLE' to uplpoad from Excel sheet...I suppose you have to use two FM's to get all the functionality you want i.e., for .txt, .xls, .csv...Next good FM would be 'GUI_UPLOAD'..

Regards,

Vivek