cancel
Showing results for 
Search instead for 
Did you mean: 

Save and Open file in Web Dynpro for ABAP

Former Member
0 Kudos

Hi Gurus,

My req: On Submit Web Dynpro form a record will be created in the Ztable. The Form should have the ability to upload a file. When the Web Dynpro goes to Approver he/she should be able to View the file that uploaded. I created a FM and used SO_DOCUMENTS_MANAGER. When I execute a FM it opens the pop up to import the file from PC. But when I execute the Web Dynpro it is not opening. Is there any other way I can achieve? Need your help.

Thanks in advance.

Ganga

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Is that FM you created based on SAP GUI?? If yes, it will not work in webdynpro.

Here is a tutorial to upload and dwnload file in webdynpro:

http://wiki.sdn.sap.com/wiki/display/WDABAP/Upload+and+Download+files+in+Webdynpro+ABAP

-Manish

Answers (1)

Answers (1)

Former Member
0 Kudos

Use fileupload UI element in webdynpro to upload the file.

then call FM BAPI_DOCUMENT_CREATE2 to save the file into SAP DMS.

while opening it in webdynpro again Get the details of the file using FM BAPI_DOCUMENT_GETDETAIL2 and try to display it.

hope XSTRING will be available with second FM Call and can be able to display it in browser.