Sending concurrent program output as an Email to a distribution list

Hi Oracle Gurus,
We have a unique requirement wherein we need to send the output of a Concurrent Program as an attachment with an mail to a Distribution list . Can someone please let me know if there is any provision within Apps to accomplish the same.
Regards
Kiran

Hi ,
COncurrent prorams is for Reports ?
if so try with solution.
write a unix script. or this purpose.
Something in the order of this should work. You get the idea.
1. Define printer styles
2. Define a printer driver to call script in the arguments field:
$ZZ_TOP/bin/email.sh $PROFILES$.FILENAME
$PROFILES$.USERNAME $PROFILES$.TITLE
3. Assign printer to the print styles and the driver
4. Register the e-mail printer
5. Default your report use the e-mail printer
# Example script email.sh
#!/bin/ksh
[email protected]
mailx -s "$3" $email_addr $1
exit 0
$1 is $PROFILE$.FILENAME
$2 is $PROFILES$.USERNAME
$3 is $PROFILES$.TITLE
try with this u will get some idea.
just let me know after you done it.
--Basava.S                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • How to send concurrent program output file as an attachment in the notification mail

    Hi All,
    We are on Oracle apps version - 11.5.10.2
    We have a requirement wherein we need to send the concurrent program output file as an attachment while sending the notification mail to the user.
    Currently we have tried the approach wherein we are specifying the user id in the OPTIONS tab (Notifying the following people) while submitting the concurrent program.
    But using this approach, the user gets only the URL of the output file in the notification mail and not the output file as an attachment.
    Kindly let us know if anyone has incorporated the logic to send the output file as attachment in the notification mail.
    Please Note - We do not want any custom code to be written to send the attachment.
    Any pointers to this will be helpful.
    Regards,
    Shruti

    Hi All,
    We are on Oracle apps version - 11.5.10.2
    We have a requirement wherein we need to send the concurrent program output file as an attachment while sending the notification mail to the user.
    Currently we have tried the approach wherein we are specifying the user id in the OPTIONS tab (Notifying the following people) while submitting the concurrent program.
    But using this approach, the user gets only the URL of the output file in the notification mail and not the output file as an attachment.
    Kindly let us know if anyone has incorporated the logic to send the output file as attachment in the notification mail.
    Please Note - We do not want any custom code to be written to send the attachment.
    Any pointers to this will be helpful.
    Regards,
    Shruti

  • Shell script to send concurrent program output via FTP and Email

    Hi,
    Does any one have a shell script to send the output generated by a concurrent proram
    1 - Using FTP to an external server
    2 - By email as an attachment.
    Thanks

    There are more specific forums which address this question within the Oracle Technology Network. Please consider posting your question there for better responses. The focus of this forum is limited to HRMS suite of modules:
    http://forums.oracle.com/forums/categoryHome.jspa?categoryID=84
    Regards,
    Greg

  • How to Email Concurrent Program Output to Email using Shell Script

    Hi All,
    Have a Nice Day,
    I have a tricky requirement and i was not able to achieve, let me explain my requirement
    I have created a PLSQL Concurrent Program named "Approval Update". This will do update and it display the number of rows updated.
    Now i need to take this concurrent program output and it needs to be send it to the person who submits this program as an email using shell scripts.
    I have referred meta link note as well as some OTN posts but I was not able to achieve this.
    Please help me to complete this As soon as possible, Thanks in advance for your help.
    Let me know if you need more clarifications.
    Regards,
    CSK

    I don't have much idea in shell scripts all i want is, in my shell script i need to get the parent concurrent program output and that needs to be emailed to the intended person.
    Please help to to get the shell script commands for this.I do not have any shell script to share, sorry! If you want the query to get the parent request_id so you can get the log/out file name/location from then please refer to:
    REQUESTS.sql Script for Parent/Child Request IDs and Trace File IDs [ID 280295.1]
    http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=FND_CONC_REQ_SUMMARY_V&c_owner=APPS&c_type=VIEW
    http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=FND_CONCURRENT_REQUESTS&c_owner=APPLSYS&c_type=TABLE -- LOGFILE_NAME & OUTFILE_NAME
    Thanks,
    Hussein

  • Current Concurrent Program Output permissions

    Hi,
    I am working on Oracle Applications 11.5.10
    Is it possible to send the concurrent program output of the current running program as a mail ? Or does the output file become available for reading once the whole program completes ?
    I am writing the errors encountered during the current program into the output file for the current program. At the end of the program, I am calling a shell script to send the output file in mail. However I am getting an error message saying file not found or no permission on file. So wanted to know if I am doing the right thing. Or should I call the mail notification only once the whole program completes.
    I tried to search the forum, but no where its mentioned if anyone is trying to access output file of currently running program. It will be great if someone can share their knowledge.
    Thanks,
    Sou

    Hi;
    Please check thread
    Concurrent Request Output with e-mail
    Re: concurrent ouput to email
    Regard
    Helios

  • Getting Error While Attaching Concurrent Program Output PDF file for POAPPRV Workflow

    Hi All,
    I am getting the below error when I am trying to attach concurrent program output to the PO Approval Notification.
    An Error occurred in the following Workflow.
    Item Type = POAPPRV
    Item Key = 1040589-528378
    User Key =945871
    Error Name = WF_ERROR
    Error Message = [WF_ERROR] ERROR_MESSAGE=3835: Error '-20002 - ORA-20002: [WFMLR_DOCUMENT_ERROR]' encountered during execution of Generate function 'WF_XML.Generate' for event 'oracle.apps.wf.notification.send'. ERROR_STACK=
    Wf_Notification.GetAttrblob(3604701, ZZ_PREVIOUS_PO_COMPARE, text/html)
    WF_XML.GetAttachment(3604701, text/html)
    WF_XML.GetAttachments(3604701, http://oraerp.am.corp.xxxx.com:8099/pls/DEV, 11283)
    WF_XML.GenerateDoc(oracle.apps.wf.notification.send, 3604701)
    WF_XML.Generate(oracle.apps.wf.notification.send, 3604701)
    WF_XML.Generate(oracle.apps.wf.notification.send, 3604701)
    Wf_Event.setMessage(oracle.apps.wf.notification.send, 3604701, WF_XML.Generate)
    Wf_Event.dispatch_internal()
    Error Stack =
    Activity ID = 190844
    Activity Label = AL_NOTIFY_APPROVER_PROCESS:ZZ_PO_PO_APPROVE_ATTCH
    Result Code = #MAIL
    Notification ID = 3604701
    There are several threads for this error however I cannot find any specific solution to the problem.
    Please find the code below -
        wf_engine.setitemattrdocument(itemtype=>itemtype,
                                      itemkey=> itemkey,
                                      aname=>'ZZ_PREVIOUS_PO_COMPARE',
                                      documentid =>'PLSQLBLOB:zz_po_reqapproval_init1.xx_notif_attachments/' || to_char(l_request_id_prev_po)||':'||to_char(l_document_num));
    -- here l_request_id_q_and_s is the request id of the program and l_document_num is the PO document number
    PROCEDURE xx_notif_attachments(p_request_id    IN VARCHAR2,
                                   p_document_num  IN VARCHAR2,
                                   p_document      IN OUT BLOB,
                                   p_document_type IN OUT VARCHAR2) IS
      v_lob_id          NUMBER;
      v_document_num    VARCHAR2(15);
      v_document_prefix VARCHAR2(100);
      v_file_name       VARCHAR2(500);
      v_file_on_os      BFILE;
      v_temp_lob        BLOB;
      v_dest_offset     NUMBER := 1;
      v_src_offset      NUMBER := 1;
      v_out_file_name   VARCHAR2(2000);
      v_conc_prog_name  VARCHAR2(500);
      v_conc_req_id     NUMBER;
      CURSOR get_output_file(p_concurrent_request_id NUMBER) IS
        SELECT cr.outfile_name, cp.concurrent_program_name
          FROM fnd_concurrent_requests cr, fnd_concurrent_programs_vl cp
         WHERE request_id = p_concurrent_request_id
           AND cp.concurrent_program_id = cr.concurrent_program_id;
    BEGIN
      --    set_debug_context('xx_notif_attach_procedure');
      v_conc_req_id  := to_number(substr(p_request_id,
                                         1,
                                         instr(p_request_id, ':') - 1));
      v_document_num := substr(p_request_id,
                               instr(p_request_id, ':') + 1,
                               length(p_request_id) - 2);
      OPEN get_output_file(v_conc_req_id);
      FETCH get_output_file
        INTO v_out_file_name, v_conc_prog_name;
      CLOSE get_output_file;
      v_out_file_name := substr(v_out_file_name,
                                instr(v_out_file_name, '/', -1) + 1);
      v_file_name     := to_char(v_document_num) || '-Previous_PO_Rev.pdf';
      utl_file.fcopy(src_location  => 'APPS_OUT_DIR',
                     src_filename  => v_out_file_name,
                     dest_location => 'PO_DATA_DIR',
                     dest_filename => v_file_name);
      --  v_lob_id := to_number(v_document_id);
      v_file_on_os := bfilename('PO_DATA_DIR', v_file_name);
      dbms_lob.createtemporary(v_temp_lob, cache => FALSE);
      dbms_lob.fileopen(v_file_on_os, dbms_lob.file_readonly);
      dbms_lob.loadblobfromfile(dest_lob    => v_temp_lob,
                                src_bfile   => v_file_on_os,
                                amount      => dbms_lob.getlength(v_file_on_os),
                                dest_offset => v_dest_offset,
                                src_offset  => v_src_offset);
      dbms_lob.fileclose(v_file_on_os);
      p_document_type := 'application/pdf;name=' || v_file_name;
      dbms_lob.copy(p_document, v_temp_lob, dbms_lob.getlength(v_temp_lob));
    EXCEPTION
      WHEN OTHERS THEN
        wf_core.CONTEXT('ZZ_PO_REQAPPROVAL_INIT1',
                        'xx_notif_attachments',
                        v_document_num,
                        p_request_id);
        RAISE;
    END xx_notif_attachments;
    Please help me find a to the above mentioned error.
    Thanks,
    Suvigya

    There are two ways to look at what error the PLSQLBLOB API is throwing.
    1) Call your PLSQLBLOB API GNE_PO_CREATE_FILE_ATTACHMENT.Gne_Create_File_Attachment directly from a PLSQL block and verify that it returns the BLOB data successfully.
    You could also call another WF API that in turn executes the PLSQLBLOB API internally. For example,
    <pre>
    declare
    l_document blob;
    l_doctype varchar2(240);
    l_aname varchar2(90);
    begin
    dbms_lob.CreateTemporary(l_document, true, dbms_lob.Session);
    -- 207046 - This is the notification id of your failed workflow
    -- PO_REPORT - Document type attribute
    -- 'text/html' - Content Type being generated for
    Wf_Notification.GetAttrBLOB(207046, 'PO_REPORT', 'text/html', l_document, l_doctype, l_aname);
    -- Print the size of the document here to verify it was fetched correctly
    end;
    </pre>
    2) Turn on log for SYSADMIN user with following attributes.
    Log Enabled = TRUE
    Log Level = ERROR
    Log Module = wf.plsql%
    Restart the Workflow Deferred Agent Listener and Workflow Notification Deferred Agent Listener and run your workflow process. Search for log messages written for above context and you can identify the error at wf.plsql.WF_XML.GetAttachment module with message starting as "Error when getting BLOB attachment ->"
    Hope this helps.
    Vijay

  • BI Publisher Charts not getting displayed in concurrent program output

    Hi,
    I am using BI Publisher version 11.1.1.3.0 on Windows 7 with word 2007. After creating the Bar chart in RTF template of BI publisher when I load sample XML data and check it in "Preview" is displays the output correctly.
    My requirement is to print the charts in concurrent program's output on EBS version 12.1.1. (preferably HTML but PDF will also do) However when I run the concurrent program which processes the data definition and the RTF template registered for this report, the output is just an image of the chart. The XML output generated by the program is not reflected in the chart display at all. (I have verified that XML is generated properly)
    Can someone please let me know if there is some setup required to make the charts display properly in concurrent program output?
    I have also tried BI publisher version 10.1.3.2.1 for this. With this the concurrent program output is just blank. Not even an image is displayed.
    p.s. The program uses standard executable XDODTEXE (which is normally used to run BI publisher reports)
    Thanks,
    Archana

    Hi,
    I have finally found solution to this issue....
    Two setups are required to display the charts in the concurrent program's PDF output:
    1. We need to edit the variables CLASSPATH and AF_CLASSPATH. These variables should have the complete path added for the xdoparser.zip file on the server.
    2. The DISPLAY variable should be correctly setup to direct the server output.
    Also as per my findings so far, the BI (XML) publisher version 11.1.1.3.0 (or any 11g) does not work with EBS (at least for charts). We need to use BI publisher version which is XML 5.6.3 compatible for EBS. This version is 10.1.3.2.1. (patch 12395372) Now this 10g version does not work on Windows 7 so you need to use Windows XP!
    With this... finally... your charts should be getting displayed in EBS output...
    Cheers!! :-)
    Archana

  • Java Mail: send a SINGLE email to a distribution list

    Is it possible to send a single email to a distribution list using Java Mail?
    Please help with some code samples.
    Right now, our mail program uses java mail api to send one email/person in the distribution list and runs in a for loop. Is it possible to have the distribution list in the to field and just send one single email to all persons in the list?
    Thanks,
    Jayashree.

    Yes, of course, assuming your mail server supports
    distribution lists. Most mail servers do, but exactly
    how you create and administer a mailing list varies
    from server to server.
    Once you've created the mailing list on the server,
    just use the name of the list in the To field of the
    message.

  • Cannot email recreated dynamic distribution list NDR 5.1.1

    We had an issue where we needed to change the location of the OU in a dynamic distribution groups that had moved from Exch 2003>2010>2013.  We couldn't do it so we recreated a new distribution group with the same SMTP address.  Now users
    are getting 5.1.1 errors when trying to send an email to the distribution list.
    Here is the error: 
    IMCEAEX-_o=Wa-Nee+20Community+20Schools_ou=First+20Administrative+20Group_cn=Recipients_cn=[email protected]
    Remote Server returned '550 5.1.1 RESOLVER.ADR.ExRecipNotFound; not found'
    I have found other posts that mention deleting the cached address in Outlook, but that has not solved my issue.  Further reading leads me to believe it might have something to do with the legacy DN, but I don't know what to do to fix the issue.

    I convered it to this: X500:/o=Wa-Nee Community Schools/ou=First Administrative Group/cn=Recipients/cn=[email protected] and added as an X500 address in the newly created dynamic dist group, but I am still getting the NDR.
    IMCEAEX-_o=Wa-Nee+20Community+20Schools_ou=First+20Administrative+20Group_cn=Recipients_cn=[email protected] Remote Server returned '550 5.1.1 RESOLVER.ADR.ExRecipNotFound;
    not found'
    That OU (First Administrative Group) isn't an OU I am using.  Is it possible that the legacy DN value is pointing to the old dynamic group location and I need to update to point to the new location of the distribution group?

  • How do I set up an email group (aka distribution list) on iPad Air

    How do I set up an email group (aka distribution list) on iPad Air?

    It wasn't clear what the diff was between the 2 versions. I got the impression, from some reviews, that the free version limited the number of groups you could have, or the number in each group. Anyway, after all the hours I've spent over the last few days trying work-arounds, it was well worth 4 bucks.

  • How to email a concurrent program output in PDF format?

    I have a XML report running as a concurrent program with PDF output. I need to automate the xml report to be emailed to a specific user as the concurrent manager runs with PDF output. I am using reports 6i and database 10g.
    Please help me.

    Hi
    Use following code in AfterReport trigger
    function AfterReport return boolean is
    BEGIN
    SRW.USER_EXIT(’FND SRWEXIT’);
    DECLARE
    vinhandle UTL_FILE.file_type;
    rfile RAW (32767);
    flen NUMBER;
    bsize NUMBER;
    ex BOOLEAN;
    vrec VARCHAR2 (30) := ‘[email protected]’; –receiver’s email id
    vsender VARCHAR2 (30) := ’[email protected]’; –sender’s email id
    vsubj VARCHAR2 (50) := ’subject’; –subject
    vmesg VARCHAR2 (4000);
    vmtype VARCHAR2 (30) := ‘text/plain; charset=us-ascii’;
    BEGIN
    vmesg := ‘Please print and complete attachment’; –message
    UTL_FILE.fgetattr (’CTEMP’, –name of the directory
    ‘o’ || :p_conc_request_id || ‘.out’, –name of the file
    ex,
    flen,
    bsize
    vinhandle :=
    UTL_FILE.fopen (’CTEMP’, ‘o’ || :p_conc_request_id || ‘.out’,'R’);
    UTL_FILE.get_raw (vinhandle, rfile, flen);
    UTL_FILE.fclose (vinhandle);
    utl_mail.send_attach_raw (sender => vsender
    ,recipients => vrec
    ,subject => vsubj
    ,MESSAGE => vmesg
    ,attachment => rfile
    ,att_inline => FALSE
    ,att_filename => ‘o’|| :p_conc_request_id|| ‘.out’
    – CTEMP is a directory with path as $APPLCSF/out or your custom out folder
    END;
    return (TRUE);
    end;
    Susheel

  • How to default Concurrent Program delivery options to Email.

    As of r12.1.3, we have a new button in concurrent request submission window called "Delivery Opts"
    Clicking that button opens up a new window with delivery options.   Second tab contains the Email option.
    I have a need where a concurrent program is submitted it should email the output  by default without needing to manually enter email details every time.
    I know that this can be done via scheduled concurrent requests. But in my case this concurrent program will be part of the shipping document set and will be submitted through the form and not SRS. 
    In concurrent program definition window under AOL,  we have ability to assign default printer, but we do not have any ability to assign default email functionality.   It would be nicer if we had one.
    That having said,  does any one know how to do this ?  How can I submit a concurrent program from a form and default to email option ?   Where would I control this setup?
    Please advise.
    Darsh

    you may not be able to do that by setup, but if you submit this request using pl/sql code you can do this
    please check example below
    DECLARE
    l_conc_id NUMBER;
    l_user_id NUMBER := xxx ; -- you can assign it from profile option value
    l_resp_id NUMBER := xxx ; -- you can assign it from profile option value
    l_resp_ppl_id NUMBER := xxx; -- you can assign it from profile option value
    l_boolean BOOLEAN;
    BEGIN
    l_boolean :=
    fnd_request.add_delivery_option (TYPE => 'E', -- this one to speciy the delivery option as Email
    p_argument1 => 'Testing the Email option from back end', -- subject for the mail
    p_argument2 => '[email protected]', -- from address
    p_argument3 => '[email protected]','[email protected]', -- to address
    p_argument4 => '', -- cc address to be specified here.
    nls_language => ''); -- language option);
    IF l_boolean = TRUE THEN
    FND_GLOBAL.APPS_INITIALIZE (l_user_id, l_resp_id, l_resp_ppl_id); -- intialize the apps.
    l_conc_id :=
    fnd_request.submit_request (application => 'FND',program => 'XXXXXXX', -- you concurrent program.
    start_time => SYSDATE,sub_request => FALSE);
    END IF;
    END;

  • Concurrent Program output error

    Hi
    When i want to check the output of concurrent program i am getting error for all concurrent program
    An error occurred while attempting to establish an Applications File Server connection with the node FNDFSERP-1-DR.
    There may be a network configuration problem, or the TNS listener on node FNDFSERP-1-DR may not be running. Please contact your system administrator.
    I have check several for on metalink and run adrelink force=y "ad FND" and other FND product also but still the same issue. Kindly help me
    Database 10.2.0.4
    EBIZ - 12.1.2
    OS - HP Unix
    Thanks
    Krishna

    Hi Helios,
    Application listener is up and running .
    i have tried to stop all services and start again. this is sucess. all services are start/stop with status code 0.
    I have run autoconfig on application tier that is also sucessfull.
    for tnsping i have an issue. when i do FNDFS_Hostname i am able to ping. if i see the log file for my concurrents, there is entry for FNDFSHostname (_ is missing in this, how come this happen i am not sure). how can i restore the oroginal things to FNDFS_Hostname. Kindly advice.
    Thanks
    krishna

  • Java Concurrent Program - Output of BI publisher report

    Hi,
    I have a requirement of a Java Concurrent Program in Oracle apps to print the output of a BI Publisher Report. I need help in the following aspects
    1. Setting up my Jdeveloper for writing the Java code
    - I have downloaded xdo*,cabo*,jbo*,framework*,util* from $JAVA_TOP to my_classes (C:\JDeveloper\jdevhome\jdev\myclasses)
    - However my import statements are not working yet.
    2. I had a reference of similar program where I used it for generating PDF file (output of a XML publisher report) from OA Framework page
    This is a controller class which was generating the PDF output. Link is given below
    https://docs.google.com/leaf?id=0BxunA4-pnNcqNGY5NDNjNDItYjhlMi00ZDNlLTk1ZTctMWY4MjhjNTYwZDdh&hl=en_US
    Any help !!!!!!!!!!

    Hi Hussein,
    Helpful Links.. Yes I had studied them before I posted this. But my requirement is bit complex.
    Please check the following link
    Attachment Print along with xml output - Need help !!!
    Thanks,
    Neil

  • Concurrent Program outputs gettting merged

    Hi,
    We are facing a strange issue in our EBS 11i instance where the output of one concurrent program is getting merged with another program output.(i.e output of financial concurrent programs get merged with HR/Payroll concurent program output and vice versa). This is not hapeening foe all the programs but only hapeens for few specific programs.
    Has anyone faced this issue previously or can highlight the cause for this abnormal issue.
    Regards,
    Rupdipt

    Is this a cloned instance? Have you reviewed the contents of the output files to verify none of those output files from the source instance?
    If the above doesn't help then I would suggest logging a SR.
    Thanks,
    Hussein

Maybe you are looking for