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

Error message "Document has errors and cannot be displayed"

Former Member
0 Likes
590

Hi,

i have sent an output of a transaction as an email using function module "SO_NEW_DOCUMENT_ATT_SEND_API1".

When i try to open the output in SBWP it is giving error message "Document has errors and cannot be displayed".

i have tried debugging the function module "SO_NEW_DOCUMENT_ATT_SEND_API1" to see if the file has been sent with all the necessary records without any error. i find that in all cases sy-subrc = 0, but when i try to open the file in SBWP transaction i still get the above error message.

Regards,

Raja

1 REPLY 1
Read only

Former Member
0 Likes
405

Hello Raja,

it is imperstive to know the transaction whose output you want to send as an email attachment. You will get the perfect help by debugging the transaction SBWP with breakpoints on statement "Message" and system-debugging on. Kindly check the SO Message Class if it contains the relevant error message. If not, please debug the Function Module that you used to send the email. This would definitely help.

Warm Regards,

Amit