Webi notification via sdk

hi
I'm trying to write a jsp with BO 3.2 java sdk.
the jsp should schedule a webi doc to disk and send a notification if it fail or success.
I did the schedule to a disc location but could not manage to send the notification
can someone share a code or give me direction how to do it
Thanks

Use this code. It sets the notification on failure, for success you can just add similarly. Make sure SMTP destination and notification is enabled for the job server.
schedInfo = oInfoObject.getSchedulingInfo();
        schedInfo.setRightNow(true);
        schedInfo.setType(CeScheduleType.ONCE);
        //Get the Notifications from the SchedulingInfo Object
        INotifications notifications = schedInfo.getNotifications();
        //Get the Failure Notification object
        IDestinations failureDestination = notifications.getDestinationsOnFailure();
        //Adding a destination to the notification and then setting its options
        IDestination dest = failureDestination.add("");
        //Query the CMS database to return the SMTP Plugin for the report
        IInfoObjects smtpResults = iStore.query("SELECT * FROM CI_SYSTEMOBJECTS WHERE SI_PARENTID = 29 And SI_NAME = 'CrystalEnterprise.SMTP'");
        IDestinationPlugin destPlugin = (IDestinationPlugin)smtpResults.get(0);
        //Set SMTP Options
        ISMTPOptions smtpoptions = (ISMTPOptions)destPlugin.getScheduleOptions();
        smtpoptions.setSenderAddress( from );
        smtpoptions.setSubject( subject );
        smtpoptions.setMessage( body );
        //Add the addresses to send the email to
        smtpoptions.getCCAddresses().add(cc);
        smtpoptions.getToAddresses().add(to);
        dest.setFromPlugin( destPlugin );
     //Schedule the report
        iStore.schedule(oInfoObjects);

