Report's HTML ouput via Email
Hi falks!
We are facing the issue that when we try to send a report via Email in HTML format it does not export table borders. Any idea about this issue?
Any help will be appreciated!
Thanks for your time.
Regards,
Ariel
Thanks for your response.
The customer has updated with the following:
The problem here is the standard program "IBY_FD_SRA_FORMAT module: Send Separate Remittance Advices" sets the output type to HTML if the remittance advice delivery method is "MAIL". Below is the extract from the log file of the program "IBY_FD_SRA_FORMAT module: Send Separate Remittance Advices"
******** EXTRACT BEGIN ********
Since the delivery method is EMAIL, the XML Publisher output type is set to be html.
********* EXTRACT END *********
This causes the following issue: -
The concurrent program ends without generating a pdf output and hence cannot be emailed out as a pdf document.
Action required from you: -
[1] Ensure that the standard program does not default the output type to HTML for email. This should be PDF instead.
[2] Ensure that IBY XDO Delivery, sends the PDF output as an attachment.
Similar Messages
-
When sending output via email in HTML format (from rtf template), all the formating is lost, layout just expands horizontally.
Output is correct when displayed in pdf format.
Also occurs when previewing the output.
Further information:
This is purely a custom rtf template created for remittance report. In the rtf template we have used the filler, we have kept many conditions like if the data spills over to next page based on number of lines,and if the number of data lines is less then also it should align and fit to the table /page etc.
If we remove the filler the output will shrink to half page in HTML page and WE DO NOT want this kind of report output. We need the report output in HTML which should fir to paper size(A4 size) even we have less number of data rows.
Any assistance would be appreciated.
Thanks
SarahThanks for your response.
The customer has updated with the following:
The problem here is the standard program "IBY_FD_SRA_FORMAT module: Send Separate Remittance Advices" sets the output type to HTML if the remittance advice delivery method is "MAIL". Below is the extract from the log file of the program "IBY_FD_SRA_FORMAT module: Send Separate Remittance Advices"
******** EXTRACT BEGIN ********
Since the delivery method is EMAIL, the XML Publisher output type is set to be html.
********* EXTRACT END *********
This causes the following issue: -
The concurrent program ends without generating a pdf output and hence cannot be emailed out as a pdf document.
Action required from you: -
[1] Ensure that the standard program does not default the output type to HTML for email. This should be PDF instead.
[2] Ensure that IBY XDO Delivery, sends the PDF output as an attachment. -
Convert ABAP Report to HTML & Send External Email Attachment
Hi,
I have a requirement described as below. A report is scheduled to run in the background creates a spool, to be converted to HTML format and send to Third Parties (External Email ID's) via Email. Please let me know whether the requirement is not clear. Can you please suggest me a suitable SAP Solution for this requirement?
Thanks,
Kannan.SAHi,
See below simple report to convert the internal table data to a HTML format data and stores in a internal table and then pass that internal table as an attachment to the external email using function module SO_NEW_DOCUMENT_ATT_SEND_API1.
You need for create a spool also.
REPORT Z_HTML .
include <icon>.
types: begin of msg,
type like icon-id,
text(140) type c,
end of msg.
constants: gc_marked type c value 'X',
gc_ok like icon-id value '@5B@'.
data:
gt_msg type standard table of msg,
gs_msg like line of gt_msg,
gv_msg(138) type c,
*-- html
html_container type ref to cl_gui_custom_container,
html_control type ref to cl_gui_html_viewer,
my_row_header like w3head occurs 10 with header line,
my_fields like w3fields occurs 10 with header line,
my_header like w3head,
my_html type standard table of w3html ,
ok_code like sy-ucomm.
Start of Selection *
start-of-selection.
clear gv_msg.
gv_msg = 'MESSAGES for HTML'.
do 3 times.
perform message using gc_ok gv_msg .
enddo.
End of Selection *
end-of-selection.
set screen 0100.
*& Form message
form message using p_type
p_text.
clear gs_msg.
gs_msg-type = p_type.
gs_msg-text = p_text.
append gs_msg to gt_msg.
endform. " MESSAGE
*& Module STATUS_0100 OUTPUT
module status_0100 output.
perform convert_itab_html.
set titlebar '100' .
set pf-status 'MAIN100'.
create object html_container
exporting
container_name = 'CONTAINER'.
create object html_control
exporting
parent = html_container
saphtmlp = gc_marked .
data: assigned_url type url.
call method html_control->load_data
EXPORTING
URL = url
TYPE = 'text'
SUBTYPE = 'html'
SIZE = 0
ENCODING =
CHARSET =
importing
assigned_url = assigned_url
changing
data_table = my_html
EXCEPTIONS
DP_INVALID_PARAMETER = 1
DP_ERROR_GENERAL = 2
CNTL_ERROR = 3
others = 4
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
call method html_control->show_url
exporting
url = assigned_url
FRAME =
IN_PLACE = ' X'
EXCEPTIONS
CNTL_ERROR = 1
CNHT_ERROR_NOT_ALLOWED = 2
CNHT_ERROR_PARAMETER = 3
DP_ERROR_GENERAL = 4
others = 5
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
endmodule. " STATUS_0100 OUTPUT
*& Module exit INPUT
module exit input.
leave program.
endmodule. " exit INPUT
*& Module user_command_0100 INPUT
text
module user_command_0100 input.
case ok_code.
when 'EXIT' or 'BACK'.
leave program.
when others.
call method cl_gui_cfw=>dispatch.
endcase.
endmodule. " user_command_0100 INPUT
*& Form convert_itab_html
form convert_itab_html.
data: lv_tabix like sy-tabix.
*-- table header
call function 'WWW_ITAB_TO_HTML_HEADERS'
exporting
field_nr = 1
text = 'Type'
fgcolor = 'navy'
bgcolor = 'red'
font = 'Arial'
tables
header = my_row_header.
call function 'WWW_ITAB_TO_HTML_HEADERS'
exporting
field_nr = 2
text = 'Message'
fgcolor = 'navy'
bgcolor = 'red'
font = 'Arial'
tables
header = my_row_header.
*-- table rows
clear lv_tabix.
loop at gt_msg into gs_msg.
lv_tabix = sy-tabix.
call function 'WWW_ITAB_TO_HTML_LAYOUT'
exporting
field_nr = 1
line_nr = lv_tabix
icon = gc_marked
tables
fields = my_fields.
call function 'WWW_ITAB_TO_HTML_LAYOUT'
exporting
field_nr = 2
line_nr = lv_tabix
fgcolor = 'red'
bgcolor = 'black'
font = 'Arial'
size = '2'
tables
fields = my_fields.
endloop.
*-- header
move 'Messages during program run' to my_header-text.
move 'Arial' to my_header-font.
move '2' to my_header-size.
move 'Centered' to my_header-just.
move 'red' to my_header-bg_color.
move 'blue' to my_header-fg_color.
refresh my_html.
call function 'WWW_ITAB_TO_HTML'
exporting
table_header = my_header
all_fields = ' '
tables
html = my_html
fields = my_fields
row_header = my_row_header
itable = gt_msg.
endform. "convert_itab_html -
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 -
How to create an excel report and send it via email using a BPEL process ?
Hi Experts,
I have a requirement to develop a xl report based the data in the DB table. I will have to query the list of records entered / processed during previous day, generated the xl based report and send to users via email.
I talked to one the experts, he asked me to use the following Adapter and BPEL activities to accomplish it.
DBAdapter --> {BPEL process} --> Java Embedding --> Email Activity.
Can someone please help me to pass the information retrieved by DBAdapter to Java Embedding and then to email import? I have created DBAdapter and Java Embedding. I don't know, how to retrieve the data read / sent by DBAdapter using Java Embedding. Also please help me to pass the xl attachment to Email Activity.
Thanks for your help in advance!
Thanks,
Harisudhan SelvarajI would suggest something like:
DBAdapter --> Bpel Process --> File Adapter --> write file to location (you can write in csv which can be imported into xls)
Read Location --> FileAdapter --> Bpel Process --> Email Activity
Regards,
Anshul -
Sending content in an html page via email as body
Hi
I am really in need of a prompt help for sending a web page which contains some html content as an email body.
I really have no clue about this.
I have tried searching in google but could not find any thing in java.
I have everything ready for sending an email, i.e. to, from and subject.
The only thing i need is the content from an html.
I can set the content type as text/html.
I need some help on content Id and content.
Any quick help is really appreciated.
Thank you.I have tried searching in google but could not find
any thing in java.You actually didn't. Go take a look:
http://java.sun.com/developer/EJTechTips/2004/tt0426.html#1 -
Question: Sending a HTML-Link (via email) for updating data
Hello,
I have an simple application which is club member request form.
Anyone who will get a member in our club can type in some personal data and after pressing the create button he will get a confirmation e-mail.
Till here everything works fine.
Now I will put an confirmation link (HTML) in the confirmation e-mail.
The new member should click on this link and the link should update (and commit) a the column "confirm" in my new_member table depending on an ID.
Now my problem:
I have no idea how this link should look like.
Thanks for helpGenerally, this kind of implementation goes deeper than just what the link looks like. In fact, what the link looks like depends entirely on how you've implemented the confirmation process in your database.
Although I've never done this specifically, I have given considerable thought to how it would be implemented. I thought that I would have a specific table that would hold pending confirmations. This table would hold some kind identifying data as well as a unique ID that would identify the row, probably something that looked like a GUID.
Given this table structure there would probably be a trigger or PL/SQL process that took the pending member information and moved it into the members table when the member clicked on a confirmation button on the confirmation page. Therefore, the link that is sent to the user would need to look something like this:
http://[yourhost.domain:port]/pls/[your DAD]/f?p=&app_id.:[your confirmation page #]&session.::::[your page item name]:[the unique ID for the member]
The page item name is the item you define on the confirmation page that will hold the confirmation ID and the unique Id comes out of the table for the specific membership you're confirming.
Again, this is conceptual since I've not done this specifically, but it should give you a place to start.
Earl -
How to send HTML page via an email
Hi..
I wanna send HTML page with images via an email, it should not go as an attachment.
Is there any Tool or Software available to send HTML Pages via email.
i just wanna send my advertisement as a HTML page via email
So plz. help me outJava Message Service (JMS) For more info u can visite http://java.sun.com/products/jms/tutorial/
It is usefull only when u r using some Application servers like WebLogic, WebSpeher, or JBoss
Bye -
How to integrate the XML data received via email in to MySQL
Hi,
This is JK, my compnay is planning to adopt Adobe Livecycle Barcoded forms technology, We are planning to automate the Weekly report submission of the HR dept of my company, where the various employees from various branches will be submiting their weekly reports thru Barcoded forms via email and the data has to be fed in to a MySQL database for Analysis purpose.
The problem is, i have designed the form and tested it, when i fill out the form and submit it via email, i get a XML to the mentioneid email id, but is it possible to import the bulk amount of XML data received thru email to the MySQL database without using 3rd party XML Parser.
Does Adobe Livecycle supports any functionality where these data's after decoding or received thru email can directly be integrated in to MySQL.
Any Suggestions?
Regards,
JKOne thing that should be clear is that you do not need to purchase Reader Extensions to use Barcode Forms technology. Take a look at the 2 articles at the bottom of http://www.adobe.com/products/server/barcodedpaperforms/ they talk specifically about this issue.
However, if you do not get RE with your Barcoded Forms license your end users will not be able to save the form off-line or submit electronically (other than data-only by email). They will be able to fill-in and print the forms only.
By your post it sounds like you are getting Adobe LiveCycle Barcoded Forms and you have also licensed the decoder.
The decoder itself works with a watched folder mechanism. So what you can do is create a small Java program that simply waits for decoded output from the output directory of the decoder and then populates your MySQL database. The code should be around a day to implement.
Here is the link to the deployment article that talks about the RE requirement: http://www.adobe.com/products/server/barcodedpaperforms/pdfs/deploying_2d_barcodedpdfform s.pdf
Your Java will basically do something like this (very incomplete sample)
public class theThred extends Thread {
public void start() {
public void run() {
while (true) {
checkTheDirectoryCodeHere();
gotSomethingWriteItHere();
sleep(foreSomeNumberOfMilliseconds);
public void checkTheDirectoryCodeHere() {
Directory dir = new Directory("thePath"); -
Sending Web Dynpro table contents via Email
Hi,
I have a requirement where in I need to send an email from the Web Dynpro Application.
I am using JavaMail for this purpose. And I am able to send text messages to the required Email Id.
But my requirement is that I need to send the contents of one of the Web Dynpro table along with the text message.
Is it possible to send the table contents via mail?
Kindly let me know if there is any other approach.
Regards,
Shilpa B.VHi,
I don't think there are any methods in IWDTable or the IWDNode which can dump entire data on to something which we can pickup.
The only way is to iterate through the elements in the node and construct a big string buffer with HTML Table code and include the other part of the mail also in the same string buffer as html. Then set the MIME type of your mail to HTML and send the mail.
Check sending HTML content via email
http://java.sun.com/developer/onlineTraining/JavaMail/contents.html#ProcessingHTMLMessages
Regards
Srini -
Send report Via Email in HTML format
hi,
i am using forms 6.0
I want to send my report Via Email to an email address in HTML Farmat.i want to set destination property at run time retriving from database. (mean without giving any runtime parameter manually)Plz tell me how i can do that i am working in windows environment.
Waiting 4 ur reply.
Thanx in advance.
Zahid Raj.Zahid,
reports6i sends mails where the Report itself is attached as a file in the format you specified. The support for sending a report as part of the HTML mail body is provided in Reports9i.
Frank -
Email bursting send report as HTML in email body
Hello,
I have Oracle BI Publisher 10.1.3.4.1 (build# 1101) version installed as part of Oracle Business Inteligence.
I have question about email bursting. I created simple report and I am bursting it via email. But I would like to send report in HTML as part of email body and not as attachment. I read that it is possible in other versions of BIP (as part of EBS) with using of bursting configuration file. But I can not use this file with my version of BIP, I can configure bursting only vie SQL query.
Is there any solution?
Thank youMy bursting SQL query:
SELECT DISTINCT
ip.APPL_ID KEY,
'11F_Search_Prospect_Email' TEMPLATE,
'RTF' template_format,
'en-US' locale,
'HTML' output_format,
'EMAIL' DEL_CHANNEL,
ip.email PARAMETER1,
'[email protected]' PARAMETER3,
'Welcome' PARAMETER4,
'true' PARAMETER6
FROM ugrad.inquiry_prospect ip,
ugrad.correspondence f,
ugrad.address e,
ugrad.f_lookup fl
WHERE ip.appl_id = f.appl_id
AND ip.APPL_ID = e.APPL_ID
AND fl.TYPE_CODE='C'
AND ip.record_stage = 'Prospect'
AND e.COUNTRY_CODE=fl.code
AND e.table_name = 'INQUIRY_PROSPECT'
AND e.address_type =
NVL ((SELECT gg.address_type
FROM ugradadm.address gg
WHERE gg.address_type =
DECODE (f.mailpref,
'Home', 'HOME',
'Best', 'LOCAL',
'HOME'
AND gg.table_name = 'INQUIRY_PROSPECT'
AND gg.APPL_ID = ip.appl_id
AND((gg.address_type='LOCAL' AND NVL(gg.address_expir_date,sysdate)>sysdate)
OR gg.address_type='HOME')),
'HOME'
AND f.batchid = :Batch_ID
This report when bursted sends an email with the layout template as html body.
The EMAIL configuration is set with a server Port number and its host address. -
Send report via email as xls file.
Hello from Spain,
Sorry if this is not the correct forum. It's both a forms and reports question, but I think it fits better in the reports forum. I have queried into the forums for similar questions and found some threads without any replies around this same issue. I wish I am lucky today.
I have developed some web forms which generate pdf and txt reports. The latter ones make use of desformat=delimiteddata when calling the reports. They run fine. I have also developed one form which suscribes those reports to email addresses. To do so, I am setting those email addresses in the DESNAME reports parameter and setting DESTYPE parameter as MAIL. They arrive as an attachment with pdf or txt extensions.
Now, I am required to deliver those reports as xls files. I have been reading that desformat=spreadsheet would allow me to do so (as well as formatting the reports and make them look "cuter" than by using just delimiteddata), but have been unable to do it so far. When setting desformat=spreadsheet, reports are sent via email as html attachments, and when they are opened they look awful. Is there any way I can do this? It shouldn't be a too big deal, but I feel completely unable.
Thank you,
Fernando G.Hi,
Please check the following forum thread that may help --> Re: Generate report in Excel and send to user via email.
Thanks, RZ -
hi,
i am using forms 6.0
I want to send my report Via Email to an email address in HTML Farmat.i want to set destination property at run time retriving from database. (mean without giving any runtime parameter manually)Plz tell me how i can do that i am working in windows environment.
Waiting 4 ur reply.
Thanx in advance.
Zahid Raj.Hi Zahid
From Forms 6.0, you need to call Reports using standard SRW.Run_Product call. Please refer to the product document for other SRw calls which can be used for Forms/Reports integration. In this SRW call, you need to sent the runtime argument to Reports. In your case, write a pl/sql code which would set the destype=mail, desformat=html and desname set to the email address for reciever which you would be fetching from DB in Forms application. And then send these arguments in the SRW call to run the Reports.
Thanks
Rohit
Thanks
Rohit -
Bursting Reports via email with seperate email address for each page
I have been reading "Oracle® Application Server Reports Services Publishing Reports to the Web" (most specifically chapter 15 Creating Advanced Distributions) trying to figure this out but still having difficulty getting my head around it.
I am trying to email invoices when applicable. Here is the "perfect world scenario".
Report is scheduled to run once a day.
Any qualifying invoices are picked up in the run.
If there is an email address associated with the record the invoice is sent via email. (email address would be included on report and variable)
If no email address is associated, the invoice is printed.
There could/would be several different invoices on a single run.
Does this mean I have to write dynamically write a distribution.xml file for each run or can I pass the email address as a variable to the distribution.xml?
(builder version 10.1.2.0.2)
bump
Edited by: sdortch on May 21, 2009 9:09 AMHi !
You're able to use Report-Variables (e.g. from a Group in the Data Model) in the distribution.xml-File to send email to different adresses.
Just bear in mind that you also need to set the "repeat-on" Property of the relevant layout section and use a "foreach"-Loop in the distribution.xml.
So, no, no "dynamic" building of xml-Files necessary (though we do it at times...).
See also "Publishing Reports to the web" for a complete reference on "burst distribution" and the components of the distribution.xml
I would, however, run the report twice, once for "all email-invoices" with email-distribution file, once for "all invoices w/o email-adress" with (probably) printer-distribution file, as "exception" handling inside a distribution.xml could be a bit awkward...
Cheers,
Jens Rettig
Maybe you are looking for
-
Looking for totable one-hand keyboard for iPad
I want to carry my iPad into the field and need a better keyboard than the on-screen version. But, I also want it to fit onto the iPad so I can hold it with one hand and type with the other, so a non-flexible, horizontal frame for the iPad with a bui
-
I want .swf in InDesign to loop
I created a slideshow in InDesign by placing each element on a different layer and then setting the timing and effects. There is no "Loop" setting when exporting a .swf from InDesign like there is in Illustrator. When the slideshow .swf was placed in
-
3-column css "push down" problem
I'm using a 3-column nav css design for my site (take a look at rjkg.com/GS.html), but the center and right columns are being pushed down in IE. Here's the css (navbar is left, headlines is right, and content is center): #navBar{ float: left; width:
-
Hi, I am stumped on this one. I have supplied the css and the html. The menu views as i nice horizontal nav in Firefox, IE7 and Opera and has a second tier nav appearing on hover. IN IE 6 though, it doesnt and on hover, the text on the first tier dis
-
How to reserve a particular batch to a particular customer?
HI All, How to reserve a particular batch to a particular customer? Not against order. That means only this customer or these customers can use the batch. Any idea will be appreciated. Richard