on 04-23-2015 5:58 AM
Hi
In webdynpro, i wanted to attach by default 2 PDF documents , after user can delete if he is not required. can you tell me how can i attach pdf documents by default.
-Ganesh
Hi Tarimela,
Following options are available to upload and retrieve the documents.
And in your web Dynpro ABAP page give an File Download UI element , in the page load retrieve the document from the uploaded place and bind it with the File Download element.
- Gowtham
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Create one Z-table by storing your required attachements in form on XSTRING.
Refer this link regarding how to save files into database.
and in WDDOINIT( ) , read that file content and by using below code you can display the file contents.
cl_wd_runtime_services=>attach_file_to_response(
EXPORTING
i_filename = ls_v_attachments-file_name
i_content = ls_v_attachments-content
i_mime_type = ls_v_attachments-mime_type
i_in_new_window = abap_true
i_inplace = abap_true ).
Hope this helps you.
Thanks
KH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
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.