Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

problem opening pdf file

Former Member
0 Likes
750

Hi

I'm sending pdf file by email but i have problem when i'm going to open this file, for example :

1.-problem when reading the document (16)

2.-Problem when reading the document(110)

I already saw others thread in this page but i don't know because it happens this.

i'm using the next FM in my program:

SSF_FUNCTION_MODULE_NAME, for search FM of my smartform

My smartforms FM

CONVERT_OTF, for change otf to pdf format

SO_NEW_DOCUMENT_ATT_SEND_API1, for send email

I need your Help

thanks

Gregory

4 REPLIES 4
Read only

former_member192429
Active Participant
0 Likes
657

I dont remember exactly but I think after using the OTF to PDF convertion you need to convert PDF again to another format . Use QCE1_CONVERT fm and attach this output table in SO_NEW_DOCUMENT_ATT_SEND_API1.

-Kriss

Read only

0 Likes
657

Hi

Ready, exactly i had a problem with OTF to PDF convertion.

I used this FM <b>SX_OBJECT_CONVERT_OTF_PDF</b>

Thanks for your answer

Regards

Gregory

Read only

0 Likes
657

hi kriss,

I want to send an email attachment(.pdf) to an external ID. I am using followin FM in sequence,

'CONVERT_OTF' to covert OTF data to PDF.

CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'

EXPORTING

DOCUMENT_DATA = WA_DOCUMENT

PUT_IN_OUTBOX = 'X'

  • COMMIT_WORK = 'X'

TABLES

PACKING_LIST = IT_PACKING

CONTENTS_BIN = IT_CONTENTS_BIN

CONTENTS_TXT = IT_CONTENTS_TXT

RECEIVERS = IT_RECEIVERS.

Here when i download the pdf form, it's working fine but when i am sending the mail and then opening attachment of that mail , it's giving an error "Token BT70.5 not found". So the error comes when we open the PDF form which has been sent in mail.

Note: I am working on SAP R/3 4.7

Replay ASAP.

Thanks in Advance

Read only

Former Member
0 Likes
657

hi Gregory,

I want to send an email attachment(.pdf) to an external ID. I am using followin FM in sequence,

'CONVERT_OTF' to covert OTF data to PDF.

CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'

EXPORTING

DOCUMENT_DATA = WA_DOCUMENT

PUT_IN_OUTBOX = 'X'

  • COMMIT_WORK = 'X'

TABLES

PACKING_LIST = IT_PACKING

CONTENTS_BIN = IT_CONTENTS_BIN

CONTENTS_TXT = IT_CONTENTS_TXT

RECEIVERS = IT_RECEIVERS.

Here when i download the pdf form, it's working fine but when i am sending the mail and then opening attachment of that mail , it's giving an error "Token BT70.5 not found". So the error comes when we open the PDF form which has been sent in mail.

Note: I am working on SAP R/3 4.7

Replay ASAP.

Thanks in Advance