Similar Messages

  • How to use an iPad 2 for web search (via 3G only) while using AirPrint via Airoprt express wifi (NOT connected to the internet)

    Heres the setup: I have an IOS 7 iPad 2 that I want to use 3G only for web searches/ emails while using an Airport Express generated wifi bubble (without any connected internett) to print web seraches via airprint to a wifi printer.
    The problem: the ipad deafults to searching via the AE's wifi and vainly waits for the non existent interent to connect. It ignores the available 3G internet.
    The workaround: a) turn off the AE's wifi, search the web via 3G b) once I have something to print, turn the wifi back on and print via airprint and the AE's wifi to the printer.
    The question: Is there a way to turn off the AE's internet access. Using Airport utility, I have tried setting Bridge mode and static IPs to no avail. There is no turn-the-internet-off tick box.
    In the ideal setup I would like the ipad 2 to search the web via 3G only (straight away versus waiting vainly for the AE to find it!!) and then print the results via the AE's wifi and airprint without having to toggle wifi on and off all the time.....
    Thanks in advance,
    Bill...

    Hi,
    You can consider to configure the Forefront TMG Arrays or NLB.
    Planning for Forefront TMG server high availability and scalability
    http://technet.microsoft.com/en-us/library/dd897010.aspx
    Thanks.
    Jeremy Wu
    TechNet Community Support

  • Pdf error in printing in WEB UI via transaction launcher

    Hi Experts,
    We have created a custom report program in CRM 2007. We are launching it from WEB UI via transaction launcher. When we try to print the report output, it displays the standard print dialog box. The moment we select output device = LOCL for local printer and click on Continue button,it launches two new windows:-
    a) One window is for WEB UI with message-The formatted data will be displayed in this window; wait and do not close the window
    b) Second window is ADOBE PDF window with information message-Adobe Reader could not open 'frontend_print[1].pdf' because it is either not a supported file type or because  the file has been damaged.
    In the end, user is not able to print the report. Now my doubts are:-
    What is the link between print button and pdf? Why is it going to ADOBE? Something to do with WEB UI? If we launch SAP GUI, go to SE38 and execute the report program, we are able to print the output successfully.
    Please give me some pointers to proceed forward.
    Thanks
    Rohit

    HI Rohit,
    My blog can answer your questions.
    http://wiki.sdn.sap.com/wiki/display/CRM/AdobeFormsin+WebUI
    Cheers, Satish

  • Return NULL when invoke Web Service via UTL_DBWS

    Hi all,
    right now, i'm using UTL_DBWS to acces Web Service via database.. but when i'm trying to get data from WEB SERVICE, using utl_dbws.invoke , i got NULL value.
    It happened if The result more than Varchar2 / 32767 byte.
    i'have tried to change code by :
    result := sys.utl_dbws.invoke(l_call, l_input_params);
    P_clob := sys.anydata.accessCLOB(result);
    The Output IS NULL value even if the data was less than Varchar2 or 32767 byte..
    this is my script looks like ::
    declare
    service sys.utl_dbws.SERVICE;
    l_call sys.utl_dbws.CALL;
    result ANYDATA;
    wsdl_url VARCHAR2(1024);
    service_name VARCHAR2(200);
    operation_name VARCHAR2(200);
    input_params sys.utl_dbws.ANYDATA_LIST;
    p_out VARCHAR2(32767);
    p_xml XMLTYPE;
    p_clob CLOB;
    begin
    wsdl_url := 'http://127.0.0.1/Exercise/WSDL2.php?wsdl';
    service_name :='{urn:hellowsdl}hellwsdl';
    operation_name := 'getData';
    service := sys.UTL_DBWS.create_service (
    wsdl_document_location => URIFACTORY.getURI(wsdl_url),
    service_name => service_name);
    l_call := sys.utl_dbws.create_call(
    service_handle => service,
    port_name => null,
    operation_name => operation_name
    input_params(1) := ANYDATA.ConvertVarchar2('DOCCODE');
    result := sys.utl_dbws.invoke(l_call, l_input_params);
    p_out := sys.anydata.accessVarchar2(result);
    sys.UTL_DBWS.release_call (call_handle => l_call);
    sys.UTL_DBWS.release_service (service_handle => service);
    end;
    Thanx for Any Help

    The basics are simple:
    - format a valid SOAP envelope
    - use UTL_HTTP to make the call
    - process the response (typically XML output)
    Sample source code in {message:id=4205205}.

  • Invoking Siebel CRM OnDemand Web Service via BPEL

    I'm trying to invoke a Siebel CRM OnDemand Web Service via BPEL. Basically, the Siebel guide says to post to a url with user/pwd to get a session ID returned from a cookie. I did that using embedded java and have the session ID as a variable in my BPEL process. My problem is with now calling the Web Service to perform the action. I have a WSDL from Siebel, but the guide says to use an HTTP post with the session ID in the url and the XML in the body. How do I do that? Shouldn't the WSDL handle that when I create the Partner Link? Do I need to use more embedded Java for this or can I set up a Partner Link? I created a Partner Link and it shows the methods I want to use, but I get the following error when I try to call it because I don't know where to add the session ID:
    <ErrorCode xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">SBL-ODU-01006</ErrorCode>
    <ErrorMessage xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">Internal Error: Session is not available. Aborting.</ErrorMessage>
    Any help would be GREATLY appreciated. Please let me know if you need more information.
    THANKS!

    The Siebel OnDemand web services can accept the siebel session token in the URL. Append ';jessionid={%sessionIdFromCookie%}' to the end point. Obviously this has to be done dynamically. Refer to the article called 'Making BPEL Processes Dynamic' (http://www.oracle.com/technology/pub/articles/bpel_cookbook/carey.html) pay particular attention to the 'Eliminating address dependency at run time' section.
    Peter

  • I used to be able to double click the home button to choose to receive notifications via iPhone speaker instead of the Bluetooth. With ios7, that's gone as well as any obvious way to do it.  I don't wear my Bluetooth on my ear every minute of the day!!!!

    I used to be able to choose to receive notifications via iPhone speaker in ios6 by double clicking the home button.  Ios7 took that away and I cannot see how to do it at all.  I don't have my Bluetooth in my ear constantly!!!

    If you are getting Siri when you double tap, then your home button must be sticking. Siri comes up when you hold the home button. Try tapping quickly twice. When that happens, the multi-tasking list comes up and you will see the app icon and then a thumbnail, or reduced size view of the app above it. You put your finger on that thumbnail and swipe upwards with your finger.
    For that issue, you might want to do a reset of the phone. Hold the sleep/wake and home buttons together until you see the Apple logo and then release. The phone will reboot. This will not affect your data.
    To be honest, your novel is a little difficult to read, and I think you put too much information in there, and a lot of it is unnecessary. Be to the point and just add information necessary to understand the issue.

  • Calling web service via SSL

    Hi,
    I do not succeed in calling a web service via SSL from within a Web Dynpro application.
    Current settings of my logical port:
    Target Address: https://...
    Authentication: HTTP authentication, basic (username/password)
    I do call methods _setUser and _setPassword to set userid and password before calling method execute() of my modelclass.
    On calling method execute(), I get message "Connection closed by remote host".
    Any suggestions ?
    Many thanks.
    Jorgen

    Can you check the following?
    1) Did you install the SAP Cryptographic toolkit for Java available from service.sap.com?
    2) Did you install the "Java Cryptography Extension (JCE)
    Unlimited Strength Jurisdiction Policy Files 1.4.2". For Sun they are available here: http://java.sun.com/j2se/1.4.2/download.html (last item on page)
    3) How is the SSL server configured? Does it require client authentication? In this case you must send a client certificate.

  • Can We enter Sales Invoice and Incoming Payment VIA SDK

    Dear Experts
    We have to develop an integration bridge with retrieve data from excel sheet and upload in SAP , i want to clear is it possible to enter sales invoices and incoming payment via SDK?. If it is possible please guide me about objects name and any reading material for SDK development.
    Thanks

    Hello,
    Yes it is possible with 2 steps:
    1. you post the invoice
    2. you post the payment
    I have already posted into the forum several examples, you may check them:
    For invoice + payment
    for payment only:
    Regards
    János

  • Invoke Siebel OnDemand Web Service via BPEL

    Hi,
    We are trying to invoke Siebel OnDemand Web Service via BPEL.
    We have followed the steps as mentioned in
    http://www.oracle.com/technetwork/topics/ofm-siebel-blog-postings-092216.html
    But still we are unable to get the Session Id.
    Do we need to opne any port to resolve this issue or do we have any other way to get the session ID.
    Please let me know if there is any solution to this...
    Thanks

    Thanks for the update..
    We are trying to invoke the CRM On Demand session ID using the BPEL. It seems the we are having some problem with the URL
    https://secure-ausomxapa.crmondemand.com/Services/Integration?command=login
    => `Integration?command=login
    we are trying to access the URL from our SOA server using wget and we are getting following result.
    [XXXXXXXXXXXXXXX ~]$ wget https://secure-ausomxapa.crmondemand.com/Services/Integration?command=login
    --07:32:19-- https://secure-ausomxapa.crmondemand.com/Services/Integration?command=login
    => `Integration?command=login'
    Resolving secure-ausomxapa.crmondemand.com... 141.146.149.68
    Connecting to secure-ausomxapa.crmondemand.com|141.146.149.68|:443...
    We are expecting that we are unable to access the URL using 443 port.

  • Where Clause - Modification via SDK

    Good morning,
    We are currently experiencing quite a large performance impact as our record selection formulas, and parameters are not hitting our database (in where clause) and therefore a large amount of data is being pulled back and then filtered out at the report level. Was hoping someone might be able to provide some information on how we could either dynamically append to the where clause via sdk, or devise optional workaround to make sure our selected parameters are passed to the db.
    Environment
    Solaris, with custom User Interface that passes information to crystal reports via SDK. Crystal Reports (2008) with Universe as datasource.
    Thanks,
    Ian S

    Good morning,
    We are currently experiencing quite a large performance impact as our record selection formulas, and parameters are not hitting our database (in where clause) and therefore a large amount of data is being pulled back and then filtered out at the report level. Was hoping someone might be able to provide some information on how we could either dynamically append to the where clause via sdk, or devise optional workaround to make sure our selected parameters are passed to the db.
    Environment
    Solaris, with custom User Interface that passes information to crystal reports via SDK. Crystal Reports (2008) with Universe as datasource.
    Thanks,
    Ian S

  • Accessing Web Service via Bluetooth

    Hi,
    I'm developing a client for a web service which is running on my system.
    Can I access this web service via bluetooth.
    Thanks

    I can give you one solution not direct but in some tricky way you can achieve what you are trying to do.
    1. Built a client application in Java and run it as a service in your laptop and will be communicate with your application at the mobile end.
    2. Send some triggering command to that application(the service you are running in laptop) from your mobile which will access the web service and perform the action you want your web service to do and send the result over bluetooth to your mobile app.
    In this case instead of using the bluetooth directly to access the web service you are making one proxy application to perform. Hope this solution will help you out to move ahead. Let me know whether it works for you or not.
    Shan!!!

  • Calling Data Services Web Services via Oracle Triggers?

    Hi,
    Has anyone called Data Services web service via an oracle trigger? If so i'm interested in your experiences with volume and perfromance.
    Thanks
    Richard

    Hi,
    Has anyone called Data Services web service via an oracle trigger? If so i'm interested in your experiences with volume and perfromance.
    Thanks
    Richard

  • Problem displaying Web charts via Excel 2003

    Hello,
    While displaying a Web template via a hyperlink in <b>Excel 2003</b> (the hyperlink contains the template's URL), all charts in the template aren't displayed. The small red x appears in the chart's area. Charts are displayed only after refreshing the browser.
    Same scenario works fine with Excel XP !!!
    No problem occures when openning the same URL directly in the browser, so I guess the problem relates somehow to the hyperlink.
    Any ideas?
    Thanx.

    Strange...
    I can think of a hack: Have an intermediate html page that gets displayed first anytime the display type (html/xls) is changed. Just a blank html page with a redirect that directs to the source you really want to display.
    Should be transparent, and it should clear up your problem as you described it.

  • Sending SMS notification via business workflow

    Hello Experts,
    I want to send SMS notification fron business object BUS2078
    via worflow please help me out process in ABAP program.

    Hi,
    Please Check this Blog,
    /people/ronen.fox/blog/2007/12/06/sending-sms-notification-via-business-workflow
    Thanks.

  • Is it possible to call a web service via UWL XML configuration?

    Hello
    Is it possible to call a web service via UWL XML configuration?
    If yes then an example would be great.
    Roy

    Hi Roy,
    Yes, yes it is possible.
    Yesterday only I came across the following document which will answer your questions:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20f4843e-314f-2a10-2a88-8c4afa20dda6?overridelayout=t…
    ~Ashvin

Maybe you are looking for

  • Problem using PSE9 Brush Tool!

    I am experiencing a problem using the PSE9 Brush Tool. The color does produced by the brush not match the color of the sample picked by the Eyedropper Tool, Painting near the area where the sample was picked-up results in a much darker color.

  • Starts up then goes black

    When I turn on my Macbook Pro it starts, shows the apple begins to load then shuts off, screen goes black.  Help?!?

  • Will SB PCI 128 Support CDRW and DVDRW Earphone Listeni

    Hey Gang, I was able to listen to my headphones privately on my CDROM. The jack was located on the front of the device just below the cdrom turntable. My soundcard has been my SB PCI 28. My problem is that since I got rid of the old cdrom and upgrade

  • Sm36 job with unwanted data

    hi experts, i am using the following functions in my ALV. 1.REUSE_ALV_FIELDCATALOG_MERGE 2.REUSE_ALV_BLOCK_LIST_INIT 3.REUSE_ALV_BLOCK_LIST_APPEND 4.REUSE_ALV_BLOCK_LIST_APPEND while running alv thru se38 there is no unwanted data. while running the

  • Any Function Module which will give user id or position

    Hello Friends,    is there any standard function module which will give the attribute position id or user name if i pass the 'attribute id as CNT' with value of the CNT. i know there is a standard function module 'BBP_READ_ATTRIBUTES'. but this FM wi