2024 Jul 10 10:30 AM - edited 2024 Jul 10 10:50 AM
To send the Smart form pdf as an email attachment by make use of standard class like
Steps to sending smart form pdf as an email attachment.
After, we need to do write the body of an email.
So, what is the information, we would like to send an email, we can send through this “create document” method in cl_document_bcs.
First, we can add the information in work area, we can append that into internal table.
Attachment:
We need to give the information about an email attachment and the subject of pdf.
We need to send an email immediately by using cl_bcs class.
After completion of setting an email.
We need to send an email.
After sending the email, the result will store in that variable lv_result.
If lv_result = ‘x’. An email sent successfully.
Otherwise, it will not send.
When we are sending an email to outside of sap users, we need to use the statement ‘COMMIT WORK’.
If we are sending an email to within sap users, then, this statement is not required.
After, Go to T-code “SOST”-for status of our email.
We can filter our sending request through waiting, errors,send status in send status tab.
And we can also re-process our email sending, and we can also trace our mails.
Configure outbound messages by using SCOT t-code:
1.Go to smtp Connection folder->outbound Messages->SMTP Nodes.
Here, we need to give mail host, according to your system configuration by checking in tcodes – os01.
Steps to find the system mail host and port.
Go to os01 t-code.
Go to Active Application server.,
Double click on that server.
Select server name and click on change view option- to get the IP Address of your system.
Then go to /nSMICM T-code to get details of host name and port.
Address area should start with *your email_id.
Then Go to sm37. Execute it with Job name.
Note: Even after you configured the above configuration, still the mail cannot be delivered sometimes. Because of the below reason…
2024 Jul 10 10:37 AM - edited 2024 Jul 10 10:39 AM
2024 Jul 13 7:21 AM
2024 Jul 13 4:53 PM
2024 Jul 15 6:51 AM