cancel
Showing results for 
Search instead for 
Did you mean: 

Error while running a Dynpro Application

Former Member
0 Kudos

Hi,

I am using an RFC that use GUI_DOWNLOAD FM to push the file data to an internal table, but when it comes to Dynpro application it through an error u2018Access via Null Reference is not possible u2019 (Exception 1 of GUI_DOWNLOAD) while assigning the file name ( that is coming from Dynpro application) to GUI_DOWNLOAD.

Is there any other way to push the file data to an internal table and simultaneously can be used in DynPro application?

Thanks,

Vijay Gupta

Accepted Solutions (0)

Answers (1)

Answers (1)

abhimanyu_lagishetti7
Active Contributor
0 Kudos

GUI_DOWNLOAD is a SAPGUI specific function module, you should not use such kidn of FMs in Web Dynpro ABAP, the applicaiton here run in a browser.

use FileUpload/Download UI elements for this purpose

Abhi

Former Member
0 Kudos

Thanks Abhi for the quick reply. But my question is still the same. If I use File upload / File Download UI elements then how can I get my file data in an internal table? Is there any FM whcih I can use to get the file data in an Internal table? Fileupload/Filedownload UI elements are just file browsers if i am not wrong. Can you plz explain bit more.

Regards

Vijay.

abhimanyu_lagishetti7
Active Contributor
0 Kudos

Abhi

Former Member
0 Kudos

hi vijay,

please check the WDA example for file upload WDR_TEST_EVENTS.

or

you can create function module and in that FM upload file using Dataset . just pass the file name from WDA to ur Function module and fill the ITAB. its nothing WDA just simple ABAP coding.

Thanks,

Y . N