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!

Similar Messages

  • Unable to view the output of a concurrent program

    Dear Members,
    I am using Oracle R12.1.3 Vision Instance.
    I have run the Create Accounting program. When I click on the view output button, the browser gets displayed and also gets closed immediately. I am unable to view the output.
    Can any one please help me in resolving this issue?
    Many thanks in advance.
    Regards.

    Dear Members,
    I am facing the above problem in IE.
    When I tried in Mozilla, I can view the outputs without any issues.
    Can any one suggest me why I am not able to view the output in the IE?
    Regards.

  • How to save the output of a concurrent proram automatically

    Hi Friends,
    We have a requirement to save the output of a concurrent program to a specific folder for a reporting purpose. whenever we run that concurrent program it should save the out file in the network folder \\out_files\con_prg like that
    instead of storing it in its default folder in unix.(or I should recoganize which out file is for my concurrent program from the default folder and to move it to windows shared network folder). If it is one time , I can do it manually. But I need to schedule that concurrent program to run every day and transfer the output to the windows folder.
    Our system is Oracle Apps 11i , Data base 9i in Solaris.
    If you have any idea or sugesstion for this , please share it with me here.
    Thanks in advance,
    Vimal...

    Hi
    Thanks for the reply. I can get the name from the fnd_concurrent_requests table, But how can I identify which is the one submitted by me. Because there is possibility of multiple submission by the users with different parameters.
    I can give you more details.
    We are having a BI report (not oracle) for AR Aging Report details. It has a staging table to get the data from Oracle EBS.
    My job is to run Our Customized AR Aging Report with 2 different parameters like sysdate and the same date for last month.
    Get the output file and processs it (for this we are using VB Script) to populate the staging table from where the BI report get the data.
    So far I am doing this manually for more than a month.
    The Users wants to have all the above mentioned process to be combined as a single concurrent program , so that they can submit easily and populate the data any time of the day like other Oracle Standard reports.
    The BI report can be viewed any time of the day by more than 15 users and also AR Aging report can be run so many times in a day by another set of users.
    In this situation how can I get the exact output file of the request submitted by me.
    Thanks,
    Vimal...

  • OAF: Creating PDF output without calling concurrent program.

    Hi Everyone,
    i want to Create PDF output in OAF.
    I wil be having one button “Convert PDF” on my OAF page. On clicking on that button my page should generate pdf output without calling concurrent program(Because running a concurrent program may take much time sometimes.).
    How can I do that?
    I have never generated pdf outputs so plz help me to get out of this.
    What are the possible ways to get this?
    Any example?
    Any suggestions wil be really useful.
    Thanks.....

    Hi ,
    Please refer to -
    http://apps2fusion.com/at/85-daxesh/515-oa-framework-xml-publisher-integration
    http://apps2fusion.com/at/51-ps/260-integrating-xml-publisher-and-oa-framework
    Regards,
    Ashish

  • How to capture the parameter value of Concurrent Program submited

    Hi,
    I would like to capture the Parameter value of Concurrent Program submitted through Submit Request screen based on that i want to return value.
    When Conc prog "Payroll Run" along with parameter like "Pay Period" which has LOV attached to it, which has one coulumn named "End Date", this value selected needs to be captured. Can you please tell the Table name where the value is stored or Captured.
    I want this value to be used in Fast Formula which will return the desired value to Input Value.
    Actually in one of the Element I have Input Value as "Monthly Days" which should be populated with the "Number of days" in the period in which Payroll is being processed.
    Thanks in advance.
    Ram

    Hi,
    fnd_concurrent_requests.argument_text stores the argument values in comma separated form. But check the prior response from thierry first - fnd_concurrent _requests is not the place you want to be getting things from as it can be purged and so you source data is gone!
    Gareth
    http://garethroberts.blogspot.com

  • How to find the patches for perticular concurrent program

    HI
    How to find the patches for perticular concurrent program. suppose for one concurrent program we create the patch and applied now i want know the which patch applied for perticular concurrent program through back end.
    Thank's

    Query the concurrent program in Sysadmin responsibility.
    Note the concurrent executable.
    Query the concurrent executable in Sysadmin.
    Note the file name.
    If it is a package, open the package in TOAD and note down the file name.
    If it is a report/form, open it in form developer and note down the file name.
    Go to patch find screen in metalink. In the advanced search screen, enter the file name and you will see patches that contain it.
    Hope this answers your question
    Sandeep Gandhi
    Independent Consultant
    513-325-9026

  • Reg: Creating sub menu for a concurrent program under menu on the Menu bar

    Hi all,
    I would like to know, how we can create a sub menu for a conc. program under a sub menu on the Menu Bar ?
    Thanks In Advance.
    Regards,
    Neeti

    It is a 2 step process. First, enable a new menu entry, which when called will fire a user-named trigger, where the call to the concurrent programs form is the executed. How to do it depends on the release. Previous to 11.5.10, this has to be done trough custom.pll, and 11i10 an r12 with forms personalization. Documentation and examples exists for both cases, have a look on metalink.

  • XML output for pdf concurrent program

    Hi,
    We have one custom concurrent program defined with output as pdf.
    We want to generate an xml output some times. We dont want to register another concurrent program.
    We want to use same concurrent program, but want to generate output some times pdf , some times xml.
    Please suggest whether any possible way of doing this even using CONCSUB also fine.
    Thank you,
    Venkat.

    Hi Ramana;
    We want to submit the concurrent program, but output type either as xml or pdf it will be known during runtime.AFAIK if you prepare template in XML publisher than you can take output as pdf, by the way you can take xml output too
    Please check user guide:
    http://www.oracle.com/technology/products/xml-publisher/docs/XMLP5.6.1UserGuide.pdf
    Regard
    Helios

  • Problem while running the xml report in concurrent program

    Hi,
    In EBS r12, we have requirement to have a standard report output in excel.
    I got the report's xml output to create the xml template (.RTF layout) using BI Publisher.
    I created the .RTF layout and it works fine on my laptop using Bi Publisher.. the xml loads into it and i can preview xml data on layout with all format (Excel, PDF...)
    I uploaded the layout to EBS, and assigned it to the standard report.
    I changed standard report out put to XML
    When i go to submit report request, the template is assigned with report and everything seems correct.
    But after i run the report.
    The report is Completed with Warning status.. and output is only XML with Error message :
    This XML file does not appear to have any style information associated with it. The document tree is shown below.
    The Log file says :
    Executing request completion options...
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 2350601 on node CLONE at 13-APR-2011 09:03:47.
    Post-processing of request 2350601 failed at 13-APR-2011 09:03:48 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    ------------- 2) PRINT -------------
    Not printing the output of this request because post-processing failed.
    Finished executing request completion options.
    The manager log file of Output post processor shows as:
    Template code: LATE_PAID
    Template app: SQLAP
    Language: en
    Territory: 00
    Output type: EXCEL
    [9/21/11 10:59:39 AM] [UNEXPECTED] [1273372:RT4463274] java.io.FileNotFoundException: /data1/EBSR120/inst/apps/oravis_hschbscgn20076/logs/appl/conc/out/o4463274.out (No such file or directory)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:106)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:230)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:166)
    [9/21/11 10:59:39 AM] [1273372:RT4463274] Completed post-processing actions for request 4463274.
    [9/21/11 11:33:17 AM] [OPPServiceThread0] Post-processing request 4463327.
    [9/21/11 11:33:17 AM] [1273372:RT4463327] Executing post-processing actions for request 4463327.
    [9/21/11 11:33:17 AM] [1273372:RT4463327] Starting XML Publisher post-processing action.
    [9/21/11 11:33:17 AM] [1273372:RT4463327]

    I guess we should submit XML publisher request "XDOREPPB" in "After report trigger" to generate the report output. You can refer the below link for syntax for submission of the program.
    Re: Excel Output appears in IE after submitting XDOREPPB from backend
    This may be helpful if not please ignore it.

  • Unable to import the package for java concurrent program

    Hi all
    i m trying to work on java concurrent program ,but when i tried to import these classes
    import oracle.apps.fnd.cp.request.CpContext;
    import oracle.apps.fnd.cp.request.JavaConcurrentProgram;
    the compiler is throwing
    cannot access class oracle.apps.fnd.cp.request.CpContext; file oracle\apps\fnd\cp\request\CpContext.class not found
    it is not giivng the cp package
    please can somebody have idea ,what could be the reason .
    thanx in advance
    regards
    pratap

    Pratap,
    Please download the cpcontext files whose package structure is oracle.apps.fnd.cp.request.CpContext
    from the google or other search sites or download it from application unix server $JAVA_TOP/oracle/apps/fnd/cp/request/CPContext .
    If it is a class file then convert it to java file by using java decompiler.
    then plalce the file respective folder by creating folder of this name. e.g. if
    the package structure is oracle.apps.fnd.cp.webui the create folders in myproject folder in jdeveloper
    oracle, then under oracle folder cretae aapps folder and so on...
    Thanks,
    Kumar

  • How to identify the arguments of a concurrent program?

    Hi,
    I am new to 11i.
    I need to submit a concurrent request using fnd_request.submit_request.
    I was wondering if there is documentation specifying the list of arguments for each concurrent program.
    In this case I need the arguments for INCOIN, but it would be great if someone can point me to a doc listing all the conc programs or atleast the fnd_ table which might be storing this map (I might be horribly mistaken here) .
    Thanks,
    Vinay
    I figured out that
    fnd_concurrent_programs, fnd_concurrent_programs_tl, fnd_executables, fnd_application, fnd_application_tl
    these tables can give some info about the program but not the arguments
    Message was edited by:
    Vinay A

    check this tables FND_DESCR_FLEX_COLUMN_USAGES.
    descriptive_flexfield_name is $SRS$.[fnd_concurrent_programs.concurrent_program_name]

  • How to send email the output of tcode ksb1 as xls attachment

    Hi experts,
      i have requirement that i need to send email of  outout of the transaction code KSB1 as excel attachement .
    inputs : cost center ,costelement ,posting date and layout.
    please help to me to complete the task
    thanks
    naveen

    hi ...
    check these examples ..
    send excel attachment as email
    PO as Attachment in Mail
    regards,
    venkat.

  • Email the Output of Report under HTML Format instead of .eps

    Hi to all
    I having Developer 6.0.5.0.2. I want to send an email from
    report (Using Lotus Notes email client) as an HTML attachment.
    Could any one guide me how to do that?
    null

    Set DESFORMAT = HTML in the Parameter Form Builder.(or in the
    system Parameters under Data Model)
    the DESTYPE should be MAIL only then you won't get the .eps file.
    Hope this helps.
    NB
    Kalle (guest) wrote:
    : Hi,
    : In case of Reports Runtime : Edit->Runtime Options->Runtime
    : Values->Format HTML, in Report Builder: Tools->Preferences...
    : Regards
    : Thalamuthu (guest) wrote:
    : : Hi to all
    : : I having Developer 6.0.5.0.2. I want to send an email from
    : : report (Using Lotus Notes email client) as an HTML
    attachment.
    : : Could any one guide me how to do that?
    null

  • Track the Output printed in Z Programe

    Hi All,
    I have done the Z program for for Loading sheet print, Is it possible to track  weather document is printed or not in SAP. need to assume viewing print preview is   not printed.
    rgds
    pramod

    Hi Pramod,
    NAST protocol uses functions in function group WMCP:
    NAST_PROTOCOL_DELETE
    NAST_PROTOCOL_INITIALIZE
    NAST_PROTOCOL_INIT_AND_LOAD
    NAST_PROTOCOL_STORE
    NAST_PROTOCOL_UPDATE
    They are used in a lot of print programs, for example in invoices program RVADIN01.
    For initialize is used the function NAST_PROTOCOL_INITIALIZE, an register in table NAST is created, then you call the funtion NAST_PROTOCOL_UPDATE to add message to the log and finally NAST_PROTOCOL_STORE to save it. Take a look to program RSNAST00.
    Regards.
    JCD

  • How to Email Output of Concurrent Program to set of Users

    Hi Everyone,
    I need to create a Custom concurrent program(Nothing but a PLSQL Program) to email the output of a concurrent program run to a set of users with request id as parameter.
    Please help me...!
    With Regards
    VeeJay

    Do not know Apps - and still have no idea what is implied with a "concurrent" program. Wish that systems/applications will use technology words correctly and appropriately...
    Also, you have not stated what the output is. Is is a text file? A CLOB? A ref cursor? A PL/SQL array? A 32KB varchar2? Something else?
    This output needs to be used to construct the e-mail.
    In order to mail anything you (the e-mail client) need:
    a) TCP client connectivity
    b) to construct a Mime (e-mail) body
    c) deliver that Mime body via TCP using the SMTP (Simple Mail Transfer Protocol)
    In Oracle 10.2.x that is as simple as making a single PL/SQL, courtesy of the UTL_MAIL package.
    In Oracle 9i and 10.1.x, that requires manually constructing a Mime body and then delivering it using the UTL_SMTP package.
    In Oracle 8i, that means using UTL_TCP if UTL_SMTP is not available.
    You need to consult the applicable documentation for that Oracle version. The document being "Supplied PL/SQL Packages and Types Reference" with Oracle 8i and 9i, and simply "PL/SQL Packages and Types Reference" with 10G and later.
    Documentation portal URL is http://tahiti.oracle.com

Maybe you are looking for

  • How to change sharing and permissions access on an Excel Version 14.4.3 (140616) file

    I've created several Excel (from Office:Mac 2011) files on my MapPro; the are on the 'backup' drive (not the main drive).  When accessing the 'get info' menu on the file, it shows that I can read and write; but if I open the file, the file name indic

  • Data_parameter

    Dear All, How I can use DATA_PARAMETER in 10g forms to pass record group to report. Thanks for advance

  • Help: RenderAtClient vs different Acrobat Reader versions

    Hi, I'm used to LC 7.2, Designer 7.0 and Reader 7.x and they all work fine initially. After Reader 8.x on some client PCs were introduced, the following conflict is encountered: If I turn on RenderAtClient=true/auto and viewed by Reader 8.1, the layo

  • GUI in Java

    I ever learn Java before JDK 1.4, but to make application GUI in Java is so complicated. So i never learn Java to make application GUI again. Now There is JDK 1.6, is it more easy to make GUI in Java now ? I hope i can make GUI in Java likes VB6 or V

  • Error Loading Image

    I get the message 'Error Loading Image'.  No explanation, it is just a jpg photo