Having problemn in sending a report email through forms
Hi ALL,
I am trying to send an email a report through forms
It works for me in client side
I am just passing parameters and working fine in Client side
I am using forms 6i,reports6i and Oracle 8i
If i run the same form in web it is not doing anything
Any help
The code is below
PROCEDURE send_report (name varchar2) IS
rpt_id REPORT_OBJECT := find_report_object('GENERIC');
v_rep VARCHAR2(100);
rep_status varchar2(20);
errcode number;
RPT_DES VARCHAR2(200) := '[email protected],[email protected]';
BEGIN
SET_REPORT_OBJECT_PROPERTY(rpt_id,REPORT_COMM_MODE,SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY (rpt_id,REPORT_DESTYPE,MAIL);
SET_REPORT_OBJECT_PROPERTY (rpt_id,REPORT_DESFORMAT,'PDF');
SET_REPORT_OBJECT_PROPERTY (rpt_id,REPORT_DESNAME,RPT_DES);
SET_REPORT_OBJECT_PROPERTY (rpt_id,REPORT_FILENAME,name||'.rep');
v_rep := RUN_REPORT_OBJECT(rpt_id);
do_key('clear_form');
EXCEPTION
when form_trigger_failure then null;
END;
Hi,
on the Web you need to configure the Reports Server for sending emails, not the runtime.
Frank
Similar Messages
-
I'm unable to send and receive email through Apple Mail 4. I've checked my settings on Preferences, and my password to Gmail is up to date for syncing with IMAP, but it still won't connect. Suggestions?
I think it's trying to open it in a gMail eMail & is losing your gMail password that it needs log into gMail, but not 100% positive.
Have you tried Right clicking or Control+click on the eMail link & choose Copy? Works on some, not others. -
Send sms to mobile through forms 6i
Dear sirs, I want to send sms on mobile through forms 6i
it is avalible? and how to do it?
pls help me
Thanks in advance
YasserYou need a service provider to get the sms to the telecom companies. If you have a deal with a telco they will tell you how to send an sms via them.
If you are not sending too many sms messages, you can connect your smartphone to your PC and use the phone's sms service. This can be costly if you want to send many messages. There is standard software for that, e.g.
http://www.sendgroupsms.com/
Google for "sms gateway" for more info. -
How to send ALV report Output through mail in background !
Hi ,
I had an ALV Report. I want to send this report output to patricular email id every day ! Presenty i do this manually. I run the report and send the output to the particular email address. Now i want to schecule the report daily in background and the out put of the report should be mailed to particular email ids in background itself. How can i do this ?
Is there and method or setting through which we can do this ?
RegardsHi Nau,
For this requirement you will have to write another program.
This program will convert the spool requests into PDF document and sends an email to the recipients that you specify.
These are the threads which are already posted in The SDN.
*http://wiki.sdn.sap.com/wiki/display/Snippets/Converts+spool+request+into+PDF+document+and+emails*
*<a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="353650"></a>*
*<a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="902985"></a>*
You need to use the Function module :
-- Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
I will provide you with the code to get this functionality.
*& Form SEND_EMAIL
form SEND_EMAIL .
DATA: t_mailpack TYPE sopcklsti1 OCCURS 0 WITH HEADER LINE,
t_mailhead TYPE solisti1 OCCURS 0 WITH HEADER LINE,
t_mailbin TYPE solisti1 OCCURS 0 WITH HEADER LINE,
t_mailtxt TYPE solisti1 OCCURS 0 WITH HEADER LINE,
t_mailrec TYPE somlreci1 OCCURS 0 WITH HEADER LINE.
DATA: wa_maildata TYPE sodocchgi1,
l_filename(50) TYPE c,
l_fldname(30) TYPE c,
l_fldval(100) TYPE c,
l_lines TYPE i,
l_text TYPE text128 .
DATA: w_email_subrc TYPE i.
DATA: w_ship like vbfa-vbeln.
CLEAR: wa_maildata,
t_mailtxt,
t_mailbin,
t_mailpack,
t_mailhead,
t_mailrec.
REFRESH: t_mailtxt,
t_mailbin,
t_mailpack,
t_mailhead,
t_mailrec.
*-- Fill output file
*- Fill header
CLEAR: t_mailbin.
* t_mailbin[] = pdf_tab[].
t_mailbin[] = it_att[]. "Uthaman
*This line is added to get the shipment no in Subject Line
SELECT SINGLE * FROM vbfa WHERE vbelv EQ nast-objky
AND vbtyp_v EQ c_vbtyp_v_j
AND vbtyp_n EQ c_vbtyp_n_8.
w_ship = vbfa-vbeln.
shift w_ship left deleting leading '0'.
*-- File name
if nast-kschl EQ 'ZFPL'.
CLEAR l_filename.
CONCATENATE 'Packing List -'
sy-datum+4(2) sy-datum+6(2) sy-datum(4) '.PDF' INTO l_filename.
*-- Creation of the document to be sent File Name
wa_maildata-obj_name = 'Packing List'.
*-- Mail Subject
CONCATENATE l_filename '-' 'Shipment No -' w_ship INTO wa_maildata-obj_descr SEPARATED BY space.
*-- Mail Contents
t_mailtxt-line = 'Packing List'.
APPEND t_mailtxt.
ENDIF.
if nast-kschl EQ 'ZFBA'.
CLEAR l_filename.
CONCATENATE 'Booking Advice -'
sy-datum+4(2) sy-datum+6(2) sy-datum(4) '.PDF'
INTO l_filename.
*-- Creation of the document to be sent File Name
wa_maildata-obj_name = 'Booking Advice'.
*-- Mail Subject
CONCATENATE l_filename '-' 'Shipment No -' w_ship INTO wa_maildata-obj_descr SEPARATED BY space.
*-- Mail Contents
t_mailtxt-line = 'Packing List'.
APPEND t_mailtxt.
ENDIF.
*-- Prepare Packing List
*-- Write Packing List (Main Subject)
CLEAR: l_lines, t_mailpack.
DESCRIBE TABLE t_mailtxt LINES l_lines.
* READ TABLE t_mailtxt INDEX l_lines.
t_mailpack-doc_size = ( l_lines - 1 ) * 255 + STRLEN( t_mailtxt ).
* CLEAR t_mailpack-transf_bin.
t_mailpack-transf_bin = ' '.
t_mailpack-head_start = 1.
t_mailpack-head_num = 0.
t_mailpack-body_start = 1.
t_mailpack-body_num = l_lines.
t_mailpack-doc_type = 'RAW'.
APPEND t_mailpack.
t_mailhead = l_filename.
APPEND t_mailhead.
*-- Write Packing List (Attachment)
CLEAR: l_lines, t_mailpack.
DESCRIBE TABLE pdf_tab[] LINES l_lines.
* READ TABLE pdf_tab INDEX l_lines.
t_mailpack-doc_size = ( l_lines - 1 ) * 255 + STRLEN( t_mailbin ).
t_mailpack-transf_bin = 'X'.
t_mailpack-head_start = 1.
t_mailpack-head_num = 1.
t_mailpack-body_start = 1.
t_mailpack-body_num = l_lines.
t_mailpack-doc_type = 'PDF'.
t_mailpack-obj_name = l_filename.
t_mailpack-obj_descr = l_filename.
t_mailpack-obj_langu = 'E'.
APPEND t_mailpack.
*-- Set recipients
tables : ztotcemail.
SELECT SINGLE * FROM vbfa WHERE vbelv EQ nast-objky
AND vbtyp_v EQ c_vbtyp_v_j
AND vbtyp_n EQ c_vbtyp_n_8.
CLEAR vttk.
SELECT SINGLE * FROM vttk WHERE tknum EQ vbfa-vbeln.
SELECT SINGLE * FROM ztotcemail WHERE tplst = vttk-tplst
AND lifnr = vttk-tdlnr.
IF SY-SUBRC EQ 0.
t_mailrec-receiver = ztotcemail-smtp_addr. "'Here you will give the email address'.
t_mailrec-rec_type = 'U'.
APPEND t_mailrec.
ENDIF.
**-- Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = wa_maildata
put_in_outbox = 'X'
* commit_work = 'X' " N-16
TABLES
packing_list = t_mailpack
object_header = t_mailhead
contents_bin = t_mailbin[]
contents_txt = t_mailtxt[]
receivers = t_mailrec
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
operation_no_authorization = 4
OTHERS = 99.
w_email_subrc = sy-subrc.
IF sy-subrc EQ 0.
MESSAGE s000(zotc) WITH 'Email output sent successfully'.
ELSE.
MESSAGE s000(zotc) WITH 'Can not send email output'.
ENDIF.
endform. " SEND_EMAIL
Hope the above information will be helpful.
Regards,
Kittu -
HOW TO SEND THE REPORTS AND THROUGH XI TO NON -SAP SYSTEM
Hi Experts,
I want to know how to send the reports and smartform through xi to another system. All the post blogs are just explaning only about the FILE-TO-FILE, FILE-TO-IDOCS scenarios only.Hi,
XI is the middleware that to be used to transfer the data between various systems and even you could design the Business Processes with it.
In R/3 the smartforms, are generally converted to PDF and then have to send it across to Non SAP systems. Similarly you can convert the smartforms to pdf format and keep it on application server. XI will pick up that pdf and will send it to Non SAP system either as mail or as an attachments.
ABAP reports are normally used to re-present the data. If you need to transfer this data across the Non SAP systems then you have the IDOCs to be generated, RFC or ABAP Proxy to integrate this data with Non SAP system.
XI is not restricted only upto file to file or file to IDOC scenarios. It have enormous capabilities to involve various Business Processes as well integrate various SAP or Non SAP systems.
If need anymore specific details, please let us know.
Thanks
Swarup -
My mail has just crashed I cannot send or receive emails through my mac mail.
My mail has just crashed I cannot send or receive any emails through my mail app.
I have also been trying to send very large PDF files today for artwork to be printed.Do you think this might be the problem ?
-
Cannot send or receive emails through hotmail
I have the Pearl 8110 and I had it set up to receive and send emails through my hotmail and aol accounts. I still can send and receive through aol but not through hotmail
Solved!
Go to Solution.You probably need to revalidate your hotmail account. I read of some issues a ouple days ago affecting hotmail users. Also many hotmail accounts have to be revalidated every 90 days. CLick on the email setup icon on your BlackBerry and log in to your BIS(BlackBerry Internet Srvice) account. Click on email accounts, see if you need to re-enter your password for your hotmail account.
-
Cannot send or receive email through Verizon server after Thunderbird update
After updating Thunderbird, Verizon server no longer recognizes my password, so authentication keeps failing. I can neither send nor receive email. Account settings are correct. Any ideas? Thanks.
Are your server settings set to
Server pop.verizon.net
Port 995
Connection security SSL -
Cannot send or receive emails through three networ...
Hi, please help! Running round in circles!
Cannot send or recive emails on E71 all of a sudden has stopped working!
Three network say its not them and Virgin media say its nhot them (email address is blueyonder one).
Help please?
How can I take all off phone and restart?You probably need to revalidate your hotmail account. I read of some issues a ouple days ago affecting hotmail users. Also many hotmail accounts have to be revalidated every 90 days. CLick on the email setup icon on your BlackBerry and log in to your BIS(BlackBerry Internet Srvice) account. Click on email accounts, see if you need to re-enter your password for your hotmail account.
-
Report printout through form along parameters
hi,
i have a button on report named 'print'. i want to print report through form by passing values and parameters through form without opening that report? how it could be possible?
example: i am viewing employee data. i want to print through form the detail of any employee i.e. empno 7839.the report is in specific format.
thanksYou can print directly from the application server with destype=printer.
http://download.oracle.com/docs/cd/B14099_17/bi.1012/b14048/pbr_cla.htm#sthref2725
A requirement is that all the printers in your network, that you want to use for printing, have to known on the AS. -
How to send notification to email through report programme?
I am do not have idea how to do it please help me.
Hi Abbu,
try this code, that may help u.
Sending mail with attachment using Object Oriented Approach - Code Gallery - SCN Wiki -
How do I use Thunderbird to send third-party email through Verizon SMTP?
What exact settings do I need to select in Thunderbird for outgoing email in order send email? I have a third-party email address, not Yahoo or Verizon.
Based on other posts, I have set:
server name: outgoing.verizon.net
port: 587
CHECKED 'use name and password'
username: entered verizon username
use secure connection: 'no'
When I try to send email, I get prompted for password multiple times, then ultimately get "Send Message Error" - 'Sending of message failed. The message could not be sent because connecting to SMTP server outgoing.verizon.net failed...'Your verizon.net password is not necessarily the same as your .com password. I have downloaded Thunderbird and tested send/receive using the verizon.net outgoing server and it works just fine, so it is something in the settings you are using.
If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.
"All knowledge is worth having." -
Send Quotation by Email Through Workflow
Hi Gurus
I am trying to setup a workflow to send out the quotation (VA21) to the Sold to Party via Email. The requirement is that when the quotation is saved it should go via email to the ordering party. Specifically the output (printout) of the offer letter should go as an attachment to the Sold to Party when the quotation is saved.
How do I create the task so that it sends the output.??
Thanks and Regardshi simran,
As ur abapers to create a program to send the output through mail option they will link it to the smpt server and that inturn will trigger the email to be sent to the customer.
Regards,
Sudhir -
How can I send SMS from email through iMS5.2
there is a way for sending SMS through iMS5.2 but i do not know how?Is there any need for SMPP server or any gateway for sending SMS.I know about the rewrite rule to be include in imta.cnf file but I want to know the steps for configuring the iMS5.2 for sending SMS.is there any SMPP server(SMSC) that needs to be separately installed
IMS 5.2 supports one way SMS, however, you must have access to the SMSC's SMPP server. The server must support SMPP V3.4 over TCP/IP and there must be TCP/IP connectivity between the host running iMS and the SMPP server.
You also have to configure a SMS channel in iMS, then it is merely a matter of sending a mail message to the address associated with that channel.
The documentation for how to do that can be found at http://docs.iplanet.com/docs/manuals/messaging/technotes/5.2sms.html which is reached from the "related links" at the bottom of the messaging documentation web site http://docs.iplanet.com/docs/manuals/messaging.html#related, and then select "Technical Notes and Examples". Note SMS is supported, the doc just didn't make it into the regular set. -
Send error logs email through SAP workplace
Hi,
I need to send 4 different error log files to a unique user's email using SAP workplace, from my program. Plz provide a solution.
Thanks.Hi,
I need to send 4 different error log files to a unique user's email using SAP workplace, from my program. Plz provide a solution.
Thanks.
Maybe you are looking for
-
I have an external disk that was used on Tiger iMac. I used Backup to save files. Now that I have this external drive connected to a new IMac running SnowLeopard, how do I restore files?
-
I purchased an audiobook from iTunes On my iPhone. I got a new phone and after the back up, the books I downloaded were not there. iTunes wants me to repurchase the books I downloaded. Is there a way for me to Redon load my already purchased books
-
How to get value in variable from query in PLD / ALD
Hi, everyone, I want to retrieve value from database via query in PLD/ALD variable on basic of PLD / ALD variable's content. is it possible ?
-
Items in Tree control move around when data is submitted using custom ItemRenderer
I'm working on a Tree control with an XMLListCollection as its dataProvider. The dataProvider has information looking like this : quote: <?xml version='1.0' encoding='utf-8'?> <INFO> <FIELD label="STR_USER_NAME" type="text" value="" > </FIELD> <FIELD
-
Http proxy authentication for JDev 10.1.3
Hi, I found the http proxy settings in the "tools->preferences->Web Browser and Proxy" but there are no settings for the username and password. Is there some other way that I can add these. The problem is that whenver JDeveloper wants to do some http