Conditions in Guided Procedure to execute a block

hi All,
I am new to Guided Procedure,Please help.
My requirment is as follows-
There are multiple sequential block, before one final block i need to check a flag condition which comes from WebDynpro
If Yes i have to execute the block else dont execute the block
Kindly let know how to go ahead regarding this.
Thanks in advance.

Hi Shikha,
Here is what you can do:
1.In your Web Dynpro application you can define two result-states : Say Passed and Failed. You will set one of these the result-states
based on your true-false logic. You'll have to create a Callable Object and an Action for this Web Dynpro app.
2.You have to place this action before your final block.
3.Create a 'Process Termination' callable object and and an action for that and place it after the Final Block.
4. Now for the two result-states for your action for the Web Dynpro Callable Object, assigne the targets :
e.g. Passed : <Name of the Final Block>
       Failed : <Name of the 'Process Termination' Callable Object.
5. This way, when the Callable Object for Web Dynpro gets executed as part of the process, it will set the the result state either to Passed or to Failed based on the logic you have in your Web Dynpro.
And due to the target setting for those result-state, the Process will jump to your Final block(in case of 'Passed') or jump to the end callable object and terminate the process
Other option would be to, have a decision callable object before the Final Block, and have similar result-states for that callable Object which will be based on the output value of the parameter from (true/false) of your Web Dynpro callable object. Rest everything will work the same way.
Regards,
Ajay

