Send File or Attachment by Email in SAP ABAP [english]

Поділитися
Вставка
  • Опубліковано 15 гру 2024

КОМЕНТАРІ • 16

  • @lothar-van-der-nerd
    @lothar-van-der-nerd 4 дні тому

    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?

  • @samfischler7008
    @samfischler7008 2 роки тому

    Thank you very much.
    It was a challenge getting a adobe forms pdf in there but we go there in the end :D.

    • @CustAndCode
      @CustAndCode  2 роки тому

      Glad that I could help you! Thanks for yor feedback! 😀

  • @lothar-van-der-nerd
    @lothar-van-der-nerd 4 дні тому

    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?

  • @diomahardhika4056
    @diomahardhika4056 Місяць тому

    how about multiple attachment ?

    • @CustAndCode
      @CustAndCode  Місяць тому

      You can add a much as you want 🤗

  • @saiprakash5381
    @saiprakash5381 Рік тому

    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.

    • @CustAndCode
      @CustAndCode  Рік тому

      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? 🤗

  • @binn6026
    @binn6026 2 роки тому

    How to check sent email on tcode SBWP ?
    I just see it on tcode SOST

    • @CustAndCode
      @CustAndCode  2 роки тому +1

      It is not a WorkItem, we have no workflow here, just emails. With T-Code SOST we check this emails. 🤗

  • @furkandirik2491
    @furkandirik2491 2 роки тому

    " An exception was raised." ı have this error. do you know why ?

    • @CustAndCode
      @CustAndCode  2 роки тому

      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. 🤔

  • @sammedsammu2782
    @sammedsammu2782 Рік тому

    How about application server?

    • @CustAndCode
      @CustAndCode  Рік тому

      What do you exactly mean? Send a file via Email what is saved on the application server? 🤔

    • @sammedsammu2782
      @sammedsammu2782 Рік тому

      File is present in application server so I want to attach that file...please help me out!

    • @CustAndCode
      @CustAndCode  Рік тому

      @@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! 🤗