cancel
Showing results for 
Search instead for 
Did you mean: 

WebDynPro ABAP Scrren Shot Problem

Former Member
0 Kudos

Dear All,

I have a scenario to upload the screen shot in .Doc format in the database table in webdynpro application and the same senario like i need to download the screenshot in .DOC Format in the System.

Please let me know how can I acheive this task.

Thanks&regards,

Aditya.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

[]

former_member770131
Discoverer
0 Kudos

Hi

Try to use thid below code I think it will solve your problem.

Code for File download in action method

DATA lr_conv TYPE REF TO cl_abap_conv_out_ce.

DATA lv_data TYPE string.

DATA lv_xfile TYPE xstring.

lv_data = 'Example text, which will be opened in MS Word.'.

cl_abap_conv_out_ce=>create( RECEIVING conv = lr_conv ).

lr_conv->convert( EXPORTING data = lv_data

IMPORTING buffer = lv_xfile ).

cl_wd_runtime_services=>attach_file_to_response(

EXPORTING i_filename = 'wd4a.doc'

i_content = lv_xfile

i_mime_type = u2018applicaton/mswordu2019)

Thanks & Regards,

Ravi Kiran.

Former Member
0 Kudos

thanks for your answer. it was very helpful to me.