Odi custom gmail procedure / Essbase cdf or udf

I Just posted this in the Essbase forums read below.
Send mail in ODI using Gmail CredentialsDW Team
i created a custom odi email routine based on this forum.  My question is can I utilize pieces of the procedure to create or use the .java files to compile a jar file that I can use towards an Essbase CDF? Or can I call the mail.jar file used in the routine but copy to the Essbase location and register the cdf?

I Just posted this in the Essbase forums read below.
Send mail in ODI using Gmail CredentialsDW Team
i created a custom odi email routine based on this forum.  My question is can I utilize pieces of the procedure to create or use the .java files to compile a jar file that I can use towards an Essbase CDF? Or can I call the mail.jar file used in the routine but copy to the Essbase location and register the cdf?

Similar Messages

  • Custom ODI email procedure / Essbase CDF

    Send mail in ODI using Gmail CredentialsDW Team
    i created a custom odi email routine based on this forum.  My question is can I utilize pieces of the procedure to create or use the .java files to compile a jar file that I can use towards an Essbase CDF? Or can I call the mail.jar file used in the routine but copy to the Essbase location and register the cdf?

    John,
    Now I did some research. I don't think it's registering. This is the .java it's also in the jar.
    package com.oracle.essbase.cdf;
    import java.util.Properties;
    import javax.mail.Message;
    import javax.mail.MessagingException;
    import javax.mail.PasswordAuthentication;
    import javax.mail.Session;
    import javax.mail.Transport;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeMessage;
    public class SendMailNEW {
      public static void main(String[] args) {
      final String username = "[email protected]";
      final String password = "PASSWORD";
      Properties props = new Properties();
      props.put("mail.smtp.host", "smtp.gmail.com");
      props.put("mail.smtp.socketFactory.port", "465");
      props.put("mail.smtp.socketFactory.class","javax.net.ssl.SSLSocketFactory");
      props.put("mail.smtp.auth", "true");
      props.put("mail.smtp.port", "465");
      Session session = Session.getDefaultInstance(props,
      new javax.mail.Authenticator() {
      protected PasswordAuthentication getPasswordAuthentication() {
      return new PasswordAuthentication(username,password);
      try {
      Message message = new MimeMessage(session);
      message.setFrom(new InternetAddress("[email protected]"));
      message.setRecipients(Message.RecipientType.TO,
      InternetAddress.parse("[email protected]"));
      message.setSubject("Mail From ODI");
      message.setText("Its a Mail from ODI Studio.\nThank You");
      Transport.send(message);
      System.out.println("Done");
      } catch (MessagingException e) {
      throw new RuntimeException(e);
    This the .mxl calling that .jar file:
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Register function JSendMailNEW
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    CREATE OR REPLACE FUNCTION '@JsendMailNEW'
    AS 'com.oracle.essbase.cdf.SendMailNEW.main(String[])'
    SPEC '@JSendMailNEW(listOfStrings)'
    COMMENT '';
    I have added this into both udf.policy files:
    // SendMailNEW.jar.
    grant codeBase "file:${essbase.java.home}/..java/udf/SendMailNEW.jar" {
       permission java.security.AllPermission;
    Any ideas what I am missing or what I can correct?     

  • ODI - Can not reverse Essbase data type?

    In ODI topology, I go to the ODI Topology->Technology->Hyperion Essbase, and I want to run the data type reverse as to the sample.basic essbase, the error message:" java.sql.SQLException: Driver must be specified". But I find the driver file in the odi driver folder, which is called "ess_es_server.jar", what happens? Besides, I have set up agent, and use agent to reverse the sample essbase in designer, it is still freezing the computer. Please advise, thanks!
    Detail Error Message:
    java.sql.SQLException: Driver must be specified
         at com.sunopsis.sql.SnpsConnection.a(SnpsConnection.java)
         at com.sunopsis.sql.SnpsConnection.testConnection(SnpsConnection.java)
         at com.sunopsis.dwg.reverse.Reverse.a(Reverse.java)
         at com.sunopsis.dwg.reverse.Reverse.a(Reverse.java)
         at com.sunopsis.graphical.l.pg.e(pg.java)
         at com.sunopsis.graphical.r.bv.actionPerformed(bv.java)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1223)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1264)
         at java.awt.Component.processMouseEvent(Component.java:6263)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
         at java.awt.Component.processEvent(Component.java:6028)
         at java.awt.Container.processEvent(Container.java:2041)
         at java.awt.Component.dispatchEventImpl(Component.java:4630)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Component.dispatchEvent(Component.java:4460)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4574)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
         at java.awt.Container.dispatchEventImpl(Container.java:2085)
         at java.awt.Window.dispatchEventImpl(Window.java:2478)
         at java.awt.Component.dispatchEvent(Component.java:4460)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Edited by: user2571802 on Apr 21, 2010 6:54 PM
    Edited by: user2571802 on Apr 21, 2010 6:56 PM

    Hi,
    In the reverse tab, make sure you select customized and choose "RKM Hyperion essbase.." as your KM.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Grant execute to all custom stored procedures, not quite working

    I would like to grant execute permissions on all custom stored procedures to a group and have tried using this:
    USE myDB
    select 'GRANT EXECUTE ON ['+name+'] TO [mydomain\mydb] '  from sys.objects  where type ='P' and is_ms_shipped = 0
    It seems to execute without error, I see the full list of stored procedures I've created listed like this:
    GRANT EXECUTE ON [procUserInsert] TO [mydomain\mydb]
    However the stored procedure I added earlier, which didn't have any explicit rights set for it, does not show that the execute permission has been granted. Other stored procedures, where I had already granted execute to the group, remain as they were (which
    is expected). I'm viewing permissions via ssms, selecting the new stored procedure, then properties, permissions. If the grant failed there ought to be an error message...I don't get it. This is sql server 2005.

    It seems like you were only printing the statement (SELECT), but it is unclear if you executed them.
    You could try granting EXECUTE permission at either the DB scope or SCHEMA scope. That would grant EXECUTE on all modules (i.e. SPs, UDFs, etc.) at the chosen scope, including modules created in the future. For example:
    -- Grant EXECUTE permission on all DB
    GRANT EXECUTE TO [myDomain\mydbGroup1]
    go
    -- Grant EXECUTE permission on schema mySchema
    GRANT EXECUTE ON SCHEMA::[mySchema] TO [myDomain\mydbGroup2]
    go
    I hope this helps.
    BTW. The way you were creating the dynamic SQL for granting permissions to SPs individually is subject to 2<sup>nd</sup> order injection attacks. You should use quotename(name) in order to escape object names.
    -Raul Garcia
     SQL Server Security
    This posting is provided "AS IS" with no warranties, and confers no rights.

  • Customer pricing procedures As default value in BP Transaction (CRM)

    Hi,
    Is it possible to set a default Customer pricing procedure in transaction BP when choosing a Sales Area?
    My problem is that we set just one Customer pricing procedure and the field is set as compulsory. But in some cases users manage to save the BP without precising the customer pricing procedure. Since it"s compulsory the replication to SD ends as a Bdocs notice partially sent BP to SD.
    Most users have a red messaging saying they have to fill in the field with a "standard' customer pricing procedure but sometime they find a way to switch to next sales area without setting this information.
    Thus came to my mind to set a default Customer pricing procedure so that users wont forget.
    Is it possible?
    Many Thanks

    Hi
    did u try to have a look into the BAdI BUPA_INITIAL_SCREEN_IMP??
    I think your requirement shoul be anyway intercepted by a BAdI.
    Regards
    CArmine

  • Making Customer Pricing procedure mandatory in BP Role-CRM 5.0

    Hi
    Our requirement is to make Customer Pricing procedure mandatory in BP Role "Sold to Party"-CRM 5.0. I have configured for the same in IMG Field Grouping. Now when a end user goes for BP creation & goes to Sales area maintenance then an error message is displayed for the same.
    But if only general data is maintained then this message is not displayed. Now requirement is to display an error message if a person leaves without maintaining sales data.
    Please help me in resolving this.
    Thanx in advance.
    Cheers
    Hits

    In the completeness procedure detail, use the object Pricing and field Customer pricing procedure. relevance header / item or both, message category - Error
    Hope this helps
    <b> <i> IceCube </i> </b>

  • Customer pricing procedure in Sales transactions

    Hello Experts,
    In our CRM 2007 we have already customized the pricing procedure of the sales transactions for each sales area  / document pricing procedure / customer pricing procedure.  But creating sales transactions, our business needs system to take in consideration the customer pricing procedure of the partner in role Ship to party instead of the partner in role Sold to party.  Could anybody help telling how to set it?
    Many thanks in advance!

    well... maybe my question is not clear...  the thing is that as a sample, we have a:
    1.Sales area = O 50000XXX
    2.Sales document type with Pr. Procedure = A
    3.SoldTo with Cust Pr. Procedure = 1
    4.ShipTo with Cust Pr. Procedure = 2
    When we create a sales document, system determines the Pr. Proc. of the doc as it was customized in view CRMV_PRCPROC_DET:
    Sales area + Pr. Procedure of the sales doc type + Cust Pr. Procedure = Pr. Procedure of the sales doc
    In our customizing we would like to have 2 rows (following the example)
    O 50000XXX + A + 1 = ZPROC1
    O 50000XXX + A + 2 = ZPROC2
    We would need that system checks whether there is any Cust Pr Procedure in the master data of the ShipTo partner. 
    - If yes, the Pr. Procedure of the sales doc = ZPROC2
    - If not, the Pr. Procedure of the sales doc = ZPROC1
    but I have not managed to find where to adjust it (nor custom nor BADI). is there any idea or comment?

  • How to use the Stored Procedure to update my UDF

    I want to use the Stored Procedure to update my UDF U_InstokCS when the warehouse "OnHand" was changed. The UDF is display the stock by cases. I copied the query as follewing. I couldn't see any thing in the UDF after I made some transactions. Can anybody tell me why? How to continue it?
    if @transaction_type in ('A','U','D') and @Object_type='64'
    begin
    Update OITW
    Set U_InstokCS = OnHand/(Select T0.NumInBuy from [DBO].[OITM] T0
    Where T0.ItemCode = @list_of_cols_val_tab_del)
    Where ItemCode = @list_of_cols_val_tab_del
    end
    Thanks.
    Ying Zhang

    Ying,
    The use of any stored procedures against the SAP Business One database is not allowed per SAP Support.  There is not an instance where you can use SP's.  The ONLY SP that you are allowed to use is the SBO_SP_TransactionNotification SP that comes with SAP Business One itself. You can read about the use of this SP from this article...
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e991e2b9-0901-0010-0395-ef5268b00aaf
    Eddy

  • Exception handling in Custom Login procedure

    Hi,
    I have a custom login procedure. Now instead of handling the possible exceptions in a custom way too, I want to use the syntax of the exception handling API (probably the one in the PDK) the default login procedure uses. Can someone point me to the values the default login procedure uses?
    Thanks, Tony

    Tony,
    The default login page (the source of which is now unwrapped in 3.0.0), uses the following snippet of code to report the errors:
    if p_error then
    wwerr_api_error_ui.show_inline_html;
    end if;The errors are stacked when the ls_login procedure is executed, and the next time the login page is called up, it just displays the stacked errors.

  • Can Custom Authentication Procedure Change APP_USER?

    I have a custom authentication procedure that authenticates the user against Active Directory. In the procedure, I look up the user's proper case name, using the non-case-sensitive user name they typed in.
    I'm doing this:
    HTMLDB_CUSTOM_AUTH.set_user(p_user => s_username);
    OWA_COOKIE.send(NAME => 'LOGIN_USERNAME_COOKIE', VALUE => v('APP_USER'));
    The cookie seems to be correct, but the area at the upper right of each page doesn't show the proper case username and the client_id column of the dba_audit trail view doesn't show it either.
    What am I doing wrong?
    -F

    Hi Scott.
    In my authentication scheme, I have this for my Athentication Function:
    return dar_authentication_pack.get_user_authenticated_func
    The function is declared like this in the package specification:
    FUNCTION get_user_authenticated_func(
    p_username IN VARCHAR2,
    p_password IN VARCHAR2,
    p_preserve_case IN BOOLEAN DEFAULT True
    RETURN BOOLEAN;
    In my login page, the "Login" Page Process is this:
    begin
    wwv_flow_custom_auth_std.login(
    P_UNAME => :P101_USERNAME,
    P_PASSWORD => :P101_PASSWORD,
    p_preserve_case => True,
    P_SESSION_ID => V('APP_SESSION'),
    P_FLOW_PAGE => :APP_ID||':4'
    end;
    I'd like to be able to change APP_USER from what the person entered to the Proper Case version of it that I have found in Active Directory. What is the best way to do this?
    -F

  • Condition PR00 not appeared in customized pricing procedure

    Hi Gurus
    I have customized Pricing Procedure RVAA01 to ZVAA01.
    ZVAA01 is already consists of PR00 & PB00 condition types.
    I have also maintained the condition record (VK11) for the sales orgDist. ch material+customer combination.
    But Billing doesn't show the PR00 condition at all.
    How to fix this issue.
    Regards
    RG

    hi  R G ,
    Please whether the system is using the same pricing procedure for billing document that of the sales order- (i am assuming that in sales order it is populating the conditon typwe pr00)by going to the condtions tab in vf01
    if yes it should flow check in ovkk what is the pricing procedue that is allocated to the combination of sales areadoppcupp(cust pric proc.),
    here dopp(doc pric proc) of sales order and bill should be same like A
    upadate me with the above findings so that i can propse the other solution
    revert if helpful
    Mohit Singh

  • Customer pricing procedure in CRM

    Can anyone please let me know how to find customer pricing procedure in CRM that is assigned to a particular customer.

    Hi
    Customer pricing procedure is assigned to a BP in the sales area data under the billing tab.
    Check for any bp using the following steps
    1. Use tcode BP and enter the BP number.
    2. Choose the role Sold to Party
    3. Choose the tab Sales Area data.
    4. Choose your sales area and open the Billing tab.
    Here you can see the customer pricing procedure assigned to the BP.
    Hope this helps
    Regards
    Rekha dadwal

  • Customer Pricing Procedure error

    Hello Gurus,
    While creating inquiry document in SAP SD I am getting error " Customer Pricing procedure not determined".
    What to do?
    Please Help

    Hi,
    Please follow the path as below:
    Firstly you need to configure pricing procedure,
    1) please go to spro>Sales and distribution>Basic functions>pricing>Prcing control>define and assign pricing procedures> maintain pricing procedure and assign your conditions there regarding of your procedure.
    2) customer pricing procedure, and document pricing procedure have standard options. ı think you do not need to maintain new one for them. but you should assign your document procedure to order type and billing type from spro>Sales and distribution>Basic functions>pricing>Prcing control>define and assign pricing procedures> Assign document pricing procedures to order types and Assign document pricing procedures to billing types.
    3) Moreover, you need to maintain determination for sales doc. as combination of your pricing procedure+ sales orgdistChdvdoc. pricing procedurecustomer pricing proc.+condition type from spro>Sales and distribution>Basic functions>pricing>Prcing control>define and assign pricing procedures>Define Pricing Procedure Determination.
    Finally, maintain your condition records from VK11 regarding of your access sequence. and maintain customer pricing procedure to your customer master  from sales area sales tab in customer master data from XD02.
    Please check these configurations and I hope these will solve your problem.
    Regards,

  • Customer pricing procedure is changed after creating order

    Hi Gurus,
    the issue is   we have created an order and pricing procedure is determined in the order. Now the user wants to get a new pricing procedure determined for this order. So he have changed the Customer pricing procedure in Customer master data. He assumed that new pricing procedure will be determined for the order which is already created. But it didnt happen. As per my knowledge pricing procedure canot be redetermined for already created orders. My question is
    how to redetermine the pricing procedure for the order ? is there any way to get a new pricing procedure for the order in change mode?
    what should we do. we need to delete the order and create a new one or is there any way to get the new pricing procudure for the order?

    Hi ,
       basically pricing prodeure is determined by a combination of three things
           Doc pricing procedureCustomer Pricing proceduresales area .
       You can see this using transaction OVKK. So you have to consider all the three things.
    In sales doc we have the option of updating the pricing. If you do that i think it will redetermine the procedure and your issue will be solved.
    Thanks,
    Shyam

  • ASO Custom Calculation (Procedural)

    Do custom calculations support using the ROUND mdx function? I know member functions are not supported but what about ROUND?
    I'm asking because I'm getting the following error:
    "Cannot Perform Custom Calc. Essbase Error(1300056): The expression is invalid"
    Thanks
    Edited by: rubylife on Nov 6, 2012 3:42 PM

    You've got a mismatched " in the first line of the "execute calculation" statement.
    However, I think the real problem is in the calc script.  I don't believe you can do this in MDX:
    CASE WHEN x THEN
        a := y;
        b := z;
    END
    You have to do this:
    a := CASE WHEN x THEN y END;
    b := CASE WHEN x THEN z END;
    An alternative is to create a formula member for each of the measures you are trying to set (with the member formula containing the CASE logic) and have the calc script copy the formula member to the permanent member.

Maybe you are looking for

  • Target operation is unavailable: cleanup of previous target with the same n

    Greetings, In OEM 12c I have several clusters. For one, from the console I deleted the cluster and then manually added the cluster target back. The operation was successful but for one of the high availability (has) services a metric collection error

  • MSI N480GTX w/AMD CPU

    got one of these cards but didnt think there might be a compatibility problem using it with an AMD Athlon II X4 2.6ghz CPU/MB. I can't remember ever having to consider what my cpu was before i bought a video card. Is this true? I must use an Intel i7

  • How to decipher forms listener error 1444

    From time to time my forms applets can't connect to server listener. Error 1444 appears in log file. Could anyone tell me where can I find an explanation for this error code?? Thanks in advance for any help [04/05/01 10:29:53 ]::LISTN: Connection Req

  • Could not send notification 65569 (status 'FAILED')

    Customize Workflow runs with 2006 error - only happen in the morning We have created a customize workflow which works a bit funny here: When we first run the workflow in the morning, it ends up with this error: Activity Buyer Notifications Result Mai

  • Copa derivation rule not working for Discount GL

    Hi All, Kindly note that I have a distribution rule where company & plant combination is used where condtion is that customer group 3 should be 018 and then replace distribution channel to 03.However the rule is not working for discount GL posted in