on 12-29-2008 1:45 PM
Hi All,
I need to get DATA( xstring ) of the local system file without using File Upload UI Element .Is there anyway to get it.
thanks & regards ,
RameshVinay
Hi All,
does anyone know what method is called behind this FILE UPLOAD element Browse button and how it is reading the data and binding it into data source after selecting the file from local system .Please Do the needful help
Thanks & Regards,
Ramesh Vinay
Edited by: Ramesh Vinay on Jan 5, 2009 10:36 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ramesh,
As you correctly pointed out we cannot use the gui_upload and gui_download fm's in webdynpro because they require sap gui and WD Components generally run in a HTML or Portal environment.
The only option available is File Upload Element
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Ramesh,
To upload data in Xstring format upload the document with 'BIN' type as file type using gui_upload and then convert it to Xstring using the Function module SCMS_BINARY_TO_XSTRING. for example plz see the following code:
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = path
filetype = 'BIN'
IMPORTING
filelength = length
TABLES
data_tab = itab.
the input length can be determined from the filelength of above function module
CALL FUNCTION 'SCMS_BINARY_TO_XSTRING'
EXPORTING
input_length = 40000
FIRST_LINE = 0
LAST_LINE = 0
IMPORTING
BUFFER = l_pdf
TABLES
binary_tab = itab
EXCEPTIONS
failed = 1
OTHERS = 2
.
hope this one will surely serve your purpose.
regards,
sree
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hI ,
GUI_UPLOAD is not getting supported in WebdynPro Application. It is throwing error as NULL object reference is not possible. Can anyone help this out .
Actually i have a default path for the file and i want to read the data of that file from WebdynPro without using FileUpload Element.
Thanks & Regards,
RameshVinay
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.