Custom function developement in OPA

While integrating custom function written in java , i am facing the below problem:
0 [http-127.0.0.1-9000-Processor4] ERROR com.oracle.determinations.web.platform.servlet.WebDeterminationsServletUtility - java.lang.RuntimeException: Exception returning CustomFunctionHandler: Error loading component: com.example
Can anyone help me on this.

Hello, it looks as if your custom-function configuration isn't quite right.
For example, if you're running against 10.1 Java OWD this might be your configuration file where the "class" attribute points to your Handler not just the package:
<configuration>
<custom-function platform="Java"
library-path="ExampleCustomFunction.jar"
class="com.example.MyCustomFunctionHandlerClass"/>
</configuration>
What version are you using? ex. 10.1 / 10.2 / .net / Java?

Similar Messages

  • Custom Functions Test

    Hi All,
    I'm trying to run the test custom function, the "CapitalizeFunction".
    apart from placing the lib folder, example.jar and extension.xml in the 'Extensions" folder - is there anything I require to do?
    My rule is
    {code}
    the test is complete if
    - the uppercase name is known
    the uppercase name = CapitalizeFunction(the lowercase name)
    {code}
    The error message I get is: "error after 'the uppercase name =', Found: 'CapitalizeFunction(the lower case name)'. Expected expression, variable, constant.
    Hope that helps.
    Edited by: user9015745 on Aug 25, 2011 6:47 AM
    sorry the error message is: the local name for elements or attributes cannot be null or an empty string

    Custom function extensions are only supported for OPA v10.2 or later. I've looked at the project provided and the custom function extension was written against OPA v10.3 yet the project is indeed OPM v10.1, so it is not even going to look for the extension.
    Recompile your custom function to use OPA v10.1 and change the rule to be:
    the test is complete if
        the uppercase name is known
    the uppercase name = CallCustomFunction("CapitalizeFunction", "LOWER")where "LOWER" is the public name of the attribute "the lowercase name"

  • How to develope custom function modules in SAP R/3 system to maintain c...

    How to develope custom function modules in SAP R/3 system to maintain cross
    referencing tables for sales order number.

    Hi Raja,
    Steps to crate FM..
    Follow these steps..
    Go to the T: code SE37
    First You Create Function Group
    On That u specify
    Function Group Name..............
    Short Text..............................
    save...
    Go to SE 37
    Specify the Function Module Name: Eg: Z_Bapi_Materialmaster
    Short Text.......
    Save...
    Next Go to Attributes..
    Select Radio button : Remote enabled model
    Go to Parameters..
    Click Import...
    Give Parameter Type Associate type S.t
    next Click Export...
    Give Parameter Type Associate type S.t
    Next Click Tables Button..
    Specify tables..
    Next click source code button..
    Write Source code here..
    Eg : Select statements Etc..
    Finally we should be select the Radio button Enable remorely
    https://www.sdn.sap.com/irj/sdn/wiki?path=/pages/viewpage.action?pageId=39728
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/bapi%2bstep%2bby%2bstep
    Hope this information is useful to you..
    Reward points if it is usefulll....
    Thanks ,
    Satya Kumar..

  • Why is there a limitation on the number of boolean parameters in a custom function?

    We have a custom function which 'flattens' four text temporal values into a single temporal value.
    We want to do the same with boolean temporal values.
    However, OPM throws an error when  it reads the metadata for the function in extensions.xml.  It says all boolean paramaters need to be last.  We can't put them all last as there are more than one.
    This is OPM error code OPM-W00001.
    Any ideas on how I can work around this limitation?

    Taken from OPA Developer's help:
    Only one boolean parameter can be passed to a function, and it must be the last parameter.  This is due to a limitation in the rule compiler.  Any number of other parameters may be present however.
    Should you want to pass more boolean values, create a temporary/document text variable with values "True"/"False" using rule table.

  • Custom Function giving compile error

    Hi All,
    I have created a custom function to get the current time stamp. Below is the java code:
    package com.oracle.determinations.examples;
    import com.oracle.determinations.engine.CustomFunction;
    import com.oracle.determinations.engine.EntityInstance;
    import java.util.*;
    import java.text.*;
    public class CurrentTimeStamp extends CustomFunction {
       public Object evaluate(EntityInstance entityInstance, Object[] objects) {
          Date dNow = new Date( );
          SimpleDateFormat ft =
          new SimpleDateFormat ("MM/dd/yyyy HH:mm:ss");
        /*System.out.println(ft.format(dNow));*/
          return ft.format(dNow);
    My Extension.xml is as below:
    <?xml version="1.0" encoding="utf-8"?>
    <extension>
      <functions>
        <function name="CurrentTimeStamp" return-type="text">
      <arg name="entered-name" type="text"/>
           <handler platform="java" class="com.oracle.determinations.examples.CurrentTimeStamp"/>
          </function>
      </functions>
    </extension>
    The extension.xml is placed under following path:
    Development/Extension/CurrentTimeStamp/extension.xml
    The JAR file is palced under following path:
    Development/Extension/CurrentTimeStamp/lib/CurrentTimeStamp.jar (the jar file includes the com.oracle.determination.example folder structure)
    When i am using CurrentTimeStamp() in the rule base, it is throwing compile error saying:
    Error after text CurrentTimeStamp(' Fount Text: ')'. Exptected value variable or constant OPA - E00111
    Can you please help me where i am getting wrong and why it is not identifying the function?
    Thanks,
    KK

    Hi,
    I tried using the function with blank arguments like:CurrentTimeStamp("") and it was compiled successfully. When I tried running this rulebase in the tomcat server (web determinations).. i got the below error; Can someone please let me know what is happening here:
    HTTP Status 500 - Servlet.init() for servlet WebDeterminationsServlet threw exception
    type Exception report
    message Servlet.init() for servlet WebDeterminationsServlet threw exception
    description The server encountered an internal error that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Servlet.init() for servlet WebDeterminationsServlet threw exception org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) java.lang.Thread.run(Unknown Source)
    root cause
    java.lang.UnsupportedClassVersionError: Unsupported major.minor version 51.0 java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClassCond(Unknown Source) java.lang.ClassLoader.defineClass(Unknown Source) java.lang.ClassLoader.defineClass(Unknown Source) com.oracle.determinations.engine.local.CustomResourceClassLoader.findClass(CustomResourceClassLoader.java:120) java.lang.ClassLoader.loadClass(Unknown Source) java.lang.ClassLoader.loadClass(Unknown Source) java.lang.Class.forName0(Native Method) java.lang.Class.forName(Unknown Source) com.oracle.determinations.util.PlatformClassLoader.newInstance(PlatformClassLoader.java:61) com.oracle.determinations.engine.local.RulebaseLoader.loadCustomFunctions(RulebaseLoader.java:267) com.oracle.determinations.engine.local.RulebaseLoader.loadRulebase(RulebaseLoader.java:178) com.oracle.determinations.interview.engine.InterviewRulebase.<init>(InterviewRulebase.java:137) com.oracle.determinations.interview.engine.local.LocalRulebaseService.applyChangeSet(LocalRulebaseService.java:250) com.oracle.determinations.interview.engine.plugins.rulebaseresolver.ClassloaderRulebaseResolverPlugin.initialise(ClassloaderRulebaseResolverPlugin.java:73) com.oracle.determinations.interview.engine.local.LocalRulebaseService.<init>(LocalRulebaseService.java:53) com.oracle.determinations.interview.engine.local.LocalInterviewEngine.initialise(LocalInterviewEngine.java:181) com.oracle.determinations.interview.engine.local.LocalInterviewEngine.<init>(LocalInterviewEngine.java:66) com.oracle.determinations.interview.engine.InterviewEngineFactory.createInstance(InterviewEngineFactory.java:19) com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext.init(WebDeterminationsServletContext.java:180) com.oracle.determinations.web.platform.servlet.WebDeterminationsServletContext.<init>(WebDeterminationsServletContext.java:116) com.oracle.determinations.web.platform.servlet.WebDeterminationsServlet.init(WebDeterminationsServlet.java:73) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) java.lang.Thread.run(Unknown Source)
    note The full stack trace of the root cause is available in the Apache Tomcat/7.0.40 logs.

  • How to write the custom Function Module to trigger the Alert.

    Hi all,
    I have developed a custom alert category in Tx - alrtcatdef. Now i want to trigger it from my custom function module. what should i do or what is the procedure to trigger the alert from my custom function module.
    Arul Jothi

    hi arul,
    try this program.
    RSALERTTEST.
    check out this link...
    <a href="/people/ginger.gatling/blog/2005/12/02/innovative-ways-to-use-alerts:///people/ginger.gatling/blog/2005/12/02/innovative-ways-to-use-alerts
    regs,
    jaga

  • Error in Including the Custom function in Custom schema ...

    Hi Experts ,
                   I developed a time custom Function through PE04 ,  Z_5RT and included in Custom Schema , ZM04, while executing in PT60 using the schema ZM04 an error coming . Any configuration required to include custom function in a schema .
    Thanks and regards
    Renjith MP

    You are just going to place the custom function in the 'Func' field of schema.
    Check the counry assignment, parameters & finally you have to activate the function. Check T52A0 for correct internal number.
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/96/79bc54b27911d1a5400000e83ddb11/frameset.htm
    Regards
    N Navaneethan
    Edited by: Navaneethan on Dec 15, 2008 4:30 PM

  • Would a BW functional developer be able to support data services?

    Hi gurus,
    Our company cannot justify having a full time data services functional developer to support our existing master data address cleanse / address validation process in data services.   There is light work for customizing data services jobs and occasional support work for address validation issues.   We have a full staff of SAP developers in most areas and are looking to train an existing employee to do two roles.  Not being well versed in what is involved with data services support, can you help with what skill set would be a good complement to also learn data services?  Would it be a BW functional developer? ABAP developer?  Basis?  Master Data functional developer?
    Warm Regards,
    CM

    Hello
    In general, the most effective Data Services developers have a 'proper' development background and understand set theory, relational databases, and SQL.
    You'll also need to find someone with an understanding of data quality theory.
    Michael

  • Update the custom table by using Custom Function module.

    Hi Experts,
            My requirement is ,
    1) To create the Custom Z table with fields
               vbak-vbeln
               likp-vbeln
               vbuk-vbeln
      After creating this Z table.
    2) I have to create one custom function module.
        Based on this function module i have to update that Z table.
    3) Before these steps i have to write down an ALV report based on the tables vbak and vbeln, in that table i have to print vbak-vbeln. and also in report i generated check box and one custom button in application toolbar. after the report will displayed , when ever i click the button in application tollbar , this function module will executed and the table will be updated.
        But I developed the ALV report with custom button and check box successfully.
      My doubt is how to write the function module and based on that function module how to update the table.
          Please suggest me on this requirement.
        Thanks in Advance.
    Thanks and Regards
    Srihari.

    HI ,
         Can any one help me out on my above requiremnet..
    Thanks and Regards
    Srihari.

  • ICM custom function

    Hi,
    I am using ICM vestion 9.0. I have a requirement to route calls depending on keyword from sentense. Say for example system retunrs a sentense "I need information on foreign exchange" and I am saving the data in PV1. Now if the sentense has a word "foreign" I need to give different priority. So far I could not find any icm built-in function through which I can achieve this. I decided to build a custom function and I never develop custom function before so need help on building a custom function.
    Please let me know if I build the custom function using below expression will it work. Here string1 is the sentense which I will get from PV1 and string2 is the keyword
    Name = SearchFunction(string1,string2)
    Parameters =  2
    Function =     String[] Sentence = %1%.split();
                        for(String word: sentence)
                            if(word.equals(%2%))
                                return ture;
                        return false;
    Thanks,
    Ashfaque.

    Hi,
    I think I can achieve the same by using below formula
    (find("Foreign","PV1")>0
    Thanks,
    Ashfaque.

  • Custom Functions not exported - Urgent

    Hi,
    We have couple of Custom Functions imported into the OWB Design Repository. After completing with Development, now i want to move into TEST repository. I created a snapshot and exported (MDL file) the project. When I imported into TEST Design Repo, the custom functions are missing.
    our environment is -
    OWB Design Client - 9.2.0.2.8
    OWB Design Repo - 9.2.0.2
    Can you please give me some idea why this is happening?
    Thanks
    Mahesh

    Hi JP,
    No, I have not renamed MY_PROJECT. The problem lies in the Export phase itself. When I export those custom functions (defined under public transformations) are not exported at all. Like when I look into the export log file, it shows the count of standalone Functions / Functions as 0.
    since the Custom Functions are not exported, when I import it into a TEST environment the links are broken inside the PF, due to the fact of UOIDs you have rightly mentioned. Exporting the custom functions alone and importing into the TEST environment does not solve the problem due to lack of connectivity (again due to UOID).
    But, I think I nailed the problem by approaching in a different way. I have created a target module and then moved the custom functions into that module as private functions. When I exported the project, the functions are exported and imported without any problem.
    so, I guess we have not fully understood the custom functions concept(under public transformations). If anybody clarifies / explains how to use them I will be very glad for learning something new.
    Thanks
    Mahesh

  • RPTIME00 - Custom Internal Table , Custom Clsuter in Custom Function.

    Hello Guru,
    I have a requirement to create custom scheme with totally new custom function , rules .
    my question is it is possible to declare custom internal tables like TIP, TOP and cutom cluster to store results.
    if yes then how ?
    Thanks in adance

    My requirement is based on a project to develop new sap product which can handle complex crew management for industries like railways and airlines,product is still in protoype phase and will basicaly cover right from dispatching crew to various sites to generating there payroll. standard sap works on basis of day and time. but crew industory work on trip. a crew for example pilot fly form point A to B get paid/claims based on on that single trip and whatever activities he has done in that trip. so purely this is based on trip and not day or hours, now we are thinking about using RPTIMEOO as a tool to calculate and create wage type beacuse at the end of the day payroll is getting generated in SAP and also all the crew employee will be setup as master data. this whole product will have its own screeen to capture activties and opereations . will be build on top of sap hcm.
    so was thinking any ways sap says that you can create custom schema and rules but those standard internal tables and cluster are of no use because of the structure is based in trip, wage type will be based in miles that crew travel.
    so trying to find how far this RPTIME00 is flexible .. and is possible to create custom function. becoz at end we are going to update payroll 2010 which can be mapped some how.  RPTIME00 can also give clients to add there own custom functions in future if any new req comes.
    if this is not possible i.e RPTIMEOO can not use custom cluster , then we might have to write abap programs ti do calculation but only problem any new features to be added will lead to code change.
    thanks for your patience ..

  • Custom function in WEC2013 KITL.dll

    The KITL Ethernet controller has a LED that should be controlled by the OAL. The access to the LED requires access to the Ethernet controller. Therefore this must be implemented in the KITL.dll.
    The platform\my_platform\drivers\ethdrv\my_driver library implements the LED control function. How do I access this function from OAL?

    In general you should not give the full path of the custom function, it should be instead relative to the project's include folder.
    eg:
    <custom-function platform="DotNet" library-path="CustomFunctions.dll" class="Viking.CustomFunctions.CustomFunctions"/>
    and then make sure the CustomFunctions.dll file is copied into the project's include folder before the project is built.
    By the way, if you're using 10.2 for a new project, the mechanism you are using is now superseded. A custom function extension is the new thing, and it will look a lot nicer when used in the rules. Refer to the topic "Write a Custom Function Extension" in the Developer Help for more information.

  • Custom Function for Descriptive Flexfield

    Hi Friends,
    How do I
    Create Custom Function for Descriptive Flexfield Setups &
    Create Custom Function for Key Flexfield Setups
    Thanks a lot

    Please refer to:
    - Oracle Applications Developer's Guide
    - Oracle Applications Flexfields Guide
    [Release12 Documentation Library|http://download.oracle.com/docs/cd/B40089_10/current/html/docset.html]

  • Customer Function

    Hi Experts,
    My predecessor has developed a customer function in CATS Time sheet. There is a customer function button, when employee clicks that button, it will call a function to calculate the employee’s overtime. Now, the business wants to make some over time calculation change. I do not have experience with customer function. I have following questions:
    (1)     How is the customer function button added into SAP standard screen(for example adding a customer button in CATS Time Sheet Screen)?
    (2)     How do I find the program that will be triggered when the customer button is clicked?
    Regards,
    Jim

    Hi Kiran,
    This is a User Exit. It allows you to insert you own code to enhance the functionality of this program. This looks like a workflow user exit. What it allows you to do is pass into the user exit some approver information and allows you to modify the table of possible approvers.
    If you double click on the '001' it will allow you to create your new INCLUDE program to insert your User Exit code.
    Hope this makes sense. Hit me back if you need any clarification.
    Cheers,
    Pat.

Maybe you are looking for

  • AP1231G-A-K9

    I'm relatively new to wireless and I'm hoping someone can help me.  I have a client in a large warehouse (235,000 square feet) that has had 20 of the AP1231 access points for years set with the same SSID using some rather old wireless phones. They no

  • ADC for domestic purchase

    Hi I need help regarding the scenario described below - my vendor imports a material and passes the Additional duty on customs (ADC) to us. we need to take credit for the ADC paid. however i am finding it difficult to approach the problem. there is a

  • Oracle8i (8.1.7) fails to install on Win2k and P4

    Having a problem with Oracle8i 8.1.7 not installing on a Pentium 4 system. The PC is any Pentium 4 with Windows 2000 Professional installed. > When attempting to execute the setup.exe, Task Manager Processes show the setup.exe and jrew.exe begin to e

  • How to get better WLan connectivity on Satellite U200

    I wonder if anyone else is disappointed with the wireless range of the U200. I consistently find that my laptop shows 2 bars connectively to my BT hub (upstairs) when my eeepc located next the laptop shows 5. I have also found in other locations that

  • New MacMini here...  Can't help posting...

    Can't help but posting.  Got the new MacMini i7 and upgraded to the 8GB.  SSD + 750GB HD... POW!  Nice mini-screamer.  HP AirPrint printer... hook up and running with now problems with Mac, iPad2, and iPhone 4.  Lion... all aboard.  Sometimes life is