cancel
Showing results for 
Search instead for 
Did you mean: 

No bitmap when 'CONVERT_PDF'

Former Member
0 Kudos

Hi all,

we have a SAPscript form including a window containing a bitmap.

Printing form and converting spool to pdf using report RSTXPDFT4 works fine, bitmap is displayed correctly.

Now, as we do not need the spool-file, we changed our report, so that SAPscript returns an OTF table as described in many threads (tdgetotf='X' and so on...). Afterwards we convert the OTF table to a PDF table using function module 'CONVERT_OTF'.

But now, after exporting PDF to local workstation or sending it as an mail attachment, the bitmap is not displayed any more. Text is ok, variables are substituted as they should, but graphic window stays empty...

Do you have an idea what's the reason for this behavior?

THX

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I had a similar requirement and the bitmap logo created was displaying correctly in the email attachment.

Hope you have done like the below shown code.

CALL FUNCTION 'CLOSE_FORM'

TABLES

otfdata = tb_otf

EXCEPTIONS

OTHERS = 1.

i.e while closing the form we can collect the data into one itab tb_otf.

IF NOT tb_otf IS INITIAL.

CALL FUNCTION 'CONVERT_OTF'

EXPORTING

format = 'PDF'

IMPORTING

bin_filesize = lv_dummy

TABLES

otf = tb_otf

lines = tb_lines

EXCEPTIONS

err_max_linewidth = 1

err_format = 2

err_conv_not_possible = 3

OTHERS = 4.

IF sy-subrc <> 0.

retcode = sy-subrc.

PERFORM protocol_update.

ENDIF.

ENDIF.

and the logo was a colored image in my case.

Regards,

Chandra.

Former Member
0 Kudos

Hi Chandra,

in the meantime we solved the problem using another function module for converting:

I tried SX_OBJECT_CONVERT_OTF_PDF like it is described in thread

https://forums.sdn.sap.com/click.jspa?searchID=23733352&messageID=6050381

and now I have the bitmap graphic visible.

Thanks for your reply,

Manfred