Emailing Query Output

Hi Friends,
  I want to email the output of query to user. This must done at every month end automatically. Does any one know how to do this?
Regards,
Jayant Dhawale

in 3.0 you have to use the "REPORTING AGENT"
go in admin workbench (RSA1), reporting agent,
open the tree to your query and create new settings. You can schedule it with the second part of the screen (right handside).
If you have dozen of reports that fine. I you have hundred of customized reports to send to hundred of employees, it is not so good (too many settings). Then you have to use information broadcasting in 3.5
Cheers
Philippe

Similar Messages

  • How to send email alert to users from the query output ?

    Hi all,
    I intend to write a pl/sql to send email alert to user based on the following query output :-
    Item_______Qty_on_hand________Min_qty______email
    [email protected]
    [email protected]
    [email protected]
    once run, I will like to distribute to those email id. How should I code that in pl/sql ? or any other better idea is welcome. Thanks.
    Rgds
    Lim

    http://asktom.oracle.com/pls/ask/f?p=4950:8:3439330610438686683::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:255615160805,

  • Central Management server - executed a query but how to send the query output in the form of mail?

    Hi All,
    i have used CMS in SQL 2008 R2. i have added couple of servers in its group. i have executed a query & i need to send the query output in the form of email.
    basically query is checking the rows count from couple of user tables in servers.
    issue here is how to copy the data that is used by CMS? i need to work on automate the rows count in difft user table in db servers
    could you please suggest how can i achieve this?

    Copy to what?
    SELECT COUNT(*) FROM sys.objects
    Running the above statement returns two columns (server name and count)
    All the servers SS2005  and onwards , then use
    EXEC msdb.dbo.sp_send_dbmail 
         @profile_name = 'name', 
         @recipients = '[email protected]', 
         @query = 'SELECT COUNT(*) FROM sys.objects', 
         @subject = 'Count rows'
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • BEx Query output in Enterprise Portal using "Information Broadcasting"

    Dear Experts,
    I am having BEx Query output in Enterprise Portal
    EP 6.0 and BW 3.5 version
    I am trying to send email attachments from
    Portal Query directly
    using "Information Broadcasting"  tab button
    ==================================
    Email gets triggered Okay,
    but Portal URL link is not showing correctly
    Here is an Online Link to the BI Document: http://mtv01spbw01.businesssap.com:8100/sap/bw/BEx?CMD=LDOC&INFOCUBE=0CRM_OPPH&QUERY=0CRM_C04_TESTQ001
    <b>The URL above is coming wrongly,
    I want it to point to
    http://mtv01spbw01.businesstree.com:8000/sap/bw/BEx?CMD=LDOC&INFOCUBE=0CRM_OPPH&QUERY=0CRM_C04_TESTQ001</b>
    Please help me to correct this error / wrong configuration
    any help links would also be appreciated
    Thanks,
    Aby Jacob

    Hi Jacob,
    Here, p/s refer to this links.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ca6de811-0c01-0010-43b2-c64584eef943">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ca6de811-0c01-0010-43b2-c64584eef943</a>
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/84/30984076b84063e10000000a1550b0/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/84/30984076b84063e10000000a1550b0/frameset.htm</a>
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/84/30984076b84063e10000000a1550b0/frameset.htm">http://help.sap.com/saphelp_nw04s/helpdata/en/84/30984076b84063e10000000a1550b0/frameset.htm</a>
    OSS Notes : 760775
    Hopefully it can helps you a lot.
    Many thanks.
    Regards,
    Niel.
    (Many thanks for any points you choose to assign).

  • Query output into cfmail

    I need to send an individual email to about 100 names fetched
    from an Access 2003 database. I am fetching the distinct emails
    from the database and getting each Project owned by each distinct
    email address.
    I created the correct output on a test web page where the
    query will list every distinct email address with each email
    address having their own Project Title listing. Now the question is
    how do I use my output to send an individual email to each of the
    distinct email addresses I got in my query??
    For example someone with the email Address of
    [email protected] would get one email with his Project Title
    listings that could be 3 or 4 titles. The next distinct email
    address of [email protected] will get his own email with his
    Project title listings.
    Here is my attempt but the #userEmail# has everyones email
    address.
    <cfoutput query = "theQuery" group = "userEmail">
    <cfmail to: #userEmail# subject: Project Listing
    <cfoutput>Project Listing:
    #ProjectTitle#</cfoutput>
    <cfmail>
    </cfoutput>
    Please help.

    Jazzy has the correct answer. And if your project listings
    reside in seperate tables, you need to run a seperate query within
    the loop BUT outside of the cfmail in order to retrieve those. So
    that would then be...
    <cfquery name="rs_read" datasource="xxx" >
    SELECT *
    FROM #session.sometable#
    WHERE whateverid = '#variables.whateverid#';
    </cfquery>
    <cfloop index="loopcount" from="1"
    to='#rs_read.RecordCount#' step="1">
    <cfquery name="rs_projects" datasource="xxx" >
    SELECT projects
    FROM #session.sometable#
    WHERE email = '#rs_read.email#';
    </cfquery>
    <cfset variables.proj = ''>
    <cfoutput query="rs_projects">
    <cfset variables.proj = variables.proj & ' ' &
    rs_projects.projects>
    </cfoutput>
    <cfmail from="[email protected]" to="#rs_read.email#"
    subject="#rs_projects.whatever#">
    bla bla #rs_read.anyvariable#
    PROJECTS: #variables.proj#
    </cfmail>
    </cfloop>
    REMEMBER: You can not nest outputs in outputs, that's why you
    can not run the query output inside CFMAIL because CF regards
    cfmail as an output routine.

  • Formatting SQL query as of iSQL*PLUS query output format through PL/SQL

    This is my procedure through which i m sending an e-mail. In my e-mail i want to show output from error log query. I can show it in simple text but i want the output for the error log to be formatted as the query result is formated in iSQLPlus.
    In simple words instead of the message i want to send the query result which is formatted as iSqlPlus query output. Thankx in advance. Please provide a simple solution that iSqlPlus engine recieves my any given query and gives the formatted output for that query in the e-mail
    DECLARE
    conn utl_smtp.connection;
    v_log number;
    BEGIN
    conn := demo_mail.begin_mail(
    sender => '<sender-email>',
    recipients => '<recipient-email>',
    subject => 'HTML E-mail Test',
    mime_type => 'text/html');
    </h1>
    -- This method will be used for oracle error reporting');
    demo_mail.write_text(
    conn => conn,
    message => '<h1>Hi! This is a <i>test msg</i>);
    demo_mail.end_mail( conn => conn );
    END;

    oe@ORA102>
        select * from
        (select rownum r1, p.promo_id, promo_name from promotions p where rownum <5)
        full outer join
        (select rownum r2, w.warehouse_id from warehouses w where rownum <4)
       on (r1 = r2)
    oe@ORA102>/
            R1   PROMO_ID PROMO_NAME                   R2 WAREHOUSE_ID
             1          1 everyday low price            1            1
             2          2 blowout sale                  2            2
                                                        3            3
    oe@ORA102>But there should be "some connection" between the result sets, otherwise the resulting result set become unpredictable / meaning less.
    I am joining on ROWNUM, Do you want every row from emp related to every row from stocks (like a cartesian join)?
    Trying to understand the requirement.
    vr,
    Sudhakar B.

  • Reg emailing the output of a concurrent program as an attachment

    Hi,
    Our requirement is to email the output of a concurrent program?(SQL*PLUS Report Output) as an attachment to the supplied Email Id, without using seperate Shell Script.
    We have configured a printer and passed the Printer Driver argument as
    uuencode $PROFILES$.FILENAME Budget_Report.csv | /bin/mailx -"Cisco AS Budget Report" $Email_id
    The Problem is we are passing the Email address directly to the command.Can't we use the Parameter value to that command?
    And also a junk character 'end gets displayed in the mail body.
    Sometimes the concurrent Program ends with warning message as
    APP-FND-00500 : AFPPRN received a return code of failure from routine FDUPRN.
    An error occured while AOL tried to spawn the print process.
    Please suggest some ways on getting proper output?
    Thanks.

    Hi,
    Email address can be Profile Option - create a new profile option, set value and reference like the $PROFILES$.FILENAME.
    For logging pipe standard out and error to a logfile. Note I haven't tested the command below, just to give you an idea. Would be better to create a shell script then you can change without having to go to the Printer Drivers and bounce Conc Mgr.
    Ie. if you profile option is XX_EMAIL_ADDRESS then
    uuencode $PROFILES$.FILENAME Budget_Report.csv | /bin/mailx -"Cisco AS Budget Report" $PROFILES$.FILENAME >/mypath/myfile 2>&1
    With regards to the failure, if your uuencode or mailx returns 1 (ie, can't find file or whatever) then your print job fails. This is why you should either log or create shell script to handle the error better.
    Regards,
    Gareth
    Blog: http://garethroberts.blogspot.com/
    Message was edited by:
    gareth.roberts
    oops, have tested changed to haven't tested!

  • ERROR displaying in the query output... urgetn

    hi experts,
    For the amount keyfigures in the query output it displaying ERROR after the amount like ex- 2000 ERROR.
    plz let me know how to rectify this..
    regards
    vadlamudi

    hi,
    i have created only two keyfigures EMP_BASIC and EMP_HRA. and in the transformations i have mapped with 0DOC_CURRCY.
    but in the report its showing ERROR only after the amount. plz tell me exactly with what field i need to map???
    regards
    vadlamudi

  • Issue In query output

    Hello Gurus,
    I am having an issue with query output.Please find below the details of it
    Unsold claims: Total---> 200
    Dispatch: Total--->118,086
    Unsold claims/dispatch--->0.001694
    This should be the output but its coming --.0033120 because itu2019s dividing with max value in dispatch which is 60,386.
    Reason: The aggregation property of Dispatch is max value. I am not supposed to do any changes in Modeling. So can we do any thing at reporting level to get the desired output?
    Desired output---->0.001694
    Output coming---->.0033120
    Please help me in getting the desired output at query level.
    Regards,

    solved with the help of nested exception aggregation

  • Change layout of Adhoc query output list for Custom infotype

    Hi All,
    The fields in the Infoset query output on a custom infotype are aligned with the fields u2018payment typeu2019 and u2018amountu2019 appearing repeatedly(in columns) as declared in the Infotype and the output will be a long horizontal list.
    Instead, the requirement is that the output list should show vertically so that If I choose u2018Payment Typeu2019 and u2018Amountu2019 as output fields, it will show a long vertical list as in the case of a standard infotype (IT0008).
    Also, this way enables user to use Payment Type as a selection criteria so as to just pulling the needed payment type. When we use IT0008 in the infoset it works fine but in custom IT it does not work.
    Any pointers/suggestions on how we can achieve this would be helpful.

    Hi yu liang,
                     You can find vendor list having Vendor No. & without showing total liability for every vendor.
    after executing the report,
    1.You need to select "change layout (ctrl+F8)",
    a small window comes, it has two part -> column content & hidden fields.
    then u select "Vendor" from hidden field & move it to column content.
    2. at column content there is a column named "Total". u need to remove check for your column name "amount".
    now select "copy" button or enter. u will find the req. report.
    u can save it also by ur name.
    hope its helpful to u.......
    plz, reward points as a way of thanks if helpful...

  • Step by step on how to set up email as output type

    Hello everyone,
    can someone pls help me with the configuration and the steps I have to do to set up email as output type for order confirmation, delivery and shipping. Also can you tell me the programs and forms I have to select from in the condition type. Do I need to get the ABAP guys involved and what do I ask of them, how finally is it interfaced with the email. Please give me step by step for the configuration and any other set up I have to do. I am working on ECC 6.0 and I need all the help I can get.
    Thanks

    Hi,
    Please go through this link it will help you about Output process in SAP R/3 for sales documents and billing documents.
    http://help.sap.com/saphelp_47x200/helpdata/en/93/745017546011d1a7020000e829fd11/frameset.htm
    I hope it will help you,
    Thanks,
    Raja

  • To download the query output to falt file

    Hi all,
    i have a query which i know will give more than 65k records as the output for a selection.
    i cannot run this query in excel due to its limitation.
    if i run on web i cannot download this as downloading is happening to excel file only.
    The customer ideally wants to download the query result to a text file(csv,tab-delimited etc) which inturn it will upload to MS-Access.
    How do i achieve this?
    SAP has given response use try using these options:
    1.open interfaces to receive the output of a query via the MDX language.
    2.open hub tool as it is designed for big amounts of data.(i suppose this is not possible as i want to download query output not the data target contents)
    how do i achieve my scenario with option 1?
    Are there any alternatives??
    Any useful help will be rewarded.
    Regards,
    Dhanya.

    hi vivek,
    thnks for the useful reply.
    i have some problem with my ID,hence loggin in through my coleague's ID.
    i will assign u points as i get logged in.
    I did as u said by downloading it to unconverted format.
    the file got download to a text file.where the output has
    1.header rows(10 lines almost)
    2.the values r coming in single quotes e,g:
    '144000023073      'TAAS SETTLEMENT CONV 738 '19333000   '30.09.2006          '0.000
    how can i remove all this?
    Regards,
    Dhanya
    I

  • How to get the Query output to Excel

    Hi ,
    Can you tell me how to get the Query output to excel with out using any third party tool?
    Can you tell me how to write the code in Webservice and call it..
    Please explain it Elaboartly..
    Thanks in Advance!!!
    Mini

    whats your source system?
    you can use Live office, or query as a webservice if you are getting data from universe
    if you're getting data from SAP BI query and you have a java stack on your netweaver then you can get the data directly using sap bi connector in xcelsius.
    good luck

  • Query Output to download in flat file through APD  or other means?

    Hello Experts,
    I am currently on BW3.5 system and have requirement to load query output in flat file in .csv format. I checked the option of APD but looks like we cant directly load the query output in flat file like in APD (BW  3.5 system) .
    One way i can think of it...load  the query output in transactional ODS and built an infospoke on it to write into flat file.
    Please advice if there are any better methods to store the query output in flat files.
    Thanks!

    Hi,
    Use RSCRM_BAPI.
    See
    Re: RSCRM_Bapi
    See the help on RSCRM_BAPI
    Re: Running Quaries automatically and saving them in as a Excel file in Server
    Re: Data transfer to external systems
    Re: Loading from a Custom R/3 Table
    Re: How can I schedule my Bex report to execute in background
    Re: How can I insert the RSCRM_BAPI into Process chain?
    Thanks
    Reddy

  • How to send invoice through email with output type RD00?

    What are the configuration settings to send invoices through email with output type RD00?

    Hi,
    Please go through the following links:
    [E-mail|Email Configuration Settings]
    [e-mail|Re: EMAIL BILLING DOCUMENT TO CUSTOMER THROUGH SEND MAIL OPTION IN VF02]
    After triggering the output,goto T.Code SOST and process it.
    So that e-mail will be triggered immediately.
    You can use External send/EDI/simple mail for this.
    Regards,
    Krishna.

Maybe you are looking for