Declare procedure to use in process flow

Hi
I am using a function which return ture or false, i have written a while loop condition if ture then execute else exit.
the while loop condition is calling that function but when ruung owb throws error that function is not declared
ORA-06550: line 1, column 907:
PLS-00201: identifier 'CHK_NXT_VAL' must be declared
ORA-06550: line 1, column 862:
PL/SQL: Statement ignored
I have set every thing to true in execution on configuration of process flow, on configuration property i don't get this function any where so can't set it to true.
Can you help me to declare and where and how to declare
Thanks

Did you get this working?
Cheers
David

Similar Messages

  • How to declare procedure without using IN OUT parameter?

    Hi:
    I want to declare procedure without using IN OUT parameter.
    My Script is:
    DECLARE
    procedure pro_bank_master() As
    Declare
    kr_bankid integer;
    last_bank_id number(10,0);
    CURSOR comp_cur IS select bank_id,date_created,created_by,modified_by,name_en from COM_BANK_MASTER ;
    comp_rec comp_cur%ROWTYPE;
    BEGIN
    OPEN comp_cur;
    FETCH comp_cur INTO comp_rec;
    WHILE comp_cur%FOUND
    LOOP
    kr_bankid:= comp_rec.bank_id;
    insert into crayom_db.C_Bank(ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, name, routingno, c_location_id, swiftcode, isownbank, description) values(11,11,'Y',sysdate,100,sysdate,11,comp_rec.name_en,'A',1000009,'A','Y','A');
    select crayom_db.C_Bank.c_bank_id into last_bank_id from crayom_db.C_Bank where rownum=1 ORDER BY crayom_db.c_bank.c_bank_id DESC;
    insert into crayom_db.CR_IdBackup values(kr_bankid, last_bank_id);
    FETCH comp_cur INTO comp_rec;
    End LOOP;
    close comp_cur;
    END;
    BEGIN
    pro_bank_master();
    END;
    The Error i am receiving is:
    Error starting at line 1 in command:
    DECLARE
    procedure pro_bank_master() As
    Declare
    kr_bankid integer;
    last_bank_id number(10,0);
    CURSOR comp_cur IS select bank_id,date_created,created_by,modified_by,name_en from COM_BANK_MASTER ;
    comp_rec comp_cur%ROWTYPE;
    BEGIN
    OPEN comp_cur;
    FETCH comp_cur INTO comp_rec;
    WHILE comp_cur%FOUND
    LOOP
    kr_bankid:= comp_rec.bank_id;
    insert into crayom_db.C_Bank(ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, name, routingno, c_location_id, swiftcode, isownbank, description) values(11,11,'Y',sysdate,100,sysdate,11,comp_rec.name_en,'A',1000009,'A','Y','A');
    select crayom_db.C_Bank.c_bank_id into last_bank_id from crayom_db.C_Bank where rownum=1 ORDER BY crayom_db.c_bank.c_bank_id DESC;
    insert into crayom_db.CR_IdBackup values(kr_bankid, last_bank_id);
    FETCH comp_cur INTO comp_rec;
    End LOOP;
    close comp_cur;
    END;
    BEGIN
    pro_bank_master();
    END;
    Error report:
    ORA-06550: line 8, column 27:
    PLS-00103: Encountered the symbol ")" when expecting one of the following:
    <an identifier> <a double-quoted delimited-identifier>
    current
    06550. 00000 - "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:
    Can any Body Help Me?
    Thank You

    DECLARE
    procedure pro_bank_master As --also you should remove brackets when you are not using any parameters
    ----Declare-- *( declare should not be present in procedure declaration )*
    kr_bankid integer;
    last_bank_id number(10,0);
    CURSOR comp_cur IS select bank_id,date_created,created_by,modified_by,name_en from COM_BANK_MASTER ;
    comp_rec comp_cur%ROWTYPE;
    BEGIN
    OPEN comp_cur;
    FETCH comp_cur INTO comp_rec;
    WHILE comp_cur%FOUND
    LOOP
    kr_bankid:= comp_rec.bank_id;
    insert into crayom_db.C_Bank(ad_client_id, ad_org_id, isactive, created, createdby, updated, updatedby, name, routingno, c_location_id, swiftcode, isownbank, description) values(11,11,'Y',sysdate,100,sysdate,11,comp_rec.name_en,'A',1000009,'A','Y','A');
    select crayom_db.C_Bank.c_bank_id into last_bank_id from crayom_db.C_Bank where rownum=1 ORDER BY crayom_db.c_bank.c_bank_id DESC;
    insert into crayom_db.CR_IdBackup values(kr_bankid, last_bank_id);
    FETCH comp_cur INTO comp_rec;
    End LOOP;
    close comp_cur;
    END;
    BEGIN
    pro_bank_master();
    END;
    Edited by: user11183973 on Sep 22, 2009 5:49 PM

  • How to execute SQL scripts using OWB Process flows ?

    Hi,
    I have some SQL Scripts. I have to execute them using OWB Process flows.
    Can i get any document or link which helps me in achieving this?
    Thanks in Advance,
    SriGP

    Sutirtha,
    Thank you very much. I really appreciate all of your responses.
    I have one more question ( Sorry for flooding you with lot of questions :) )
    How to capture the errors which occured inside the SQL Scripts.
    My scenario is like this. I have two sql scripts Script_1.sql and Script2.sql namely. I would like to put dependency on the execution of the scripts.
    If Script_1.sql executes succesfully without any errors, then EXECUTE Script_2.sql
    else if Script_1.sql execution contains errors then DON'T EXECUTE Script_2.sql
    As of now, i observed that the Process flow shows Success State even if there is an error in the sql script execution. Because of which i was not able to put dependency on the execution of the scripts.
    I think i can do it by tweaking(changing) the code inside the SQL Scripts, like logging the errors in some log table and reading it before the next script execution.
    But the restriction is, I Should not touch/change the existing SQL Scripts.
    Do we have any mechanism in the ProcessFlows to identify the SQL Errors that occurred during execution of SQL Scripts ?
    Please suggest any idea on this. It will be great if you can help in this.
    Thanks in advance,
    SriGP.

  • Can I pass a parameter to a mapping without using a process flow?

    I have to load data from multiple countries at different times. Rather than creating an individual mapping for each country, I want to create 1 mapping and pass the country code as a parameter to the mapping. I tried to use an input parameter in the mapping and add a custom parameter to the sqlplus_exec_template hoping the custom parameter would pass to the mapping input parameter but it's not working. No data loads.
    When I add a default value to the input parameter, the data loads but this isn't the solution I need. The value of the parameter will vary depending on the country so I can't use defaults. Since the mappings load automatically, I need the script to be able to pass the parameter in.
    I'm trying to avoid going through a process flow because that just seems like overkill for what I need to do. I just want to load all the data where country code = 'X'. Is this even possible?

    o.k. I tried everything to see which would be the best scenario.
    Zeppo - I can't use your solution because ".main", I believe, applies to an older version of OWB. We have 10g. I know in 3.1 ".main" applies because I still have mappings from that version. Doesn't apply to 10g.
    Sutirtha - I set the property for the prompt but it still didn't work.
    MccM - Yes, the premapping process works perfectly. Only thing is that I have to come up with so many different scenarios in the If then else logic. Giving me a migraine ...
    .... so ....
    I punked out and created a table that stores all of the load times by country code. In the joiner, I linked the table's country code to the country code in my view and only retrieved data where the table's load hour equals the sysdate hour. Now all I have to do is change an entry in the working table if I need to reschedule a load.
    It's cluggy but it works ... and I met me goal of only using 1 mapping.
    Thanks to all of you for providing your input. Much appreciated.

  • Problem in external process using process flow

    Hi All,
    I want to execute a batch file ( which is appending 2 text files ) using OWB process flow.
    For this i am using external process in OWB process flow and giving the parameters for external process as below:
    COMMAND --- VALUE as c:\winnt\system32\cmd.exe
    PARAMETERS_LIST --- VALUE as ?c:\\fileappend.bat
    when i execute the process flow....it is showing
    Completion Status Completed successfully
    Starting Execution BATCH_PROC
    Starting Task BATCH_PROC
    Starting Task BATCH_PROC:EXTERNALPROCESS
    Microsoft Windows 2000 [Version 5.00.2195]
    (C) Copyright 1985-2000 Microsoft Corp.
    C:\owb\owb\bin\win32&gt;
    C:\owb\owb\bin\win32&gt;
    WARNING: Log file truncated - see RAB for further information.
    Completing Task BATCH_PROC:EXTERNALPROCESS
    Completing Task BATCH_PROC
    Completing Execution BATCH_PROC
    But i couldn't see the result, means the files appended.
    It is working when i execute the batch file through MS-DOS.
    Please let me know is there any other necessary steps i need to take.
    Thanks in advance
    Malli

    Hi Malli,
    Because you are using an external process you do not need to specify the cmd command to perform the execution. You can just put the call to the batch file you have in the command string and that is it. Beware that the working directory is <owb home>\owb\bin\win32.
    Mark.

  • Materialized View Refresh; Process Flow

    I was wondering if anyone has used process flow to refresh materialized view;
    I am trying to use a process flow for this i.e. run something similiar to below
    EXECUTE dbms_refresh.refresh('"ODW_SRC"."MV_SERVICE_DAILY_AUDIT"');
    I am trying to avoid using DB scheduler because I want to make sure process flow doesn't clash with update of materialized view causing possible conflict of longer than expected job run time goes into refresh window.
    I am assuming I could use a transformation and build it out; but I was wondering if there is an easier way in just executing this one line ... any idea's
    Thank you in advance for your help

    Sorry, I think the OWB term is post mapping process, its actually an operator in an OWB mapping where you can add a procedure call for example. The procedure can do pretty much what it wants.
    Cheers
    David

  • OWB 9.2.0.4 Process Flows Validation and Export

    Hi
    I'm trying to export my OWB 9.2.0.4 repository into one mdl file in order to upgrade to OWB 10.2.0.4.
    I have problems with exporting many of my Process Flow Packages but not all.
    Here is one example:
    Process Flows
    Process Module (Davia)
    Process Flow Package (DATAFLYT)
    Process (DATAFLYT_AF_EDW_STAGE_OG_EDW)
    I can validate at the Process level (DATAFLYT_AF_EDW_STAGE_OG_EDW) with Success.
    I can validate at the Process Flow Package level (DATAFLYT) with Success.
    When i Validate at the Process Module level (Davia), I get the following Validation error in the first Window:
    "VLD-10008: Process flow DATAFLYT_AF_EDW_STAGE_OG_EDW does not have a location associated with it."
    When looking in the "View Details" I get the following messaage:
    "VLD-10008: DATAFLYT_AF_EDW_STAGE_OG_EDW's owning process flow installed module DAVIA does not have a location associated with it."
    When looking in the "Message Editor" I get this message:
    "NAME","STATUS","MESSAGE TYPE","MESSAGE","DETAILS"
    "DATAFLYT (Process Flow Package)","Valid","SucMsgKey","VLD-0001: Validation completed successfully.","Validation completed successfully."
    "DATAFLYT_AF_EDW_STAGE_OG_EDW (Process)","Valid","SucMsgKey","VLD-0001: Validation completed successfully.","Validation completed successfully."
    In Deployment manager the column Location has the value "OWF_PRODUKTION" for all Objects.
    I can Deploy the Process Flow Package (DATAFLYT) with Success.
    I can make an Export to MDL when I stand at Process Flow Package (DATAFLYT) level.
    End Result: Everything seems to work at the Process Flow Package level but not when Exporting at the Process Module level (Davia).
    Peter Tougaard

    user2918258 wrote:
    Hi
    I'm trying to export my OWB 9.2.0.4 repository into one mdl file in order to upgrade to OWB 10.2.0.4.
    I have problems with exporting many of my Process Flow Packages but not all.
    Here is one example:
    Process Flows
    Process Module (Davia)
    Process Flow Package (DATAFLYT)
    Process (DATAFLYT_AF_EDW_STAGE_OG_EDW)
    I can validate at the Process level (DATAFLYT_AF_EDW_STAGE_OG_EDW) with Success.
    I can validate at the Process Flow Package level (DATAFLYT) with Success.
    When i Validate at the Process Module level (Davia), I get the following Validation error in the first Window:
    "VLD-10008: Process flow DATAFLYT_AF_EDW_STAGE_OG_EDW does not have a location associated with it."
    When looking in the "View Details" I get the following messaage:
    "VLD-10008: DATAFLYT_AF_EDW_STAGE_OG_EDW's owning process flow installed module DAVIA does not have a location associated with it."
    When looking in the "Message Editor" I get this message:
    "NAME","STATUS","MESSAGE TYPE","MESSAGE","DETAILS"
    "DATAFLYT (Process Flow Package)","Valid","SucMsgKey","VLD-0001: Validation completed successfully.","Validation completed successfully."
    "DATAFLYT_AF_EDW_STAGE_OG_EDW (Process)","Valid","SucMsgKey","VLD-0001: Validation completed successfully.","Validation completed successfully."
    In Deployment manager the column Location has the value "OWF_PRODUKTION" for all Objects.
    I can Deploy the Process Flow Package (DATAFLYT) with Success.
    I can make an Export to MDL when I stand at Process Flow Package (DATAFLYT) level.
    End Result: Everything seems to work at the Process Flow Package level but not when Exporting at the Process Module level (Davia).
    Peter Tougaard
    i am not 100 sure but what works in OWB 9.2.0.4 might not work in OWB 10.2.0.4 in the same manner. There have been lot of changes between these versions so i am not very sure about compatibilty from 9.2 to 10.2, If you have exported your mapping and other stuff then without wasting too much time it is probably easier to re-create the process flows manually. This failure might be because some of the components/objects used in process flow of ver 9.2 might not be compatible with 10.2 or hvae been enhanced to work differently.

  • Best practices to design OWB Process Flows

    Hi All,
    I am using OWB to develop historical data warehouse. For this I have created few mappings that load data from source tables to staging tables and then from staging to target tables.
    Now I am designing process flows to execute these mappings. Can someone suggest me what are the best practices to design process flows?
    I have few questions in my mind that I am looking answers for:
    1) Should I keep the mapping to load staging and target tables in different process flows or in one?
    2) Do I need to include an email activity for each mapping failure or in other words how can I integrate all mapping errors in one email?
    3) I am using two outgoing transitions from each mapping; one for success and another unconditional, is that right method or I should use three transitions one for success, one for warning and one for error?
    4) I have created some email activity templates that I am using in process flows. For development environment I have used test from_address and to_address. But when I actually deploy these process flows in production, these addresses will need to be changed. Will I need to change these address individually in each process flow or in other words what is the best way to deploy process flows?
    I am using 10gR2 database and OWB.
    Any help will be appreciated.
    Thanks,
    VKumar

    Any help will be appreciated.
    Thanks.

  • Process flow - How to deploy

    I am new to OWB and have created lot of maps and running maps one by one manually to load data.
    Now I want to automate it with process flow and workflow. I created a location for workflow and tested the connection.
    I have created a small process flow . Now from control center when I select the process flow and click on start it says I have to deploy it before executing it. If I tell yes for deployemnt it says no objects for deployment (rtc-5170).
    What is the procedure for executing a process flow.
    any documentaion will help
    thanks

    Within the control center right click on your process flow, set action, create. Then deploy the process flow. Then run the process flow.
    -J

  • How to Schedule OWB Process Flows through OEM

    Hi,
    I have successfully created mappings and process flows for my project.
    But now I want to schedule the process flows through OEM.
    Following are my DB configurations..
    OWB Version : 10g R1 (Oracle SID LVDSGDEV ) on windows
    Runtime Owner: ATS_RUN_OWNER (Oracle SID LVDSGDEV )
    Runtime User : ATS_RUN_USER (Oracle SID LVDSGDEV )
    Work Flow Schema: OWF_MGR (Oracle SID LVDSGDEV)
    Source & Target DB : 10g (Oracle SID LVRUNDEV) on windows
    Process which I want to Schedule is....
    Process Flow Location: ATS_LOC
    Process Flow Name: PKG_DM
    Process Name: BASE_LOAD
    Can someone please suggest me, the procedure to schedule this process flow.....

    You may choose just to schedule the mapping directly through OEM. Create an OEM SQLPlus job that calls the script:
    @c:\owb_home\owb\rtp\sqlplus_exec_template.sql;
    Check the beginning of the sqlplus_exec_template.sql. It will show examples of the parameters it accepts and it has some documentation. It works nicely.

  • Parametized USER_DEFINED process flow activity

    Can someone help? I am attempting to use USER_DEFINED process flow activity to copy a file to another location under a new name.
    The names for the source and destination file will be generated at execution time by a mapping that will create the file.
    The challenge is how do I pass these file names a parameters; a, b to a file copy script I have written.
    You help will be appreciated.

    This should be possible as we have done a similar thing.
    How are the source and destination files generated in the mapping ?
    As our file information was stored in an Oracle table we created a Transformations/Function that queried out the required information (filenames) and formatted it into the required statement for execution.
    This was stored in a variable and could then be passed to the user defined process in the Process Flow.
    HTH
    Paul

  • How to get the package name of a procedure used in a process flow activity

    Hi all. I'm on OWB 11.2.0.2.0.
    When I used a packaged procedure or function in a mapping operator, I can find out the package.program_unit name by getting the operator's FUNCTION_NAME property. For example,
    OMBRETRIEVE MAPPING '$mapName' OPERATOR '$operName' GET PROPERTIES (FUNCTION_NAME)
    But when the same is used in a process flow activity, I can't find a property name that will give me the same information. I can get the BOUND_NAME, it does not tell me the package name. It must be stored in the activity properties because when you pull up the Synchronize dialog for the activity, it knows the package name.
    Is there a way to get this via an OMBRETRIEVE?
    Thanks.

    ANA, this is exactly what I needed. Thank you so much. I saw REFs also in the OMBRETRIEVE MAPPING/OPERATOR syntax, but went cross-eyed trying to figure out if I could use the same there. The closest I found was GET BOUND_OBJECT.
    Thanks again!

  • How to run procedure in Process flow

    Hello,
    I have a small procedure which I want to run in between two different mappings. I want to achieve it in process flow.
    I had understanding that this can be done using transformation but didn't had much success.
    Please suggest.
    Thanks

    You are correct that this is done with a transformation in the process flow, and this is the way to do it.
    What kind of error message did you get?
    Was it something with the deployed location for the transformation not being set?
    If thats the case, in the design center, mark the process flow and right click, then choose configure. Find the transformation and set the location for where the procedure is deployed.
    Ragnar

  • Using .sql files in OWB Process flow

    Hi,
    Is it possible to use the .sql files in Process flow and schedule them?
    If so,can you please let me know the procedure.
    Thanks for your help and hoping to hear from you soon.
    Thanks
    Vinay

    Process flow is not a scheduler, to schedule, you will have to run the process flow from a scheduler system, such as the one in Oracle Enterprise manager.
    You can run an sql file from a batch file (or a shell file, if you are on unix), and then call the batch file from an external activity in the process flow.
    Regards:
    Igor

  • Use of Business Process Flow in BPC

    Hello Everybody,
    I am new to SAP BPC. I am able to create a New Business Process Flow in BPC.
    But Can any one tell me what are the actual Uses of Business Process Flow in BPC.
    Thanks a lot in Advance!
    Regards,
    Satish.

    Hi,
    BPF can be compared a little bit with 'guided procedures' in BI: you define a pre-defined process consisting of multiple steps which have to be executed by the user to come to the end result. You can choose to oblige the user to first finish step X before starting step Y. A step can be lots of things like input data, set a certain status, ... BPF are executed in BPC web. Disadvantage is that once you finished a step in a BPF, you cannot set it back (unless everything is initialized ...)
    Alternative could be a custom menu, in which you also make a list of activities, but the user is free to execute any step in any sequence
    regards
    Dries

