Skip to Content

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

smart form: adding mail content to a mail with a pdf attachment

Hi everyone.

I am sending a smart form via mail as pdf attachment and i need to add two lines of text in that mail.

Can anyone please helo me?

I am sending the mail automatically.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = c_formname

IMPORTING

fm_name = v_fmname

EXCEPTIONS

no_form = 1

no_function_module = 2

OTHERS = 3.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

*-- passing generated function name, parameters and i_tables

CALL FUNCTION v_fmname

EXPORTING

is_nast = nast

wa_header = wa_header

user_settings = ' '

control_parameters = lv_control_param

output_options = lv_composer_param

mail_recipient = lv_recipient

mail_sender = lv_sender

mail_appl_obj = lv_mail_app_obj

TABLES

*-- passing internal tables

i_items = i_items[]

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

Can anyone please guide me?

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