How to execute findByPrimaryKey with CMP 2.0?

Hi, I'm deploying a local entity bean. I know that I can run any finder method with CMP 2.x by declaring it as abtract in the bean implementation class and then by defining the query in the deployment descriptor. My question is: how do I run the findByPrimaryKey method? Shall I write a query element in the dd? How do I execute it from the client?
Regards,
Marco

Thank you for your answer.
Does it mean that I can run the following from my
client?
LocalInterface bean = home.findByPrimaryKey(value);Yes.
Waiting for your reply.Why not just try it; you'd get the answer much quicker :-)
Jon Martin Solaas
[email protected]
www.objectlabs.no

Similar Messages

  • How to execute Infopackage with an ABAP program

    Dear All,
    I would like to execute an infopackage every 6th day of the month.
    Therefore I would like to integrate a program in a process chain executed on a daily basis, and call with this program the execution of the infopackage if day = 6.
    Do you know how to execute an infopackage inside an ABAP program ? Which function module use ?
    Thanks,
    Greg

    Hello luminy13,
    Just to answer your question on how to start an InfoPackage inside an ABAP program: you can use function module BAPI_IPAK_START. You might also need to use FM BAPI_IPAK_CHANGE to change the scheduling.
    However, if the only reason you are creating the ABAP program is to run the InfoPackage at the 6th day of the month, then I don't recommend that you create the ABAP program at all. You can simply schedule the InfoPackage (or the process chain that contains it) on the 6th day of the month. Here's how to do it:
    In the scheduling dialog, click the ">>" button. Enter the factory calendar, put 6 is in the workday and then choose "beginning of the month".
    Hope this helps.

  • How to execute workflow with pl/sql?

    My foregoing work has been done with owb including building dimension table, face table, mappings, and workflow process. if I don't install workflow server/client program module, how to execute the workflow process? Can PL/SQL do this and how to?

    user13726880 wrote:
    The original requirements were put together and given to me, an Oracle newbie. They expected the Java app to use something intrinsic to Oracle and Unix sendmail. To solve my problem, I use a JDBC connection to run some SQL commands. I take that data, format it and send the results by email to the user. By default the requirement is to send it as an HTML attachment using Unix 'sendmail'. So I do that using Runtime exec. I have also added JavaMail functionality as an alternative to sendmail. It works great and as expected.Sounds like a reasonable solution.
    Note however that PL/SQL itself can send email. And PL/SQL can call unix sendmail too.
    However myself I would have done it in java with JavaMail.

  • How to execute testplan with runtime?

    Hello,
    i have a working testplan in Teststand 2010 that executes labview 2010 teststand. It uses also a TS model and has a parallel-sequence that always polls the serial-port.
    Its working finde in Teststand.
    How can i now switch this whole structure to execute in a Teststand-runtime? Or, _where_ is the runtime? Is this a special program which must be installed?
    Thanks for help

    Two things, change the labview adapter to use the Runtime engine and create a deployment image to run on a target system which will only have the TestStand RT engine.
    ( I think the deployment tool will configure you steps to use the LabVIEW RTE automatically but I am not sure about this)
    You can either create a deployment image which has both the sequence files, code modules and the TestStand environment or separate images.
    Regards
    Ray Farmer

  • How to execute procedure with dynamic where condition.

    Hi All,
    I am facing a probelem
    Issue :
    I am having a parameter p_id in my procedure based on the value of this parameter i want to change the where condition.
    How to do so?
    Code:---------
    create or replace procedure p_1
    ( p_id in emp_dummy.empno%type)
    is
    parameter_1 varchar2(2000);
    v_sal number;
    begin
    if p_id = 1 then
    parameter_1 := 'where empno = 1';
    else
    parameter_1 := 'where 1=1';
    end if;
    select salary into v_sal from emp_dummy||' '||parameter_1;
    end;

    Dynamic SQL is not the best of ideas, but if you must...
    EXECUTE IMMEDIATE 'select salary from emp_dummy where empno=nvl(:x,empno)' into v_sal using p_id;Then if you pass in the p_id to the procedure it will select the salary for that employee and if null is passed in then it will select the salary for all employees. Now here's a problem because you are trying to return a single value and if you don't specify the employee then it will try and return multiple values from that select, so you probably want to do something like give the sum of the salaries...
    EXECUTE IMMEDIATE 'select sum(salary) from emp_dummy where empno=nvl(:x,empno)' into v_sal using p_id;

  • How to execute STP with Named type table as parameter through ODBC calls.

    Hi All,
    I am using Oracle 10g release 2. I am having a Stored function which takes Named Type Table as its parameter.
    For example
    CREATE OR REPLACE TYPE tblName is table of someUDT.
    CREATE OR REPLACE function nestfunction(t tblName)
    return NUMBER
    as
    //function body here.
    end;
    Now, I want to call this Stored function nestfunction through ODBC calls. Also want to add multiple rows in tblName parameter.
    But am unable to perform the above mentioned task. If you have answers please, reply.
    Thanks and regards
    ftil555

    Hi Arik,
    Thanks for the reply. I got the solution by configuring a NonXA data source. The problem was with internal commits of the fnd_global.initialize api.
    If the DB adapter is calling aPL/SQL procedure (written inside a pakcage) using the data source configured to support XA, will expect not to have any commits in side the procedure or anywhere, the XA driver will take of the commits and whole transactions. By default the FND_GLOBAL.INITIALIZE(...) procedure will have the internal commits, so it was throwing the errors.
    The solution was configuring the a NonXA Data source in the databae adapter configuration will allow the commits inside the callings procedures. So we created Two data sources one for XA and another for NonXA and we are using the NonXA datasource whereever we are calling the EBS APIs which have the internal commits.
    -- Khaleel

  • Execute query with in workbook

    How to execute query with in workbook??
    Regards,
    Vivek
    Please search the forum
    Edited by: Pravender on Apr 26, 2011 1:03 PM

    Hi Vivek,
    Click on Addin Tab in Analyzer, Select the workbook from open workbook icon.
    Once the workbook opened, click on variables icon. Then variables popup screen will come. Input the variables and click ok.
    Hope this will help you...
    Thanks,
    Chenna.

  • Execute query with non database block

    How to execute query with non database block when new form instance trigger.

    Hi Kame,
    Execute_Query not work with non database block. To do this Make a cursor and then assign values to non database block's items programmatically, see following example,
    DECLARE
    BEGIN
         FOR i IN (SELECT col1, col2 FROM Table) LOOP
                :block.item1 := i.col1;
                :block.item2 := i.col2;
                NEXT_RECORD;
         END LOOP;
    END;
    Please mark if it help you or correct
    Regards,
    Danish

  • How to execute one .exe file with as3 in air ?

    Hi
    How to execute one .exe file with as3 in air?
    I want do this work without fscommand .
    plize help me .

    itsdhanasaraa wrote:
    But as this a web application ... By using Runtime i'm getting some probs ..
    Let me guess, you want your web application to run a program on the client and to your surprise that's not working?
    Ain't gonna happen.
    its taking more time to execute .... that's y is there any other option to execute .exe file other than Runtime.getRuntime().exec("filename");Write proper English and you may be taken more seriously.
    1) it's not "taking more time to execute", whatever that's supposed to mean.
    2) there's no other way to execute something. Not that you should every use even that way anyway
    3) whenever you start thinking of executing external programs from Java, start thinking of not using Java in the first place.

  • How to execute a scenario File to File with SAP XI ?

    Hi all,
    I'm starting study SAP XI, i see in the link follow:
    [http://www.****************/Tutorials/XI/File2File/page8.htm]
    a scenario to exchange file to file with SAP XI.
    After designing and configuration everything (same as tutorial of this scenario), i don't known how to execute this scenario.
    Anyone can answer my question: how to execute this scenario file to file?
    Please see the link below to understand more about this scenario.
    Thanks all a lot in advance,
    Point will be reward for any valuable answer.
    Vinh Vo

    Hi Vinh,
    Hope u read all the basic documents of the XI, if not please go through once u wil come to know how to execute a scenario.
    the step-by-step procedure for a simple file-file scenario...
    First u have to finish the Design Part in the IR
    1) Create Data types
    2) Create Message Types
    3) Create Message Interface
    4) Message Mapping
    5) Message Interface.
    Here it complete the desing part.
    Then start thr configuration:-
    1) Create the Configuration Scenario
    2) Create the Business system and create the Communication Channel.
    3)  Sender Agreement
    4) Receiver Determination
    5) Interface Determination
    6) Receiver Determination.
    If u perfome this steps u wil be successfully complete u r File- File Scenario.
    follow the below link to have clear picture of file-file scenario
    STEP1:-
    /people/srinivas.vanamala2/blog/2007/02/05/step-by-step-guide-xml-file-2-xml-file-scenario-part-i
    STEP2:-
    /people/srinivas.vanamala2/blog/2007/02/05/step-by-step-guide-xml-file-2-xml-file-scenario-part-ii
    Hope this helps u a lot.....
    Thankx
    Anil
    Edited by: Venkat Anil Gannavarapu on Jun 11, 2008 11:36 AM
    Edited by: Venkat Anil Gannavarapu on Jun 11, 2008 11:40 AM

  • How to execute plsql stored procedure with DbAccess

    sessionInfo object can give DbAccess .through
    which u can use javax.infobus.DbAccess API to
    execute sql satement and stored procedures according to infobus API .iam able to
    execute simple query by using executeCommand() ,executeRetrival() ?. how to execute stored procedures with executeRetrieval() .
    how to take in and out parameters
    suggestions are welcome
    waiting for your suggestions

    I am also looking for the same.
    Did you get any info on this
    Thanks,
    jagan
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by chandra sekhar ([email protected]):
    sessionInfo object can give DbAccess .through
    which u can use javax.infobus.DbAccess API to
    execute sql satement and stored procedures according to infobus API .iam able to
    execute simple query by using executeCommand() ,executeRetrival() ?. how to execute stored procedures with executeRetrieval() .
    how to take in and out parameters
    suggestions are welcome
    waiting for your suggestions<HR></BLOCKQUOTE>
    null

  • ADF with JSF: How to execute a Sql statement created in a form

    Hello to every body,
    I'm working in JDeveloper 11.1.2.1.0, I have to do a development when the user can create a SQL statement and I have execute that before to do commit to the DB(Oracle DB).
    Example:
    The user create the next query:
    "+Select id_boss, boss_name from boss where boss_salary>5000+"
    I don't know how to do that with the current persistence and without create a Connection Method.

    The video tutorial is excellent but I have a problem because I'm working with Release 2 and when I try to do something like the video I had the next error:
    FachadaConsultaLocalImp cannot be cast to ApplicationModule
    the code to try to create a ViewObject is the next:
    DCDataControl dc = this.getBinding().findDataControl("FachadaConsultaLocal");
    String dataProvider=dc.getDataProvider().toString();
    ApplicationModule appModule = (ApplicationModule)dc.getDataProvider();
    Some idea?

  • How can I use JTA in my business logic and execute process with PAPI?

    HI All,
    How can I use JTA in my business logic and execute process with PAPI?
    When my business logic has exception, the process will rollback.
    or the process has some exceptions, my business logic also will rollback.
    I don't know how to do it.
    Does anyone know how to do it?

    Thank you for your reply, Daniel.
    But I think I did not express my mind clearly.
    There is a scene that I have 2 Application Server.
    My business code is deployed in one Server.
    The BPM is deployed in another Server.
    I want to execute Task use PAPI.(ProcessServiceSession.runActivity)
    In my business code, I will do something before execute Task.
    I need my business logic and Task in same transaction.
    To ensure them "all-or-nothing" .
    As you say, if The transactions are managed by Oracle BPM.
    then can I retrieve OBPM transcaction in my business code?

  • How to execute a system command with call executable in teststand 4.2.1?

    Hi All,
          how to execute a system command with "call executable" step in teststand 4.2.1?
          example as i want to quit a application.using "taskkill /f /im xxx.exe".And execute other system command(DOS).
    BR
    Johnny

    Hi, 
    I want to run netstat -an | find "8080" command from command prompt using call executable in test stand. after that i would like take the std output to local variable. 
    Attachments:
    callsettings.jpg ‏404 KB

  • How to execute the FM K_COSTS_PLAN_INTERFACE_TOTAL with ranges

    Hi All,
    can anybody suggest me, how to execute the Function module K_COSTS_PLAN_INTERFACE_TOTAL with  range of Cost element(KSTAR)
    and what is the field for Cost Element TO
    The fm is for tcode KP06
    Edited by: Kachi Reddy on Feb 17, 2012 2:26 PM

    Hi, Kachi.
    Try this example:
    REPORT rkkipl1t.
    * The parameters are used to fill the internal table and describe the
    * planning object.
    PARAMETERS: p_kokrs LIKE tka01-kokrs  MEMORY ID cac  OBLIGATORY,
                p_perab LIKE cobk-perab   DEFAULT '001'  OBLIGATORY,
                p_perbi LIKE cobk-perbi   DEFAULT '012'  OBLIGATORY,
                p_gjahr LIKE cobk-gjahr   MEMORY ID gjr  OBLIGATORY,
                p_versn LIKE cobk-versn   MEMORY ID kvt  OBLIGATORY,
                p_kostl LIKE cssl-kostl                  OBLIGATORY,
                p_kstar LIKE cskb-kstar                  OBLIGATORY,
                p_vrgng LIKE cobk-vrgng   DEFAULT 'RKP1' OBLIGATORY,
                p_kwaer RADIOBUTTON GROUP ein DEFAULT 'X',
                p_owaer RADIOBUTTON GROUP ein,
                p_twaer RADIOBUTTON GROUP ein,
                p_waers LIKE coss-twaer.
    DATA: i_rku01_cur LIKE rku01_cur.
    * internal table for function
    DATA: itrku01g TYPE TABLE OF rku01g WITH HEADER LINE.
    REFRESH itrku01g.
    PERFORM fill_itrku01g.
    * Which currency is to be used?
    IF p_twaer = 'X'.
    *   planning in transaction currency
      i_rku01_cur-wtg_man = p_twaer.
      i_rku01_cur-wtf_man = p_twaer.
    ELSEIF p_owaer = 'X'.
    *   planning in object currency
      i_rku01_cur-wog_man = p_owaer.
      i_rku01_cur-wof_man = p_owaer.
    ELSE.
    *   planning in controlling area currency
      i_rku01_cur-wkg_man = 'X'.
      i_rku01_cur-wkf_man = 'X'.
    ENDIF.
    CALL FUNCTION 'K_COSTS_PLAN_INTERFACE_TOTAL'
      EXPORTING
    *    BLTXT                  = ' '
    *    COMMIT                 = 'X'
    *    DELTA                  = ' '
        gjahr                  = p_gjahr
        kokrs                  = p_kokrs
        messages_show          = 'X'
        perab                  = p_perab
        perbi                  = p_perbi
        update_values          = 'X'
        versn                  = p_versn
        vrgng                  = p_vrgng
    *    ONLINE_VB              = ' '
        irku01_cur             = i_rku01_cur
    *    TESTMODE               = ' '
    *    KEEP_TWAER             = ' '
      TABLES
        irku01g                = itrku01g
    EXCEPTIONS
       messages_occured       = 1
       OTHERS                 = 2
    IF sy-subrc = 0.
      MESSAGE s000(15).
    *   Verbuchung wurde erfolgreich durchgeführt
    ENDIF.
    *  FORM FILL_ITRKU01G
    FORM fill_itrku01g.
    * fill internal table for function
      CLEAR itrku01g.
      itrku01g-kostl    = p_kostl.              "for CCA planning
      itrku01g-kstar    = p_kstar.              "must be filled
      itrku01g-wtgbtr   = 12000.                "value when planning
      itrku01g-wkgbtr   = 12000.                "value when planning
      itrku01g-wogbtr   = 12000.                "value when planning
      itrku01g-twaer    = p_waers.              "transaction currency
      itrku01g-fcwkg    = '1'.           "distribution key must be filled
      itrku01g-fcwkf    = '1'.                  "must be filled
      itrku01g-fcwkv    = '1'.                  "must be filled
      itrku01g-fcmeg    = '1'.                  "must be filled
      itrku01g-fcmef    = '1'.                  "must be filled
      itrku01g-fcmev    = '1'.                  "must be filled
      APPEND itrku01g.
    ENDFORM. "FILL_ITRKU01G.
    Best regards,
    George Shlyahov.

Maybe you are looking for

  • How to reverse the closing period document.

    Hi The entry can be reverse Only in current period You are trying the reverse the entrie in close period which is not possible .. how to reverse the closing period document. Thank you

  • How long can a form be?

    Is there a limit? How many pages, how many questions? Thanks!

  • Why do the computer speakers on my hp satellite p755-s5215 still play when i have headphones in?

    When I plug in headphones or a line out to speakers, the computer speakers still play.  Every other computer I have ever owned automatically shut off the computer speakers when headphones or a line out were plugged in.  Is there any way to fix this?

  • Deleting the storage location

    Hi, Can some one tell me how to delete the storage location. The situation is like this: Sales order has been created  for three different materials for a particular customer for a sales area. When out bound delivery was created for this order for on

  • Retrieve Historical Instances

    I am using the .NET Enterprise SDK.  When I use the code below - I am able to retrieve only Crystal Reports Historical instances.  If I try to retrieve Word or Excel or PDF, I get the following error message on the 325th line (If ReportInterface.Repo