cancel
Showing results for 
Search instead for 
Did you mean: 

How to send Dynamic Interactive Forms through mail?

Former Member
0 Kudos

Hi all,

I'm trying to sent Interactive Forms as attachment through mails.

Everything works fine as long as the Content of this Interactive Form stays static.

When I add dynamic elements and test this in SFP, they work.

However when they get sent by mail, the dynamic content is lost and gets back Static.

Does anyone has ABAP code or any other solutions so that the PDF gets send as an Dynamic Form?

Thanks in advance.

Kind Regards,

Maarten

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Forgot to set parameter:

fp_docparams-DYNAMIC = 'X'.

For the call of the function module of this form

Former Member
0 Kudos

Hi,

I think webdynpro for ABAP is suitable for dyanmic interactive form. Please try in that way.

Thanks,

suma.

Former Member
0 Kudos

Hi,

I'm working from the Web UI. This is BSP. Here I add 2 Methods (GET_PDF and SEND_MAIL).

The GET_PDF gets all data for the form and then sends the FORMOUTPUT to the SEND_MAIL method.

Here I add the PDF as following:

First I convert it to BINARY and then I add it as attachment.

Do I need to add it as another TYPE or ....

+ CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'

EXPORTING

BUFFER = ip_formoutput-PDF "PDF file from function module

  • APPEND_TO_TABLE = ' '

  • IMPORTING

  • OUTPUT_LENGTH =

TABLES

BINARY_TAB = lt_att_content_hex

lo_document->add_attachment(

EXPORTING

i_attachment_type = 'PDF'

i_attachment_subject = 'Your appointment Details'

i_att_content_hex = lt_att_content_hex ).+

Kind Regards,

Maarten