Using SRW package to send a report via email

Hi,
Please can someone please help me resolve this issue I have been facing in using the srw package
I have configured a report server and was trying to use the srw package to send a report out to our customers when there is an update on a particular table.
I have succesfully use this same procedure to generate the same report to an output file and it was ok but anytime I try to generate the report as a mail and send to a DESNAME, i get mail server unavailable.
Below is the procedure i try to execute:
procedure testrep(new_name in varchar2) as
myPlist SRW_PARAMLIST;
myIdent SRW.Job_Ident;
BEGIN
     myPlist := SRW_PARAMLIST(SRW_PARAMETER('',''));
srw.add_parameter(myPlist,'GATEWAY','http://technorth4:7780/reports/rwservlet');
srw.add_parameter(myPlist,'SERVER','rep_technorth4');
srw.add_parameter(myPlist,'REPORT','c:\gens\name.rdf');
srw.add_parameter(myPlist,'USERID','gens/[email protected]');
srw.add_parameter(myPlist,'AUTHID','orcladmin/password1@orcl');
srw.add_parameter(myPlist,'DESTYPE','MAIL');
srw.add_parameter(myPlist,'DESFORMAT','PDF');
srw.add_parameter(myPlist,'FROM','[email protected]');
srw.add_parameter(myPlist,'DESNAME','[email protected]');
srw.add_parameter(myPlist,'T1',new_name);
myIdent := srw.run_report(myPlist);
END;
when i now start debugging i got this error:
SQL> set serveroutput on
SQL> exec srw.start_debugging
* WELCOME TO EVENT-BASED-REPORTING API *
* API-Version : 9i *
* (C) Oracle Corporation, 2000 - 2002 *
* Debugging turned ON **************************
PL/SQL procedure successfully completed.
SQL> exec testrep('TOPE');
*** Length of Paramlist : 1
OK : Parameter added : GATEWAY=http://technorth4:7780/reports/rwservlet
*** Length of Paramlist : 2
OK : Parameter added : SERVER=rep_technorth4
*** Length of Paramlist : 3
OK : Parameter added : REPORT=c:\gens\name.rdf
*** Length of Paramlist : 4
OK : Parameter added : USERID=gens/[email protected]
*** Length of Paramlist : 5
OK : Parameter added : AUTHID=orcladmin/password1@orcl
*** Length of Paramlist : 6
OK : Parameter added : DESTYPE=MAIL
*** Length of Paramlist : 7
OK : Parameter added : DESFORMAT=PDF
*** Length of Paramlist : 8
OK : Parameter added : [email protected]
*** Length of Paramlist : 9
OK : Parameter added : [email protected]
*** Length of Paramlist : 10
OK : Parameter added : T1=TOPE
Starting run_report: building url
*** Building URL (RUN_REPORT)
OK : URL built :
http://technorth4:7780/reports/rwservlet?SERVER=rep%5Ftechnorth4&REPORT=c%3A%5Cg
ens%5Cname%2Erdf&USERID=gens%2Fgens%40technorth%2Eworld&AUTHID=orcladmin%2Fpassw
ord1%40orcl&DESTYPE=MAIL&DESFORMAT=PDF&FROM=tope%5Folowosale%40gtbplc%2Ecom&D
*** Submitting HTTP Request
*** using URL
:http://technorth4:7780/reports/rwservlet?SERVER=rep%5Ftechnorth4&REPORT=c%3A%5C
gens%5Cname%2Erdf&USERID=gens%2Fgens%40technorth%2Eworld&AUTHID=orcladmin%2Fpass
word1%40orcl&DESTYPE=MAIL&DESFORMAT=PDF&FROM=tope%5Folowosale%40gtbplc%2Ecom&DES
OK : Request submitted - Return stream : <?xml version = '1.0' encoding =
'ISO-8859-1' standalone = 'yes'?>
<serverQueues>
<error code="50138"
component="REP" message="Mail server is not available"/>
</serverQueues>
OK : Request submitted - Length of stream : 182
*** XML-Parsed - Following Structure discovered :
*** Checking elements!
serverQueues ()
*** Checking attributes!
error
*** Checking attributes!
__code = 50138
__component = REP
__message = Mail server is not available
*** Finished Parsing XML
Getting value for element: job
Getting value for element: error
*** Requesting value for Attribute error.component [REP]
Getting value for element: error
*** Requesting value for Attribute error.code [50138]
Getting value for element: error
*** Requesting value for Attribute error.message [Mail server is not available]
REP-50138:Mail server is not available
BEGIN testrep('TOPE'); END;
ERROR at line 1:
ORA-20999:
ORA-06512: at "GENS.SRW", line 284
ORA-06512: at "GENS.SRW", line 815
ORA-06512: at "GENS.TESTREP", line 17
ORA-06512: at line 1
Please can someone help me with this. I can connect to the mail server using the telnet mailservername port,i get a 220 message with ***** .
I have updated d report configuration file with the mailserver name, and d proxyinfo.xml too.I put it to bypass proxy for d mail server address and also inlclude the proxy ip and port.
Kindly assist me as it is urgent.
Thank you.

