Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

HR_FBN_GENERATE_SEND_EMAIL

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

Not what you were looking for? View more on this topic or Ask a question