Application Development 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: 

Uploading a file into SAP

Former Member
0 Kudos

Hi,

I want to upload a set of vendors listed in textfile into SAP through BDC.

I know I have to use fn. module 'GUI_UPLOAD' in this process.

The issue Ihave is for fn. module 'GUI_UPLOAD' , I have to hardcode the filename.

I dont want this to happen instead I should be able to browse for the file and select according to my choice, then this file should serve as input for fn. module 'GUI_UPLOAD' --filename.

Let me know how can I do this.

Thanks,

Shivaa....

2 REPLIES 2

Former Member
0 Kudos

use the FM 'F4_FILENAME' OR 'WS_FILENAME_GET'.

OR use the method file_save_dialog of class cl_gui_frontend_services.

search in SCN You will get sample codes.

Edited by: S.Kiran on Sep 19, 2008 10:00 PM "Modifid the method

rodrigo_paisante3
Active Contributor
0 Kudos

Hi,

you need to use a parameter and in at selection screen value request for parameter, you use other function, like F4_FILENAME, to browse. Or you can search for other function in SE37.

Regards.