on 2010 Jun 11 5:49 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Experts ... any inputs ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
66 | |
11 | |
11 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.