Submitting PDF form through email
I created an order form PDF a year ago (with Acrobat Pro 8) for a client's website with a button to submit the form through email. The customers can fill out the order form in Acrobat Reader 8 and email the PDF to my client's email. Now that doesn't seem to work anymore - an illegal operation message comes up. I've changed the action for the button to submit the order form as a FDF file but the form data is not found once the email is sent. I've found the FDF Toolkit but have no idea what to do with it. Is there a simpler way for customers to fill out the form and email it to my client?
zorro248 wrote:
Is there a simpler way for customers to fill out the form and email it to my client?
Sure. Just enable the form so Reader users can save it when it's finished then instruct them to do so and attach it to an email.
Similar Messages
-
Sending a pdf form through email
Hi,
I want to send a pdf form through mail for this i have to write code(given below) but my problem is that
it send a xml file to vendor. i want to send its pdf form. how it is possible.........................
CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
EXPORTING
buffer = fp_outputparams
APPEND_TO_TABLE = ' '
IMPORTING
OUTPUT_LENGTH =
TABLES
binary_tab = lt_att_content_hex.
CLASS cl_bcs DEFINITION LOAD.
DATA:
lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL.
*--Create persistent send request
lo_send_request = cl_bcs=>create_persistent( ).
Message body and subject*****************************************************************************************
DATA:
lt_message_body TYPE bcsy_text VALUE IS INITIAL,
lo_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.
APPEND 'Dear Vendor,' TO lt_message_body.
APPEND ' ' TO lt_message_body.
APPEND 'Please fill the attached form and send it back to us.' TO lt_message_body.
APPEND ' ' TO lt_message_body.
APPEND 'Thank You,' TO lt_message_body.
lo_document = cl_document_bcs=>create_document(
i_type = 'RAW'
i_text = lt_message_body
i_subject = 'Vendor Payment Form' ).
DATA: lx_document_bcs TYPE REF TO cx_document_bcs VALUE IS INITIAL.
TRY.
lo_document->add_attachment(
EXPORTING
i_attachment_type = 'PDF'
i_attachment_subject = 'A Test Adobe Form').
i_attachment_size =
i_attachment_language = space
i_att_content_text =
i_attachment_header =
i_att_content_hex = lt_att_content_hex ).
CATCH cx_document_bcs INTO lx_document_bcs.
ENDTRY.
Add attachment
Pass the document to send request
lo_send_request->set_document( lo_document ).
Create sender
DATA:
lo_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL,
l_send TYPE adr6-smtp_addr VALUE '.............'.
lo_sender = cl_cam_address_bcs=>create_internet_address( l_send ).
Set sender
lo_send_request->set_sender(
EXPORTING
i_sender = lo_sender ).
Create recipient
DATA:
lo_recipient TYPE REF TO if_recipient_bcs VALUE IS INITIAL.
lo_recipient = cl_sapuser_bcs=>create( sy-uname ).
Set recipient
lo_send_request->add_recipient(
EXPORTING
i_recipient = lo_recipient
i_express = 'X' ).
lo_send_request->add_recipient(
EXPORTING
i_recipient = lo_recipient
i_express = 'X' ).
Send email
DATA: lv_sent_to_all(1) TYPE c VALUE IS INITIAL.
lo_send_request->send(
EXPORTING
i_with_error_screen = 'X'
RECEIVING
result = lv_sent_to_all ).
COMMIT WORK.
MESSAGE 'The payment form has been emailed to the Vendor' TYPE 'I'.
Thanks in advance
ShriTry below logic.
DATA : it_objpack TYPE STANDARD TABLE OF sopcklsti1 ,
it_objtxt TYPE STANDARD TABLE OF solisti1 ,
it_objbin TYPE STANDARD TABLE OF solisti1 ,
it_reclist TYPE STANDARD TABLE OF somlreci1 ,
wa_doc_chng TYPE sodocchgi1,
wa_objhead TYPE soli_tab,
l_attachment TYPE i,
l_testo TYPE i.
DATA: wa_objpack TYPE sopcklsti1,
wa_objtxt TYPE solisti1 ,
wa_objbin TYPE solisti1 ,
wa_reclist TYPE somlreci1 .
CLEAR: wa_reclist,
wa_objhead,
wa_objtxt, it_objtxt[],
wa_objbin, it_objbin[],
wa_objpack, it_objpack[].
Object with PDF.
CLEAR wa_objbin.
REFRESH it_objbin.
it_objbin[] = gt_mess_att[].
DESCRIBE TABLE it_objbin LINES l_attachment.
Object with main text of the mail.
LOOP AT it_message INTO wa_message.
wa_objtxt = wa_message. APPEND wa_objtxt TO it_objtxt.
ENDLOOP.
DESCRIBE TABLE it_objtxt LINES l_testo.
Document information.
wa_doc_chng-obj_name = 'test'.
wa_doc_chng-expiry_dat = sy-datum + 10.
CONCATENATE 'Amex Settlement' ' '
INTO wa_doc_chng-obj_descr .
doc_chng-sensitivty = 'F'.
wa_doc_chng-sensitivty = 'P'.
wa_doc_chng-obj_prio = '1'.
wa_doc_chng-doc_size = l_testo * 255.
CLEAR wa_objpack-transf_bin.
wa_objpack-head_start = 1.
wa_objpack-head_num = 0.
wa_objpack-body_start = 1.
wa_objpack-body_num = l_testo.
wa_objpack-doc_type = 'RAW'.
APPEND wa_objpack TO it_objpack.
CLEAR wa_reclist.
wa_reclist-copy = 'X'.
IF wa_email IS NOT INITIAL.
wa_reclist-receiver = wa_email-value1.
wa_reclist-express = 'X'.
wa_reclist-rec_type = 'U'.
wa_reclist-notif_del = 'X'.
wa_reclist-notif_ndel = 'X'.
APPEND wa_reclist TO it_reclist.
ENDLOOP.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = wa_doc_chng
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = it_objpack
object_header = wa_objhead
contents_bin = it_objbin
contents_txt = it_objtxt
receivers = it_reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc <> 0.
WRITE 'Cannot send email'.
ENDIF.
ENDIF. -
How to send generated form in PDF form through email
hi,
i am working on interactive form in Webdynpro Java, when i am trying to send pdf form as an attachment. i kept Email Submit button in the form and when i am clickink on send email button it is taking local outlook user in default and attachment as .XML attachment. i want attachment as .PDF form.
can any body please help.
thanks,
kishore.hi,
Read the following blog it is explaining nicely about this scenario.
Sending mail with an online interactive form(pdf) as an attachment.
Thanks and Regards
shanto aloor -
Submitted PDF form is not delivering to my Domain email account
Submitted PDF form is not delivering to my Domain email account
What exactly is not working ? As you have mentioned form submission notification is received in your email account so form process is working I believe but you want the notifications to go to another email account I think.
Have you added the email address in "Email to" field in form options ? If yes and then also you are not receiving the form , then please provide me the site url and post a screenshot or form with option box open.
Thanks,
Sanjit -
Read PDF form from email attachment
Hope someone is able to help on this one...
We are using a pdf form at work to gather some feedback and the user will be submitting the form via email...
Using outlook 2003 I had a crack at writing a vba module to read the pdf form from the email attachment to update into an excel spreadsheet
Is it possible to read pdf forms from the email attachment with outlook vba? Or does the attachment need to be saved to a directory first?
I have in the past done a vba module to save the pdf form attachments to a directory and then using acrobat and it's in-built form data collection tool and exported as a csv, but this feedback form will be an ongoing thing that will be updated daily - and to minimise handling would like to run the outllook macro that reads straight from the email attachment instead of doing another 3 or so steps...
Below is the snippet I am using - it's a mashup of different code I've found on the net
Sub Feedback()
On Error GoTo Feedback_err
'Dim ns As NameSpace
Dim objNS As NameSpace
'Dim Inbox As MAPIFolder
Dim objFolder As Outlook.MAPIFolder
'Dim SubFolder As MAPIFolder
Dim objExcel
Dim oBook
Dim oSheet
Dim gApp As Acrobat.CAcroApp ' In Tools > References > Checked all Acrobat Libraries in VBA > Tools > References
Dim pdDoc As Acrobat.CAcroPDDoc
Dim jso As Object
Dim Item As Object
Dim Atmt As Attachment
Dim filename As String
'Dim i As Integer
Dim myOrt As String ' Added 13/1/2010
Set objApp = CreateObject("Outlook.Application")
Set objNS = objApp.GetNamespace("MAPI")
Set objFolder = objNS.PickFolder
' Check subfolder for messages and exit of none found
If objFolder.Items.Count = 0 Then
'If SubFolder.Items.Count = 0 Then
MsgBox "There is no Feedback emails in this folder.", vbInformation, _
"Nothing Found"
Exit Sub
End If
' Check each message for attachments
Set objExcel = CreateObject("Excel.Application")
Set oBook = objExcel.Workbooks.Open("G:\Path\Filename.xls")
Set oSheet = objExcel.Worksheets(1)
oSheet.Range("A2").Select
Set gApp = CreateObject("AcroExch.App") ' make acrobat session
Set pdDoc = CreateObject("AcroExch.PDDoc")
Set jso = pdDoc.GetJSObject ' set the Javascript object via this way we can fill in the PDF document fields
For Each Item In objFolder.Items
For Each Atmt In Item.Attachments
If Right(Atmt.filename, 3) = "pdf" Then
Do
If IsEmpty(objExcel.ActiveCell) = False Then
objExcel.ActiveCell.Offset(1, 0).Select
End If
Loop Until IsEmpty(objExcel.ActiveCell) = True
objExcel.ActiveCell.value = jso.getField("CurrentDocDate").value
objExcel.ActiveCell.Offset(0, 1).value = Item.Session.CurrentUser
objExcel.ActiveCell.Offset(0, 2).value = jso.getField("txtJobNo").value
objExcel.ActiveCell.Offset(0, 3).value = jso.getField("rbStatus").value
objExcel.ActiveCell.Offset(0, 4).value = jso.getField("rbFeedback").value
objExcel.ActiveCell.Offset(0, 5).value = jso.getField("txtComments").value
End If
Next Atmt
Next Item
oBook.Save
objExcel.Quit
Feedback_exit:
Set Atmt = Nothing
Set Item = Nothing
Set objNS = Nothing
Set pdDoc = Nothing
Set objExcel = Nothing
Set jso = Nothing
Exit Sub
' Handle Errors
Feedback_err:
MsgBox "An unexpected error has occurred." _
& vbCrLf & "Please note and report the following information." _
& vbCrLf & "Macro Name: Feedback" _
& vbCrLf & "Error Number: " & Err.Number _
& vbCrLf & "Error Description: " & Err.Description _
, vbCritical, "Error!"
Resume Feedback_exit
End Sub
I get a vba error 91 "Object Variable or With block variable not set"
Cheers
Benhi Phani,
with regard to your problem I would suggest you to please go thru this link.
Hope this would be helpful to you.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/offline%20interactive%20pdf%20form%20using%20e-mail.pdf
Thanks,
kris -
Sending the adobe interactive form as non-interactive form through email
Hi ,
I am trying to send the interactive adobe form as non-interactive form through email.The interactive form size is very large because of the interactivity.
Can anybody suggest how to do this.
Regards,
DebasisDear Antony,
Thanks for the reply.
I got you but can you pls guide me how to go about it.
I need to send the email while submiting the form.So when and how i will be mapping each data node /attibutes of the main form with the intermediate form.My interactive form is of 30 pages and it may grow upto 40 pages.My response is with the to the main form where i am showing the success message.
Regards,
Debasis Nayak -
Offline Interactive PDF Forms Using EMail with WebDynpro for ABAP
These is a tutorial on implementing Offline Interactive PDF Forms using Email to both send out and receive the form back using WebDynpro for Java.
Is it possible to implement the same using WebDynpro for ABAP, specifically receiving the forms via email server.
Regards,
MarkHi Mark,
Check this out :
https://www.sdn.sap.com/irj/sdn/interactiveforms-elearning
Go to section :
Send, Receive, and Process Interactive Forms via Email in SAP NetWeaver Application Server ABAP (RIG session 4A)
and for the ABAP WebDynpro :
SAP Interactive Forms by Adobe in Web Dynpro for ABAP (Session 3A) .
I managed to make it work in my internal sytem.
Goodluck.
Cheers,
Danny -
Send PDF form to email address user enters in textfield on form.
I would like to be able to allow the person using the form to choose what email address the PDF form is emailed to. I read this post which sounds like what I want but I keep getting a Submit Cancelled error. The email does get generated and the form is attached as a PDF so that part works okay.
http://forums.adobe.com/message/4167414#4167414
This is the code I am using as I only need the To: address populated.
form1.Page1.Button1::preSubmit:form - (JavaScript, client)
var strToAddress
//Capture the values from the form fields.
strToAddress = txtToAddress.rawValue;
event.target.submitForm({cURL:"mailto:"+ strToAddress,cSubmitAs:"PDF",cCharset:"utf-8"});Hi,
There is an example here: http://assure.ly/eUR4wJ.
// Declare the variable
var vEmail;
// Check that the email field is not null
if (txtToAddress.rawValue !== null) {
vEmail = txtToAddress.rawValue;
// Send email
event.target.submitForm({cURL:"mailto: " + vEmail + "?subject=&body=",cSubmitAs:"PDF",cCharset:"utf-8"});
Niall -
Sending smartform as PDF attachment through email
Hi,
I have used the FM SO_NEW_DOCUMENT_ATT_SEND_API1 to send the smartform as PDF attachment through email.In SOST transaction I can see that the mail has been sent to the reciepient,but the mail is not going to the mail box.What would be the reason for this?
Regards,
HemaThat should be the basis issue. They needs to do some settings. Please ask them to do so.
Pranav -
Sending PDF attachment through EMAIL Triggering
Hi,
Could you plaese let me know How to send Pdf Attachments
through Email in SAP.
Using Function Module SO_NEW_DOCUMENT_ATT_SEND_API1.
Regards
BhuvanaHi,
GP does not involve any sort of coding.
Just like workflow, GP has a flow desgined in a process.
Each step has a callable object associated with it.
Check [this|http://help.sap.com/saphelp_nw04s/helpdata/en/0f/619fd378a641b29386063019c24fc4/frameset.htm] link for details
-Ashutosh -
Best web browser for submitting PDF forms
Is there a preferred web browser for submitting PDF forms, or can recipients submit the form via any of the common browers like Explorer, Firefox, Chrome, etc.?
We support all of the major browsers: Internet Explorer, Firefox and Chrome.
Thanks
Roman -
Sending Adobe forms through Email and Fax
Hi ,
I have created an Adobe Form i.e. PO Form,
whose print/driver program is customised / based on SAPFM06P and routine used is ADOBE_ENTRY_NEU.
So , now I use the transaction ME22N and use the External Send option i.e sending Email , but the Email is getting sent to Spool instead of SOST.
So what changes do I need to make .
Can anyone tell me how do we send an Adobe Form through email * in which routine is based on Adobe_entry_neu .
Thanks in advance,
RohitHi,
Thanks for reply
The link u mentioned utilises Objects.. but can we send internet mail using this?
As we cannot change RECIPIENT TYPE in this case in the object.
I used this format in the program but the attachment is going to EXpress inbox. and goes to my SAP Inbox instead of Email .
So what changes we need to do for this.
Alternatively, can we use FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' for this purpose?
Edited by: Rohit Pareek on Feb 3, 2009 3:36 PM -
Email or store submitted PDF form using PHP
I'm using LiveCycle Designer 8.0. I've searched a lot but haven't seen any answers or solutions to submitting the filled out pdf form online and the pdf sending to an email without it having to use an email client on the users computer.
I'd prefer to use php and either save to the server or directly send the pdf as an attachment using the php mail() function. Any language would be fine, I'm just experienced with php.
If anyone would have a solution to this, I am fully capable of editing scripting to send the correct fields for my particular form. I've just not been able to find a way to store and attach in pdf format. Since the LiveCycle has the built-in function to open your default mail client, attach the pdf, and then send - isn't there some way that function could be edited to use the servers php mail feature instead?
Any help would be greatly appreciated. The reason this has become so important is that the new systems at some doctor's offices are requiring pdf's sent in advance that save in a program that allows the use of digital pen signing (like when you sign for a fedex package) of the documents once the patient arrives. And unfortunately, still many of the patients are not going to be avid pc users and will not have an email client program like outlook set up.
Thanks much,
HeatherThank you for your answer. I completely understand how to do all the things you mention, have been able to do them - where I can't seem to understand is posting to the web server. Maybe it's just simple and I'm overthinking it. When I set a url to post to, I've been trying to use a php script, but can't get the call right to save or grab the pdf.
Could you help me with that part? Are you meaning it that way - to post it to a script or am I over-doing it and there's a simpler way?
I appreciate your help very much.
Heather -
Elementary Problem With Submitting A PDF Form Via Email?
Hello all!
I'm brand new to creating forms with Adobe. I have Acrobat X Pro. I have created a form with multiple fields to fill in and placed a button at the top of the form. Under button properties I selected the submit a form option under the actions tab and chose to email the entire pdf file. Where it says enter a URL for this link I put mailto: and my email address.
When I click on the submit button I choose the desktop application option as I use Outlook exchange. (that could be the problem?) I click on the ok button and immediately get a pop up box that says "Either there is no default mail client or the current mail client cannot fulfill the messaging request. Please run Microsoft Outlook and set it as the default client.
I have no idea how to fix this issue or if I'm creating the submit form improperly. My goal is to get an exact copy of the completed Adobe form emailed to the specified email address. Any help would be much appreciated!
MikeTo answer some of your specific questions:
2, 3. The submit form button needs to be on the PDF. You can either configure a Submit Form action or use the submitForm JavaScript method.
4, 6: No to both questions. You can create the form in Acrobat. Such forms are knows as Acroforms, as opposed to XFA forms that are created with LiveCycle Designer. Acroforms have wider support.
5: Yes, that's the method that's used when submitting to a web server. You have your choice of formats. The "HTML Form" option causes the form data to be submitted in the same format as an HTML form, so the same type of server-side code can be used to process the data. As Dave's tutorial shows, the server should return an FDF as the response, however, as opposed to HTML content.
It's a mistake to try to embed the PDF in a web page. So much depends on the user's browser, PDF viewer, and how both are configured. PDF forms can be submitted directly from Adobe Reader/Acrobat, so it's not necessary for them to be viewed in a browser. Note that Adobe Reader for iOS/Android don't yet support submitting to a web server (apart from FormsCentral), but that's is supposedly being worked on.
Since you mentioned digital signatures, be aware that for Reader users to be able to sign, the document has to be Reader-enabled, either with Acrobat Pro or LiveCycle Reader Extensions (which is not the same as LiveCycle Designer). Digital signatures in PDF forms are not yet supported on mobile devices. Also, you will want to submit the entire PDF, as opposed to just the form data, when submitting a digitally signed form. -
Submitting completed PDF forms by email rather than responses in a table
Can I set up my PDF form with a submit button that will email the completed form to me - I don't want to see the responses collated in a table as I need to file each completed form electronically per client?
Yes, but it would not have anything to do with FormsCentral. The simplest way to do this is to use Acrobat to add a button that has a "Submit a form" action for the Mouse Up event. The URL should be a mailto type URL and you should select "PDF The Complete document" as the Export Format:
If it needs to work with Reader prior to version 11 and/or includes digital signatures, you will have to Reader-enable the document with Acrobat. Exactly how you do that depends on which version you have:
Acrobat 9: Advanced > Extend Features in Adobe Reader
Acrobat 10: File > Save As > Reader Extended PDF > Enable Additional Features
Acrobat 11: File > Save as Other > Reader Extended PDF > Enable More Tools (includes form fill-in & save)
Also, realize that submitting by email is not all that reliable. It simply won't work for many people as they don't have a desktop email client properly configured. There are also Acrobat licensing restrictions that come into play when you Reader-enable a document with Acrobat and make the form available to more than 500 recipients, as you do when posting to a web site. Submitting the form to a web server, as is done with FormsCentral, avoids these issues. If you need a filled-in form with FormsCentral, you can alsways export the form data and use various methods to populate a blank form. If you want to pursue this approach, post in the Acrobat Forms forum here.
Maybe you are looking for
-
Required Field names for Creditor / Vendor Analysis.
Hi All, i need to create a report for vendor analysis. here i has no FN. Consultant at my client place. i required field names that are to be considered to get TOTAL OUTSTANDING PAYMENT (as on due date and as on date) for BSIK and BSAK. Regards, Srik
-
EText PERIODIC_SEQUENCE
Hi One of my customer is using an eText template for NZ payments and he is getting below error when format payment program is run: java.lang.NumberFormatException: For input string: "null" at java.lang.NumberFormatException.forInputString(Number
-
Help..on Next n Previous Button
hi..can anyone help me...on the "Next" and " previous" button... whe i click next or previous, i can view the next n previous picture... my picture name is not is sequence(some of the filename missing)... now i kept it in a masterList array the filen
-
My mailadress does not appear as sender when sending mails
Being new to Apple an Entourage I have a question regarding how my mail appear (in this case) in Outlook. Viewing the mail sent (in outlook) it reads from "Office 2004 Test Drive User". Opening the mail my mailadress/name appears in brackets. Where d
-
VKM1 Display Sales Order Authorisation
Hi All I'm Emma and I'm new to this forum so apologies for any incorrect SAP terminology/knowledge etc! We have a scenario where we have a group of users in our credit control area which have access to change sales documents (VA02) but only for certa