cancel
Showing results for 
Search instead for 
Did you mean: 

GUI_UPLOAD - Dump

Former Member
0 Kudos

Hello all,

in a view (method wddoinit) i use the funktion 'gui_upload'. I become a dump ( OBJECTS_OBJREF_NOT_ASSIGNED / Access over ' ZERO ' object reference not possible) What's wrong? With other functions its not a problem.

Or is there a any method for gui_upload. I want to upload a textfile.

Thanks for help.

Greetings

Rainer

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can't using GUI_UPLOAD to upload file in WDA because this fumction using CL_GUI_FRONTEND_SERVICES .

For uploading file in WDA, please use FileUpload UI Element.

This UI element has properties fileName and data. After upload fileName will contain the exact path of the file uploaded. The data will contain the filedata but in XSTRING format. Then convert the XSTRING data to STRING and then extracted the data to internal table.

Regards,