cancel
Showing results for 
Search instead for 
Did you mean: 

PDF translation error

Former Member
0 Kudos
138

Dear Experts ,

I had an issue with the PDF document translation during emailing of PO .The system was generating PDF but while opening the PDF "a drawing error has occured " message has appeared . I was suggested to correct my translation coding . But I am not able to locate the error . Please see the code block as under & suggest me what is wrong ?

LOOP AT i_tline INTO lwa_tline.

TRANSLATE lwa_tline USING ' ~'.

CONCATENATE lv_buffer lwa_tline INTO lv_buffer.

ENDLOOP.

TRANSLATE lv_buffer USING '~ '.

Regards

Anis

Accepted Solutions (1)

Accepted Solutions (1)

aidan_black
Advisor
Advisor
0 Kudos

Hi,

I guess you use function module CONVERT_OTF to return the PDF data before the coding mentioned above and you return the PDF data in an internal table LINES.

If you do it this way, the PDF data are in table LINES must be put into the PDF file without any codepage conversion. The translate commands above destroy the PDF data.

You should use parameter BIN_FILE when calling CONVERT_OTF so the PDF data is returned as type XSTRING and use the the example BCS_EXAMPLE_8 of SAP note 1324547 to handle the PDF data returned.See also SAP note 1320163.

Regards,

Aidan

Answers (1)

Answers (1)

Former Member
0 Kudos

Dear Experts ... any inputs ?

Former Member
0 Kudos

no response ??