Trigger and Functions

Hi All,
I am new to PL/SQL. In my projeect i came thru a requirement.
My table has a column called time and the type of column is char(4).
data will look like 1100. The new table has time as char(5), Now i want to write a trigger for each row inserted to change time col data to 11:00
for that i wrote a trigger and function. The function compiled well, i get errors compiling trigger.
Here is the code for trigger and the function. Any help is appriciated. any code that will meet my requirements is helpfull.
create or replace TRIGGER "PACER"."TimeTrigger"
AFTER INSERT
ON PACER.TIMETEST2
BEGIN
UPDATE TimeTrigger
     SET TIME1 = ChangeTime(TIME1);
     SET TIME2 = ChangeTime(TIME2);
END;
Error(9,2): PL/SQL: SQL Statement ignored
Error(9,6): PL/SQL: ORA-00922: missing or invalid option
create or replace FUNCTION ChangeTime(ChTime VarChar2) RETURN Varchar2 IS
     Len NUMBER;
     ChHours CHAR(2);
     ChMinutes CHAR(2);
     ChSec CHAR(2);
     ChColun CHAR(1);
     ChTimeFormat CHAR(5);
BEGIN
     Len := LENGTH(ChTime);
     ChColun := ':';
     IF Len = 4 THEN
          ChHours := SUBSTR(ChTime,1,2);
          ChMinutes := SUBSTR(ChTime,3,4);
          ChTimeFormat := ChHours||ChColun||ChMinutes;
     END IF;
     RETURN ChTimeFormat;
END ChangeTime;
Thanks.

