on 02-21-2007 9:09 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>
Acrobat 7.0 is installed.
The mail comes with a PDF attachment to the Business Workplace.
Regards
Nancy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.