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

ความคิดเห็น • 33

  • @pankajkumaram
    @pankajkumaram 2 ปีที่แล้ว +3

    So Simple and Well explained. More power to You!!

  • @mMoshenicK
    @mMoshenicK 5 หลายเดือนก่อน

    Огромное спасибо, настолько простой и понятный способ. 👍

  • @NisarAhmed-sq4bo
    @NisarAhmed-sq4bo 3 หลายเดือนก่อน

    very great video

  • @muhhammadsami3110
    @muhhammadsami3110 2 ปีที่แล้ว

    Absolutely wonderful tutorial. Thumbs up!

  • @ss-de5mm
    @ss-de5mm 2 ปีที่แล้ว

    Thank u I m waiting these videos only really thank u excellent

  • @anthonyschiavello5069
    @anthonyschiavello5069 2 ปีที่แล้ว

    Hi Dustin, thank you for your video. Can you please advise how to send a file as csv rather than xlsx?

  • @mpredolim
    @mpredolim 2 ปีที่แล้ว

    Kudos Dustin!

  • @humamattar2652
    @humamattar2652 5 หลายเดือนก่อน

    i would like to know if it's possible to add more than one sheet in the same excel file ? could you please advice 😊

    • @itwithdustin
      @itwithdustin  5 หลายเดือนก่อน

      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.

  • @hamadahmad8201
    @hamadahmad8201 2 ปีที่แล้ว +1

    smart form or adobe form attachment in email ?? Any video on it ??

    • @itwithdustin
      @itwithdustin  2 ปีที่แล้ว +1

      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!

    • @wjcfrances
      @wjcfrances 2 ปีที่แล้ว

      @@itwithdustin I am interested in learning about this topic

  • @hamadahmad8201
    @hamadahmad8201 2 ปีที่แล้ว +1

    Amazing...

    • @itwithdustin
      @itwithdustin  2 ปีที่แล้ว

      Glad I could help! Please leave suggestions as to what you want to see next. My video ideas come directly from subscriber requests.

  • @ss-de5mm
    @ss-de5mm 2 ปีที่แล้ว

    Please make some videos in ale Idocs

  • @rachupatil5980
    @rachupatil5980 3 ปีที่แล้ว

    Hi Thank you for your videos,
    Can you create videos on table maintenance events like while saving or deleting?

    • @itwithdustin
      @itwithdustin  2 ปีที่แล้ว

      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.

  • @rafaelkardozo
    @rafaelkardozo 2 ปีที่แล้ว

    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 ?

    • @itwithdustin
      @itwithdustin  ปีที่แล้ว +2

      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!

  • @saiphanindrab5752
    @saiphanindrab5752 2 ปีที่แล้ว

    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

    • @itwithdustin
      @itwithdustin  2 ปีที่แล้ว

      Hi, if you could send me an email with the specifics, I’d be happy to take a look: dustin@dustinredmond.com

  • @ugurkranta4080
    @ugurkranta4080 2 ปีที่แล้ว

    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 ?

    • @SAINAGARJUNA
      @SAINAGARJUNA 2 ปีที่แล้ว

      bro do u meet that
      requirement

  • @dixitabhargava6706
    @dixitabhargava6706 2 ปีที่แล้ว

    I can’t use the to_xml field is unknown.. could you please help?

    • @itwithdustin
      @itwithdustin  2 ปีที่แล้ว

      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.

    • @dixitabhargava6706
      @dixitabhargava6706 2 ปีที่แล้ว

      @@itwithdustin 760 it is

    • @itwithdustin
      @itwithdustin  2 ปีที่แล้ว

      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.

  • @Usharani-ys5cc
    @Usharani-ys5cc ปีที่แล้ว

    How to add cc to it ?

    • @Usharani-ys5cc
      @Usharani-ys5cc ปีที่แล้ว

      I have marked the i_copy = 'C'

    • @itwithdustin
      @itwithdustin  ปีที่แล้ว +1

      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.

    • @Usharani-ys5cc
      @Usharani-ys5cc ปีที่แล้ว

      Do we need to call add_recipient method twice? One for To recipient and another for Cc from one sender?

    • @itwithdustin
      @itwithdustin  ปีที่แล้ว +1

      @@Usharani-ys5cc Yes, add_recipient must be called for each recipient. This is typically done in a loop.

    • @Usharani-ys5cc
      @Usharani-ys5cc ปีที่แล้ว

      @@itwithdustin thank you very much.. you did my day