Hi,
Here's something you can try. It should give you ideas.
CREATE TABLE     table_x
(     empno          NUMBER
,     ename          VARCHAR2 (10)
,     status_cd     VARCHAR2 (1)
CREATE TABLE     table_y
(     id          NUMBER
,     name          VARCHAR2 (15)
,     status_cd     VARCHAR2 (1)
CREATE OR REPLACE TRIGGER     table_x_aiu
AFTER INSERT OR UPDATE ON     table_x
FOR EACH ROW
BEGIN
--     This trigger keeps a copy of table_x's
--     empno, ename and status_cd columns in table_y's
--     id,    name  and status_cd columns.
--     The strings in table_x be any combination of UPPER
--     and lower case, but the copies in table_y are always
--     UPPER.
     MERGE INTO     table_y     y
     USING     (
          SELECT     :NEW.empno          AS empno
          ,     UPPER (:NEW.ename)     AS ename
          ,     UPPER (:NEW.status_cd)     AS status_cd
          FROM     dual
          )          x
     ON     (x.empno = y.id)
     WHEN MATCHED          THEN
     UPDATE     SET     y.name          = x.ename
          ,     y.status_cd     = x.status_cd
     WHEN NOT MATCHED     THEN
     INSERT     (y.id,          y.name,          y.status_cd)
     VALUES     (x.empno,     x.ename,     x.status_cd);
END     table_x_aiu;
SHOW ERRORS
PROMPT  ***** Testing INSERT  *****
INSERT INTO table_x (empno, ename, status_cd) VALUES (1, 'Agatha',     'A');
INSERT INTO table_x (empno, ename, status_cd) VALUES (2, 'Lucy',     'b');
PROMPT     ***** table_y should have two rows  *****
SELECT     *
FROM     table_y
ORDER BY     id;
PROMPT  ***** Testing UPDATE  *****
UPDATE     table_x
SET     ename     = 'Agnes'
WHERE     empno     = 1;
PROMPT     ***** ID=1 should have name='AGNES' and status_cd='A'  *****
SELECT     *
FROM     table_y
ORDER BY     id;The names I give to triggers are usually similar to, but not exactly the same as, the name of the table to which they are attached. The last part of the trigger name, "_aiu", is a reminder that this trigger fires After Insert or Update.
Avoid using double-quotes when naming things.

Similar Messages

  • We have three discussions forums with same subject. whenever a post gets new reply in one forum, it should automatically trigger workflow functionality to check conditions and send the same reply to other synchronized forums.

    we have three discussions forums with same subject. whenever a post gets new reply in one forum, it should automatically trigger workflow functionality to check conditions and send the same reply to other synchronized forums.
    Rajiv Kumar

    Hi,
    More details about your discussions forum will make others easier to find a corresponding solution on your requirement.
    If you mean there are three Discussion Board list waiting for synchronizing, I would suggest you create an Event Receiver for the three Discussion Board list.
    Here is a link with code demo about how to copy items from one Discussion Board to another including Replies:
    http://spcodes.blogspot.com/2013/03/programmatically-copy-items-from-one.html
    Here is a step by step sample on creating a simple Item added event receiver for Custom List in SharePoint 2010:
    http://msdn.microsoft.com/en-us/library/ff398052.aspx
    More information on Event Receiver for your reference:
    http://msdn.microsoft.com/en-us/library/gg749858(v=office.14).aspx
    http://msdn.microsoft.com/en-us/library/ff408183(v=office.14).aspx
    Feel free to reply if there are still any questions. 
    Best regards
    Patrick Liang
    TechNet Community Support

  • How to use trigger file functionality in File Adapters - Match file names

    Hi,
    I am using trigger file functionality in File adapters to pick up data files as:-
    <property name="TriggerFilePhysicalDirectory" value="/pub/Dev/eastern/brs/"/>
    <property name="TriggerFile" value="*.trg"/>
    Here any file with .trg extension is taken as a trigger file and File adapter randomly picks up one of the data files.
    My requirement is that the trigger file will be of the same name as that of the data file like:- <data_file>.data <data_file>.trg
    How to implement this feature using trigger file functionality of File adapters??

    The trigger file is any file that indicates(triggers) that the actual data file has been put in ftp location, i.e- determines the state when data file should be read.
    This helps usually when a large data file is being transferred and at that incomplete state the FTP adapter tries to read it(which is not desirable)
    It is configured when you create the ftp adapter service in your process(in wizard) or u can manually configure that in the JCA file for the FTP Adapter service as below:-
    <?xml version="1.0" encoding="UTF-8"?>
    <adapter-config name="FlatStructureIn" adapter="File Adapter" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
    <connection-factory location="eis/FileAdapter" UIincludeWildcard="*.txt" adapterRef=""/>
    <endpoint-activation operation="Read">
    <activation-spec className="oracle.tip.adapter.file.inbound.FileActivationSpec">
    <property.../>
    <property name="*TriggerFilePhysicalDirectory*" value="/tmp/flat/ArchiveDir"/>
    </activation-spec>
    </endpoint-activation>
    </adapter-config>
    Reference: http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10231/adptr_file.htm#CIAJCBGI

  • How can I use the procedures and functions in my library

    hello, all
    I have a pl/sql library MYLIB.pld, MYLIB.pll and MYLIB.plx.
    How can I invoke procedures and functions there in JDeveloper?
    Thanks.
    Damon

    I am indeed using ADF BC to re-develop the oracle application.
    Here is my situation:
    We have an oracle form application.
    Our objective is to try to re-use the existing sources in the form application as much as possible:
    1. tons of procedures and functions in a pl/sql library(a file with extension name portfolioLib.pll or portfolioLib.plx);
    2. tons of form-level triggers, data-block triggers and item-triggers;
    3. tons of database stored procedures and triggers;
    After doing a research on JDeveloper, we decide to use ADF Swing+ADF BC to re-develop the application.
    My opinion for the above three kinds of sources in our form application is:
    for 1: we try to move most of procedures and functions into database(except Form build-in);
    for 2: we try to wrap those triggers in a SQLJ class;
    for 3: we try to call database procedures and functions with PreparedStatment or CallableStatement;
    I just do a test on a post-query trigger on a data-block:
    I created a sqlj file, named testSQLJ.sqlj in the test.view package;
    I tried to call it in createInstanceFromResultSet of testDeptVOImpl.java which is test.model package,
    I was told that testSQLJ cannot be found there. why?
    How can I call some classes from test.view package in some classes of test.model?
    I read some documents about how to deal with post-query trigger in JDeveloper: create a view with SQL statement, but it seems that it does not support pl/sql statement there.
    Can you give me some opinion about the above stuff?
    I really appreciate your help.
    Damon

  • Differences between trigger and Integrity Constraints

    waht are the differences between trigger and Integrity Constraints

    waht are the differences between trigger and Integrity ConstraintsConstraints are to be preferred:
    "Declarative Ease
    Define integrity constraints using SQL statements. When you define or alter a table, no additional programming is required. The SQL statements are easy to write and eliminate programming errors. Oracle controls their functionality. For these reasons, declarative integrity constraints are preferable to application code and database triggers. The declarative approach is also better than using stored procedures, because the stored procedure solution to data integrity controls data access, but integrity constraints do not eliminate the flexibility of ad hoc data access.
    Centralized Rules
    Integrity constraints are defined for tables (not an application) and are stored in the data dictionary. Any data entered by any application must adhere to the same integrity constraints associated with the table. By moving business rules from application code to centralized integrity constraints, the tables of a database are guaranteed to contain valid data, no matter which database application manipulates the information. Stored procedures cannot provide the same advantage of centralized rules stored with a table. Database triggers can provide this benefit, but the complexity of implementation is far greater than the declarative approach used for integrity constraints."
    More:
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/data_int.htm#sthref2976

  • Pf status and function codes

    Hi,
    I have a report where in i have to add a new icon with a tick symbol along with the existing execute icon ie f8.I have copied the status of the program into another before adding the new icon and to that i have added the new icon and function code.
    i have used set pf-status in the initialisation event.Now when i give the select options and press f8 it enters into the program but sy-ucomm is still empty and does not do the desired functionality.If i click the icon for test run it does not enter the program itself.Can anyone help me out on this.
    The status is activated in se41.
    Points will be rewarded.
    Please help.
    Regards,
    Sowmya.

    hi,
    just try like that used in the report: demo_list_at_user_command
    like:
    START-OF-SELECTION.
      WRITE: 'Basic List',
           / 'SY-LSIND:', sy-lsind.
    TOP-OF-PAGE.
      WRITE 'Top-of-Page'.
      ULINE.
    TOP-OF-PAGE DURING LINE-SELECTION.
      CASE sy-pfkey.
        WHEN 'TEST'.
          WRITE 'Self-defined GUI for Function Codes'.
          ULINE.
      ENDCASE.
    AT LINE-SELECTION.
      SET PF-STATUS 'TEST' EXCLUDING 'PICK'.
      PERFORM out.
      sy-lsind = sy-lsind - 1.
    AT USER-COMMAND.
      CASE sy-ucomm.
        WHEN 'FC1'.
          PERFORM out.
          WRITE / 'Button FUN 1 was pressed'.
        WHEN 'FC2'.
          PERFORM out.
          WRITE / 'Button FUN 2 was pressed'.
        WHEN 'FC3'.
          PERFORM out.
          WRITE / 'Button FUN 3 was pressed'.
        WHEN 'FC4'.
          PERFORM out.
          WRITE / 'Button FUN 4 was pressed'.
        WHEN 'FC5'.
          PERFORM out.
          WRITE / 'Button FUN 5 was pressed'.
      ENDCASE.
      sy-lsind = sy-lsind - 1.
    FORM out.
      WRITE: 'Secondary List',
           / 'SY-LSIND:', sy-lsind,
           / 'SY-PFKEY:', sy-pfkey.
    ENDFORM.
    When you run the program, the system displays the following basic list with a the page header defined in the program:
    You can trigger the AT LINE-SELECTION event by double-clicking a line. The system sets the status TEST and deactivates the function code PICK. The status TEST contains function codes FC1 to FC5. These are assigned to pushbuttons in the application toolbar. The page header of the detail list depends on the status.
    Here, double-clicking a line no longer triggers an event. However, there is now an application toolbar containing five user-defined pushbuttons. You can use these to trigger the AT USER-COMMAND event. The CASE statement contains a different reaction for each pushbutton.
    For each interactive event, the system decreases the SY-LSIND system field by one, thus canceling out the automatic increase. All detail lists now have the same level as the basic list and thus overwrite it. While the detail list is being created, SY-LSIND still has the value 1.
    Regards,
    Renjith Michael.

  • A trigger blocking function  for control cycle in Kanban

    Hi,
    I wantet to change the status in Kanban. I get this error u201CA trigger blocking function was defined for the control cycle in the replenishment strategyu201D. I don't want to set a period of blocking function. how can I deactivate it.
    Thanks

    Hi,
    Pls. check the following setting :
    First in PK13n ( KANBAN Board) check whether X is marked with KANBAN Number e.g. 1X.
    If so then replenishment will not be triggered because KANBAN is locked.
    To unlock the KANBAN pls do the following :
    Go to -
    > PKMC ( Control Cycle Maintanance) in Change Mode----> Select Control Cycle -> Go to Display Control Cycle ( Glass Icon)--> on top of details of kanban cycle choose option ---> Display Kanbans ( Spectacle Icon )
    Select it and go inside : Inside pop up appearing check first Column : Lkln ( Lock Indicator).
    Remove the tick in check box of lock indicator for respective KANBAN for which  you want to trigger replenishment.
    Pls. try above settings and revert back if still problem persists.
    Reward if problem solved.
    Regards,
    Tejas
    Edited by: Tejas  Pujara on Aug 1, 2008 12:25 PM

  • Custom Trigger and error handling problem

    hi ! I'm creating a custom trigger in ASP
    <br />
    <br />all it do is to check the lenght of given string.
    <br />it has a logic , true or false operation.
    <br />I just want to display an error message !
    <br />
    <br />I try BEFORE or AFTER in trigger register, but still didn't work !
    <br />
    <br />but why it didn't work ?
    <br />
    <br />any ideas ?
    <br />
    <br /><%<br />'start Trigger_Custom trigger<br />Function Trigger_Custom (ByRef tNG)<br /><br /> xemployer = len(trim(tNG.getColumnValue("employer")))<br /> xemail = len(trim(tNG.getColumnValue("email")))<br /> xjob_position = len(trim(tNG.getColumnValue("job_position")))<br /> xeducation = len(trim(tNG.getColumnValue("education")))<br /> xreference = len(trim(tNG.getColumnValue("reference")))<br /> xage_max = len(trim(tNG.getColumnValue("age_max")))<br /> xgender = len(trim(tNG.getColumnValue("gender")))<br /> <br /> totallen = (xemployer + xemail + xjob_position + xeducation + xreference + xage_max + xgender)<br /><br /> if (totallen > 158) then<br /><br /> Set update_error = new tNG_error<br /> update_error.init "Your Data contain too much characters ! (max 158)", Array(), Array()<br /> Set Trigger_Custom = update_error<br /><br />  else<br /> Set Trigger_Custom = nothing<br />  end if<br /><br />Set Trigger_Custom = nothing<br />End Function<br />'end Trigger_Custom trigger<br />%>
    <br /><%<br />' Register triggers<br />ins_Job.registerTrigger Array("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1")<br />ins_Job.registerTrigger Array("BEFORE", "Trigger_Default_FormValidation", 10, formValidation)<br />ins_Job.registerTrigger Array("END", "Trigger_Default_Redirect", 99, "../includes/nxt/back.asp")<br />ins_Job.registerTrigger Array("BEFORE", "Trigger_Custom", 50)<br />%>
    <br />
    <br /><%<br />' Register triggers<br />upd_Job.registerTrigger Array("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Update1")<br />upd_Job.registerTrigger Array("BEFORE", "Trigger_Default_FormValidation", 10, formValidation)<br />upd_Job.registerTrigger Array("END", "Trigger_Default_Redirect", 99, "../includes/nxt/back.asp")<br />upd_Job.registerTrigger Array("BEFORE", "Trigger_Custom", 50)<br />%>

    hello there, thanks for replying
    <br />i know what you mean, i see that the first time i submitted in to this forum.
    <br />
    <br />actually IT IS SEPARATED !
    <br />i just copy paste my code into this TextBOX, and that's whats happened
    <br />
    <br />ok i copy paste my code again, but this time i use ENTER to seperated those lines.
    <br />
    <br /><% 'start Trigger_Custom trigger <br /><br />Function Trigger_Custom (ByRef tNG) <br /><br />xemployer = len(trim(tNG.getColumnValue("employer"))) <br />xemail = len(trim(tNG.getColumnValue("email"))) <br />xjob_position = len(trim(tNG.getColumnValue("job_position"))) <br />xeducation = len(trim(tNG.getColumnValue("education"))) <br />xreference = len(trim(tNG.getColumnValue("reference"))) <br />xage_max = len(trim(tNG.getColumnValue("age_max"))) <br />xgender = len(trim(tNG.getColumnValue("gender"))) <br /><br />totallen = (xemployer + xemail + xjob_position + xeducation + xreference + xage_max + xgender) <br /><br />if (totallen > 158) then <br /><br />Set update_error = new tNG_error <br />update_error.init "Your Data contain too much characters ! (max 158)", Array(), Array() <br />Set Trigger_Custom = update_error <br /><br />else <br />Set Trigger_Custom = nothing <br />end if <br /><br />Set Trigger_Custom = nothing <br />End Function <br />'end Trigger_Custom trigger <br />%>
    <br />
    <br /><% ' Register triggers <br /><br />ins_Job.registerTrigger Array("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1") ins_Job.registerTrigger Array("BEFORE", "Trigger_Default_FormValidation", 10, formValidation) ins_Job.registerTrigger Array("END", "Trigger_Default_Redirect", 99, "../includes/nxt/back.asp") ins_Job.registerTrigger Array("BEFORE", "Trigger_Custom", 50) <br /><br />%>
    <br />
    <br /><% ' Register triggers <br /><br />upd_Job.registerTrigger Array("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Update1") upd_Job.registerTrigger Array("BEFORE", "Trigger_Default_FormValidation", 10, formValidation) upd_Job.registerTrigger Array("END", "Trigger_Default_Redirect", 99, "../includes/nxt/back.asp") upd_Job.registerTrigger Array("BEFORE", "Trigger_Custom", 50) <br /><br />%>
    <br />
    <br />there it is My Actual Code looks like.
    <br />
    <br />again, thanks for replying

  • Difference between After parameter Trigger and befor report Trigger

    hi,
    Can anyone tell me Functional difference between After parameter Trigger and Before Report Trigger. with some practical example or scenario.
    I did try few things but I couldn't make out any difference.
    thanks
    ram

    Probably none at this point.
    We pass parameters from a form (and do not use the report param selection screen), but always run code in the afterpform.
    put your parameter form code processing in the afterpform. I rarely ever use before report.
    The order is as expected:
    before pform
    param form
    after pform
    before report
    report
    --between pages during report run
    after report

  • Trigger Javascript function onClick of HTMLB button

    Hello Everyone,
    Could anyone give me some sample code to trigger a Javascript function onClick of HTMLB button. Basically I have some javascript code and I want it be executed on click of a HTMLB button. I would greatly appreciate your help. Thanks.
    Regards,
    GY

    Hi,
    as Ravi wrote, you trigger javascript functions using the attribute onClientClick. You define first the javascript code in your page and then you can call the code like this:
          <htmlb:button text    = "Some text"
                        encode  = "false"
                        onClientClick = "javascript:Your.Function()" />
    check that you define the code first and then you write the code for your button; otherwise, application will not know that the JS code exists.

  • How to find out list of procedures and functions inside a package

    How I can find out the list of Procedures and Functions inside a Package.

    Look at ALL_PROCEDURES and ALL_ARGUMENTS.

  • Unit testing, integration and functional testing

    Hello all,
    I would like to know the difference between Unit testing, integration and functional testing. And also what are the testing tools that are more commonly used?
    Thanks,
    Maxx

    Hi,
        Unit testing :
                    A complete cycle of each  module will be tested
                    ie for PP Right from requirements to planned orders /production orders
                    confirmation .
        Integration testing:
                    Here cross module testing will be carried out.
                     ie PP and MM integration
                        After confirming production order a GR is made /billing is carried out
                        and delivered.
          Functional testing:
                    This testing is carried out to see whether the system can with stand l the loads during processing by users.
                    Stress test and volume test.
                Regards,
                nandha

  • Problem with trigger and entity in JHeadsart, JBO-25019

    Hi to all,
    I am using JDeveloper 10.1.2 and developing an application using ADF Business Components and JheadStart 10.1.2.27
    I have a problem with trigger and entity in JHeadsart
    I have 3 entity and 3 views
    DsitTelephoneView based on DsitTelephone entity based on DSIT_TELEPHONE database table.
    TelUoView based on TelUo entity based on TEL_UO database table.
    NewAnnuaireView based on NewAnnuaire entity based on NEW_ANNUAIRE database view.
    I am using JHS to create :
    A JHS table-form based on DsitTelephoneView
    A JHS table based on TelUoView
    A JHS table based on NewAnnuaireView
    LIB_POSTE is a :
    DSIT_TELEPHONE column
    TEL_UO column
    NEW_ANNUAIRE column
    NEW_ANNUAIRE database view is built from DSIT_TELEPHONE database table.
    Lib_poste is an updatable attribut in TelUo entity, DsitTelephone entity, NewAnnuaire entity.
    Lib_poste is upadated in JHS table based on TelUoView
    I added a trigger on my database shema « IAN » to upadate LIB_POSTE in DSIT_TELEPHONE database table :
    CREATE OR REPLACES TRIGGER “IAN”.TEL_UO_UPDATE_LIB_POSTE
    AFTER INSERT OR UPDATE OFF lib_poste ONE IAN.TEL_UO
    FOR EACH ROW
    BEGIN
    UPDATE DSIT_TELEPHONE T
    SET t.lib_poste = :new.lib_poste
    WHERE t.id_tel = :new.id_tel;
    END;
    When I change the lib_poste with the application :
    - the lib_poste in DSIT_TELEPHONE database table is correctly updated by trigger.
    - but in JHS table-form based on DsitTelephoneView the lib_poste is not updated. If I do a quicksearch it is updated.
    - in JHS table based on NewAnnuaireView the lib_poste is not updated. if I do a quicksearch, I have an error:
    oracle.jbo.RowAlreadyDeletedException: JBO-25019: The row of entity of the key oracle.jbo. Key [null 25588] is not found in NewAnnuaire.
    25588 is the primary key off row in NEW_ANNUAIRE whose lib_poste was updated by the trigger.
    It is as if it had lost the bond with the row in the entity.
    Could you help me please ?
    Regards
    Laurent

    The following example should help.
    SQL> create sequence workorders_seq
      2  start with 1
      3  increment by 1
      4  nocycle
      5  nocache;
    Sequence created.
    SQL> create table workorders(workorder_id number,
      2  description varchar2(30),
      3   created_date date default sysdate);
    Table created.
    SQL> CREATE OR REPLACE TRIGGER TIMESTAMP_CREATED
      2  BEFORE INSERT ON workorders
      3  FOR EACH ROW
      4  BEGIN
      5  SELECT workorders_seq.nextval
      6    INTO :new.workorder_id
      7    FROM dual;
      8  END;
      9  /
    Trigger created.
    SQL> ALTER SESSION SET NLS_DATE_FORMAT = 'DD-MON-YYYY HH24:MI:SS';
    Session altered.
    SQL> insert into workorders(description) values('test1');
    1 row created.
    SQL> insert into workorders(description) values('test2');
    1 row created.
    SQL> select * from workorders;
    WORKORDER_ID DESCRIPTION                    CREATED_DATE
               1 test1                          30-NOV-2004 15:30:34
               2 test2                          30-NOV-2004 15:30:42
    2 rows selected.

  • Diff b/w BAPI and Function Module.

    What is the difference between BAPI and Function Module....
    By Interface programming do we mean posting data thru  BAPI,BDC....

    Hi Alex,
    BAPI: Standard Interface in the R/3 system that allows the system to communicate with components of other business suites.
    FM: These are the procedures that are defined in the Function Groups and can be called from any ABAP Program. FM allow you to encapsulate and reuse global functions int he R/3 system.
    The main basic difference between BAPI and FM are
    1) All BAPIs are FM but not all FMs are BAPIs
    2) BAPIs are remote enabled
    3) BAPIs interface will not have a changing and exceptions. They can not be used to have use dialog.
    Interface programs can post data to SAP either through a BDC, BAPI, IDOC etc. It depends on the type of requirement.
    Hope this solves your question.
    Enjoy SAP
    Rajasekhar

  • Use of Procedure and Functions in ADF BC

    Hi,
    In ADF 11g
    1. can I use oracle function and procedures ( having in and OUT parameters) to expose as service interface
    2. if yes , How can this be done. and what are the allowed data types as input to procedure/function and can be returned by procedure/function
    3. How the transaction control will be achieved using ADF BC service interface.
    E.g. one ADF BC creates orders in order details and second creates Order lines in Order lines table. Now if order is created successfully but line creation fails then I want order to be rolled back also.
    Thanks.

    google it out.
    How to get two out param which is used in Procedure
    http://sameh-nassar.blogspot.in/2010/01/create-plsql-function-and-call-it-from.html
    http://adf-tools.blogspot.in/2010/09/adf-function-call-from-el-statement-in.html
    http://adf-tools.blogspot.in/2010/03/adf-plsql-procedure-or-function-call.html
    http://adfhowto.blogspot.in/2010/11/call-db-procedure-or-function-from-adf.html
    Re: use of Procedure and Functions in ADF BC

Maybe you are looking for

  • IPod Nano Issues, Please Help

    I purchased my nano on November 18 and havn't had problems until two days ago. Two days ago, it stopped responding to the clikc wheel, I could only turn it on with menu and when I had to hold and unhold it to turn it off. Yesterday it started working

  • Downloading purchased movies onto another device

    I just bought a new MacBook Pro and want to download movies that I have purchsed on my account on a different device. I can doanload music that I have purchased but can't download movies. How do I do this?

  • Is it possible to have a file hidden in Windows, but visible in OS X?

    Essentially, I am trying to have a thumb drive with two versions of a piece of software, one Windows executable, and one Mac executable. I want the Mac file hidden in Windows, and vice versa. I found that I could use SetFile and make a file invisible

  • Sysid and client of caller for EJB Jco function

    Hello, I'm trying to identify the sender system and client (ABAP) for a processFunction call implemented as ejb (with JCO interface). Does someone knew a method to access caller information from the processFunction call? Regards, Frank

  • Doesn't load images facebook

    In facebook, all blank images white, and screen it says blue write. I'm tired enable adblock and javasiricpt. nothing happens... Any help?