cancel
Showing results for 
Search instead for 
Did you mean: 

Function 'Open_Form'

Former Member
0 Kudos

Hi there!

I have create a program that send a email with PDF attachment.

I use Function 'Open_Form', like this:

   CALL FUNCTION 'OPEN_FORM'
       EXPORTING
            application                 = 'TX'
            device                      = 'MAIL'
            dialog                      = space
            form                        = form
            language                    = sy-langu
            OPTIONS                     = i_itcpo
            mail_sender                 = sender_id
            mail_recipient              = recipient_id
*          MAIL_APPL_OBJECT            =
            raw_data_interface          = '*'
       EXCEPTIONS
            canceled                    = 1
            device                      = 2
            form                        = 3
            OPTIONS                     = 4
            unclosed                    = 5
            mail_options                = 6
            archive_error               = 7
            invalid_fax_number          = 8
            more_params_needed_in_batch = 9
            spool_error                 = 10
            OTHERS                      = 11.

It works! It is ok!

Now, i want that the e-mail send a body text too.

Like:

Dear Name:

xxxxxxx Body Text xxxxxxxxxxx

Regards,

Carla Brito

It is possible with 'Open_Form' ?

Thank you!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I don't believe that it is possible with OPEN_FORM to have body text. You'll need to create the email with a body separately and then add the form as an attachment.