Need to send Smart form via email through Driver program
Hi All,
We need to send smart form via email through a new driver program (z program). Can you please guide me on this.
I have used the following code to achieve this. We are getting message saying 'Mail request has created' when executed, but the mail is not sent.
lvs_comm_type = 'INT'.
lvs_comm_values-adsmtp-SMTP_ADDR = e_mail.
lvs_comm_values-adsmtp-R3_USER = 'X'.
lvs_comm_values-adsmtp-ENCODE = '0'.
call function 'CONVERT_COMM_TYPE_DATA'
exporting
pi_comm_type = lvs_comm_type
pi_comm_values = lvs_comm_values
pi_screen = ' '
pi_newid = 'X'
importing
pe_itcpo = lvs_itcpo
pe_device = lvf_device
pe_mail_recipient = p_mail_recipient
pe_mail_sender = p_mail_sender
exceptions
comm_type_not_supported = 1
recipient_creation_failed = 2
sender_creation_failed = 3
others = 4.
if sy-subrc ne 0.
raise COMMUNICATION_ERROR.
endif.
control_parameters-device = 'MAIL'.
output_options-TDIMMED = 'X'.
output_options-TDDELETE = 'X'.
CALL FUNCTION fm_name
exporting
CONTROL_PARAMETERS = control_parameters
MAIL_RECIPIENT = mail_recipient
MAIL_SENDER = mail_sender
OUTPUT_OPTIONS = output_options
USER_SETTINGS = space
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
Thank you
Hi,
For sending smartform output into mail you first have to generate spool request and convert it into PDF and then
only it can be sended into mail, please find the sample code in the mail below:
http://wiki.sdn.sap.com/wiki/display/sandbox/ConversionofSpoolRequestDataintoPDFandExcelFormatandSenditintoMail
Mansi
Edited by: Matt on Jan 29, 2010 8:25 AM - removed code, instead point to wiki that Mansi authored.
Similar Messages
-
Hi - I created a form in Adobe Livecycle and have a button on it to send the form via email. It worked, but only for those with PC. However, I could not get it to work with Apple loaded with Yosemite even with reader installed . Is there a way i can make it work for apple / Mac? It worked fine on a mac using Mountain Lion and reader
ThanksLiveCycle = XFA forms.
afaik - These cannot be used in Apple OSs.
Be well... -
Hi - I created a form in Adobe Livecycle and have a button on it to send the form via email. the button did not work and i looked online and saw where you could change it to a regular button and enter the email for it to go. it worked, but only for those with adobe pro. i could not get it to work with reader. is there a way i can make it work for reader?
Noted.
The LiveCycle user to user forum is across town at:
Adobe LiveCycle
Be well... -
I need to send a photo via email as an attachment and NOT have it shown in the body of the email? Please help.
To make attachments not appear in the body of the e-mail as a default, try using the Applications/Utilities/Terminal command below. I suggest copy and paste.
defaults write com.apple.mail DisableInlineAttachmentViewing -bool YES -
Need to send HTML table via email
Hi Experts,
I am using the FM EFG_GEN_SEND_EMAIL to send email but unable to send html content through this. I know I could use SO_SEND_OBJECT FM too which automatically sends the email in HTML format but it doesn't have from option(FROM EMAIL ID)
I tired manually chaning the format from RAW to HTM via debugging and then found that its sending the html format email.
Request you to please let me know if we could achieve the same.
Thanks,
RajwinHi,
rcently we idd this requirment .
But every thing we did it from ABAP side not from WDJ Side
Generation of PDF after enterring the data will be send via email along with PDF Data so try to use Smart Forms
Regards,
Govindu -
Send Smart Forms within emails (html) Problems with format
Dear all,
the ABAP report SF_XSF_DEMO1 is a demo report which converts a certain smart form into HTML and then sends it as an email in html format.
Sending the email is possible without any problems but I am wondering about the email format.
<a href="http://www.imgbox.de/show/img/e4QvgzsS4L.jpg" title="Bilder hochladen">This screenshot shows how the email looks like.</a>
I am not happy with the email layout as the Smart Form "SF_XSF_DEMO1" is designed in a different way.
What do I have to adapt within the report in order to send an email that really looks like the Smart Form? Or is it a customizing issue?
(I would like to avoid having to send the Smart Form as PDF attachment...)
Thanks for you help!
Kristian KindlerHi Kristian,
When ever you send a smartform output as an HTML email, the system generates automatic style sheets which are not supported in many email clients such as Outlook 2007, hence you will face a formatting issue. We faced the same issue and had do it it like this:
Build a BSP page similar to the output which you want to send as an email. Now you can use the BSP URL to send the html email using cl_bcs class.
I have documented this in my article below-
http://divulgesap.com/blog.php?p=NDA=
Hope it helps.
Regards,
Ravikiran -
Need to Receive Full Form via Email
I've built a form in Acrobat 9, published it to a website so users can enter info and submit the completed form back to my email address. What I receive is a list of the fields and corresponding data that was entered - unformatted. What I want to receive is the filled out form in its entirety, just as it looks on the screen, so if I wanted to print it out, it would look like the original form instead of a list of fields and data.
The URl is http://www.gentillyfest.com/applications/FoodVendorApplication.pdf
I'm sure this can be done - I just don't know how - Someone please help!The data files are not limited to the 500 limit. The 500 limit comes from the need to save the full PDF file. The save's are what kick in the limit. To get the FDF file, create the form in AcroForms (basically used the form tools under the TOOLS menu, not the FORMS menu. The forms menu takes you to Designer and only allows full PDF file or XML, possibly a few more (not sure). I generally use FDF with AcroForms. The file info is apparently stored in the FDF file and so when the FDF file is selected, it opens in the PDF. At least I understand your why, but suggest that the FDF may be a solution. Another solution would be to submit the data by web script and use the FDF toolbox to deal with the end result. I am not very familiar with the FDF toolbox, but it might be able to put the data back in the form and provide the full result to your client. At least it might be worth looking at. You could probably do the same thing with the XML files also. What I am suggesting should be doable, but I have no clue about the process. With full processing power, I think you can deal with it all. It might be that some of the folks in the scripting forum could help, though this is not really a scripting issue, but a form data processing issue.
As I recall, you were using the e-mail submission. For a web application that is very dangerous. The ability to send a form (or data) by e-mail from a PDF depends on the client mail setup. It requires MAPI and not all folks use MAPI compliant email. Thus the form submission may fail for some and it is not the fault of the creator, but of the e-mail client setup (you have NO control there in most cases). In such a case, you might have some irate users. -
Default settings for sending smart forms via mail saving it in pdf
do we have to do any default settings in any trasaction code like scot for solving the above problem
hi thanku very much durga prasad
my mail id is [email protected] -
How do i send a file via email so it opens in booklet form to other people
how do i send a file via email so it opens in booklet form to other people
You would appear to be doing the right method as in this work through:http://support.en.belgacom.be/app/staticpages/devices/en/#/nokia/c3-00/email/sending-an-email-messag...
Is there similar problem with Email without attachment?
Happy to have helped forum in a small way with a Support Ratio = 37.0 -
Button to send filled out form as completed pdf form via email
I have created a form that when filled out, should send the form by email to the recipient as a completed pdf form. It works with Adobe Acrobat but not Reader.
Any Ideas?
form can be found at: http://www.lcyc.ca/images/stories/macman2012/macmanentry.pdfCheck out:
http://www.nk-inc.com/macmanentry.pdf
Use your real name, and e-mail address in the PDF form fields, and recieve a customized email copy and response.
The script will parse and merge the XDP submission, so there's no need to Reader Enable your forms.
PDFEmail.net works in ASP.net web servers.
Note: Do not submit sensitive information, this is just a demo. I may get a BCC of the form.
For more info:
http://www.pdfemail.net
Feel free to contact me on my website:
http://www.nk-inc.com/support/sales/ -
How to send offline forms as email in Portal level.
hello friends,
i am struck with a task.I need to send adobe forms as attachment to email to non sap users(i,e offline mode).this task has to be configured for managers using mss service(i.e through portal)...
how this can be done?
any material will be highly appreciated.Hi,
Try to use this one
CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
Hope it can solve your problem!
Good luck!
Tao -
Auto send of PO via email once approved
hi Gurus,
We want to have an automatic sending of PO via email, once approved it is directly send to the vendor email no more t-code going to use. it is possible? what configuration we need to this set-up?
thanks,
Marina-You need to maintain e mail i.d in Vendor master.
-You need to maintain User email id in t code SU01, from which the mail need to be send.
Configuration for this.
- Go to NACE.
-Select EF and click on OUTPUT TYPES.
-Then select Output Type NEU and click on processing routines .
-In that you have to add a new entry - medium 5 - External Send
- Communication Strategy - CS01.
-Then you need to assign a program, form routine and form.
-You can use the standard program i.e. SAPFM06P, FORM routine is always ENTRY_NEU and standard MEDRUCK.
-Then in PARTNER FUNCTION you need to add a new entry : medium - 5 and function - VN .
-For subject of the mail go to Mail Title and Texts. In title give PO No. &EKKO-EBELN& .
-Under General data -> Replacement of text symbols give program as SAPMM06E and Form Routine as TEXT_SYMBOL_REPLACE.
-Now while creating a new purchase order , change the medium to External Send .
-Then go to Communication Method and select CS01.
- Need to Release the P.O in ME29N
- Go to tcode ME9F .
- Execute.
- Select the checkbox and click on Output Message.
- You will get a message MAII 00000000000001 generated .
- Use note no 191470
You can see the details in transaction code : Scot -
I can't seem to send a photo via email without having to type in my password. Can I disable that?
Hello, olyhank.
Thank you for visiting Apple Support Communities.
Here is an article that will walk you through some troubleshooting steps for this issue. Start with the attached section in the article below.
Tip: If you see a sheet or dialog that states 'Enter the password for user "email address'", this indicates that the email service provider is having an issue with the password being sent by Mail, or there is an issue with the email account. Contact the email service provider for support. ChooseWindow > Connection Doctor click "Show Detail" then click "Check Again". The information displayed in the "Show Detail" drawer may include details from the email service provider about what the issue is. Look for headers that start with "[ALERT]".
OS X Mail: Troubleshooting sending and receiving email messages
http://support.apple.com/kb/ts3276
Cheers,
Jason H. -
Need to send my back up email a reset security questions email but the option does not show when I click on password and security
You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
(97456) -
Sending sapscript form by email
dear experts
i want to send sapscript forms by email from sap. how is it done. is there any configuration that needs to be doneHello,
I have done in case where we are sending to an external mail id.
Check the code it may help u.
REPORT Z_SCRIPT .
DATA: itcpo LIKE itcpo,
tab_lines LIKE sy-tabix.
Variables for EMAIL functionality
DATA: maildata LIKE sodocchgi1.
DATA: mailpack LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE.
DATA: mailhead LIKE solisti1 OCCURS 1 WITH HEADER LINE.
DATA: mailbin LIKE solisti1 OCCURS 10 WITH HEADER LINE.
DATA: mailtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE.
DATA: mailrec LIKE somlrec90 OCCURS 0 WITH HEADER LINE.
DATA: solisti1 LIKE solisti1 OCCURS 0 WITH HEADER LINE.
PERFORM send_form_via_email.
FORM SEND_FORM_VIA_EMAIL *
FORM send_form_via_email.
CLEAR: maildata, mailtxt, mailbin, mailpack, mailhead, mailrec.
REFRESH: mailtxt, mailbin, mailpack, mailhead, mailrec.
Creation of the document to be sent File Name
maildata-obj_name = 'TEST'.
Mail Subject
maildata-obj_descr = 'Subject'.
Mail Contents
mailtxt-line = 'Here is your file'.
APPEND mailtxt.
Prepare Packing List
PERFORM prepare_packing_list.
Set recipient - email address here!!!
mailrec-receiver = '[email protected]'.
mailrec-rec_type = 'U'.
APPEND mailrec.
Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = maildata
put_in_outbox = ' '
TABLES
packing_list = mailpack
object_header = mailhead
contents_bin = mailbin
contents_txt = mailtxt
receivers = mailrec
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
operation_no_authorization = 4
OTHERS = 99.
ENDFORM.
Form PREPARE_PACKING_LIST
FORM prepare_packing_list.
CLEAR: mailpack, mailbin, mailhead.
REFRESH: mailpack, mailbin, mailhead.
DESCRIBE TABLE mailtxt LINES tab_lines.
READ TABLE mailtxt INDEX tab_lines.
maildata-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( mailtxt ).
Creation of the entry for the compressed document
CLEAR mailpack-transf_bin.
mailpack-head_start = 1.
mailpack-head_num = 0.
mailpack-body_start = 1.
mailpack-body_num = tab_lines.
mailpack-doc_type = 'RAW'.
APPEND mailpack.
Creation of the document attachment
This form gets the OTF code from the SAPscript form.
If you already have your OTF code, I believe that you may
be able to skip this form. just do the following code, looping thru
your SOLISTI1 and updating MAILBIN.
PERFORM get_otf_code.
LOOP AT solisti1.
MOVE-CORRESPONDING solisti1 TO mailbin.
APPEND mailbin.
ENDLOOP.
DESCRIBE TABLE mailbin LINES tab_lines.
mailhead = 'TEST.OTF'.
APPEND mailhead.
Creation of the entry for the compressed attachment
mailpack-transf_bin = 'X'.
mailpack-head_start = 1.
mailpack-head_num = 1.
mailpack-body_start = 1.
mailpack-body_num = tab_lines.
mailpack-doc_type = 'OTF'.
mailpack-obj_name = 'TEST'.
mailpack-obj_descr = 'Subject'.
mailpack-doc_size = tab_lines * 255.
APPEND mailpack.
ENDFORM.
Form GET_OTF_CODE
FORM get_otf_code.
DATA: BEGIN OF otf OCCURS 0.
INCLUDE STRUCTURE itcoo .
DATA: END OF otf.
DATA: itcpo LIKE itcpo.
DATA: itcpp LIKE itcpp.
CLEAR itcpo.
itcpo-tdgetotf = 'X'.
Start writing OTF code
CALL FUNCTION 'OPEN_FORM'
EXPORTING
form = 'Z08V3_COLLI'
language = sy-langu
options = itcpo
dialog = ' '
EXCEPTIONS
OTHERS = 1.
CALL FUNCTION 'START_FORM'
EXCEPTIONS
error_message = 01
OTHERS = 02.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
window = 'MAIN'
EXCEPTIONS
error_message = 01
OTHERS = 02.
Close up Form and get OTF code
CALL FUNCTION 'END_FORM'
EXCEPTIONS
error_message = 01
OTHERS = 02.
MOVE-CORRESPONDING itcpo TO itcpp.
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
result = itcpp
TABLES
otfdata = otf
EXCEPTIONS
OTHERS = 1.
Move OTF code to structure SOLI form email
CLEAR solisti1. REFRESH solisti1.
LOOP AT otf.
solisti1-line = otf.
APPEND solisti1.
ENDLOOP.
ENDFORM.
I am sending to [email protected].
So proceed in similar manner and let me know if u face any problem.
Regards
Maybe you are looking for
-
Intercompany Transaction Flow Set-up when O/U's are not different
I am seeking to know if it is possible, using I/M Intercompany Transaction Flow, to use the same O/U for start and end O/U? I can get the record into the system with same O/U's, but am denied nodes and the ability to use Intercompany Relations. My co
-
How to change the font for a PE51 form
Hi, We are on ERP 2005 , MSS 1.0. A custom remuneration form has been created for printing paychecks. The same form is being used in ESS for employees to view their salary statement. However, the form displayed is not aligned and does not fit in the
-
Queue Status in SMQ2 = RUNNING, but Stuck.
I have a queue that sometimes gets stuck in SMQ2 in status RUNNING (for no apparent reason). If I activating the queue manually (as suggested in http://help.sap.com/saphelp_nw04/helpdata/en/d9/b9f2407b937e7fe10000000a1550b0/frameset.htm) usually solv
-
ASP insert record receive a mail alert
Hi, I have an insert record in my ASP page to my db Access, that's works fine. I want to know if it is possible to send at the same time a mail to me that tell me there is a new record? Can I put two form actions in the same form? <form action="<%=MM
-
HT201365 hello hepl me activation iphone 4s
iphone for me can't activation pass and accaution for me wrong me login accaution for me why restos all iphone done can not login accaution for me you can't check seri number and activation hepl me thank you <Personal Information Edited by H