cancel
Showing results for 
Search instead for 
Did you mean: 

File Upload in to application Server

Former Member
0 Kudos

How can we upload all the files from a Normal folder(not a ZIP folder) to SAP Directories .

Can we do this from File upload UI.The problem i m facing with File Upload UI is it does not allow u to select the main folder , it opens up the folder to select a file available in it .

I want help on how to select a complete folder in the file upload UI.or i have to use some other UI.

Accepted Solutions (0)

Answers (3)

Answers (3)

Aisurya
Participant
0 Kudos

Hi Dear,

U have to use File upload UI element , then read the file then follow the code for transfering into SAP directories:

check this

*Declare T_UPLOAD , W_UPLOAD itab and wa with your file heading structure

*

 
DATA:L_LINE TYPE STRING.
 
  P_FLNAME = 'Test123'. " file name 
 
 OPEN DATASET P_FLNAME FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
 CHECK SY-SUBRC = 0.
 
 LOOP AT T_UPLOAD INTO W_UPLOAD.
  CONCATENATE W_UPLOAD-Field1
              W_UPLOAD-Field2
              W_UPLOAD-Field3
              W_UPLOAD-Field4
              W_UPLOAD-Field5
              INTO L_LINE
              SEPARATED BY ','.
 TRANSFER L_LINE TO P_FLNAME.
 ENDLOOP.
 
CLOSE DATASET P_FLNAME.

I think it may help u a lot..

Regards

Aisurya

former_member199125
Active Contributor
0 Kudos

Hii..

In webdynpro we dont have option to upload complete folder at a time. Our upload ui element will take only single file.

Or you can use the acfupdown element to upload 10 files at a time but you have to select 10 files individually, but u can select 10 files and uploading all at a time.

Regards

Srinivas

Former Member
0 Kudos

I believe you cannot use FileUpload UI for uploading a directory or more than one file at a time.

Refer this thread [|]