Send File or Attachment by Email in SAP ABAP [english]
Вставка
- Опубліковано 20 січ 2025
- In this video, I will show you how to send a file or any attachment from the SAP system via email. For this, I will extend a code that I have already shown in a previous video of mine. With this code, you can send simple text or HTML emails from the SAP system.
The code of this video will be extended:
• Send Email in SAP ABAP...
#email #attachment #abap
▬▬ Literature 📚 ▬▬▬▬▬▬▬▬▬▬▬▬▬
▶ ABAP: An Introduction 2020 amzn.to/45CLTqk
▶ Complete ABAP 2023 amzn.to/45D5UNM
▶ ABAP to the Future 2022 amzn.to/42cgWGs
▶ Clean ABAP 2022 amzn.to/3KAqmow
▬▬ My Hardware 💻 ▬▬▬▬▬▬▬▬▬▬▬▬▬
▶ Microphone: amzn.to/3zj2UIz
▶ Headphone: amzn.to/3GUBRFg
▬▬ My Software (free) 💾 ▬▬▬▬▬▬▬▬▬▬▬
▶ Video Recorder: bit.ly/678fgh6
▶ Video Editor: bit.ly/38Rj9lb
▶ Thumbnail: bit.ly/CustAnd...
▶ Gamma AI: bit.ly/3nsdvgr
▬▬ Further Links 🔗 ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
⭐Become my subscriber: bit.ly/CustAnd...
🎬All videos in English: bit.ly/CustAnd...
☕Buy me a Coffee 😀: bit.ly/3dih2cl
*The links are affiliate links. There are no additional costs.
Thank you very much.
It was a challenge getting a adobe forms pdf in there but we go there in the end :D.
Glad that I could help you! Thanks for yor feedback! 😀
Using this in our test system it works but using it in the dev system there seems to be some kind of authentication error when using method add_attachment( ). Could it be possible this is related to the archive system which class cl_document_bcs tries to use for storing the mail attachment?
Tried this. It works.
But adding a word file (.docx) as attachment opening the email later on it says it found some unreadable content in the file and asks you if wanna restore the content.
Anyone else got this and can this be fixed?
Hello sir thanks for this video.
Sir i have requirement like to send a standard report output data as email attachment to pdf.
User will create while execution of standard report. After that execute the report.
The report output data will she will sent to different mail ids of customers.
She said this should happen via batch job.
I tried to create bacth job sm36 and passed our program and variant and got output and can been in in sost. And attachment as well.
But while getting email notification attachment is not there.
Please help me here.
It seems that the SAP Part should work correctly, if you see the attachment in SOST. Maybe restrictions on the email server, fileending, filesize? Can you send any attachment like small txt file? 🤗
How to check sent email on tcode SBWP ?
I just see it on tcode SOST
It is not a WorkItem, we have no workflow here, just emails. With T-Code SOST we check this emails. 🤗
how about multiple attachment ?
You can add a much as you want 🤗
" An exception was raised." ı have this error. do you know why ?
That is difficult because I don't know your code. For the analysis you can debug step by step or comment out parts of the code. 🤔
How about application server?
What do you exactly mean? Send a file via Email what is saved on the application server? 🤔
File is present in application server so I want to attach that file...please help me out!
@@sammedsammu2782 In this video I show how to read files from application server: ua-cam.com/video/b6UiSBc-uMw/v-deo.html
Have a look! 🤗