Web Applet Report that creates email for Opportunity Details
Hi,
I'm trying to create a report that creates an opportunity detail report. My Web applet works. The only issue is the HTML tags show up in the email, instead of formatting the narrative fields.
Any input is appreciated.
Regards,
Jo Ann
Were you able to at least insert column values into the email (subject line, body)? I've got this to work in the Custom Text Format field of a user's email column:
@[html]<**a href="mailto:"@"?subject=Good%20Morning">@<**/a>
(Ignore the asterisks)
It does popup a blank email with the user's email in the To: line but what I want to do is pull in other column values from the record into the subject line and body of the email. How do I do that?
Edited by: user729346 on Apr 11, 2011 8:53 AM
Edited by: user729346 on Apr 11, 2011 8:54 AM
Edited by: user729346 on Apr 11, 2011 8:55 AM
Similar Messages
-
Javascript to do inline edits on web applet reports
This would be a weired idea, i created a web applet report for some users of mine. I gave them a link that will take them to the particular record, now they were wondering if they could do an inline edit - which i flatly refused.
I was wondering if any of you have done it with some javascript functionalities.smjohn,
Mike Lairsons book Oracle CRM On Demand Reporting has a way to create edit links that open the record in edit mode, this might help you.
cheers
Alex -
Hi all report that sends email shows popup window needs to be supressed
hi all
i have developed a report that sends email as an attachement, but this report pops up a window in the end ( it says 'no of objext sent') and there i have to press enter, but my report is running in the background (scheduled report) and therefore there should be no pop ups in the report.
question is how to avoid popup window in the following program.
below is my code
just enter your email id in the code and it will run anywhere.
TABLES: ekko.
*PARAMETERS: p_email TYPE somlreci1-receiver
DEFAULT '[email protected]'.
TYPES: BEGIN OF t_ekpo,
ebeln TYPE ekpo-ebeln,
ebelp TYPE ekpo-ebelp,
aedat TYPE ekpo-aedat,
matnr TYPE ekpo-matnr,
END OF t_ekpo.
DATA: it_ekpo TYPE STANDARD TABLE OF t_ekpo INITIAL SIZE 0,
wa_ekpo TYPE t_ekpo.
TYPES: BEGIN OF t_charekpo,
ebeln(10) TYPE c,
ebelp(5) TYPE c,
aedat(8) TYPE c,
matnr(18) TYPE c,
END OF t_charekpo.
DATA: wa_charekpo TYPE t_charekpo.
DATA: it_message TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
WITH HEADER LINE.
DATA: it_attach TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
WITH HEADER LINE.
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,
gd_error TYPE sy-subrc,
gd_reciever TYPE sy-subrc.
*START_OF_SELECTION
START-OF-SELECTION.
Retrieve sample data from table ekpo
PERFORM data_retrieval.
Populate table with detaisl to be entered into .xls file
PERFORM build_xls_data_table.
*END-OF-SELECTION
END-OF-SELECTION.
Populate message body text
perform populate_email_message_body.
Send file by email as .xls speadsheet
PERFORM send_file_as_email_attachment
tables it_message
it_attach
using " p_email
'Example .xls documnet attachment'
'XLS'
'filename'
changing gd_error
gd_reciever.
Instructs mail send program for SAPCONNECT to send email(rsconn01)
PERFORM initiate_mail_execute_program.
*& Form DATA_RETRIEVAL
Retrieve data form EKPO table and populate itab it_ekko
FORM data_retrieval.
SELECT ebeln ebelp aedat matnr
UP TO 1 ROWS
FROM ekpo
INTO TABLE it_ekpo.
ENDFORM. " DATA_RETRIEVAL
*& Form BUILD_XLS_DATA_TABLE
Build data table for .xls document
FORM build_xls_data_table.
CONSTANTS: con_cret TYPE x VALUE '0D', "OK for non Unicode
con_tab TYPE x VALUE '09'. "OK for non Unicode
*If you have Unicode check active in program attributes thnen you will
*need to declare constants as follows
class cl_abap_char_utilities definition load.
constants:
con_tab type c value cl_abap_char_utilities=>HORIZONTAL_TAB,
con_cret type c value cl_abap_char_utilities=>CR_LF.
CONCATENATE 'EBELN' 'EBELP' 'AEDAT' 'MATNR'
INTO it_attach SEPARATED BY con_tab.
CONCATENATE con_cret it_attach INTO it_attach.
APPEND it_attach.
LOOP AT it_ekpo INTO wa_charekpo.
CONCATENATE wa_charekpo-ebeln wa_charekpo-ebelp
wa_charekpo-aedat wa_charekpo-matnr
INTO it_attach SEPARATED BY con_tab.
CONCATENATE con_cret it_attach INTO it_attach.
APPEND it_attach.
ENDLOOP.
ENDFORM. " BUILD_XLS_DATA_TABLE
*& Form SEND_FILE_AS_EMAIL_ATTACHMENT
Send email
FORM send_file_as_email_attachment tables pit_message
pit_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 value '[email protected]',
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.
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[] = pit_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.
*& Form INITIATE_MAIL_EXECUTE_PROGRAM
Instructs mail send program for SAPCONNECT to send email.
FORM initiate_mail_execute_program.
WAIT UP TO 2 SECONDS.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'.
AND RETURN.
ENDFORM. " INITIATE_MAIL_EXECUTE_PROGRAM
*& Form POPULATE_EMAIL_MESSAGE_BODY
Populate message body text
form populate_email_message_body.
REFRESH it_message.
it_message = 'Please find attached a list test ekpo records'.
APPEND it_message.
thanx
rockyhi rocky,
pls comment the submit program form INITIATE_MAIL_EXECUTE_PROGRAM by default the email runs in background and there is no need to submit 'rsconn01' it again to that program where u actually get the pop-up...
try it
hope this helps
regards,
karthik -
Adobe id email versus a created email for forms central use
so I have my main adobe id (email address) and purchased my own forms central subscription using it. I then had my customer purchase their own forms central account with thier own user id (email address). THEN I actually created a unique email address on my own computer for my customer so that their form confirmations would go there instead of mixing into my personal email. HOWEVER -- the forms are not functioning properly when using that created email address as a form creator id. The forms can be built and saved and all the settings are set correctly. Responses are functioning and going through to the forms central database, and I GET THE EMAIL CONFIRMATIONS onthe created email, BUT the collaborator is not getting them at her address, despite the settings showing they are showing to be routed there. What is up? The ONLY thing that has changed from my first test forms (in which all notifications went properly where they needed to go) to my now malfunctioning notifications is the author email (not my "real" adobe id, but the email address I created for the author purpose). Can y ou help?
Can you please share the form with me ([email protected]) so we can investigate the issue.
Thank you,
Roman -
Can UCCX 10 / CUIC Provide Historical Reports That Include Email Content?
Hi,
Can UCCX 10 / CUIC provide historical reports that include email content?
Currently I can only see email subject within historical reports, but on supervisor real time you can see email content.
Our customer wants to be able to report historically on email content, as its used for reviews etc.
Thanks in advance.
Mike.Hi
Having looked at the DB schema I see that only the to/from/subject fields are logged in the database. That's all the would be available to CUIC.
(http://www.cisco.com/c/dam/en/us/td/docs/voice_ip_comm/cust_contact/contact_center/crs/express_10_5/reference/guide/dbschema.pdf?mdfid=286265496)
That's not to say it's completely impossible - but it would be very complicated. You'd need to somehow extrac the content of the emails on the Exchange server into a database where it could be read in to CUIC. That could be very difficult, take up lots of space...
Aaron -
SharePoint 2013: A web analytics report is not available for this site.
Hello,
I have SharePoint Server 2013 and the enable usage data collection is enabled. There is usage logs and data being generated, but SharePoint says there is not data available.
A web analytics report is not available for this site. Usage processing may be disabled on this server or the usage data forthis site has
not been processed yet.
What can I do?
Thanks,
Paul
Paulhi,
Web Analytics is now part of the 2013 Search.
You can refer the below links, :
http://blogs.msdn.com/b/chandru/archive/2013/08/31/sharepoint-2013-web-analytics-report-where-is-it.aspx
http://www.collabshow.com/2013/05/23/sharepoint-2013-analytics-a-big-step-backward/
http://usamawahabkhan.blogspot.com/2013/06/sharepoint-2013-analytics-features-how.html
if you wanna use API, there is a blog,which talk about the same:
retrieve Search Analytics Reports
using SharePoint 2013 API:
http://radutut.wordpress.com/2013/01/27/how-to-get-search-analytics-reports-programmatically-in-sharepoint-2013/ -
I am currently using firefox 6.0.2. and i am unable to use Sothink Web Video downloader that is compatiable for the crrent version of firefox. I've tried updating add-ons and looking for a suitable version of the web downloader , but im unable to find it. Kindly look into this matter.
Hi nlamech
You would be better served by asking the builder of this add-on.
http://www.sothinkmedia.com/phpBB2/index.php -
Report that display salary for employee from this year and prvious year
Hi
How to do a report that display salary for employee from this year an previous year, my table has from period and two perid?
ThanksYou could try something like this but you MUST learn how to post questions! Very few members will help you if you word your question poorly or forget to mention vital imformation!
select distinct ty.id, ty.emp, ty.sal, ly.sal
from (select distinct id, userid, sal
from salary_table
where id = 123456
and from_period = '01-JAN-2010'
and to_period = '31-DEC-2010') LY,
salary_table TY
where ty.id = 123456
and ty.from_period = '01-JAN-2011'
and ty.to_period = '31-DEC-2011' -
Friends are reporting that some emails to me are bouncing back. It is multiple folks with different email systems. I do still receive most emails (I think!) and there does not seem to be anything unique about the ones bouncing back to distinguish them from the ones that come through. They are not large, they don't have big attachments. What could be wrong?
Are you running low on storage in your icloud account?
On an iOS device, go to Settings>General>Usage to see how much "Storage" you have available on the device. Farther down the list is the available storage on iCloud.
On a mac, System Preference>iCloud. Look at the bar graph to see how much space you have used.
Also, the bounced back emails should include some error statements as to what the problem is. Can your friends report that to you? -
Hello,
I have created a custom report and added it to a web applet. This applet is then made available on the opportunity page layout.
This works, the report is displayed on each opportunity.
What I want to do now is pass the Opportunity ID in to the report so the report is constrained to only report on that opportunity.
In the custom web applet, you can select the opportunity fields and pass these as parameters.
So is there some way of using this and the report url....to return the report constrained on that opportunity ID??
Hope this makes sense.
Regards
MineshThe other operators that can be used for P1 :
eq - Equal to or in
neq - Not equal to or not in
It - Less than
gt - Greater than
ge - Greater than or equal to
le - Less than or equal to
bwith - Begins with
ewith - Ends with
cany - Contains any (of the values in P3)
call - Contains all of the values in P3)
like - You need to type %25 in place of the usual % wildcard
top - P3 should contain 1+n, where n is the number of top items you want to see
bottom - P3 should contain 1+n, where n is the number of bottom items you want to see
bet - Between (P3 must have two values.)
null - Is null
nnull - Is not null -
Hi,
I have created a report and exposed it in a web applet under account. Account id is beeing passed as parameter to the web applet as input to the report using P1,P2 etc. I want to add one more paramtere to the web applet to pass one more filter criteria to the report. How can this be achieved. Please give an example.
Thanks in advance.
AmlanHello,
Increase the number of parameters in P0, and continue with P3 , P4 etc in the end, same way as you have done for P1 and P2 etc.
Thanks,
Raghu -
How to Create (CREATE MODE) for four details table.....
Hello,
I am using ADF Faces, BC for my web app. Now, I have one master, and four details table in my page. How will I automatically make them in insert/create mode, upon loading the page...
Thanks.Thanks,
That actually worked for me! :) My question now is, what's the difference between, CREATE and CREATEINSERT? Im quite new to ADF...
And another thing, when I click a button inside my page, while they are in CREATE MODE, my application throws the following exception:
Error Message:
JBO-35007: Row currency has changed since the user interface was rendered. The expected row key was oracle.jbo.Key[-27 ]
Error Stack Trace:
oracle.jbo.JboException: JBO-35007: Row currency has changed since the user interface was rendered. The expected row key was oracle.jbo.Key[-27 ]
at oracle.adf.model.binding.DCBindingContainerState.throwRowNotFoundException(DCBindingContainerState.java:204)
at oracle.adf.model.binding.DCBindingContainerState.validateIterator(DCBindingContainerState.java:227)
at oracle.adf.model.binding.DCBindingContainerState.validateStateFromString(DCBindingContainerState.java:366)
at oracle.adf.model.binding.DCBindingContainerState.validateToken(DCBindingContainerState.java:442)
at oracle.adf.model.binding.DCBindingContainer.validateToken(DCBindingContainer.java:3357)
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareModel(PageLifecycleImpl.java:104)
Thanks! -
Report Painter: Create variant for specific report created
Hello,
My knowledge in very weak in report painter.
In the initial screen of a report created to analyse the budget by internal order whe have the year and the period of analysis.
By default, for every user the year is 2010 and the period of analysis is from month 1 to month 1.
My question, and I am sorry to ask such a simple question, is how can we change this initial screen?
The aim is to have for every user, when connecting the report, by default the year 2011 and the period of analysis from month 1 to month 16?
Thank you.
Best Regards.
R.Hi
1. Go to GRR3 and identify the variable used in your report
2. Go to GS12 / GS13 and check the variable definition
May be some default value is specified there / or it is formula variable... Double click on the formula variable and you can check how it is defined...
For the variable related to PERIOD - You need to specify a different variable for the From & To and specify the default value as 1 and 16
Br, Ajay M -
Error in Webservices. Web Service is to create email id of employee
Hi All,
We are using Bapi's as RFC currently to update the email id of an employee. This is being called from a third party system Dot net. It is working fine.
Bapis are
BAPI_EMPLOYEET_ENQUEUE--- To lock the employee
Bapi_Emplcomm_Create----To update the email id
Bapi_Employeet_Dequeue---To unlock the employee
now as per the new requirement we converted the BAPI's into Webservices and exposed the same to Dot net
After locking the employee successfully when Dot net is trying to call the webservice for email id updation it is giving the error as
Error accessing the Ref Node 'Employeenumber'.
I am confused is the error coming from SAP side or from the Dot Net side
Please suggest a solution for the same.
Thank you in advanceHi Anil,
Run the code in debug mode by setting break point in .NET as well as in BAPI. You have all the details you need to know. Wait...wasn't that simple or am I missing something
Regards. -
Looking for a script that creates labels for linked image files in the layout
I'm working on a large book with over 650 images and I need to show the file names along with the images in layout for proofing reasons. Does anyone have a script for that does something like this? I'm working in INDD 6.
Appreciate your help / suggestions!This is great— thank you! however you have to select all the image in order to generate the live caption. My file is about 320+ pages, any way to run live caption without having to select the files?
Maybe you are looking for
-
Wrt300n- wireless doesn't work after changing default IP scheme
When I change the 192.168.1.0 default network scheme my wireless connection doesn't work to the internet I can get to the router's configuration ( I need to change for VPN reasons) The LAN connections work fine. Any ideas or settings that I can loo
-
I have a client with multiple controlling areas in ECC 4.6c. We are preparing them to upgrade to ECC 6.0 then migrate to the new G/L. The questions is: When is it "easier" to convert to a single controlling area, before or after the ECC 6.0 Upgrad
-
HT1414 it still wont work i have done everything
u guys need to fix my app store it keeps crashing when i go to my purchased items
-
Duplicate Submit with one click / IndexOutOfBoundsException
Hello all, When I submit a form to insert data to the database with one button click, the form has been submitted twice. I can see the behavoirs from my debug statements. Sometimes, two records are inserted to database. Sometimes, the "IndexOutOfBoun
-
I'm using this code to bring in another swf into a movieClip called "movieLoader": var myLoader:Loader = new Loader(); movieLoader.addChild(myLoader); var urlMovie:URLRequest = new URLRequest("movie1.swf"); myLoader.load(urlMovie); The movie loads ju