Skip to Content
avatar image
Former Member

How to send Dynamic Interactive Forms through mail?

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    May 07, 2009 at 08:39 AM

    Hi,

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

    Thanks,

    suma.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • avatar image
    Former Member
    May 08, 2009 at 06:56 AM

    Forgot to set parameter:

    fp_docparams-DYNAMIC = 'X'.

    For the call of the function module of this form

    Add comment
    10|10000 characters needed characters exceeded