You are in the wrong forum. Please try the Reports.<br><br>
Regards,
Rob.

Similar Messages

  • SEND ALL REPORTS VIA EMAIL

    http://www.fileuploadx.de/228589
    If I youse the sending option in this screen I only can send one report. But I want to send all reports.
    Is there a way to select all reports ?
    Markus
    Edited by: Markus Schreiter on Jul 18, 2008 2:43 AM

    SMTP server has worked for HFM to send mail.
    I have a question. Where are the area's that I need to modify the file.
    I update.
    1. fr_global.properties file with SMTPmailserver
    2. Navigate -> Administer ->Notification
    a. Mail server host name for sending email notifications:
    b. Email account name for sending email notifications:
    note: I was able to send the test mail.
    3. Restarted the services
    4. Ran the batch where in I gave my office mail address for sending.
    I do not get mail and when I check logs I see this.
    Successfully generated the PDF
    Error sending e-mail
    Batch "BatchTest" finished at Friday, September 11, 2009 2:48:48 AM EDT
    09-11 02:48:54 ERROR JavaMailer     Error in sending E-Mail: 553 5.5.4 <->... Domain name required for sender address -
    javax.mail.MessagingException: 553 5.5.4 <->... Domain name required for sender address -
         at com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTransport.java:1020)
         at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:716)
         at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:388)
         at javax.mail.Transport.send0(Transport.java:151)
         at javax.mail.Transport.send(Transport.java:80)
         at com.hyperion.reporting.util.JavaMailer.initialize(Unknown Source)
         at com.hyperion.reporting.util.JavaMailer.<init>(Unknown Source)
         at com.hyperion.reporting.scheduler.EmailAction.sendSuccessEmail(Unknown Source)
         at com.hyperion.reporting.scheduler.EmailAction.sendMail(Unknown Source)
         at com.hyperion.reporting.scheduler.EmailAction.performAction(Unknown Source)
         at com.hyperion.reporting.scheduler.JobServiceThread.runFinalActions(Unknown Source)
         at com.hyperion.reporting.scheduler.JobServiceThread.executeBatchForBursting(Unknown Source)
    Thanks
    Hemanth

  • Want to send report Via Email

    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

  • 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

  • Error to send a report via mail with BI Publisher

    Hello,
    I am working with BIP 10.1.3.4 over Windows Server 2003 Standard Edition, and I would like to send a report via mail.
    I added one Email server navigation via Admin>Delivery Configuration > Email with the server name and host.
    Then Send report via Email, got error.
    oracle.apps.xdo.service.delivery.DeliveryException: oracle.apps.xdo.delivery.DeliveryException: smtp
         at oracle.apps.xdo.service.delivery.impl.DeliveryServiceImpl.deliverToEmail(DeliveryServiceImpl.java:228)
         at oracle.apps.xdo.servlet.scheduler.XDOJob.deliver(XDOJob.java:1190)
         at oracle.apps.xdo.servlet.scheduler.XDOJob.execute(XDOJob.java:478)
         at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
    Caused by: oracle.apps.xdo.delivery.DeliveryException: smtp
         at oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequestHandler.submitRequest(Unknown Source)
         at oracle.apps.xdo.delivery.AbstractDeliveryRequest.submit(Unknown Source)
         at oracle.apps.xdo.service.delivery.impl.DeliveryServiceImpl.deliverToEmail(DeliveryServiceImpl.java:222)
         ... 4 more
    Caused by: javax.mail.NoSuchProviderException: smtp
         at javax.mail.Session.getService(Session.java:764)
         at javax.mail.Session.getTransport(Session.java:689)
         at javax.mail.Session.getTransport(Session.java:632)
         at javax.mail.Session.getTransport(Session.java:612)
         ... 7 more
    I have followed this SR, and I applied the solution, but it isn't solved the issue (ID: 1072742.1)
    https://support.oracle.com/CSP/ui/flash.html#tab=KBHome%28page=KBHome&id=%28%29%29,%28page=KBNavigator&id=%28from=BOOKMARK&viewingMode=1143&bmDocTitle=BI%20Publisher%20With%20JDE%20Fails%20To%20Send%20Email,%20Error:%20javax.mail.NoSuchProviderException:&bmDocID=1072742.1&bmDocType=PROBLEM&bmDocDsrc=KB%29%29
    Regards,
    Mónica.

    Hi Christian.
    You could put the lines of your list in a table of type SOLISTI1 and then use the function module SO_NEW_DOCUMENT_SEND_API1 to send the content of this table. You have to fill the table RECEIVERS with the address you want to send the report to.
    Hope that helps,
    Timo.

  • Error while sending a report via alert

    Hi,
    I have created an alert to send a message which includes a report link. The alert worked fine, i did receive the report via email.But then once i started creating new alerts , i started getting errors in alert launching.I checked up with the services and found out that Event engine shows up an error which is
    EventEngine:Clause inconsistency between EventEngine and Satellites
    Start Unloading rules.
    Also i have got troubles with the user generated already and which was working well all these while. Now the error i see in Login management of Adminstrator is
    Login information for "NT AUTHORITY\NETWORK SERVICE". This login is not currently known to be a valid login.
    I would be really thankful if someone could help me with this.
    Regards,
    Lathika

    Login information for "NT AUTHORITY\NETWORK SERVICE". This login is not currently known to be a valid login.
    You get the above error message whenever you configure IIS to allow anonymous authentication for the web directory OracleBAM, using the NETWORK SERVICE profile for anonymous logins. You'll need to disable anonymous login for the BAM web directory.

  • 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

  • How to send a report via e-mail

    Hello All,
               I want to send a report via e-mail.
               What should I do for that?
                Please help me out...
    Regards,
    Ravi Khattar.

    Hi,
      Please check the below code....
    data: t_objpack    like sopcklsti1 occurs 1 with header line,
            t_objhead    like solisti1   occurs 1 with header line,
            t_objtxt     like solisti1   occurs 0 with header line,
            t_objbin     like solisti1   occurs 1 with header line,
            t_reclist    like somlreci1  occurs 1 with header line,
            t_lobj       like abaplist   occurs 0 with header line,
            t_listobj    like abaplist   occurs 1 with header line.
      data: v_tab_line1  type i,
            v_tab_line2  type i,
            v_docsize    type i,
            v_len        type i,
            v_line(1250) type c,
            v_subj(132)  type c,
            v_cr(1)      type x value '0D',
            v_linefd(2)  type x value '0D0A',
            v_docdata    like sodocchgi1.
      clear: t_objpack[], t_objhead[], t_objtxt[], t_reclist[], t_listobj[].
      concatenate 'This email is generated from a SAP' sy-sysid '-'
         sy-mandt '- batch environment.' into t_objtxt separated by ' '.
      append t_objtxt.
      t_objtxt = 'Please do not respond to this email.'. append t_objtxt.
      v_docdata-obj_name = 'SAMPLE_TEST'.
      concatenate 'Sales Order Status Attachment -' sy-datum '-' sy-uzeit
             into v_subj separated by ' '.
      v_docdata-obj_descr = v_subj.
      describe table t_objtxt lines v_tab_line1.
      read table t_objtxt index v_tab_line1.
      v_docdata-doc_size   = ( v_tab_line1 - 1 ) * 255 + strlen( t_objtxt ).
      t_objpack-head_start = 1.
      t_objpack-head_num   = 1.
      t_objpack-body_start = 1.
      t_objpack-body_num   = v_tab_line1.
      t_objpack-doc_type   = 'RAW'.
      append t_objpack.
      clear v_line.
      if p_type = '1'.
        loop at t_list.
          concatenate v_line t_list v_linefd into v_line.
          v_len = strlen( v_line ).
          do 4 times.
            if v_len ge 255.
              if v_line+254(1) = v_cr.
                v_line255     = v_line254.
                v_line+254(1)  = ' '.
              endif.
              t_objtxt = v_line(255).
              v_line   = v_line+255.
              v_len    = v_len - 255.
              append t_objtxt.
            else.
              exit.
            endif.
          enddo.
        endloop.
        if v_line ne ' '.
          t_objtxt = v_line(255).
          append t_objtxt.
        endif.
        describe table t_objtxt lines v_tab_line2.
        t_objpack-doc_size   = ( v_tab_line2 - v_tab_line1 ) * 255.
        t_objpack-body_start = v_tab_line1 + 1.
        t_objpack-transf_bin = ' '.
        t_objpack-doc_type   = 'TXT'.
      else.
        t_objbin[] = html[].
        describe table t_objbin lines v_tab_line2.
        t_objpack-doc_size   = v_tab_line2 * 255.
        t_objpack-body_start = 1.
        t_objpack-transf_bin = 'X'.
        t_objpack-doc_type   = 'HTM'.
      endif.
      t_objpack-head_start = 1.
      t_objpack-head_num   = 1.
      t_objpack-body_num   = v_tab_line2.
      t_objpack-obj_name   = 'SAMPLE_TEST'.
      t_objpack-obj_descr  = 'Test'.
      append t_objpack.
      loop at s_email.
        t_reclist-receiver = s_email-low.
        t_reclist-rec_type = 'U'.
        append t_reclist.
      endloop.
      t_reclist-receiver   = sy-uname.
      t_reclist-rec_type   = 'B'.
      append t_reclist.
      call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           EXPORTING
                document_data = v_docdata
                put_in_outbox = ' '
           TABLES
                packing_list  = t_objpack
                object_header = t_objhead
                contents_bin  = t_objbin
                contents_txt  = t_objtxt
                receivers     = t_reclist.
      if sy-subrc = 0.
       endif.
    Cheers,
    Bujji

  • I cannot use share on Pages to send a document via email. Used to be able to do this but upgraded to OSX Lion

    I cannot use "share" on Pages to send a document via email.  I used to be able to do this.  Not sure what I have done.  Can anyone help me out?

    No. iDisk service is not available in iCloud. There are other third-party services like Picassa, MediaFire, Photobucket, Tumblr.
    Basic Information About Moving From MobileMe to iCloud
    Apple IDs and iCloud
    Creating an iCloud account- Frequently Asked Questions
    Frequently asked questions about the MobileMe transition and iCloud
    MobileMe services that no longer sync after moving to iCloud
    MobileMe- About moving to iCloud

  • If i send a report via icloud how am i notified

    if i send a report via iclod how do i get my response please

    Yes. On your phone make sure it is set to send messages from your phone number, not your apple id or other email address. That way when they reply it will go to your phone.

  • Sending 'Dunning Letters' via Email ? - -has anyone succeeded ??

    Hi
    Has anyone had any joy with sending Dunning letters via email at all
    We can get it to work via FAX , but get the following error when trying to send via email
    'connection error on node'
    even tho, there is nothing wrong with the node at all
    via SCOT , we have the default conversion as 'raw text to txt'   which works with everthing else
    If we change to 'raw text' to 'pdf'  we actually get two PDF's - one is blank however
    When viewed via SOST, you cannot open it straight up, you have to open an attachment
    when we queried this with SAP, they say that dunning letters are set up to open as attachments
    The function module is almost identical to that used by statements and remiitances, which works absolutely fine
    I have posted this on a more technical forum as it is not an FI issue, it is a technical problem, which i hope someone has come across and able to resolve for us
    Many thanks
    Tony

    Hi
    Have you see SAP Note 1042992 - Dunning by mail w/ SAPscript: Introductory text w/ attachmnt? Please, check the steps that this note suggests. At a release 46B I did with the enhancement F150D001 (at ECC 5.0 it is too), and you have a demo coding in include LX150F01.
    I hope this helps you
    Regards
    Eduardo
    PD: I forgot, according your coding check what is the email address for the customer, if the customer doesn't have email, then the letter goes to the SPOOL order. Check it in the include ZX* or in the BTE.
    Edited by: E_Hinojosa on Mar 1, 2012 5:22 PM

  • Unable to send a photo via email

    I am currently trying to sending a photo via email from I-photo, I get the following message ====  The email server didn’t recognize your username/password combination.
    Can anyone please advise ?????

    iPhoto Menu ->
    Preferences ->
    Accounts ->
    Delete and recreate your email settings.
    Alternatively, use Apple's Mail for the job. It has Templates too - and more of them.

  • Hi - I created a form in Adobe Livecycle and have a button on it to send the form via email.  t worked, but only for those with PC.  I could not get it to work with Apple Yosemite even with reader installed .  is there a way i can make it work for apple /

    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
    Thanks

    LiveCycle = XFA forms.
    afaik - These cannot be used in Apple OSs.
    Be well...

  • IPhone 5 - Insert picture from email doesn't work, but sending in Photos via email does?

    I have an issue with a user here at my office.  When composing an email and they insert a picture from their phone, it sends the email, but the picture is not attached.
    However, if we go to Photos and send the photo via email, it works fine.
    He had been able to send fine up until yesterday afternoon and then it stopped working, so I believe he's done something, but I have no idea what.  Took a look at his settings and everything seems normal.  Also, rebooted his phone, but the same issue occurs.  And as far as I know, he's the only one having this issue.
    We are running email via Lotus Traveler/Domino, but I've tested my iPhone and everything sends fine, so I don't believe this is a server issue.
    Does anyone have any idea of what to try here?
    PS - user is using ios7.1 (same as mine)

    I have an issue with a user here at my office.  When composing an email and they insert a picture from their phone, it sends the email, but the picture is not attached.
    However, if we go to Photos and send the photo via email, it works fine.
    He had been able to send fine up until yesterday afternoon and then it stopped working, so I believe he's done something, but I have no idea what.  Took a look at his settings and everything seems normal.  Also, rebooted his phone, but the same issue occurs.  And as far as I know, he's the only one having this issue.
    We are running email via Lotus Traveler/Domino, but I've tested my iPhone and everything sends fine, so I don't believe this is a server issue.
    Does anyone have any idea of what to try here?
    PS - user is using ios7.1 (same as mine)

  • When trying to send a photo via email, I am prompted to setup an email account even though email is already setup.  What would cause this?

    when trying to send a photo via email, I am prompted to setup an email account even though email is already setup.  What would cause this?  Better yet, how do I fix it?

    I have checked this on my device.  I see a Default account under Messages created outside of Mail will be sent from the default account.  There is an account selected, though it does not show my exchnage account.  If it is only an exchange accout, can that not be used for this?