Maybe you are looking for

  • Repeat one song option doesn't work correctly

    Ok I hope I can explain this correctly. On my iPhone, if I want to play one song on repeat while I'm in the shower or something (maybe working out)...I start up the iPod app, and hit "play". It plays that song, but then doesn't repeat.  It moves to t

  • Mountain Lion doesn't detect displays on startup

    I use my MacBook Pro extensively in clamshell mode, and when I did this in Lion, the integrated screen would stay off whenever I turned onb the computer because the lid was closed. However, in Mountain Lion, the screen stays on despite the fact that

  • Workflow for Payment proposal

    Hi all, Has anyone of you developed  workflow approval process at the time of payment proposal generation? Is there a standard workflow available? We want the payment proposal to trigger a workflow and send it to the manager for approval - this manag

  • KEPM....Delete plan values..

    Hi Experts- Here i am facing on eissue pls suggest.... In KEPM i did planning for 2011, that is updated with wrong values and with wrong combination...... I have deleted all steps in KEPM, but still i am getting those values in KE30 report....pls gui

  • [SOLVED] systemd and rc-local.service

    So, today i decided to try a pure systemd system by migrating my old installation. The first problem i faced comes from rc-local.service. I followed this: https://wiki.archlinux.org/index.php/Sy - s#rc.local and created an identical rc-local.service: