cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in Sending PDF as mail attachment

munishsb
Participant
0 Kudos

Hello

I am calling ADOBE form and the PDF data coming from Fucntion module converting using CONVERT_XSTRING_TO_BINARY

and the binary data I am putting in Contents_hex table parameters of SO_NEW_DOCUMENT_ATT_SEND_API1

But while openign the mail attachemnet, its saying error in opening the file, it is damaged and all.

So whats actually the problem will be?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

can you enable a verbose trace for ADS and reproduce the issue

please see #846610

Run the Visual Administrator for your J2EE engine.

Server -> services -> Log Configurator.

Then select 'To Advanced mode' and 'Locations' tab.

Root Location -> com -> sap -> engine -> services -> webservices -> server -> runtime -> com -> adobe_adobeDocumentServices -> AdobeDocumentServices

Please change this node to 'ALL', and save the configuration.

Modify the log severity for the following location also.

Root Location -> com -> adobe

Change severity to 'All', press 'Copy severity to subtree' and save configuration.

All ADS trace will be written in DefaultTrace of server node.

/usr/sap/<SID>/<Instance>/j2ee/cluster/serverX/log/defaultTrace*.trc

After finishing the test, don't forget to change the log level back to 'default'.