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 when it is opened the second PDF attachment

Claytoncbj
Participant
0 Likes
1,419

Hi!

I am a problem when it is opened the second PDF attachment.

Erro in Adobe "Adobe Acrobat Reader could not open.."

The first PDF is opend no problem.

I am using "CONVERT_OTF" and "CONVERT_OTF_2_PDF".

Can it be in the "objpack-doc_size"?

I am run the "ME9F" transaction to create the PDF and sending by email.

Thanks

1 ACCEPTED SOLUTION
Read only

Sandra_Rossi
Active Contributor
0 Likes
1,252

If your first PDF attached in the email is okay, so your general logic is good. Maybe you have not emptied an internal table before attaching the second PDF to the email, hence the error. Impossible to say from the information you have given.

6 REPLIES 6
Read only

Sandra_Rossi
Active Contributor
0 Likes
1,253

If your first PDF attached in the email is okay, so your general logic is good. Maybe you have not emptied an internal table before attaching the second PDF to the email, hence the error. Impossible to say from the information you have given.

Read only

0 Likes
1,252

Hi Sandra!

Do you have any program with the multiple pdfs attachment and FM "so_document_send_api1"?

Thank you!

Read only

0 Likes
1,252

No, sorry.

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,252

Are you really using both "CONVERT_OTF" and "CONVERT_OTF_2_PDF" ?

Because the second is simply a wrapper of the first one, calling it with parameter FORMAT = 'PDF'.

So you should choose only one of them, and not use the other one.

Read only

Claytoncbj
Participant
0 Likes
1,252

Hi Sadra!

You were right about "Maybe you have not emptied an internal table before attaching the second PDF to the email".

The command "APPEND LINES ..." was with comment.

...

CLEAR w_objhead.
i_objbin[] = i_record1[].
i_solix[] = lt_solix1[].
APPEND LINES OF I_RECORD2[] TO I_OBJBIN. <- THIS LINE WAS WITH "*".

Thank you very much!

Now, it is with another problem. The second pdf is the message "A number is out of range".

Do you know why this message?

Read only

0 Likes
1,252

Nope, never seen this message before.