cancel
Showing results for 
Search instead for 
Did you mean: 

"File is damaged and could not be repaired" in odata concept

former_member219737
Participant
0 Kudos

Hi Team,

I am getting the Error as "File is damaged and could not be repaired" in PDF Conversion in Odata Service.

Can i know, how to fix it. I have listed the screen shot for reference .

Regards,

Karthik S

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member219737
Participant
0 Kudos

Hi Team,

I have used the below set of FM for the Conversion .

Can u suggest an idea on it .

CALL FUNCTION 'WWI_GENERATE_AND_IMPORT2' DESTINATION lv_rfcdest

             EXPORTING

               estoh_recn              = ls_estlp-recn

               target_doc1_appl        = 'PDF'

               target_doc2_appl        = ' '

               mode                    = 'G'

               printer                 = lv_printer

               source_doc_size         = lv_docsize_n

               wwi_anchor              = lv_anchor

             IMPORTING

               result                  = v_wwi_result

             TABLES

               source_doc              = t_src_doc

               source_val              = v_src_val

               target_doc1             = lt_binary_data

               target_doc2             = lt_trg_doc2

               target_str              = lt_trg_str

               doc_file_tab            = lt_doc_file

               doc_file_key_tab        = lt_doc_filekey

               errorfile               = lt_errorfile

Regards,

Karthik S