Unable to schedule a report to email and print

I have been working on a task to both print and email a report to recipients whose email addresses are obtained at runtime.  So far I am able to email the report as a PDF attachment, however, I am not able to get the report to print.  I have three thoughts as to why the report is not printing.
1. The printer is in a subdomain under the domain where InfoView and the Enterprise server reside.
2. It is not possible to schedule a report for both an SMTP and print destination simultaneously.
3. The format is causing an issue in printing - the SDK API states "Printer is a report format specific destination and can only be used when the report object is a Crystal Report."
I have looked at the scheduled report in InfoView and can see that the print settings I am passing are correctly set for the scheduled instance.  Does anyone know if there is a problem with trying to schedule printing and email at the same time, or if the report format must be .rpt?
Below is my code. Thank you for your time.
String query = "Select SI_ID, SI_NAME, SI_PROCESSINFO, SI_SCHEDULEINFO, SI_SCHEDULE_STATUS From CI_INFOOBJECTS Where SI_ID=" + reportId;
        IInfoObjects results = null;
        ISchedulingInfo schedulingInfo = null;
        try {       
           results = iStore.query(query);           
        } catch( SDKException sdke ){
           logger.error(sdke);
        if( !results.isEmpty() ){
            // get the actual report object from collection and set scheduling information
            IInfoObject report = (IInfoObject)results.get(0);
            schedulingInfo = report.getSchedulingInfo();
            schedulingInfo.setType(CeScheduleType.ONCE);
            schedulingInfo.setRightNow(true);
            schedulingInfo.setRetriesAllowed(3);           
            try {
                Set<String> keys = destinations.keySet();
                Iterator i = keys.iterator();
                while( i.hasNext() ){
                    String dest = (String) i.next();
                    if(dest.equals(CrystalDestinations.EMAIL)){
                        // get the destination object and set it to SMTP plugin
                        List emailAddress = destinations.get(CrystalDestinations.EMAIL);
                        IDestination destinationObject = schedulingInfo.getDestination();
                        destinationObject.setName("CrystalEnterprise.SMTP");    
                        IDestinationPlugin smtpPlugin = (IDestinationPlugin) iStore.query("SELECT * FROM CI_SYSTEMOBJECTS WHERE SI_PARENTID = 29 AND SI_NAME='CrystalEnterprise.SMTP'").get(0);
                        ISMTPOptions smtpOptions = (ISMTPOptions) smtpPlugin.getScheduleOptions();
                        smtpOptions.setDomainName( emailDomain );
                        smtpOptions.setServerName( smtpHost );
                        smtpOptions.setSMTPUserName( smtpUser );
                        smtpOptions.setSMTPPassword( smtpPass );
                        smtpOptions.setSubject( "Email for report " + report.getTitle() );
                        smtpOptions.setMessage( "This is the message body" );
                        smtpOptions.setSenderAddress( smtpUser + "@cdrh.fda.gov" );
                        smtpOptions.setSMTPAuthenticationType( ISMTPOptions.CeSMTPAuthentication.LOGIN );
                        for(int j = 0; j < emailAddress.size(); j++ ){
                            smtpOptions.getToAddresses().add( emailAddress.get(j) );
                        destinationObject.setFromPlugin( smtpPlugin );                                                                               
} else if ( dest.equals(CrystalDestinations.PRINT) ){
                        List printers = destinations.get( CrystalDestinations.PRINT );                   
                        IReportPrinterOptions printerOptions = ((IReport)report).getReportPrinterOptions();
                        printerOptions.setCopies(1);
                        printerOptions.setEnabled(false);
                        printerOptions.setPrinterName( (String)printers.get(0) );                   
                        printerOptions.setPageLayout(IReportPrinterOptions.CeReportLayout.USE_SPECIFIED_PRINTER_SETTING);
                List reportPrompts = ((IReport)report).getReportParameters();
                for(int j = 0; j < reportPrompts.size(); j++){
                    IReportParameter prompt = (IReportParameter) reportPrompts.get(j);                   
                    if(prompt.getParameterName().equals(mdrParamName)){
                      IReportParameterSingleValue v = prompt.getCurrentValues().addSingleValue();
                      v.setValue(reportParameters.get(mdrParamName));
                    } else if(prompt.getParameterName().equals(addressParamName)){
                        IReportParameterSingleValue v = prompt.getCurrentValues().addSingleValue();
                        v.setValue(reportParameters.get(addressParamName)); 
                IReportFormatOptions format = ( (IReport) report).getReportFormatOptions();
                format.setFormat(IReportFormatOptions.CeReportFormat.PDF);
                iStore.schedule( results );

Hi Jason,
Based on your code, I could not tell if you were scheduling a Crystal Report or a WebI document.
Regardless, what I would suggest is you try scheduling the report/document on InfoView.
Once you schedule it on InfoView, you can retrieve the instance on Query Builder (or through code) and compare the properties that are being set through InfoView and the one you set through your code.
This should indicate if you are missing some properies or have set some properties incorrectly.
Hope this helps.
Regards,
Dan

Similar Messages

  • LMS 4.21 -- Unable to schedule NetworkDiscrepancy Report with eMail-Adress given

    Hi all,
    environment:
    LMS 4.21
    Solaris 10
    trying to schedule a Best Practices Network Discrepancy Report everything works find (reports could be scheduled)
    except entering a eMail-Address in Textfield: E-mail.
    Hiting the Submit Button results in nothing, no popup stating the created job ID; without any content
    in this field a job is able to be scheduled.
    Could that be a known bug or is anybody else facing the same problem?
    Best Regards
    Lothar

    No Cisco-Expert available having a solution?
    Many thx

  • Dunning email and print at same time.

    Hi all,
      My client need to send Dunning document as email to the customer, at the same time they want to generate
      printout also for the same.   I have successfully send an email to customer email address.
      But i am unable to generate print out for the same.
      They need to generate email and print out out for the dunning..
    My question is:  can we generate both email and print out at the same time for the single run of F150 for one customer.
                             If it is possible please let me know how can we do it.
    Thanks,
    Raghav

    it's not possible.
    rohit

  • Dunning email and print both at a time

    Hi all,
    My client need to send Dunning document as email to the customer, at the same time they want to generate
    printout also for the same. I have successfully send an email to customer email address.
    But i am unable to generate print out for the same.
    They need to generate email and print out out for the dunning..
    My question is: can we generate both email and print out at the same time for the single run of F150 for one customer.
    If it is possible please let me know how can we do it.
    Thanks,

    No,
      I have by pass the dunning doc to generate the email instead of printing using BTE concept.
      but my client need to print and email both at time at the time transaction F150 triggering.
      Hope there is no way to change dunning standard print program to create in SAP. since it wont take any customer program to print
      dunning documnets..
      So, is there any way to get the print and email for the same dunning document.
    Thanks,

  • F110 - program RFFOAVIS_FPAYM email and print at the same time

    Hello all,
    we are using program RFFOAVIS_FPAYM program for print and email paymnet advice. but the current scenario at a time only one process is woking email or print payment advice.  but the user want to get the print and email adivce at the same time, but current only one thing is working.
    kidly advice how to get email and print payment advice at the same time.
    Thanks in Advance.
    Abhilash

    I Have the same problem
    Any help is welcome

  • BI Publisher (XMLP) -  Can not schedule a report using email config

    Hi there,
    I use Oracle BI EE 10g r3 version and received next error message when tried to schedule a BIP report via email.
    Any hints/ideas are very welcomed.
    My smtp server requires authentification but provided in the configuration screen.
    =================err message==============================
    System Message oracle.apps.xdo.service.delivery.DeliveryException: oracle.apps.xdo.delivery.DeliveryException: 550 5.7.1 Authentication Required
    at oracle.apps.xdo.service.delivery.impl.DeliveryServiceImpl.deliverToEmail(DeliveryServiceImpl.java:227)
    at oracle.apps.xdo.servlet.scheduler.XDOJob.deliver(XDOJob.java:1106)
    at oracle.apps.xdo.servlet.scheduler.XDOJob.execute(XDOJob.java:426)
    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: 550 5.7.1 Authentication Required
    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:221)
    ... 4 more
    Caused by: javax.mail.MessagingException: 550 5.7.1 Authentication Required
    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)
    ... 7 more
    ============end error message
    Thanks in advance again,
    Marian

    Any type of help would be appreciated.
    Thanks.

  • Unable to Schedule the Report with a user with Author Role.

    Hi,
    I tried to Schedule the Report using weblogic user(which has admin role) it worked perfectly. But when i try to login using User(which has author role) and when i try to schedule a report i am getting the following error. It is clustered Environment.
    [nQSError: 77006] Oracle BI Presentation Server Error: A fatal error occurred while processing the request. The server responded with: Authentication Failure.
    Error Codes: IHVF6OM7:OPR4ONWY:U9IM8TAC
    Location: saw.connectionPool.getConnection, saw.securitysubsystem.checkauthentication.runimpl, saw.securitysubsystem.checkauthentication, saw.delivers.rpc.getDeviceContent, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.handleConnection, saw.rpc.server.dispatch, saw.threadpool.socketrpcserver, saw.threads
    Odbc driver returned an error (SQLDriverConnectW).
    State: 08004. Code: 10018. [NQODBC] [SQL_STATE: 08004] [nQSError: 10018] Access for the requested connection is refused.
    [nQSError: 43113] Message returned from OBIS.
    [nQSError: 13039] The impersonator does not exist in the BI Security Service. (08004)
    Error Codes:
    Location: saw.delivers.rpc.getDeviceContent, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.handleConnection, saw.rpc.server.dispatch, saw.threadpool.socketrpcserver, saw.threads
    Error Codes: AGEGTYVF
    AgentID: /users/richard/Test Mail Report
    ...Trying Agent Get Response Content loop again.... Sleeping for 8 seconds.[nQSError: 77006] Oracle BI Presentation Server Error: A fatal error occurred while processing the request. The server responded with: Authentication Failure.
    Error Codes: IHVF6OM7:OPR4ONWY:U9IM8TAC
    Location: saw.connectionPool.getConnection, saw.securitysubsystem.checkauthentication.runimpl, saw.securitysubsystem.checkauthentication, saw.delivers.rpc.getDeviceContent, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.handleConnection, saw.rpc.server.dispatch, saw.threadpool.socketrpcserver, saw.threads
    Odbc driver returned an error (SQLDriverConnectW).
    State: 08004. Code: 10018. [NQODBC] [SQL_STATE: 08004] [nQSError: 10018] Access for the requested connection is refused.
    [nQSError: 43113] Message returned from OBIS.
    [nQSError: 13039] The impersonator does not exist in the BI Security Service. (08004)
    Error Codes:
    Location: saw.delivers.rpc.getDeviceContent, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.handleConnection, saw.rpc.server.dispatch, saw.threadpool.socketrpcserver, saw.threads
    Error Codes: AGEGTYVF
    AgentID:/users/richard/Test Mail Report
    ...Trying Agent Get Response Content loop again.... Sleeping for 6 seconds.[nQSError: 77006] Oracle BI Presentation Server Error: A fatal error occurred while processing the request. The server responded with: Authentication Failure.
    Error Codes: IHVF6OM7:OPR4ONWY:U9IM8TAC
    Location: saw.connectionPool.getConnection, saw.securitysubsystem.checkauthentication.runimpl, saw.securitysubsystem.checkauthentication, saw.delivers.rpc.getDeviceContent, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.handleConnection, saw.rpc.server.dispatch, saw.threadpool.socketrpcserver, saw.threads
    Odbc driver returned an error (SQLDriverConnectW).
    State: 08004. Code: 10018. [NQODBC] [SQL_STATE: 08004] [nQSError: 10018] Access for the requested connection is refused.
    [nQSError: 43113] Message returned from OBIS.
    [nQSError: 13039] The impersonator does not exist in the BI Security Service. (08004)
    Error Codes:
    Location: saw.delivers.rpc.getDeviceContent, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.handleConnection, saw.rpc.server.dispatch, saw.threadpool.socketrpcserver, saw.threads
    Error Codes: AGEGTYVF
    AgentID: /users/richard/Test Mail Report
    Exceeded number of request retries for method GetResponseContent.
    Can any one help me with this.
    Thanks
    Rondo.
    Edited by: RONDO on Dec 12, 2012 4:07 PM

    Check the Doc ID 1446877.1
    As per this doc Fix to apply patch 13553428:
    The fix to this issue is to apply patch for the following unpublished bug.
    Bug 13553428 - QA:BLK:DELIVER TO CORP. OID LDAP USERS FAILED WITH IMPERSONATOR DOES'NT EXIST.
    Patch 13553428: QA:BLK:DELIVER TO CORP. OID LDAP USERS FAILED WITH IMPERSONATOR DOES'NT EXIST.
    The patch is available on MOS and can be applied to all platforms.
    Or access via this link:
    https://updates.oracle.com/Orion/Services/download/p13553428_111160_Generic.zip?aru=14732325&patch_file=p13553428_111160_Generic.zip
    Please refer to the Readme. It is important to Stop the System before applying the patch. Then restart.
    During restart Weblogic should automatically detect that bimiddleware.ear has changed in the OH and automatically redeploy the application
    If helps pls mark as correct
    Edited by: Srini VEERAVALLI on Dec 12, 2012 7:39 PM

  • Scheduling a report in background and passing data for processing

    Hi all,
    Using code (in a report1) ...i  want to execute a report (report2) in background.....but at the same time i want to pass data (an internal table and a variable) to that report2.
    is it possible to pass data like internal table to a executable report and at the same time pass the data to that report.
    Thanks in advance.
    Thanks and Regards,
    Sushil.

    hi
    regarding  Scheduling a report in background check the below thread
    SCHEDULE THE ZREPORT IN BACKGROUND DYNAMICALLY
    regards
    chandra

  • Scheduling aggrement report with order and delivered qunatity

    Hi,
    A Report is required which displays all scheduling agreement with order quantity and delivered quantity till date.
    In VA35,  it gives for particular customer, and does not have delivered quantity field in layout.
    Is there any other report on this?
    Please suggest me your valuable comments.
    Regards,
    Anbu

    Hi,
    There is no Standard Report. Consult your ABAP Programmers and ask them to create Z-report.
    Regards,
    MH

  • I am unable to forward or write a email and send it out, seem to have lost the capability of using my address book

    I was using my emails and forwarding and answering emails, and I must have hit some button wrong, and now I am unable to pull up my address book to add names to the send box. I have restarted my computer hoping that this would fix the problem, but it did not. Please help me out. Carol

    Hi, 104t. 
    Here is the best resource when troubleshooting issues with email. 
    OS X Mail: Troubleshooting sending and receiving email messages
    http://support.apple.com/kb/TS3276
    Cheers,
    Jason H. 

  • Convert a web report into pdf and print (in BW 3.5)

    Hello gurus,
    i have few web reports ( created using WAD). i am looking for a possibility to convert a web report (viewed in a browser by a user) into pdf and print them and this should be done by pressing a button.
    Is it possible in BW 3.5 version?.
    could anyone please help me?
    Any how to docs. would be really helpful.
    thanks and regards
    kumar

    Here it is
    <HTML>
    <!-- BW data source object tags -->
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_DATA_PROVIDER"/>
             <param name="NAME" value="DATAPROVIDER_1"/>
             <param name="DATA_PROVIDER_ID" value=""/>
             DATA_PROVIDER:             DATAPROVIDER_1
    </object>
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_PROPERTIES"/>
             <param name="TEMPLATE_ID" value="ZPD_ADHOC_PAGE"/>
             <param name="MENU_BACK" value=""/>
             <param name="MENU_BACK_TO_START" value=""/>
             <param name="SUPPRESS_WARNINGS" value="X"/>
             <param name="MENU_FILTER" value=""/>
             <param name="MENU_FILTER_ON_AXIS" value=""/>
             <param name="MENU_SELECT_FILTER" value=""/>
             <param name="MENU_FILTER_ON_AXIS_CHART" value=""/>
             <param name="MENU_FILTER_CHART" value=""/>
             <param name="MENU_FILTER_DRILL_DOWN" value=""/>
             <param name="MENU_DRILL_UP_GIS" value=""/>
             <param name="MENU_DRILL_DOWN" value=""/>
             <param name="MENU_EXCHANGE_OBJECTS" value=""/>
             <param name="MENU_REMOVE_DRILL_DOWN" value=""/>
             <param name="MENU_SWITCH_AXIS" value=""/>
             <param name="MENU_HIERARCHY_NODE_DRILL" value=""/>
             <param name="MENU_HIERARCHY_DRILL" value=""/>
             <param name="MENU_HIERARCHY_STATE" value=""/>
             <param name="MENU_SORT" value=""/>
             <param name="MENU_CALCULATE_RESULT" value=""/>
             <param name="MENU_CALCULATE_VALUE" value=""/>
             <param name="MENU_CUMULATE_VALUE" value=""/>
             <param name="MENU_DISPLAY_DOCUMENTS" value=""/>
             <param name="MENU_DOCUMENT_CREATE" value=""/>
             <param name="MENU_DISPLAY_DOCUMENT_PROP" value=""/>
             <param name="MENU_DISPLAY_DOCUMENT_SELEC" value=""/>
             <param name="MENU_RRI" value=""/>
             <param name="MENU_EXPORT_TO_CSV" value=""/>
             <param name="MENU_EXPORT_TO_XLS" value=""/>
             <param name="MENU_BOOKMARK" value=""/>
             <param name="MENU_CHARACTERISTIC_PROPERTIES" value=""/>
             <param name="MENU_VALUE_PROPERTIES" value=""/>
             <param name="MENU_QUERY_PROPERTIES" value=""/>
             <param name="MENU_VARIABLE_SCREEN" value=""/>
             <param name="MENU_CURRENCY_CONVERSION" value=""/>
             <param name="MENU_ENHANCED" value=""/>
             TEMPLATE PROPERTIES
    </object>
    <HEAD>
    <META NAME="GENERATOR" Content="Microsoft DHTML Editing Control">
    <TITLE>SAP BW Reporting Print Page</TITLE>
    <link href="/sap/bw/Mime/BEx/StyleSheets/BWReports.css" type="text/css" rel="stylesheet"/>
    <script type"text/javascript">
    <!--
    //   Global Variable Definition
    var dataTable = "";
    var pageRowCnt = 0;
    var prevPage = 0;
    var ColumnCnt = 0;
    var PrintDateTimeStamp = new Date();
    var rptWidth = 0;
    //DATE STAMP FUNCTION
    function datestamp(){
               var Today = new Date()
               document.write(Today);
    function getReportTitle() {
                    var myQueryString = window.location.search;
                    var startOfRptTitle = myQueryString.indexOf("QTITLE=");
                    if (startOfRptTitle != -1)
                         var endOfRptTitle = myQueryString.indexOf("&", startOfRptTitle + 7);
                         var myTitle = unescape(myQueryString.substring(startOfRptTitle + 7, endOfRptTitle));
                         var rpttitle = "";
                         for(i=0;i<myTitle.length;i++){
                             if (myTitle.substring(i,i+1) == "+"){
                                 rpttitle = rpttitle + ' ';
                             else
                                 rpttitle = rpttitle + (myTitle.substring(i,i+1));
                    else
                         var rpttitle =  "Unspecified Query Title";
                    return rpttitle;
    queryTitle=getReportTitle();
    function getHeading2() {
                    var myQueryString = window.location.search;
                    var startOfHdr2 = myQueryString.indexOf("HDR2=");
                    if (startOfHdr2 != -1)
                         var endOfHdr2 = myQueryString.indexOf("&", startOfHdr2 + 5);
                         var myHdr2 = unescape(myQueryString.substring(startOfHdr2 + 5, endOfHdr2));
                         var hdr2 = "";
                         for(i=0;i<myHdr2.length;i++){
                             if (myHdr2.substring(i,i+1) == "+"){
                                 hdr2 = hdr2 + ' ';
                             else
                                 hdr2 = hdr2 + (myHdr2.substring(i,i+1));
                    else
                         var hdr2 =  "#";
                    return hdr2;
    header2=getHeading2();
    function getHeading3() {
                    var myQueryString = window.location.search;
                    var startOfHdr3 = myQueryString.indexOf("HDR3=");
                    if (startOfHdr3 != -1)
                         var endOfHdr3 = myQueryString.indexOf("&", startOfHdr3 + 5);
                         var myHdr3 = unescape(myQueryString.substring(startOfHdr3 + 5, endOfHdr3));
                         var hdr3 = "";
                         for(i=0;i<myHdr3.length;i++){
                             if (myHdr3.substring(i,i+1) == "+"){
                                 hdr3 = hdr3 + ' ';
                             else
                                 hdr3 = hdr3 + (myHdr3.substring(i,i+1));
                    else
                         var hdr3 =  "#";
                    return hdr3;
    header3=getHeading3();
    function getAsOfDate() {
                    var myQueryString = window.location.search;
                    var startOfRelevance = myQueryString.indexOf("ASOFDATE=");
                    if (startOfRelevance != -1)
                         var endOfRelevance = myQueryString.indexOf("&", startOfRelevance + 9);
                         var myRelevance = unescape(myQueryString.substring(startOfRelevance + 9, endOfRelevance));
                         var asof = "";
                         for(i=0;i<myRelevance.length;i++){
                             if (myRelevance.substring(i,i+1) == "+"){
                                 asof = asof + ' ';
                             else
                                 asof = asof + (myRelevance.substring(i,i+1));
                    else
                         var asof =  "";
                    return asof;
    asofDateTime=getAsOfDate();
    function getPaperSize() {
                    var myQueryString = window.location.search;
                    var startOfPaperSize = myQueryString.indexOf("PSIZE=");
                    if (startOfPaperSize != -1)
                         var endOfPaperSize = myQueryString.indexOf("&", startOfPaperSize + 6);
                         var myPaperSize = unescape(myQueryString.substring(startOfPaperSize + 6, endOfPaperSize));
                         var psize = "";
                         for(i=0;i<myPaperSize.length;i++){
                                 psize = psize + (myPaperSize.substring(i,i+1));
                    else
                         var psize =  "0";    // default if none supplied  (normal 8x11)
                    return psize;
    varPaperSize=getPaperSize();
    var PaperSizeParamString='&PSIZE=' + escape(varPaperSize);
       switch(varPaperSize){
            case "0":    // Landscape - Letter
                           var WidthMax = 910;
                           var RowsPerPageMax = 38;
                           break;
            case "1":    // Landscape - Legal
                           var WidthMax = 1190;
                           var RowsPerPageMax = 38;
                           break;
            case "2":    // Portrait - Letter
                           var WidthMax = 660;
                           var RowsPerPageMax = 54;
                           break;
    function getTotalColumns() {
       var myHTML = dataTable.rows[1].innerHTML;
       var TotalTDs = 0;
       var nextTD = 0;
       for (i=0;i<myHTML.length;i++) {
           nextTD =  myHTML.indexOf("<TD", i);
           if (nextTD != -1) {
              i=nextTD;
              TotalTDs++;
           else break;
       return TotalTDs;
    function GetPageHeadings() {
       var headingHTM = "";
       var leftspancnt = 0;
       var rightspancnt = 0;
       var headingspancnt = 2;
       if (header2 != '#') headingspancnt = headingspancnt + 1;   // adjust for extra headings
       if (header3 != '#') headingspancnt = headingspancnt + 1;  
       if (currPage > 1) {
          headingHTM += '<TR style="page-break-before:always; display:none; visibility:hidden; "><TD Colspan="' + ColumnCnt + '"></td></tr>';
       else {
          headingHTM += '<TABLE  id="THEREPORT" name="MYREPORT" cellSpacing=0 cellPadding=0 width=' + WidthMax + ' border=0>';
       if (ColumnCnt == 1) {
          headingHTM += '<TR><TD vAlign=top align=left nowrap><font Size=3><STRONG>';
          headingHTM += queryTitle;
          headingHTM += '</STRONG></font></TD><TD Rowspan="' + headingspancnt + '" align="right" vAlign="top"><input type="image" border="0" name="SAPLogo" src="/sap/bw/Mime/Customer/Images/images.jpg" alt="SAP Logo"></TD></TR>';
          if (header2 != '#') headingHTM += '<TR><TD vAlign="top" align="left"><FONT Size=1>' + header2 + '</FONT></TD></TR>';
          if (header3 != '#') headingHTM += '<TR><TD vAlign="top" align="left"><FONT Size=1>' + header3 + '</FONT></TD></TR>';
          headingHTM += '<TR><TD vAlign="top" align="left"><FONT Size=1>' + asofDateTime + '</FONT></TD></TR>';
          headingHTM += '<TR><TD vAlign="top" align="left" Colspan="2"><hr size=2 color=black align=left></TD></TR>';
          headingHTM += '<tr>' + dataTable.rows[0].innerHTML + '<TD> </TD></TR>';
       else {
          leftspancnt = Math.floor(ColumnCnt/2);
          rightspancnt = ColumnCnt - leftspancnt;
          headingHTM += '<TR><TD vAlign=top align=left nowrap Colspan="' + leftspancnt + '"><font Size=3><STRONG>';
          headingHTM += queryTitle;
          headingHTM += '</STRONG></font></TD><TD Rowspan="' + headingspancnt + '" Colspan="' + rightspancnt  + '" align="right" vAlign="top"><input type="image" border="0" name="SAPLogo" src="/sap/bw/Mime/Customer/Images/images.jpg" alt="SAP Logo"></TD></TR>';
          if (header2 != '#') headingHTM += '<TR><TD vAlign="top" align="left" Colspan="' + leftspancnt + '"><FONT Size=1>' + header2 + '</FONT></TD></TR>';
          if (header3 != '#') headingHTM += '<TR><TD vAlign="top" align="left" Colspan="' + leftspancnt + '"><FONT Size=1>' + header3 + '</FONT></TD></TR>';
          headingHTM += '<TR><TD vAlign="top" align="left" Colspan="' + leftspancnt + '"><FONT Size=1>' + asofDateTime + '</FONT></TD></TR>';
          headingHTM += '<TR><TD vAlign="top" align="left" Colspan="' + ColumnCnt + '"><hr size=2 color=black align=left></TD></TR>';
          headingHTM += '<tr>' + dataTable.rows[0].innerHTML + '</TR>';
       return headingHTM;
    function GetPageFooting() {
       var footingHTM = "";
       var leftspancnt = 0;
       var rightspancnt = 0;
       if (ColumnCnt == 1) {
          footingHTM += '<TR><TD vAlign="top" align="left" Colspan="2"><hr size=2 color=black align=left></TD></TR>';
          footingHTM += '<TR><TD vAlign="top" align="left" nowrap><FONT Size=1>Prepared: ';
          footingHTM += PrintDateTimeStamp;
          footingHTM += '</FONT></TD><TD vAlign="top" align="right"><FONT Size=1>';
          footingHTM = footingHTM + 'Page ' + currPage.toString() + ' of ' + varPageTotal.toString();
          footingHTM += '</FONT></TD></TR>';
       else {
          leftspancnt = Math.floor(ColumnCnt/2);
          rightspancnt = ColumnCnt - leftspancnt;
          footingHTM += '<TR><TD vAlign="top" align="left" Colspan="' + ColumnCnt + '"><hr size=2 color=black align=left></TD></TR>';
          footingHTM += '<TR><TD vAlign="top" align="left" nowrap Colspan="' + leftspancnt + '"><FONT Size=1>Prepared: ';
          footingHTM += PrintDateTimeStamp;
          footingHTM += '</FONT></TD><TD vAlign="top" align="right" Colspan="' + rightspancnt + '"><FONT Size=1>';
          footingHTM = footingHTM + 'Page ' + currPage.toString() + ' of ' + varPageTotal.toString();
          footingHTM += '</FONT></TD></TR>';
       return footingHTM;
    function GetReportFooting() {
       var footingHTM = "";
       footingHTM += '</TABLE>';
       return footingHTM;
    function formatToPrint() {
       var PrintHTM = "";
       PrintHTM += GetPageHeadings();
       if (ColumnCnt != 1) {
          for (var i=1;i<dataTable.rows.length;i++) {
               (currPage > prevPage)?prevPage=currPage:"";  //increment current page count
               if ((pageRowCnt + 1)>RowsPerPageMax){
                   PrintHTM += GetPageFooting();
                   pageRowCnt = 0;
                   currPage++;
               if (prevPage != currPage) {
                   PrintHTM += GetPageHeadings();
               else
                   PrintHTM += '<tr>' + dataTable.rows<i>.innerHTML + '</tr>';
                   pageRowCnt++;
       PrintHTM += GetPageFooting();       
       PrintHTM += GetReportFooting();
       return PrintHTM;
    function DisplayPrintNotice() {
    // Paper Size "0" is Letter with Landscape
    // Paper Size "1" is Legal with Landscape
    // Paper Size "2" is Letter with Portrait
    if (varPaperSize == "0") {var varMessage ="nn From your browser File Menu, select Page Setup and do the following: nn 1) Adjust the Printer Orientation to Landscape n 2) select Print menu, then select the Print button.";}
    if (varPaperSize == "1") {var varMessage ="nn From your browser File Menu, select Page Setup and do the following: nn 1) Adjust the Paper Size to Legal n 2) Adjust the Printer Orientation to Landscape n 3) select Print menu, then select the Print button.";}
    //if (varPaperSize == "2") {var varMessage ="nn From your browser File Menu, select Page Setup and do the following: nn 1) Adjust the Paper Size to Letter n 2) Adjust the Paper Source (if necessary) n 3) Adjust the Orientation to Portrait (default) n 4) Select the Okay button nn Again select the File Menu, select Print, then select the Print button.";}
    alert(varMessage);
    //window.print()
    /*   SAP BW Reporting Stylesheet Revisions        */        
    function writeStyleRevisions() {
    function writeDynamicFontRevisions(dynafont) {
    //Writes the Dynamic Stylesheet
    -->
    </script>
    </HEAD>
    <BODY>
    <TABLE  id="tp1" cellSpacing=0 cellPadding=0 width=660 border=0 >
        <TR>
        <TD vAlign=top align=left nowrap>
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="MYQUERY"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             <param name="GENERATE_CAPTION" value=""/>
             <param name="GENERATE_LINKS" value=""/>
             <param name="WIDTH" value="660"/>
             <param name="BORDER_STYLE" value="NO_BORDER"/>
             <param name="SUPPRESS_REPETITION_TEXTS" value=""/>
             <param name="BLOCK_SIZE" value="3500"/>
             <param name="SHOW_PAGING_AREA_TOP" value="X"/>
             <param name="TARGET_DATA_PROVIDER_1" value="DATAPROVIDER_1"/>
             ITEM:            MYQUERY
    </object>
        </TD>
      </TR>
    </TABLE>
    <SCRIPT type="text/javascript">
    <!--
            var tbls = document.body.getElementsByTagName("TABLE");
            for (var i=0;i<tbls.length;i++) {
                  if (tbls<i>.name == "MYQUERY"){
                        var dataTable = tbls<i>;
                        break;
            document.title = queryTitle;
            rptWidth = dataTable.clientWidth;
            rptHeight = dataTable.clientHeight;
            originalRptWidth = rptWidth;
            originalRptHeight = rptHeight;
            originalRowHeight = Math.floor(rptHeight/(dataTable.rows.length+1));
            rptPageHeightMax = 580;                                                                                //660 less basic header and footer of 80
            if (header2 != '#') rptPageHeightMax = rptPageHeightMax - 20;   // adjust for extra headings
            if (header3 != '#') rptPageHeightMax = rptPageHeightMax - 20;  
            if (dataTable.rows.length == 1) {
                ColumnCnt = 1;                //No Applicable Data found message
            else {
                ColumnCnt = getTotalColumns();
            startingFont = 65;
            varFontSize = startingFont;
            if (rptWidth > WidthMax) {
                while ((rptWidth > WidthMax) && (varFontSize > 15))
                    writeDynamicFontRevisions(varFontSize);
                    rptWidth = dataTable.clientWidth;
                    rptHeight = dataTable.clientHeight;
                    varFontSize = varFontSize - 5;
                // calculate max rows per page
                rowHeight = Math.floor(rptHeight/(dataTable.rows.length+1)) + 1;        // add 1 for 2 row heading, add 1 for padding
                RowsPerPageMax = Math.floor(rptPageHeightMax/rowHeight) - 2;   // adjust for column headings
            if (dataTable.rows.length == 1) {
                varPageTotal = 1;                //No Applicable Data found message
            else {
                totalRows = dataTable.rows.length-1;                                       // total rows less headings
                varPageTotal = Math.floor(totalRows/RowsPerPageMax);       // compute total pages
                if (totalRows != (varPageTotal * RowsPerPageMax)) {
                    varPageTotal = varPageTotal + 1;                                        // if not a complete last page, add 1 for partial page
            currPage = 1;
            document.write(formatToPrint());
            document.all.tp1.style.display = "none";
            document.all.tp1.style.visibility = "hidden";
    //        DisplayPrintNotice();
    -->
    </SCRIPT>
    <STYLE>
    input.ie55   { display: none }
    </STYLE>
    <!-- special style sheet for printing -->
    <STYLE media=print>
    .noprint     { display: none }
    </STYLE>
    <script defer>
    function window.onload() {
        if (!factory.object) {
            return
        else {
    //     factory.printing.header = "SAP"
    //     factory.printing.footer = "SAP"
            if ( varPaperSize == "2" ) { factory.printing.portrait = true; }
            else { factory.printing.portrait = false; }
            factory.printing.Print(true);
            // enable control buttons
      /*  var templateSupported = factory.printing.IsTemplateSupported();
           var controls = idControls.all.tags("input");
           for ( i = 0; i < controls.length; i++ ) {
               controls<i>.disabled = false;
               if ( templateSupported && controls<i>.className == "ie55" )
                  controls<i>.style.display = "inline";
    </script>
    <P>
    <div id=idControls class="noprint" style="VISIBILITY: hidden">
    <input disabled type="button" value="Print this page"
    onclick="factory.printing.Print(true)">
    <input disabled type="button" value="Page Setup..."
    onclick="factory.printing.PageSetup()">
    <input class=ie55 disabled type="button" value="Print Preview..."
    onclick="factory.printing.Preview()">
    <input class=ie55 disabled type="button" value="Landscape"
    onclick="factory.printing.portrait=false">
    <input class=ie55 disabled type="button" value="Portrait"
    onclick="factory.printing.portrait=true">
    </div>
    </BODY>
    </HTML>

  • Email and Printing Campaigns

    Hi All,
    We have specific requirement, where my cleint wants to create a campaign, like email or mailer campaign in CRM, But as per System Landscape of our project Email and Letter composition is sent through  system called Streamserve, where stream serve will compose the letters and emails based on the template created in CRM with the Target Group attached.
    Now how i can send the campaign details to streamserve, we have an issue because letter and email templates will eb created in CRM and streamserve can only recieve XML files.
    I am lost how i can achieve thsi solution.
    Regards
    Arun Kumar

    Hi Guys!
    Sorry for a late reply but anyhow...
    Which version of StreamServe are you using? And which version of CRM?
    Some background/general points:
    When it comes to integrating StreamServe with SAP you have a number of basic options/interfaces supported by StreamServe:
    - IDocs
    - XML (generic)
    - RDI ([Raw Data from SAPScript|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/fd07c590-0201-0010-9a82-c767532203a6]:
    - XSF ([XML Output for SmartForms|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d763c290-0201-0010-95ae-985957613e90])
    - XFP ([XML Output for PDF-based forms|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80dd00f9-7671-2910-99bb-e5a004a8e1c9])
    - XFA support (formatted PDF-based print forms)
    - SAPGOF ([OTF from SapScripts and SmartForms and ABAP List|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f036ff36-b6d4-2b10-978c-e78131dce2db])
    Additionally you could set up StreamServe as an External Output Management system in SAP Spool Administration (SPAD) (since we have support for the [XOM|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c8feb390-0201-0010-27ae-fbf9a2684cec] interface) which would let you track status of spool requests sent from SAP to StreamServe .
    The availablility of all that depends on which version of StreamServe you are using, license etc...
    Now to your specific problem....
    What I've seen some StreamServe & SAP customers do when using StreamServe with CRM is that they:
    1) Do the layout of the document/form in StreamServe
    2) Set up CRM to output generic campaign data as XML or CSV to StreamServe (or using Idocs).
    In this scenario you could, e.g. if end-users/business users are designing the documents from within CRM Web UI, use either StreamServe Composer och CompositionCenter (which are web based applications) to let end-users have an easy way of updating some sections of the marketing/campaign documents. To add new campaign messaging, images etc. You could also add a direct link to those applications from withing the CRM Web UI by doing some customizing - to let the users have an integrated view.
    1') Alternatively if you are using the Marketing/Mail Forms which is a kind of SmartForm (transaction CRMD_EMAIL) then you can set up them for print output using OTF/SAPGOF which would let StreamServe handle that data pre-formatted.
    Post back again if unclear.
    Rgds,
    Christian

  • Remittance advice through email and printing

    Hi Experts,
    Our requirement is that email needs to be triggered for all remittance advices and simultaneously printing needs to carried out for those vendors with no email address or invalid email address. We have activated BTE 2040 to trigger the email and it triggered the email(for vendors wth email addr only) and sent it to the spool( for vendors with and without email addr) . Now our requirement is to select only few vendors from the spool for printing. How do we go about it please guide .
    Thanks and regards,
    Ashwin G

    Hi,
    For this first you have to maintain the respective email ids for the vendors/payees in your vendor master
    Secondly, create a zmail program wherein once the ACH payments are executed, the z program should trigger an email to the respective payees. You have to co ordinate with your abaper and provide him the FS and requirements so that he can develop the required program. Assign a Tcode to the program which should have selection parameters Run date and identification ) to trigger email to respective payee in ACH payment list.
    Hope this clarifies.
    regards,
    radhika

  • Unable to schedule WebI  reports

    I am running BOE  Version 3.1
    Implemented a cluster of 2 servers.   Am able to schedule reports when I run as Administrator. When I log in as any other user, the scheduled reports go into a pending state.  For testing purposes, the user has been given full control similar to the Administratior. Same resuls though..
    The log file WIReportServer.bin_4414_2009_11_15_14_43_31_484_trace.log has this error:
    SystemHelpers.cpp:540:static bo_utf8string Helpers::Registry::expandUserDocumentDir(bo_utf8string&): TraceLog message 34
    2009/11/16 12:20:36.476|>>|E| | 4414|1175346096| |||||||||||||||in static bo_utf8string Helpers::Registry::expandUserDocumentDir(bo_utf8string&) at SystemHelpers.cpp:540: unable to resolve the USER_PROFILE_APP_DIR variableSystemHelpers.cpp:532:static bo_utf8string Helpers::Registry::expandUserDocumentDir(bo_utf8string&): TraceLog message 35
    2009/11/16 12:22:21.551|>>|E| | 4414|1175346096| |||||||||||||||in static bo_utf8string Helpers::Registry::expandUserDocumentDir(bo_utf8string&) at SystemHelpers.cpp:532: unable to resolve the USER_DOCUMENTS variable
    SystemHelpers.cpp:540:static bo_utf8string Helpers::Registry::expandUserDocumentDir(bo_utf8string&): TraceLog message 36
    2009/11/16 12:22:21.551|>>|E| | 4414|1175346096| |||||||||||||||in static bo_utf8string Helpers::Registry::expandUserDocumentDir(bo_utf8string&) at SystemHelpers.cpp:540: unable to resolve the USER_PROFILE_APP_DIR variable
    Edited by: tekuser on Nov 20, 2009 5:33 PM

    Hi Nicolas,
    When you saved your large report, did you keep the original data in it? If so purging the data will reduce the size of the report template. This may improve performance as I think when you click the schedule button, the template is copied to the cache area - and if your report template is contains the a large amount of data the copy may be slow.
    It is only a guess but I would be interested to know if it makes a difference
    Regards
    Alan

  • Unable to Schedule BIP report in OBIEE 11g

    Hi all,
    When we schedule a BIP report from our new Production Environment(11.1.1.6.6) , we are getting the below error in output
    Document generation failed
    [INSTANCE_ID=pxprhlwcobia05.wyn.wyndhamworldwide.com.1362571918550] [OUTPUT_ID=1202]/tmp/bip549240747148162266.tmp (No such file or directory)java.io.FileNotFoundException: /tmp/bip549240747148162266.tmp (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:138)
    at java.io.FileInputStream.<init>(FileInputStream.java:97)
    at oracle.xdo.enterpriseScheduler.bursting.BurstingReportProcessor.
    Can anyone suggest please....
    Regards,
    Vinay

    you should not delete the file under /tmp/bip* if its not deleted then check the space under /tmp mount to see if it has got sufficient space to produce the bip*.tmp file
    mark if it helps

Maybe you are looking for

  • Need help with n8 dialer and voicemail screens - e...

    N8 questions.  In this scenario, you call your VM and as y ou are listening to the messages, you need to open the dialer to delete/save messages, then have to close the dialer and then choose end call. There are 6 steps (open dialer, call, open diale

  • Gpresult html report creation not working for computer settings

    When I try and run a gpresult. all I get is this at the command prompt (as administrator).  gpresult /h c:\report.html ERROR: The error is particulary helpful ;-) I can successfully create a xml file with /x report.xml . Its a pain to read though. Al

  • How to unload DLL

    Hello, I am using LV 8.2 to call a DLL but I am facing a unload DLL problem:  the result can not be cleared from the memory even after I closed the VI.  Only way to unload the DLL is to shutdown the LV. I was told to using VI server to call a subVI w

  • Mds process shoots up CPU and Memory

    I upgraded to OS X Mavericks about a month ago and ever since, have had to disable Spotlight due to shooting CPU and Memory. The only way to get my Mac to a usable state is to add Macintosh HD to Spotlight privacy list to prevent indexing. The moment

  • Close window with a keystroke?

    Is it possible to close out a window using a keyboard shortcut? also for that matter is there a list of keyboard shortcuts for Leopard?