How to call pragma autonomus_transation in repeated triggering event
How to call pragma autonomus_transation in repeated triggering event
eg :
create or replace trigger trg_1
after insert on aa
for each row
declare
PRAGMA AUTONOMOUS_TRANSACTION;
begin
insert into aa values(10);
end;
insert into aa values(20); ..... can u help me pl
Welcome to the forum.
How to call pragma autonomus_transation in repeated triggering event You don't, unless you want to corrupt your data.
Read:
http://asktom.oracle.com/pls/asktom/ASKTOM.download_file?p_file=6551198119097816936
http://www.oracle-base.com/articles/9i/MutatingTableExceptions.php
http://www.oracle-base.com/articles/misc/AutonomousTransactions.php
Similar Messages
-
How to call external application (transaction launcher) from event method
Hi all
Can somebody tell me which program lines to put into an event handler method in a view controller to get an external application called. I intend to define the link to the external application in the Transaction Launcher. But I cannot find any instructions on how to call the Transaction Launcher from my event handler method. I do not want to launch the application from the navigation bar, ONLY via a link in a list of invoices in a table view, and I want to press the invoice number to get an external application called to display the invoice. My event handler method gets called fine enough, but I have no clue which program lines to put into the method to pass on the call to the Transaction Launcher
Best regards
Arne Thage / MarchIT / Denmarkhi,
check class CL_CRM_UI_LTX_NAVBAR_PARAM.
call method : CREATE_PARAMETER_OBJECT with parameters
IV_LINK_ID Importing Type CRMT_UI_LOGICAL_LINK_ID Logical Link ID
IV_PARAMETER Importing Type CRMT_UI_LINK_PARAMETER Link Parameter
RV_RESULT Returning Type Ref To IF_BOL_BO_PROPERTY_ACCESS BO Attribute
I think it should work but have never done myself.
Best Regards
Pankaj Kumar -
How do I stop iPhoto from repeatedly closing Event title boxes when I am in the middle of entering a title?
This problem started several months ago. I have tried typing more slowly and typing faster; neither help.
It now takes me about four attempts to complete a title of about twelve characters, achieving about three characters on each attempt.
I am running iPhoto 9.4.3 on OS X 10.8.3 on a 2.93 GHz Intel Quad-Core i7 iMac with 12 GB of DDR3 memory.As a Test:
Hold down the option (or alt) key and launch iPhoto. From the resulting menu select 'Create Library'
Import a few pics into this new, blank library. Is the Problem repeated there? -
***How to call BSP App when custom button event fired from toolbar group***
Dear PCUI Experts,
I have created one custom button for the transaction CRMD_BUS2000116.
And my urgnet requirement is , I need to call BSP application which is used to take data from custom fields and stores into BP table.
How to call the BSP App. when i clicks on the button.
Please help me..
I will reward with great points.
Regards,
Stella.Hi Purushothaman,
I have created a button in CRRM_ACCOUNT application.
Now i want to call a custom bsp application by clicking on that button.I have followed step given in this blog
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1646. [original link is broken] [original link is broken] [original link is broken] [original link is broken]
But the event is not triggered.Do I have to create an iview for my bsp application?
How to do that?Plz help.
Regards,
Ruby. -
How to call a bean method from javascript event
Hi,
I could not find material on how to call a bean method from javascript, any help would be appreciated.
RalphHi,
Basically, I would like to call a method that I have written in the page java bean, or in the session bean, or application bean, or an external bean, from the javascript events (mouseover, on click, etc...) of a ui jsf component. I.e., I would like to take an action when a user clicks in a column in a datatable.
Cheers,
Ralph -
How to call a static method from an event handler
Hi,
I'm trying to call a static method of class I designed. But I don't know how to do it. This method will be called from an event handler of a web dynpro for Abap application.
Can somebody help me?
Thx in advance.
Hamza.To clearly specify the problem.
I have a big part code that I use many times in my applications. So I decided to put it in a static method to reuse the code. but my method calls functions module of HR module. but just after the declaration ( at the first line of the call function) it thows an exception. So I can't call my method. -
How to Call action Listener from Mouse Listener event
One class (class 1)implements mouse listener and responds to a mouse events.
As part of that response it needs to call a variable set method in another class (class 2)and also have that setMethod call it's own ActionPerformed.
Seems the problem is I don't have aaction event to pass
I only have a mouse event. As follows:
class 1
public void mousePressed(MouseEvent e) {
int y1=Math.abs(e.getY()-y);
this.sourceReference.setVar(y1);
repaint();
class 2
int var;
public void setVar(int y)
var=y;
this.ActionPerformed(?? ); //This is what I want to do
Same question slightly different.
From class 1 I scould first call the setVar method
and then issue a call to class 2's ActionPerformed.
But again I don't seem to have the proper action event e to pass it.
ThanksDo you need any information from an ActionEvent that you'd be calling from the MouseEvent (ie the action command, or somethig) or can you just have the actionPerformed method just call a different method that doesn't need an ActionEvent?
public void actionPerformed(ActionEvent e) {
this.doActionStuff();
public void doActionStuff() {
// does what you want the action event to do
Then from the mousePressed method you can just call the doActionStuff method.
I'm not sure if this helps or not, hope it does.
Scott -
How to call a java script in while eventprocessing?
hi friends,
How to call a java script from an event.
when i click a button, i want to display a message in IE.
For ex: BTN_CAN,
When i click on this in IE i want show a message like "clicked on cancelled".
how can i do this.....
in javascript WINDOW.ALERT i am trying....
Regards,
Shankar.you can do some thing like this...
< % @ pa g e la ng uag e="a b ap" %>
< % @ e xte n sion name="htmlb" prefix="h tm l b" % >
< h t m l b:co nt e nt d es ign="design2 00 3" >
< ht m lb:page title=" " >
< h tm lb :for m >
< h t mlb:textVi ew text = "Hello World!"
des ign = "EMPHASIZED" />
< ht m lb :bu tton text = "Press Me"
on Clie ntC lick = "al ert(' H ell w or l d')" / >
< / h t mlb :for m >
< / ht mlb :pa g e >
< / htm lb:co nt e nt >
Edited by: Vijay Babu Dudla on Oct 6, 2008 7:20 AM -
How to call methods at selection screen?
Hi all,
I am developing a program in object oriented abap.
i have defined a class and implementated, and we have to instantiate the class in start of selection.
now the problem is how to call a method at selection screen event.
i want to validate the inputs entered by users. so can i create a static method which can be called without instantiating a class?
please guide me
thanksHello Mr A,
Define the method as a Static Method and that will solve your problem. Static methods can be called directly and does not need the class to be instantiated before it can be called.
Data: my_class type ref to zcl_report_utilities.
At Selection-Screen.
Call Method zcl_report_utilities=>check_selections
exporting
iv_repnm = sy-cprog
importing
et_messages = lt_msgs.
Start-Of-Selection.
Create Object my_class
exporting
im_pernr = ls_e1plogi-objid
im_begda = c_lowdate
im_endda = c_hidate.
Call Method my_class->read_infotypes
exporting
im_infty = c_org_assn
changing
et_infty = it_infty.
Here you can see how the method check_selections is called before the class zcl_report_utilities is instantiated. The best part about the Static Methods is if you are writing the class in the Class Library (SE24), any other programs can call them directly (if they need to) without needing to instantiating the entire class before the call.
Also note the difference in syntax when calling the static method check_selections to when calling the Instance method read_infotypes.
Hope this solves your issue and please do not forget to reward points.
Cheers,
Sougata.
p.s. if you are defining your class locally (program specific) then use Class-Methods to define a static method.
Edited by: Sougata Chatterjee on May 1, 2008 9:53 AM -
How to call a default procedure from event handling...
Hello All,
I am new to Oracle Application Server Portal. I have created a form and I want to update the table using custom update button. can any body tell me how to call the default doUpdate procedure from event handling..This should help:
- http://download.oracle.com/docs/cd/B14099_19/portal.1014/b14135/pdg_portletbuilder.htm#BABFIHIF
Cheers,
Mick. -
How to call or not call a Trigger in same table based on condition?
Hi
How to call or not call a Trigger in below situations..
If a table contains a record of same value i.e,
[i[u]]ID
1
1
3
In above ID 1 is repeated for two times.
In this situations i don't want to call a trigger..
But, the value ID is for 3, now i want to fire a trigger.
Based on this i want to delete in another table.
How can I check it?
ThanksThanks for ur reply..
The below is my scnario..
I am having two table
employee
Id empcol
101 111
101 222
102 444
Department
id deptcol
101 457
101 678
102 543
The above is my table structure no one column is PK, so i m not able create FK.
When I am deleting from employee where id =101 and empcol=111,
the above record is deleted.
At present I am using After Update Trigger..
So trigger is called and delete the id 101 in Department table.
In my scenario i can't delete a record in Department table
bcoz i am having id morethan 101 in employee table.
If employee table contains one ID like 102 the Trigger should works.
How can I check the condition After delete on employee table it contains morethan same employee id?
The below is my Trigger..
CREATE OR REPLACE TRIGGER CALL_TRIGGER
AFTER DELETE ON Employee
FOR EACH ROW
DECLARE
count_id pls_integer;
BEGIN
SELECT COUNT(*) INTO count_id from Employee WHERE ID <>:new.ID;
IF( count_id >1) THEN
DELETE FROM Depratment where ID=:old.ID;
END IF;
END;
I am geting an error ORA-04091 table is mutuating, trigger cannot seen it.
I had tried with package and package body also.. But no luck.
Thanks -
How do I get rid of repeating emails that I have already deleted?
How do I get rid of repeating email messages that have previously been deleted? My 3G phone crashes, then 10,000 previously deleted email messages come up and when I delete these, they come up yet again. ATT wants me to buy a service plan to tell me. I suspect they cause this so they can charge me for this.
Why does this happen?This is the second time this has happened where I suddenly received the same emails over 9,000 or more and they reload over and over once I had deleted them. Now that I know ATT will ask me to pay them and they maybe can fix a prob, I won't call them first. And I have never found anywhere that I can delete these emails that come back and repeatedly reload — except today by me discovering that I can go to where my emails originate and load onto my other various devices — and delete those emails. Which is what someone did when I called before and they admitted that it was a problem on their end that must have happened in their system.
Today I solved my problem. And I didn't have to pay Apple to do a temporary fix, which will come back in a few months, never tell me what they did and never tell me how to fix it myself. It was so that they can charge me to do a temporary fix and I would not use that paid service for anything else until this happened again. There is no such thing as an IMAP on anything that I use.
I found the origination of the problem and I fixed it.
This problem needs to be fixed on iphones in updates or it will happen to others.
By the way, it only happens on my iphone, not my mac tower, G5, Mac laptop or other mac devices that I own. Just on my iphone, several times. But now I know.
It seems to me if you want to have good customer services at apple, they would admit to their defects and offer to fix them, not come up with we will charge you and then determine if we can fix them. -
How to call Plsql function in discoverer
Hello,
Can anyone tell me how to call plsql fuunction in Oracle Business Intelligence Desktop Discoverer?
what i was doing here is i am able to register my function in Administration but i dont know when i need to make call and where i need to pass parameters to make call that function.
its lil urgent, can any of you guys send me the instructions step by step
Thanks in advance!!
sidThanks for your reply Michael,some how i found that make call from calculation , but the problem here is i was not able to pass parameter thru function.please find the scenario below,
case(1) i have function without parameters, it does some DML operations inside that and it is working fine.when i refresh i see tables getting populated.
case(2)I have another function as shown below with parameters(input) but i was getting error (One of The function arguments has an incorrect datatype:POST_SAVE_DOCUMENT)
my function is like this:
create or replace function POST_SAVE_DOCUMENT
(P_WORKBOOKOWNER in VARCHAR2,
P_WORKBOOK in VARCHAR2,
P_WORKSHEET in VARCHAR2,
P_SEQUENCE in number,
P_SQL_SEGMENT in VARCHAR2
return number AS
BEGIN
delete from my_sql;
insert into my_sql
( WORKBOOKOWNER,
WORKBOOK,
WORKSHEET,
SEG_SEQUENCE,
SQL_SEGMENT)
VALUES ( P_WORKBOOKOWNER,
P_WORKBOOK,
P_WORKSHEET,
P_SEQUENCE,
P_SQL_SEGMENT
return 1;
end;
i dont see anything wrong here with in this function, but some how i have a problem with parameter.
Can you give some idea or solution to get rid of this problem.
Finally ..i did not see anything under item radio button (The recommended way now is to click the Items radio button, find an item that you want to pass to a parameter, then on the right-hand side highlight the placeholder for the parameter, then finally you click the Paste button. You repeat this for all the parameters and then click OK to finish the calculation.
Thanks in adavance!!
Thanks
S!D
Edited by: user12861418 on Apr 28, 2010 2:01 PM -
HOW TO CALL A FORM FROM REPORTS?
How to call a FORM6i form from Oracle Reports6i? Is it at all possible?
Regards.
Satyaki De.Hi Jakub,
I don't mean to say that you cannot do what you said in your response above.
But what I want to say that Oracle does not support forms to be called from reports.
DDE package is meant for different purpose.
Dynamic Data Exchange (DDE) is a mechanism by which applications can communicate and exchange data in Windows. DDE client support is added as a procedural extension to Reports Builder. The PL/SQL package for DDE support provides application developers with an Application Programming Interface (API) for accessing DDE functionality from within PL/SQL procedures and triggers.
Thanks,
Raj
http://www.oraclebrains.com -
How to call second page in Smartform without calling first page
Hi Gurus,
I have two pages in one smartform. I am using this for PWB purpose. PLease tell me how I first or second page will be triggered depending on the conditional flag that has been defined in global variables.
For first page it is working...but I don't know how to call the second page bypassing the first page on condition basis.
Thanks in Advance
GautamHi,
The smartform will always start with the first page in the structure by default. However when you call the smartform you can specify which page to start with in the structure CONTROL_PARAMETERS field STARTPAGE, this does mean you have to change you print program to include the logic, not the form.
Regards,
Nick
Maybe you are looking for
-
I just purchased the MSI A75IA-E53 mini-itx FM2 motherboard and almost fried the motherboard while looking around the bios. Here's what happened: After installing an A10-5700 apu and 8gb of 1866 ram, I went into the bios to make sure the ram was runn
-
Hi, Is there a way to get the current week for a ceratin date. (e.g id i input today 17/06/2008, i must receive 15/06/2007 - 21/06/2007) if sunday is my first week day or 16/06/2007 - 22/06/2007 if monday is my first day of week. kindly advice how ca
-
Ip http authentication aaa login-authentication doesnt work
I have "ip tacacs source-interface Vlan1 " in my config because without it enabled I cant ssh in with tacacs. However, with that line in the config, I cant access via https unless I have the line "ip http authentication local"
-
my macbook pro is slowing down!i was looking for drive cleaning applications bau i couldn't decide which one is more useful!
-
Banding problem when exporting to PDF
Hi. I'm having a problem with a banding I'm getting everytime I export to PDF. The banding, of course, is in a gradient. In ID the image looks fine, but once exported to PDF I get that banding. I can do the same files in Photoshop and illustrator and