on 02-14-2012 7:20 AM
Hi everyone
I need your help to attach files in custom WebDynpro ABAP application. Kindly share if there is any sample standard WebDynpro ABAP application or share some sample code.
Best Regards
Iftikhar Ali
Hi Iftikar,
Please go through the link which will explain you about the upload ui.
http://wiki.sdn.sap.com/wiki/display/WDABAP/UploadandDownloadfilesinWebdynproABAP
Thanks & Regards,
Arun.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please refer the below link :
http://www.sap.com/turkey/partners/icc/scenarios/pdf/HTTPAPI_E.pdf
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Attach means, you need to add (Reference document) the file for each record or store the file in the back end.
Three fields need to maintained in back end table (custom table)
1) Attachment data - Xstring (type)
2) Attachment Type - string (type)
3) Attachment name - String (type)
From the File Upload UI element
UI "data" field to -> Attachment data
UI "fileName" field to ->Attachment name
UI "mimeType" field to ->Attachment type
Update/ save it in back end table, based on the requirement
Opening the Attachment in UI in event Action:.
Pass the table value to the below class as mentioned.
cl_wd_runtime_services=>attach_file_to_response(
EXPORTING
i_filename = Attachment_name
i_content = Attachment_data
i_mime_type = Attachment_type ).
Check below standard components
SALV_WD_DEMO_UPLOAD
SALV_WD_TEST_FILE_UPLOAD
Regards
Srinivas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.