Maybe you are looking for

  • Help Me: Issue with "Unable to Sign In" Analytics Of OBIEE 11g

    Hi Friends, I have Installed OBIEE 11g in Windows Server 2008-64 bit.I have installed through "Software Only" and ran the "Config Script". while I was running "Config Script" , One Component was failed i.e "Executing : opmnctl start coreapplication_o

  • Error in AR_INVOICE_UTILS.validate_tax_exemption ORA-01403: no data found

    Hi All,, --API - AR Invoice (Transaction) Creation CREATE OR REPLACE procedure APPS.xxx_ar_invoice_api is l_return_status varchar2(1); l_msg_count number; l_msg_data varchar2(2000); l_batch_source_rec ar_invoice_api_pub.batch_source_rec_type; l_trx_h

  • NAC Agent does not pop up after psn fails.

    So I'm in the middle of a deployment where I have 4 ISE appliances, two in one location and two in another location. The first location has 2 with all personas installed, whereas the other two are only PSN. In each area, NAC agent pops up normally af

  • Permission problem in InDesign

    If we make a pdf from InDesign CS 6 to the desktop and then make a change and try to resave with the same name we get a warning telling us that it cannot save because we file is in use. And then we cannot throw it out from the desktop.

  • Installing itunes on WIN7 64bit

    i tried installing itunes 64 on windows 7 64 bit - but the installation won't start, it does nothing, what do i need to do ?