‎2009 Jul 16 10:57 AM
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
‎2009 Jul 16 11:12 AM
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