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 files from USB - Application server

Former Member
0 Likes
1,154

Hi Experts,

I  have requirement , where i need to upload files in background and the data must be read from a USB drive. For the background upload i kept the files on application server one of the local drive and it is working fine , but as i told want to upload files from the USB drive but i could not able to achieve this.

-- Is that possible to upload files from the USB ???  How can i achieve this???

Kindly help me.

Thank you!!!

Srini

8 REPLIES 8
Read only

Venkat_Sesha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,112

Just use GUI_UPLOAD method from CL_GUI_FRONTEND_SERVICES.

In the F4 it will show the Drive right and Also if the USB drive is static you can hardcode the data

CL_GUI_FRONTEND_SERVICES

check Directory exists

check File Exists

then use this.. Hope this helps..

Read only

0 Likes
1,112

Hi Venkat,

If i use the CL_GUI_FRONTEND_SERVICES i could not run the program in background.

Thank you for reply.

Regards,

Srini

Read only

Venkat_Sesha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,112

Yeah just check your question again.. In background we cannot do that. NO_BATCH exception will be raised. Sorry about that.

Read only

0 Likes
1,112

Corrected the question .. Thank you 🙂

Read only

Former Member
0 Likes
1,112

Hi Experts,

I  have requirement , where i need to upload files in background and the data must be read from a USB drive. For the background upload i kept the files on application server one of the local drive and it is working fine , but as i told want to upload files from the USB drive but i could not able to achieve this.

-- Is that possible to upload files from the USB  from application server ???  How can i achieve this???

Kindly help me.

Thank you!!!

Srini

Read only

Venkat_Sesha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,112

Check This Link

http://scn.sap.com/message/1868433

TEXT_CONVERT_XLS_TO_SAP Check this.. May help..

Read only

Venkat_Sesha
Product and Topic Expert
Product and Topic Expert
Read only

0 Likes
1,112

Hi Venkat,

Thank you again for your reply...

This one actually want i want to do initially , But we have some problem with our client , some kind of Auth issues. So could  not Opt for this :-(.

Thank you..

Regards,

Srini