on 07-01-2011 9:11 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.