cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to open the interactive form

Former Member
0 Kudos

Hi,

I have created a interactive form.

I'm trying to send this as an e-mail attachment.

I'm able to receive the mail but I'm not able to open the interactive form.

Can someone help me on this.

Regards

Nancy

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Nancy,

Check this Code.. i am able to open the ADOBE in my SAP Inbox.


  ie_outputparams-device   = 'PRINTER'.
  ie_outputparams-getpdf = 'X'.




  CALL FUNCTION 'FP_JOB_OPEN'
    CHANGING
      ie_outputparams = ie_outputparams
    EXCEPTIONS
      cancel          = 1
      usage_error     = 2
      system_error    = 3
      internal_error  = 4
      OTHERS          = 5.
  IF sy-subrc <> 0.
    WRITE : 'Exit at FP_JOB_OPEN'.
    EXIT.
  ENDIF.

  docparams-langu = 'E'.
  docparams-country = 'US'.
  docparams-fillable = 'X'.

* Get the name of the generated function module

  CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
    EXPORTING
      i_name     = <adobe-form-name>
    IMPORTING
      e_funcname = e_funcname.

  IF sy-subrc <> 0.
    WRITE : 'Exit at FP_FUNCTION_MODULE_NAME'.
    EXIT.
  ENDIF.

CALL FUNCTION  e_funcname
 EXPORTING
*   /1BCDWB/DOCPARAMS        =
   PERNR                    = p_pernr
 IMPORTING
   /1BCDWB/FORMOUTPUT       = output
* EXCEPTIONS
*   USAGE_ERROR              = 1
*   SYSTEM_ERROR             = 2
*   INTERNAL_ERROR           = 3
*   OTHERS                   = 4
          .

  IF sy-subrc <> 0.
    WRITE : 'Exit at e_funcname'.
    EXIT.
  ENDIF.

  CALL FUNCTION 'FP_JOB_CLOSE'
* IMPORTING
*   E_RESULT             =
   EXCEPTIONS
     usage_error          = 1
     system_error         = 2
     internal_error       = 3
     OTHERS               = 4
            .
  IF sy-subrc <> 0.
    WRITE : 'FP_JOB_CLOSE'.
    EXIT.
  ENDIF.

          • code for Sending and code for attachment goes here.

Let me know if it works.

~ Bhawanidutt.

Answers (5)

Answers (5)

Former Member
0 Kudos

I had spent some time searching through existing blog messages looking for anyone who had experienced this message. I found this blog. My company is in the process of moving from REL 4.6C to ECC 6.0. When executing our existing SMARTFORM on ECC 6.0, I received this message. Our issue was actually a syntax error in the form. On ECC 6.0, the form was not generating properly. We had to make a coding change to fix the error and then re-activate the form. Just in case someone else is having our simple version of the error. To identify the issue, execute the SMARTFORMS transaction, type in the name of your form and press the test button to see if your form will generate properly. If your form generates properly, you will be transferred to SE37 with the generated function name in place of your original form name.

Former Member
0 Kudos

Hello Nancy,

Good to see that you solved your problem.

Appreciate if you could share the solution too.

Regards

<i><b>Raja Sekhar</b></i>

Former Member
0 Kudos

When I try to open the file by double clicking I get the following message

Adobe Reader could not open

'VendorPaymentForm_20070221114238.411_x.pdf' because it is either not a

supported file type or because the file has been damaged (for example, it was

sent as an email attachment and wasn't correctly decoded).

Regards

Nancy

former_member191062
Active Contributor
0 Kudos

Hello,

is it possibble to open the PDF if you send it to different mail address?

Some free mail address like yahoo? Is it possibble to open the PDF in this case?

Best regards,

Dezso

Former Member
0 Kudos

Hey Nancy,

Welcome to SDN-Adobe Interactive forms Forums.Good to see you here.

Well, why dont you forward this mail to your personal id and check if you are able to open the PDF? Also, I think the PDF is corrupted during the generation. Why dont you create one more mail and then check if the same happens again.

I hope you have tested Bhawani's code also. Let us know if this code also perists with the same problem.

Regards

<i><b>Raja Sekhar</b></i>

Former Member
0 Kudos

Hi Nancy,

One of my friend also having the same problem can you let me know how you resolved the issue. thanks in advance

Regards,

Manohar.

Former Member
0 Kudos

Acrobat 7.0 is installed.

The mail comes with a PDF attachment to the Business Workplace.

Regards

Nancy

former_member191062
Active Contributor
0 Kudos

Hello Nancy,

what reader is installed on the end, where the Interactive form has to be opened?

How does the filename of the attachment look like?

Best regards,

Dezso Pap