Similar Messages

  • Procedure in Execute Immedite block

    Hi, all.
    I need to execute pl/sql procedure from Execute Immedite block.
    I am trying to do it with exec but getting error:
    begin
    EXECUTE IMMEDIATE '
    exec FillTestForOperation';
    end;
    begin
    ERROR at line 1:
    ORA-00900: invalid SQL statement
    ORA-06512: at line 2
    Is there any way to do it?

    JustasVred wrote:
    Hi, all.
    I need to execute pl/sql procedure from Execute Immedite block.
    I am trying to do it with exec but getting error:
    begin
    EXECUTE IMMEDIATE '
    exec FillTestForOperation';
    end;
    begin
    ERROR at line 1:
    ORA-00900: invalid SQL statement
    ORA-06512: at line 2
    Is there any way to do it?Try :
    declare
    vstring varchar2(10);
    begin
    vstring := FillTestForOperation';';
    execute immediate('begin '||vstring||' end;');
    end;
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • Difference b/w various blocks in Guided Procedures?

    Hi experts,
    I am new to Guided Procedures and want to know a few things.
    Can anyone of you tell the difference between the various blocks in GP.
    Or
    Can you give a brief idea about when will we use the different types of blocks in GP?
    1.Sequential
    2.Parallel Dynamic
    3.Precondition Loop
    4.Alternatives
    5.Parallel Block
    6.Post condition loop
    Also, can any one tell me the diff between a Process and a Simple Process.
    Thank You.
    Regards,
    Murthy J N.

    Hi Murthy,
    As we know that CAF Guided Procedures (CAF GP) is a framework for modeling and managing workflows using simple and user-friendly tools. As a part of the Composite Application Framework (CAF), GP enables access to multiple backend systems, consistently combining different types of services and applications into processes.GP supports collaboration, ad-hoc items, and offline task management using interactive forms. It provides role-based access to tools and resources and guidance through the workflows at runtime, thereby helping end users to easily identify and complete their tasks.
    CAF GP enables you to re-use existing services and applications, such as SAP system transactions, remote-enabled function modules (RFCs), CAF Core applications.
    Please check the below links for the different tyoes of blocks available at GP:
    http://help.sap.com/saphelp_nw04s/helpdata/en/68/6182410349213ce10000000a1550b0/frameset.htm
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/8269bdb8-0701-0010-4692-c3349106ec66
    Process and its details are mentioned at below link .
    http://help.sap.com/saphelp_nw70/helpdata/EN/43/2713f5177e6021e10000000a422035/frameset.htm
    Hope this helps you.
    Regards,
    Shaila
    Edited by: Shaila kasha on May 19, 2009 12:15 PM

  • Error while executing Guided Procedures Action

    Hello,
    We are getting the following error when a user is trying to execute an Action in the Guided Procedures Process:
    "Cannot complete Action: Activity could not be read".
    What can be causing this?
    Any help would be highly Appreciated.

    Hello,
    This is more than likely due to an inconsistency of a GP object at database level. I suggest opening an OSS ticket as this would require detailed analysis.
    Thanks and best regards,
    Carl Connolly
    Senior Support Consultant - Netweaver Web Application Server
    AGS Primary Support, Global Support Centre Ireland
    Guided Procedures trouble shooting guide:
    www.sdn.sap.com/irj/scn/wiki?path=/display/JSTSG/%2528GP%2529Home

  • Method execute from the Guided Procedure

    Hi All:
    I have a web dynpro application that has a view Evaluation and this one has a embed view from another component. I´m using guided procedures and setting in the execute method a parameter that is linked to the embed view.
    The problem is that in the  view Evaluation, when calls DoInit() I´m sending these parameter to the embed view but I´m not getting any value at that moment. These means that the execute method occurs after the DoInit().
    Someone knows in what sequence the methods are call, execute and Doinit(). Where can I set the parameter for the embed view so the execute method had been already call and the parameter set before it call the DoInit method.?
    Thanks, regards

    Hi
    I have two components component A with wiewA and component B with ViewB. The view B is embed in view A.
    The view A has the call to the GP. I import the view B and I bind the interface from that componentB with the component Controller of the component A and this one to the view A.
    and the view is linked to the Inerface Controller where is the execute method.
    In the wdDoinit of the view A I´m setting the context values of the parameters I want to send to the view B. And in the wdDoInit of the view B, I´m calling a method that fills a table according to the parameter.
    Thanks for the help

  • 2 different actions being executed simultaneously through guided procedure

    Hi All,
    Can you let me know whether it is possible two run 2 different actions embedding 2 different callable objects simultaneously through guided procedure? Please let me know the procedure.
    Thanks in advance,
    Swaralipi

    Can any one help me regarding this questions?

  • Guided Procedure

    HI,
         Iam facing the issues in Guided procedure.I have two Action.The Action two is Assigned to two users.Both the user get the Action in the UWL and both the user are possible to edit the Action.If one user completed the Action,the Action assign for the second user also completed.These things are working fine.I need to solve other issue.If one user edit the action i need to provide some information to other user ie.the Action is in Processing by other user.(or) If one user edit the Action at the same time the second user open the same action in his UWL the Action is in non editable mode.please provide the suggession for these issue.Its urgent.
    Thanks and Regards,
    Satheshkumar.R

    Ok. Here are the steps.
    I'm assuming that you have good knowledge of GP process designing. Let me know if you are stuck anywhere.
    These steps have to be followed for all blocks in the process.
    1) Initiate the process
    2) Let us assume that the first step in the process has reached two agents' UWL (A and B)
    3) When the step is clicked for execution, you must actually execute a check step prior to the actual step. That is lets say that the actual step is called as 'Approve'. So the flow will be like this
    i) Initiate
    ii) "Check" step (invisible to the user) here perform the check for a flag say InUse = ' ' ? This parameter should be visible at the process level too. If this flag is not set, then set this flag to 'Y' and then branch out to the "Approve" step (iv).
    elseif the InUse flag is already set to 'Y' (by another person), then branch out to a display form CO that says that the step is being executed by someone else.
    iii) After the step has been successfully executed, then you can set the flag accordingly. Make sure you handle the case if he just opens the task but doesnt complete the action. In this case you need to set the flag back to initial and route back to that check step.
    Cheers,
    Mandrake!
    (The Magician)

  • Can a flag field be used in a procedure to determine prior block success

    I have a below stored procedure that has a IN and OUT parameter. The block
    has structure as below.
    In this procedure there are multiple inner blocks each with an individual
    exception handler. I need to modify this to pass a flag field as a additional parameter
    to this procedure such that should any of the inner block execution were to fail, the next execution should pass the control to the failed block (as in the previous successfully executed INNER blocks should not be re-executed).
    How can I acheive this?
    CREATE OR REPLACE PROCEDURE procname(some_in_variable IN datatype1,
                                                 some_out_variable OUT datatype2)IS   
    var1 datatype;
    var2 datatype;
    cursor cursorname IS
    BEGIN
      IF some_condition then
         RAISE main_exception_encountered
      ELSE
         DECLARE -- BEGIN OF INNER BLOCK 1
         BEGIN
          IF CONDITION THEN
          ELSE
            raise some_excep;
          END IF;
         END;   -- END OF INNER BLOCK 1
         DECLARE  -- BEGIN OF INNER BLOCK 2
         BEGIN
          SELECT statements here
          exec some_procedure_name(param1, param2);
         exception
         END;   -- BEGIN OF INNER BLOCK 2
      EXCEPTION
        when some_excep then.....
    EXCEPTION
      when main_exception_encountered...do something
    END procname;

    steve2312 wrote:
    Ok. I plan on use the below code snippet inside every block prior to an exception being raised. This will set flag value to N when a block fails.
    UPDATE processlogtable           
    SET flagfield = 'N'
    WHERE pk_field = 'somevalue';
    COMMIT;The next time a new block is read it'll check for the flag, if it is Y then the block is executed. However, if the flag is N due to a failed block how can I make the procedure go back to that failed block?Do you really want to COMMIT all DML changes that caused an EXCEPTION?

  • To execute a block of code

    Dear buddies,
    I have a few lines of code which looks like this.
    declare
    t_Count          number := 0;
    t_CommitPoint      number := 100;
    t_ObjectDefID      number;
    t_ObjectID        number;
    cursor c_Trees is
    select  Treeid,
    Treetype,
      decode(upper(Continent),'AF','Africa',
                      'AN','Antarctica',
                      'AS','Asia',
              'AU','Australia',
                      'EU','Europe',
                      'NA','North America',
                      'SA','South America',
                      'Unknown') Continent,
      Climate
    from     conversion.v_Trees;
    begin
    t_ObjectDefID := api.pkg_ObjectDefQuery.IdForName('Trees');
    api.pkg_LogicalTransactionUpdate.ResetTransaction();
    api.pkg_LogicalTransactionUpdate.StartTransaction();
    .ORA-06550: line 23, column 18:
    PLS-00201: identifier 'API.PKG_OBJECTDEFQUERY' must be declared
    and a few errors like this.
    How should I declare this api?
    How should I execute this block? Please guide me.
    Thanking in advance.
    Nith
    Edited by: user645399 on Aug 13, 2010 3:18 PM

    How are you using API package in pl/sql block then?
    Check whether it exists or not??
    As per the error, API package must exist in the schema but not in the Declare section..........syntax for creating objects does not require DECLARE section !!
    Declare the API package in schema. and compile again.....if any issue comes, paste your procedure code here.

  • Guided Procedure Design Time

    Dear All,
    I am using NWDS 7.0.10. Is GP design time a part of NWDS, or is it to be installed separately? I would be thankful for suggestions for a GP tutorial for a complete beginner.
    Regards,
    Prosenjit.

    Hi Prosenjit,
    Guided procedures is not a part of NWDS. It is a part of the netweaver portal. You need a login to the portal and then this login(user) must have the role GP assigned to it. Then only it is possible to view the role Guided Procedures. The guided procedures have the worksets Runtime, DesignTime, Templates and administration etc.. Using design time we can create Callable object, Action, Block and Process. Design time provides a set of tools for modeling business workflows. Runtime is useful for executing the processes. Start working on the tutorials available in the help.sap. Guided procedures is similar to workflows. Here is the link for reference.
    [CAF GP Documentation|http://help.sap.com/saphelp_nwce10/helpdata/en/fb/5e6f4169e25858e10000000a1550b0/content.htm]
    Regards
    Ramanan

  • Guided procedures-help required

    Hi,
    I have deployed some updated content in guided procedures. (Deleted the entire ORGINAL content even from the deleted items folder).The problem is other processes have disappeared strangely(folder names are missing the content inside the folder is present) .
    Although i did not make any changes in those folders, the folder names are not appearing strangely.
    Does the problem lie with deployment of content through SDM(i deployed all .sda files in one go) or any other issue.
    Do i need to roll back the changes?
    Please suggest.
    Regards,
    Subodh

    Hi David,
    Assuming that they are actually blocks in a process (I do not see other possibility of actually handling two different processes instead of two blocks in a process, but I will confirm with the person who brought the issues to my notice), is it possible to specify exit condition for one block that also depends on the exit condition of second block? That means even if the exit condition of one block is met, can it wait for the second block's exit condition?
    In BPM we have Fork step where I can specify parallel branches and design the process such that it runs through certain number of branches. Is anything available like this in GP? Can you please provide any documentation which explains the parallel block handling in GP?  As I mentioned in my other response, I am familiar with BPM, but never used GP.
    Thank you very much.

  • Guided procedures performance

    I'm evaluating the performance of Guided procedures, in SAP Netweaver version 7.05 SP1. It runs over a machine with Intel Xeon @ 2.13 Ghz, 3.37 GB RAM, 2046 MB swap size, Windows Server 2003 Enterprise Edition, Service Pack 1, JRE version 1.5.0_11. The maximum JVM heap size is 1024 MB, using a parallel young garbage collection policy (-XX:+UseParNewGC), I'm using the parameter -XX
    :+HandlePromotionFailure in order to work around the bug 6226790 related to the UseParNewGC garbage collection option (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6226790).
    The test target is a "dummy" process, with one sequential block and three actions. The load is generated with JMeter, the test script creates a process instance, issuing a HTTP request to the corresponding URL. The load test consists in a increasing load of 1 to 20 concurrent virtual users, with a ramp-up time of 20 minutes (one new user every minute). The virtual users start process instances until the test is stopped (there is no defined iteration number), with a think time of 10 seconds.
    Till a load of 10 concurrent users the behavior is normal: constant response time about 500 ms and increasing throughput (considering the throughput as process instances started per second), until that moment about 300 process instances are created. However, as the test continues, the response time suddenly increases, the throughput falls and eventually the netweaver instance gets stuck. What is curious is that, although the netweaver instance is stuck, the utilization of the processor is low (less than 10%), as well as the memory (the heap just grows till 610 MB, its limit is 1024 MB). There are no sign of exhaustion of other resources, according to the corresponding performance counters (disk read and write queues, network utilization, context switches per second).
    The GP runtime is using the local workflow engine, the test has been repeated with 2, 4 and 8 threads in the workflow engine. In all the cases the above described results were almost the same.
    Does anybody know why the netweaver instance gets stuck under such conditions, and is there a way to solve this problem?
    Thanks in advance
    Edited by: Alexander Ambriz on Jan 13, 2008 4:34 PM

    The problem seems to be fixed in SP3.

  • Guided Procedures - Urgent help please

    Hello,
    Can anybody please help me with the information I am looking for?
    Our issues with EP Guided Procedures (GP) are in two spots:
    1) Parameter Passing - Use of  “out”  and “in” parameters from the process context to return / send values from Web Dynpro is not possible using out-of-box functionality.
    2) Eventing / Wait states/ "eventing" - In GP, when multiple parallel processes come to the final decision point, the automated decision point is processed based on the first process that arrives to the decision point. It is not possible to ‘Hold’ a process until the other parallel processes are complete.
    Which of the following statements is true with respect to the issues we are having?
    a) the product has these capabilities, and we've just not properly taken advantage of them;
    b) the functionality doesn't currently exist - but is planned for near releases;
    c) the functionality doesn't exist - nor is it planned to be delivered by SAP.
    Thank you very much.
    Regards,
    Jagadish

    Hi David,
    Assuming that they are actually blocks in a process (I do not see other possibility of actually handling two different processes instead of two blocks in a process, but I will confirm with the person who brought the issues to my notice), is it possible to specify exit condition for one block that also depends on the exit condition of second block? That means even if the exit condition of one block is met, can it wait for the second block's exit condition?
    In BPM we have Fork step where I can specify parallel branches and design the process such that it runs through certain number of branches. Is anything available like this in GP? Can you please provide any documentation which explains the parallel block handling in GP?  As I mentioned in my other response, I am familiar with BPM, but never used GP.
    Thank you very much.

  • How to change the name of (Guided procedure) GP Runtime View?

    Hello all!
    At Design time in GP (Guided Procedure), I have added a runtime view at the tab "Runtime Views" named Additional Resources to a GP process.  At runtime, when the process is started,  at the left bar appears the button "Additional Resources". Is there a way to change this name? Any idea can be helpfull :).
    Kindly Regards,
    Luiza

    Hi,
    an other solution is change the block property QUERY_DATA_SOURCE_TYPE from "Table" to "Sub-query" , than change at run time the property QUERY_DATA_SOURCE_NAME.
    First create block and add items
    The QUERY_DATA_SOURCE_NAME will be for ex. "Select 'A' as col1, 'B' AS col2, 'C' as col3 from dual"
    Set into items the column name property to col1 , col2 ...
    At run time change the query to "Select 'Z' as col1, 'X' as col2 , 'Y' as col3 from dual"
    in this way you can change the source of column value.
    Caution because if you change value type from varchar2 to date you must cast date into varchar2.
    May be that this way is valid only for view data not for insert-update, i don't remember.
    bye
    Message was edited by:
    Killernero

  • Stored Procedure Vs PL-SQL Block

    Hi,
    I came across an interesting problem last week. Fortunately, I was able to solve it or find an acceptable workaround for myself. But wanted to get some clarification from the experts. So posting it here.
    Also, I am new to Orcle, so please excuse any shortcomings in the post.
    My data model has following tables-
    TABLE_PARENT (ID, other columns)
    TABLE_CHILD (ID, other columns, PARENT_ID_FK)
    Here, ID is the primary key column for the respective tables; PARENT_ID_FK is the foreign key referencing the ID column from the TABLE_PARENT.
    I created a stored procedure programmatically (using MS Excel) to insert records in the two tables. The stored procedure has insert statements for an indefinite number of records in the parent table and for every such record, there's a corresponding record inserted in the child table. Here's the sample code.
    BEGIN
    /*first record*/
    parent_id := MY_SEQUENCE_GENERATOR.NEXTVAL;
    INSERT INTO TABLE_PARENT(ID, other columns) VALUES (parent_id, other values);
    INSERT INTO TABLE_CHILD(ID, other values,parent_id );
    /*second record*/
    parent_id := MY_SEQUENCE_GENERATOR.NEXTVAL;
    INSERT INTO TABLE_PARENT(ID, other columns) VALUES (parent_id, other values);
    INSERT INTO TABLE_CHILD(ID, other values,parent_id );
    /*third record*/
    parent_id := MY_SEQUENCE_GENERATOR.NEXTVAL;
    INSERT INTO TABLE_PARENT(ID, other columns) VALUES (parent_id, other values);
    INSERT INTO TABLE_CHILD(ID, other values,parent_id );
    /*and so on*/
    END
    When I run this stored procedure, I keep getting following exception intermittently-
    ORA-02291: integrity constraint violated-parent key not found tips.
    My thinking is that it comes because the insert statements are executing ahead of turn of the parent_id assignment statement. And this is happening possibly because of some parallelism that is taking place during the execution of the stored procedure, or, some sort of optmization that the DB server does (though erroneously) when it compiles the stored procedure.
    I tried out everything that I could think of but it didn't go away. Finally, when I executed the same set of statements as a PL-SQL block, it worked fine.
    To understand it better, I am looking for clarification on the following questions.
    1) Why does the exception come with stored procedure but not with PL-SQL block? Is my reasoning given above correct (parallelism or some sort of optimization coming into play)?
    2) If it is due to parallelism, how to run a Oracle stored procedure with defree of prallelism set to 1?
    3) If it is due to optimization done by the compiler, how to instruct the compiler to not do any such optimization. Also, in any case, isn't it an error to optimize but lose program semantics?
    4) Another question related to the same piece of work I have is to use transactions in the PL-SQL block, I had to explicitly COMMIT/ROLLBACK it in the code. In whatever references I had read, it was said that by default the transaction begins with BEGIN statement and commits with END. Also, it seems to work with a Stored Proedure though. So is it that a PL_SQL block needs explicity call to COMMIT/ROLLBACK to achive transactions but stored procedures do not?
    Any inputs/clarifications will be much appreciated.
    Thank you
    Neelesh

    Ok, your last couple of paragraphs were helpful. Here're the details that were missing in my earlier post.
    - I am on Oracle 10.2.0.
    - Table definitions-
    CREATE TABLE "MYUSER"."TABLE_PARENT"
    *(     "ID" NUMBER(19,0) NOT NULL ENABLE,*
    *     "NAME" VARCHAR2(30),*
    *     "DESCRIPTION" VARCHAR2(80),*
    *     "RULETYPE" NUMBER(10,0) NOT NULL ENABLE,*
    *     "OPERATOR" NUMBER(10,0),*
    *     "MININTERCEPT" FLOAT(126),*
    *     "PRIORITY" NUMBER(10,0),*
    *     "PENALTY" NUMBER(10,0),*
    *     "STATUS" NUMBER(10,0),*
    *     PRIMARY KEY ("ID")*
    USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 131072 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS"  ENABLE,
    *) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING*
    STORAGE(INITIAL 131072 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS"
    CREATE TABLE "MYUSER"."TABLE_CHILD"
    *(     "ID" NUMBER(19,0) NOT NULL ENABLE,*
    *     "WEIGHT" NUMBER(19,0),*
    *     "PARENTID_FK" NUMBER(19,0),*
    *     PRIMARY KEY ("ID")*
    USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 131072 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS"  ENABLE,
    *     CONSTRAINT "FK3A78BF1E6A9DCE51" FOREIGN KEY ("PARENTID_FK")*
    *     REFERENCES "MYUSER"."TABLE_PARENT" ("ID") ENABLE*
    *) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING*
    STORAGE(INITIAL 131072 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS"
    - The Stored procedure definition is-
    CREATE OR REPLACE PROCEDURE LOAD_RULES_SP AS
    ruleid NUMBER(19,0);
    tempid NUMBER(19,0);
    BEGIN
    */* First parent record */*
    SELECT IDGENERATOR.NEXTVAL INTO ruleid FROM dual;
    INSERT INTO TABLE_PARENT (ID, NAME, DESCRIPTION, RULETYPE, OPERATOR, MININTERCEPT, PRIORITY, penalty, STATUS) VALUES (ruleid, 'Rule 1',null,3,0,0,null,null,1);
    */* Corresponding child records */*
    SELECT IDGENERATOR.NEXTVAL INTO tempid FROM dual;
    INSERT INTO TABLE_CHILD (id, weight, PARENTID_FK)
    VALUES (tempid, 0.2, ruleid);
    SELECT IDGENERATOR.NEXTVAL INTO tempid FROM dual;
    INSERT INTO TABLE_CHILD (id, weight, PARENTID_FK)
    VALUES (tempid, 0.5, ruleid);
    SELECT IDGENERATOR.NEXTVAL INTO tempid FROM dual;
    INSERT INTO TABLE_CHILD (id, weight, PARENTID_FK)
    VALUES (tempid, 0.3, ruleid);
    */* First parent record */*
    SELECT IDGENERATOR.NEXTVAL INTO ruleid FROM dual;
    INSERT INTO TABLE_PARENT (ID, NAME, DESCRIPTION, RULETYPE, OPERATOR, MININTERCEPT, PRIORITY, penalty, STATUS) VALUES (ruleid, 'Rule 1',null,3,0,0,null,null,1);
    */* Corresponding child records */*
    SELECT IDGENERATOR.NEXTVAL INTO tempid FROM dual;
    INSERT INTO TABLE_CHILD (id, weight, PARENTID_FK)
    VALUES (tempid, 0.2, ruleid);
    SELECT IDGENERATOR.NEXTVAL INTO tempid FROM dual;
    INSERT INTO TABLE_CHILD (id, weight, PARENTID_FK)
    VALUES (tempid, 0.5, ruleid);
    SELECT IDGENERATOR.NEXTVAL INTO tempid FROM dual;
    INSERT INTO TABLE_CHILD (id, weight, PARENTID_FK)
    VALUES (tempid, 0.3, ruleid);
    */* And so on for a few parent records more */*
    END;
    Can you throw some light on the exception I was seeing now? Note that when I changed from stored procedure to an anonymous block, it worked fine.
    One correction in my earlier post is that as the code snippet shows, there are multiple inserts in the child table for every record inserted in the parent one.

Maybe you are looking for

  • Merging PDFs in Adobe Reader

    Is it possible to merge two PDFs in Adobe Reader? Thanks for your help and timely response.

  • Stand-Alone Client to Access JMS Resource without ACC

    I'am having trouble to run the JMS SimpleProducer example from the JMS tutorial as a Stand-Alone application. Although its works as suggested when run inside an ACC. (The tutorial I refer to: http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JMS5.html#w

  • How To  use fckeditor HTML with  flex

    I am using coldfusion server technlogy. I am trying make demo site Flex with coldfusion. I want to know how to use html code with my mxml application. Privious i am using FCK TEXT editor with my HTML File Currently flex have small text editor But i n

  • I can't find where to go to login to hide my purchases? HELP!

    I am trying to hide purchases (books, etc) from my account. I can't find where to do this at. Please help! Thanks!!

  • How to license the controls

    On one buildmachine, we have installed the NI.lpk file in system 32, and when we build and run our applikation, all works fine. On the other buildmachine, the builded app is running correct, and we have another applikation that we will build, and lpk