cancel
Showing results for 
Search instead for 
Did you mean: 

Without Using File Upload

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

sreenadh_mv
Explorer
0 Kudos

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

Former Member
0 Kudos

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