Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Include text in the email body via function SmartForms

Former Member
0 Likes
1,154

Experts,

Is possible add a text to body of mail message that is generated from function of smartforms?


Regards,

Laham.

4 REPLIES 4
Read only

RaymondGiuseppi
Active Contributor
0 Likes
718

Yes (Could you elaborate on your requirement, which context, what did you already code, etc.)

Regards,

Raymond

Read only

0 Likes
718

Raymond,

Today I am sending SmartForms by email as follows:

CALL FUNCTION lf_fm_name

     EXPORTING

       archive_index      = toa_dara

       archive_parameters = arc_params

       control_parameters = ls_control_param

       mail_recipient     = ls_recipient

       mail_sender        = ls_sender

       output_options     = ls_composer_param

       is_ekko            = l_doc-xekko

       is_pekko           = l_doc-xpekko

       is_nast            = l_nast

       iv_from_mem        = l_from_memory

       iv_druvo           = iv_druvo

       iv_xfz             = iv_xfz

     TABLES

       it_ekpo            = l_doc-xekpo[]

       it_ekpa            = l_doc-xekpa[]

       it_pekpo           = l_doc-xpekpo[]

       it_eket            = l_doc-xeket[]

       it_tkomv           = l_doc-xtkomv[]

       it_ekkn            = l_doc-xekkn[]

       it_ekek            = l_doc-xekek[]

       it_komk            = l_xkomk[]

     EXCEPTIONS

       formatting_error   = 1

       internal_error     = 2

       send_error         = 3

       user_canceled      = 4

       OTHERS             = 5.


The result is the email with the PDF SmartForms.


My question: is possible to add text to body of email message that is generated from function (/1BCDWB/XXXXXXXX) of SmartForms, without using the function SO_DOCUMENT_SEND_API1.


Regards,

Laham.


Read only

0 Likes
718

Researching more thoroughly here in the forum, I found the link How to add body text to smartform email? | SCN, which is quoted in the post:


the FM that gets generated by the SMARTFORM doesn't allow for text in the email body

Read only

0 Likes
718

Look at sample report SF_XSF_DEMO_MAIL.

Hint: The above mentioned thread dates back to 2005, and mentions version 620, check online documentation of  Business Communication Interface (BCI).

Regards,

Raymond