cancel
Showing results for 
Search instead for 
Did you mean: 

HR_FBN_GENERATE_SEND_EMAIL

Former Member
0 Kudos

hi,

I am working on scripts to send mail with PDF as an attachment,

while surfing the net I found the FM HR_FBN_GENERATE_SEND_EMAIL to send the mail.

if any one know whether I can use this FM

could you help how to pass data to the FM.


 CALL FUNCTION 'HR_FBN_GENERATE_SEND_EMAIL'
    EXPORTING
      subject                     = 'MAIL'
      sender                      = 'PRASANTH.K'
      recipient                   = w_email
     FLAG_COMMIT                 = 'X'
     FLAG_SEND_IMMEDIATELY       = 'X'
    tables
      email_text                  = it_tline
*   EXCEPTIONS
*     FAILED                      = 1
*     OTHERS                      = 2
            .
  IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

Am i populating in the right way

the structure of it_tline is TLINE

regards

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member181966
Active Contributor
0 Kudos

Structure of email_text is " DATA l_tab_soli TYPE soli_tab."

FYI

^Saquib

Former Member
0 Kudos

hi,

can I send with pdf documents attached ??

if yes can you help me how can I convert my internal table to the structure compatible format?

please help me

regards