cancel
Showing results for 
Search instead for 
Did you mean: 

Upload a file in Specific Path

Former Member
0 Kudos

Hi All,

I am not able to understand how to upload a file in specific path(Ex: D:\Upload). I am searched in many sites, but i didn't found any solution. By default it is taking C:\fakepath. Please help me how to give a default specific path while uploading a file .

Thanks,

Kushi

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hi,

you can get answer from this link http://scn.sap.com/thread/2041046

Former Member
0 Kudos

Use Function Module :: Gui_upload

                                kd_get_filename_on_f4

ronaldo_aparecido
Contributor
0 Kudos

Hi please See this link

If you dont uderstand please call me

Former Member
0 Kudos

Hi Ronald,

Thank u for your quick response. Here i need to upload all kind of files not only .xlsx files.

And where can i specify the default path here, i mean the path, uploaded files present.

Regards,

Kushi

ronaldo_aparecido
Contributor
0 Kudos

Hi

What types?examples please.

Please talk me about whole process of this aplication .

I need understand to help.

Former Member
0 Kudos

Hi Ronald,

Please find the attached screen shot here, in the screen shot you can find the path "C:\fakepath\io.txt". Here i am using io.txt file to upload. I want this file has to be place in other path i.e., "D:\upload". But by default the file is uploading in C:\fakepath. Plesae let me know where i need do changes.

Here are the types i used:

Attributes

Type

FILE_NAME

STRING

FILE_TYPE

STRING

FILE_SIZE

STRING

FILE_CONTENTS

XSTRING

Node2: N_FILE_DOWNLOAD 

Cardinality is 0.n

Attributes

Type

FILE_NAME

STRING

FILE_TYPE

STRING

FILE_SIZE

STRING

FILE_CONTENTS

XSTRING

ronaldo_aparecido
Contributor
0 Kudos

HI.

I think , in your code you moved the value c:/.... to context of field screen .

If you click in field screen , maybe any propertie be relative to path .

Please see .