Smartforms display and email functionality
Hi all!
Can i convert smartforms into pdf, and then send to particular recipient while at the same time the smartforms can be displayed on screen?
My problem right now is when i set my smartforms to be converted to pdf, e.i. ctrlparam-getotf = X, the smartforms is converted into PDF and is sent to the recipient but won't be displayed on screen, it just came back to the selection-screen.
And when i comment-out ctrlparam-getotf = 'X', the smartforms is displayed on screen but it wasn't converetd into PDF and is not emailed to its recipient.
I wan't this 2 functionality to be working together. How will it be done?
Thanks.
Hi navi,
You can't show the forms and screen and convert it as PDF at the same time .
You must do the process 2 times.
Best regards.
Similar Messages
-
Hi all
Please guide me how to send smartform as an attachment through email.and the attachment should be PDF. I am new to this kind of thing. please guid me step wise.
regards
PkumarHi,
Check this prog...
*& Report ZSPOOLTOPDF *
*& Converts spool request into PDF document and emails it to *
*& recipicant. *
*& Execution *
*& This program must be run as a background job in-order for the write *
*& commands to create a Spool request rather than be displayed on *
*& screen *
REPORT zspooltopdf.
PARAMETER: p_email1 LIKE somlreci1-receiver
DEFAULT '[email protected]',
p_sender LIKE somlreci1-receiver
DEFAULT '[email protected]',
p_delspl AS CHECKBOX.
*DATA DECLARATION
DATA: gd_recsize TYPE i.
Spool IDs
TYPES: BEGIN OF t_tbtcp.
INCLUDE STRUCTURE tbtcp.
TYPES: END OF t_tbtcp.
DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
wa_tbtcp TYPE t_tbtcp.
Job Runtime Parameters
DATA: gd_eventid LIKE tbtcm-eventid,
gd_eventparm LIKE tbtcm-eventparm,
gd_external_program_active LIKE tbtcm-xpgactive,
gd_jobcount LIKE tbtcm-jobcount,
gd_jobname LIKE tbtcm-jobname,
gd_stepcount LIKE tbtcm-stepcount,
gd_error TYPE sy-subrc,
gd_reciever TYPE sy-subrc.
DATA: w_recsize TYPE i.
DATA: gd_subject LIKE sodocchgi1-obj_descr,
it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
gd_sender_type LIKE soextreci1-adr_typ,
gd_attachment_desc TYPE so_obj_nam,
gd_attachment_name TYPE so_obj_des.
Spool to PDF conversions
DATA: gd_spool_nr LIKE tsp01-rqident,
gd_destination LIKE rlgrap-filename,
gd_bytecount LIKE tst01-dsize,
gd_buffer TYPE string.
Binary store for PDF
DATA: BEGIN OF it_pdf_output OCCURS 0.
INCLUDE STRUCTURE tline.
DATA: END OF it_pdf_output.
CONSTANTS: c_dev LIKE sy-sysid VALUE 'DEV',
c_no(1) TYPE c VALUE ' ',
c_device(4) TYPE c VALUE 'LOCL'.
*START-OF-SELECTION.
START-OF-SELECTION.
Write statement to represent report output. Spool request is created
if write statement is executed in background. This could also be an
ALV grid which would be converted to PDF without any extra effort
WRITE 'Hello World'.
new-page.
commit work.
new-page print off.
IF sy-batch EQ 'X'.
PERFORM get_job_details.
PERFORM obtain_spool_id.
Alternative way could be to submit another program and store spool
id into memory, will be stored in sy-spono.
*submit ZSPOOLTOPDF2
to sap-spool
spool parameters %_print
archive parameters %_print
without spool dynpro
and return.
Get spool id from program called above
IMPORT w_spool_nr FROM MEMORY ID 'SPOOLTOPDF'.
PERFORM convert_spool_to_pdf.
PERFORM process_email.
if p_delspl EQ 'X'.
PERFORM delete_spool.
endif.
IF sy-sysid = c_dev.
wait up to 5 seconds.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'
AND RETURN.
ENDIF.
ELSE.
SKIP.
WRITE:/ 'Program must be executed in background in-order for spool',
'request to be created.'.
ENDIF.
FORM obtain_spool_id *
FORM obtain_spool_id.
CHECK NOT ( gd_jobname IS INITIAL ).
CHECK NOT ( gd_jobcount IS INITIAL ).
SELECT * FROM tbtcp
INTO TABLE it_tbtcp
WHERE jobname = gd_jobname
AND jobcount = gd_jobcount
AND stepcount = gd_stepcount
AND listident <> '0000000000'
ORDER BY jobname
jobcount
stepcount.
READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
IF sy-subrc = 0.
message s004(zdd) with gd_spool_nr.
gd_spool_nr = wa_tbtcp-listident.
MESSAGE s004(zdd) WITH gd_spool_nr.
ELSE.
MESSAGE s005(zdd).
ENDIF.
ENDFORM.
FORM get_job_details *
FORM get_job_details.
Get current job details
CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
IMPORTING
eventid = gd_eventid
eventparm = gd_eventparm
external_program_active = gd_external_program_active
jobcount = gd_jobcount
jobname = gd_jobname
stepcount = gd_stepcount
EXCEPTIONS
no_runtime_info = 1
OTHERS = 2.
ENDFORM.
FORM convert_spool_to_pdf *
FORM convert_spool_to_pdf.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = gd_spool_nr
no_dialog = c_no
dst_device = c_device
IMPORTING
pdf_bytecount = gd_bytecount
TABLES
pdf = it_pdf_output
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
CHECK sy-subrc = 0.
Transfer the 132-long strings to 255-long strings
LOOP AT it_pdf_output.
TRANSLATE it_pdf_output USING ' ~'.
CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
ENDLOOP.
TRANSLATE gd_buffer USING '~ '.
DO.
it_mess_att = gd_buffer.
APPEND it_mess_att.
SHIFT gd_buffer LEFT BY 255 PLACES.
IF gd_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
ENDFORM.
FORM process_email *
FORM process_email.
DESCRIBE TABLE it_mess_att LINES gd_recsize.
CHECK gd_recsize > 0.
PERFORM send_email USING p_email1.
perform send_email using p_email2.
ENDFORM.
FORM send_email *
--> p_email *
FORM send_email USING p_email.
CHECK NOT ( p_email IS INITIAL ).
REFRESH it_mess_bod.
Default subject matter
gd_subject = 'Subject'.
gd_attachment_desc = 'Attachname'.
CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
it_mess_bod = 'Message Body text, line 1'.
APPEND it_mess_bod.
it_mess_bod = 'Message Body text, line 2...'.
APPEND it_mess_bod.
If no sender specified - default blank
IF p_sender EQ space.
gd_sender_type = space.
ELSE.
gd_sender_type = 'INT'.
ENDIF.
Send file by email as .xls speadsheet
PERFORM send_file_as_email_attachment
tables it_mess_bod
it_mess_att
using p_email
'Example .xls documnet attachment'
'PDF'
gd_attachment_name
gd_attachment_desc
p_sender
gd_sender_type
changing gd_error
gd_reciever.
ENDFORM.
FORM delete_spool *
FORM delete_spool.
DATA: ld_spool_nr TYPE tsp01_sp0r-rqid_char.
ld_spool_nr = gd_spool_nr.
CHECK p_delspl <> c_no.
CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
EXPORTING
spoolid = ld_spool_nr.
ENDFORM.
*& Form SEND_FILE_AS_EMAIL_ATTACHMENT
Send email
FORM send_file_as_email_attachment tables it_message
it_attach
using p_email
p_mtitle
p_format
p_filename
p_attdescription
p_sender_address
p_sender_addres_type
changing p_error
p_reciever.
DATA: ld_error TYPE sy-subrc,
ld_reciever TYPE sy-subrc,
ld_mtitle LIKE sodocchgi1-obj_descr,
ld_email LIKE somlreci1-receiver,
ld_format TYPE so_obj_tp ,
ld_attdescription TYPE so_obj_nam ,
ld_attfilename TYPE so_obj_des ,
ld_sender_address LIKE soextreci1-receiver,
ld_sender_address_type LIKE soextreci1-adr_typ,
ld_receiver LIKE sy-subrc.
data: t_packing_list like sopcklsti1 occurs 0 with header line,
t_contents like solisti1 occurs 0 with header line,
t_receivers like somlreci1 occurs 0 with header line,
t_attachment like solisti1 occurs 0 with header line,
t_object_header like solisti1 occurs 0 with header line,
w_cnt type i,
w_sent_all(1) type c,
w_doc_data like sodocchgi1.
ld_email = p_email.
ld_mtitle = p_mtitle.
ld_format = p_format.
ld_attdescription = p_attdescription.
ld_attfilename = p_filename.
ld_sender_address = p_sender_address.
ld_sender_address_type = p_sender_addres_type.
Fill the document data.
w_doc_data-doc_size = 1.
Populate the subject/generic message attributes
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle .
w_doc_data-sensitivty = 'F'.
Fill the document data and get size of attachment
CLEAR w_doc_data.
READ TABLE it_attach INDEX w_cnt.
w_doc_data-doc_size =
( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle.
w_doc_data-sensitivty = 'F'.
CLEAR t_attachment.
REFRESH t_attachment.
t_attachment[] = it_attach[].
Describe the body of the message
CLEAR t_packing_list.
REFRESH t_packing_list.
t_packing_list-transf_bin = space.
t_packing_list-head_start = 1.
t_packing_list-head_num = 0.
t_packing_list-body_start = 1.
DESCRIBE TABLE it_message LINES t_packing_list-body_num.
t_packing_list-doc_type = 'RAW'.
APPEND t_packing_list.
Create attachment notification
t_packing_list-transf_bin = 'X'.
t_packing_list-head_start = 1.
t_packing_list-head_num = 1.
t_packing_list-body_start = 1.
DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
t_packing_list-doc_type = ld_format.
t_packing_list-obj_descr = ld_attdescription.
t_packing_list-obj_name = ld_attfilename.
t_packing_list-doc_size = t_packing_list-body_num * 255.
APPEND t_packing_list.
Add the recipients email address
CLEAR t_receivers.
REFRESH t_receivers.
t_receivers-receiver = ld_email.
t_receivers-rec_type = 'U'.
t_receivers-com_type = 'INT'.
t_receivers-notif_del = 'X'.
t_receivers-notif_ndel = 'X'.
APPEND t_receivers.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = 'X'
sender_address = ld_sender_address
sender_address_type = ld_sender_address_type
commit_work = 'X'
IMPORTING
sent_to_all = w_sent_all
TABLES
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_receivers
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.
Populate zerror return code
ld_error = sy-subrc.
Populate zreceiver return code
LOOP AT t_receivers.
ld_receiver = t_receivers-retrn_code.
ENDLOOP.
ENDFORM.
reward points if it is helpful..
regards,
Omkar. -
Only display and assign function for transport request
Hi,
I have a requirement for transport creation. I need to set a restriction on transport creation.the requirements are as per below :
Group A : Allow to create a transport request - both workbench & customize request.
Group B : Allow to assign transport request to the one create by Group A. This group is not allowed to create any request be it
workbece or customize.
I found an object - S_TRANSPRT. I have create a role and assign only activity DISPLAY & ASSIGN to group B. However, group B can still create customize request. Is there any other objects that I have to restrict.
Appreciate your feedback.
Thanks,
IAzir.Hi
You can take system trace(ST01) and find out what are the objects and the field values you need to restrict.
If you are able to find the same, its good , if not let us know.
Regards,
RItesh -
Is it possible to do fax and email through adobe?
Hi ,
I would like to know is it possible to implement fax and email functionality through adobe forms like smartforms.
regards,
vijayhi ,
check this link ...
Re: Sending Adobe Interactive Forms via Email
regards ,
prashanti -
More Save as.... and Email... problems
We have been trying to figure out how to disable the "save a copy" and "email" functions when we publish our e-books. People keep talking on this forum about vouchers--I have no idea what that is and I don't think it applies to us. What's the magic option you check when packaging the e-book so that these functions are turned off?
If you can save a copy and email it out, what's the point of using this book reader?I'm not sure I understand. Let me explain the situation and maybe you can help.
We are a digital children's library that publishes books for kids free on the web. Some of the publishers who have contributed books have asked that they be encrypted in Adobe. This is so that any print, save, or copy function would be eliminated. Since there are thousands of users from all over the world using our library, each one of them would have a different Passport ID. We don't want to restrict the number of people who can view our books. Since some of them might be viewing them from public machines (but using different Passport IDs), I suppose perhaps even using the "Limit book to one device per user" function wouldn't work for us. We wouldn't want to restrict the number of people per machine who could view a book.
I believe you're saying that it is completely impossible to disable the "save" and "email" functions. This is making us (and probably our contributors) very uncomfortable.
I apologize for the low-techiness of this email. I'm just a grad student in library school and really don't understand a lot of the tech stuff.
Thanks,
Laura -
Issues with LiveCycle ES4 - "Distribute Form" greyed out and "email button" not functioning
Bought this software on 8/1/13.
Designed my first form, "saved to repository" and proceeded to test. The email function for whatever reason does not work. Went back and examined the properties to the button, I have it set up correctly. In fact the XMS format works perfect, but I want the form to come via PDF when emailed. This feature is not coming through on email.
I am not sure if the above two issues are related however I did read that in the stand-alone software, the "distribute form" is not offerred which I wonder if this the reason it is greyed out.
Can anyone help me work through the "email button" issue?If the PDF submits to a server-side script URL it can bypass client-side email software.
Try the online PDF submission examples and see if it works for you in Mozilla FireFox:
http://www.pdfemail.net/examples/
You should also make sure the browser is using the Adobe Reader plugin as the default PDF reader.
http://helpx.adobe.com/acrobat/using/display-pdf-browser-acrobat-xi.html -
Display Like and Share functionality in SharePoint 2013 search result
Hello Experts,
I dont Know whether i am asking a good question or bad one . but i am not very much expert in search.
I have to display No of Likes , Share functionality in SharePoint Search Results.
i know little basic about how display templates works. i want to implement these like and share functionality as actions in Item_common_hoverpanel_Actions template. show that i can see in preview.
please if any body can help me . i will be highly thankful to you.
MukeshThis will be difficult. The number of likes has a managed property called LikesCount but it is not populated by the search crawler. So your JavaScript will have to read the "LikesCount" field of the corresponding list item. That would be a
lot of code to execute in the item display template just to display the number of likes. You could have a button that displayed a callout that would get the information and display it. The Sharing could be done via JavaScript in your item display template
using a REST call. You can see an example of code to do that here:
http://sharepointfieldnotes.blogspot.com/2014/09/sharing-documents-with-sharepoint-rest.html?showComment=1428595550241#c3227376854590814312
Just remember the user must have permission to share these documents, so your code will have to handle this.
Blog | SharePoint Field Notes Dev Tools |
SPFastDeploy | SPRemoteAPIExplorer -
When I pair my new iPhone 5S in my 2014 Lexus it displays and allows me to read the SMS messages off my phone on the car display but it does not display or allow me to read email messages. When pairing my previous Blackberry Torch the car displayed and allowed me to read both. Lexus have told me it is an Apple problem and not a Lexus problem which may be true as the BB phone worked great. Does anybody know if Apple is planning an iPhone update for this?
Just to recap, this is a collection of ports I have collected over time for people who needed this information when setting up the HP ePrint app so that they could view their email from within the app. I am certain other applications also need this information. Although lengthy, I could not find a more comprehensive place to retrieve this information. Feel free to post additional information, faulty information, or other related topics below as this is simply a collection of data and it would be practically impossible to test all of them. Thank you!
Don't forgot to say thanks by giving "Kudos" if I helped solve your problem.
When a solution is found please mark the post that solves your issue.
Every problem has a solution! -
My Ipad2 works fine except when I try to email myself a link to a safari webpage. I get an error message saying that the message failed to connect to the server. It says that a copy of the message has been left in the outbox. I cannot get the message from the outbox. All other email and safari functions work as expected.
I have cleared data and cookies, powered down, and done a reset. Nothing seems to help.Typing in additional text seems to get the job done. This seems to be a feature of the latest IOS update, I have never had the problem before the last update.
I use the box with the arrow just to the left of the URL block at the top of the page to send myself links to pages of interest. Adding the extra text seems like a pointless step, but it does work.
Thanks. -
Is there a way to disable 'Save as' and 'Send Email' function in Acrobat XI?
Hi,
Is there a way to disable 'Save as' and 'Send Email' function in Acrobat XI?
Thnx in advance.I would hope there would be no way to disable Save AS that would reduce the applicationss capability. What are you trying to prevent happening?
-
How to change the password and username in the scan to email function of a HP laserjet 300
Trying to set up the scan to email function. Using the printer pad, I get as far as getting to SMTP outgoing and then I get an error message that the username or password is incorrect. I do not know what the correct username or password is.
I would like to get rid of what ever the incorrrect information is and redo the information. NO one seems to understand the problem. Any help?@Ray2905
Thank you for using HP Support Forum. I have brought your issue to the appropriate team within HP. They will likely request information from you in order to look up your case details or product serial number. Please look for a private message from an identified HP contact. Additionally, keep in mind not to publicly post ( serial numbers and case details).
If you are unfamiliar with the Forum's private messaging please click here to learn more.
Thank you,
Omar
I Work for HP -
Email address hacked via iphone. iphone locked home screen displaying my email password! and has been reset. now unable to restore iphone, saying i do not have permission
If you don't know your password, don't know your security questions and don't have a rescue address or don't receive a reset email, you should contact AppleCare who will initially try to assist you with a reset email or if unsuccessful will pass you to the security team to reset your security questions for you.
If you are in a region that doesn't have international telephone support try contacting Apple through iTunes Store Support. -
Links in email aren't working and ads aren't displaying in email either
Links in email aren't working and ads aren't displaying in email either. What settings should be changed to correct this.?
Go to settings>general> restrictions and see if anything has been turned on.
-
How to show users display name and email address in open social widget?
Hello experts,
Is it possible to retrieve users display name and email address with opensocial javascript e.g. Login widget seems to load user data (and userData.firstname) during the site init. Is this something that could be consumed or is there some opensocial data request that could/should be used. Any working sample widget spec would be appreciated.
Best regards,
VilleHi Ville,
in the logon widget, we also use the data retrevied from siteInit.loadData.data.user. However, this widget is part of the out of the box openSocial widgets, it is being released with the product code, not as a separate OS widget deployed on HANA Cloud Platform.
If you'll do window.parent.siteInit you'll probably will get the data you are looking for, but this isn't the official public API, so you can use it but we cannot commit on keeping this structure.
Why do you need this information in the widget level? Does your widget require authentication or is it for personalization needs?
The best way is to retrieve this info on the java side using HAHA Cloud Platform APIs and send them back to the client.
Look at this - SAP HANA Cloud Platform SDK >
Package com.sap.security.um.user
Interface:
User
This interface provides read access to user data and is an extension of Principal.
UserAttribute
The interface represents abstraction over a user general attribute, such as an e-mail address.
UserProvider
This interface represents the service interface which provides read access to a user implementation.
Inbal -
Send smartforms as fax and email
Hi SAP gurus,
Can you please tell me on how to send smartforms as fax and email?
I would really appreciate your help.
Thanks in advance.Hi,
Check the below link.
http://help.sap.com/saphelp_nw2004s/helpdata/en/a5/28d3b9d26211d4b646006094192fe3/content.htm
Thanks,
Sankar M
Maybe you are looking for
-
"Squelchy" noise from external speakers plugged into headphone jack
I get a strange, warmly, high pitched static continuous "squelchy" noise from my external powered speakers when I have them plugged in via cable to the headphone jack of my iPad (3rd gen). The noise occurs only with the iPad - the noise is not presen
-
I have onboard sound, it's been working perfectly fine in Arch. The other day I took apart my computer to move it into a new case, dropped a screwdriver on the motherboard a couple of times, straightened a pin that I noticed was bent on the front pan
-
I don't have Internet on my PC that my iPhone is backed up to. Without connecting it to the Internet, how can I perform a clean install? Since iOS 7 my battery life has been crap, I've tried everything except a clean install, so this is my last resor
-
How to transfer pics from galaxy phone to mac
How do I transfer pics from my Galaxy s2 phone to my MacBook Pro?? Help!!! Thanks.
-
How to delete attachment to reduce size of message
I recently moved over from Eudora to Mail.app In Eudora, all attachments were put in an attachments folder, so the size of the actual message in the mailbox was small. In Mail.app, it seems that the attachments stay as part of the message, even if I