SAP ABAP - Simple e-mail send from ABAP
ฝัง
- เผยแพร่เมื่อ 24 ส.ค. 2024
- In this video, I show you the simplest possible way to send an e-mail from a custom SAP ABAP program. Some videos recommend cl_bcs, but that class can be quite complicated. Simple messages (even with attachments) can be sent using the simpler class cl_bcs_message.
As always, for any questions, leave a comment, or shoot me an email at: dustin@dustinredmond.com
So Simple and Well explained. More power to You!!
Огромное спасибо, настолько простой и понятный способ. 👍
very great video
Absolutely wonderful tutorial. Thumbs up!
Thank u I m waiting these videos only really thank u excellent
Hi Dustin, thank you for your video. Can you please advise how to send a file as csv rather than xlsx?
Kudos Dustin!
i would like to know if it's possible to add more than one sheet in the same excel file ? could you please advice 😊
I think you can do this by using abap2xlsx or some third party library like that. I don’t know that it’s possible with native ABAP, but I could be wrong.
smart form or adobe form attachment in email ?? Any video on it ??
Hi Hamad! I don’t have any videos yet on SmartForms or Adobe Forms. I will try to create a video demonstrating how to e-mail a SmartForm.
Unfortunately, the trial system that I’m on does not have Adobe Forms configured, so I may not be able to make that video just yet. I will keep trying to see if it’s something that I can configure for this system. Thanks for watching!
@@itwithdustin I am interested in learning about this topic
Amazing...
Glad I could help! Please leave suggestions as to what you want to see next. My video ideas come directly from subscriber requests.
Please make some videos in ale Idocs
Hi Thank you for your videos,
Can you create videos on table maintenance events like while saving or deleting?
Hi Rachu, thanks for watching! Do you mean by events in generated Table Maintenance views via SE11 transaction? I will try to cover this topic in future videos.
Hello, is a good video. If I want to add more lines into the body message, how can i do it ? I can use this class or must i use other ?
Yes, you can use this same class. Simply append more lines of text to the parameter that you're passing. You can find newline characters as static constants of the cl_abap_char_utilities class. Typically, I prefer to create the message with doctype = 'HTM' and construct the e-mail as an HTML message. This allows for formatting, tables, etc. Thanks for watching!
Hi Dustin,
I am just running a background job and after its done sending the spool data to mail which is given in the selection screen.
Problem: After sending mail the mail is updating in adr6 table. I don't know why it's updating.Please tell me
Hi, if you could send me an email with the specifics, I’d be happy to take a look: dustin@dustinredmond.com
Hello sir , i have a reqıirement about this topic. I would like to run the abap program and I want to enter a date in the selection screen. After I enter that date and run. I want to recieve email. Actually I have a table where there are different stores and their sells. For example if I enter the date 21.11.2021, I want to recieve email about the stores that has sells at that date.Can you please help me for the code of this abap program ?
bro do u meet that
requirement
I can’t use the to_xml field is unknown.. could you please help?
Hello, to_xml( ) is an instance method on class cl_salv_table. What version of SAP are you on, this should work on ECC6 as well as HANA.
@@itwithdustin 760 it is
And you’re sure you have an instance of cl_salv_table? This method has been around for a while. I could understand if you were using cl_gui_alv_grid, but cl_salv_table class should work. Do you mind sharing your code? My e-mail is dustin@dustinredmond.com if you need further assistance.
How to add cc to it ?
I have marked the i_copy = 'C'
Hi, yes, you can do CC or BCC by passing one of the constants of class CL_BCS_MESSAGE (GC_CC or GC_BCC) to the IV_COPY parameter of the ADD_RECIPIENT method. This should do the trick.
Do we need to call add_recipient method twice? One for To recipient and another for Cc from one sender?
@@Usharani-ys5cc Yes, add_recipient must be called for each recipient. This is typically done in a loop.
@@itwithdustin thank you very much.. you did my day