Created a trigger but new values are not inserting in the backup table
I have created a backup table and writter a trigger on a table such that after update old values and new values are to be inserted into the backup table, but new values are not inserting. I am giving the code please help me
create or replace trigger "SUPPQUOTES_AUDIT"
after update or delete on phsuppquotes for each row
begin
insert into phquotes_audit(cprc_new,suppcode,itemcode,cprc_old,negodt,validdt,userid,TRANDATE) values
(:new.cprc,:old.suppcode,:old.itemcode,:old.cprc,:old.negodt,:old.validdt,:old.userid,SYSDATE);
end;
old values and new
values are to be inserted into the backup table, butwell you have only one insert there, inserting old values with a new id (which is ok if you don't update the id column, but I don't think that :new is available for deleting ops); you should have two inserts:
insert into
phquotes_audit(cprc_new,suppcode,itemcode,cprc_old,negodt,validdt,userid,TRANDATE) values (:old.cprc,:old.suppcode,:old.itemcode,:old.cprc,:old.negodt,:old.validdt,:old.userid,SYSDATE);
if (updating) then
insert into phquotes_audit(cprc_new,suppcode,itemcode,cprc_old,negodt,validdt,userid,TRANDATE) values (:new.cprc,:new.suppcode,:new.itemcode,:new.cprc,:new.negodt,:new.validdt,:new.userid,SYSDATE);
end if;
gojko adzic
http://gojko.net
Similar Messages
-
Urgent:-Values are not inserted into the custom table
Hi, I am inserting the data from the custom OAF form into a custom table. Only the WHO columns are populated into the table but no field value is populated into the custom table. I have written the following code -
In CO
if (pageContext.getParameter("Continue") != null)
OAApplicationModule am = pageContext.getRootApplicationModule();
OAViewObject CwkInfo = (OAViewObject)am.findViewObject("CWKInfoVO1");
am.invokeMethod("initializevo");
in AM
public void initializevo()
CWKInfoVOImpl testVo = (CWKInfoVOImpl) this.getCWKInfoVO1();
testVo.insertRow(testVo.createRow());
getTransaction().commit();
Urgent Help is required.
Regards,
AshishHi Ashish,
Double check whether you have attached the correct EO based VO attribute to the columns.
In the Controller
Process Request use the following code:-
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean);
if (!pageContext.isFormSubmission())
am.invokeMethod("initQuery", null);
ProcessForm Request
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
System.out.println("Inside Process Form Request");
super.processFormRequest(pageContext, webBean);
OAApplicationModule am = pageContext.getApplicationModule(webBean);
if (pageContext.getParameter("submitButton")!=null)
am.invokeMethod("submit")
AM Code
public void initQuery()
OAViewObject vvo = (OAViewObject)getEmployeeEOVO1();//Give you EO based VO Name
if (!vvo.isPreparedForExecution())
vvo.executeQuery();
Row row = vvo.createRow();
vvo.insertRow(row);
row.setNewRowState(Row.STATUS_INITIALIZED);
public void submit()
getTransaction().commit();
Import necessage classes.
Thanks
--Anil -
Measure Values are not shown in the pivot tables
Measures without aggregation (in rpd) are not shown in pivot table.
Im trying to add multiple columns in the fact table as measures,one which is summable had has the SUM function and three which are not summable.
The initial report will be as follows and I have been able to get the data displayed.
Year | Month| Company Name| SUM(C1)| C2|C3
However if I pivot the table as follows data in column C2 and C3 are not Displayed.
Columns
Year
Month
Company
Rows
Measure Lablel
Measures
SUM(C1)
C2
C3
Should we have an aggregation rule applued in C2 and C3 ?Yes, all the column entries must have agg rule. You can specify one such as 'first' in the pivot table.
-
Custom field values are not storing in the data base
Hi Friends,
We have created one Custom field called ZZ_APPROVER in Rfx Header , we have included this field in the below stuctures
1.INCL_EEW_PD_HEADER_CSF_BID
2.INCL_EEW_PD_HEADER_CSF
The data type of this field ( ZZ_APPROVER ) is CHAR and the length is 1 . we have given 2 fixed values in Value Range
1 -
X+2 Approver
2 --- Provisional Approver
so when we select either 1 or 2 ( in Drop Down ), its displaying properly on RFx Screen, but when we try save this document the values are not strong in the data base.
Can any one give me idea why its not stroring in the data base
Thanks in Advance
Kumar SriniHi Ganapathy,
A Record is created in table BBP_PDHSC , for other z fields, the values are stroing , but for this field ( ZZ_APPROVER ) [ drop down list ], the value is not stroring
Thnx
Kumar Srini -
Restore from time machine does not list all my backups. I know they exist but their dates are not present on the restore list. Any help appreciated. If I must use one of these older dates to restore, how do I then get the more current data off time machine?
Ok, so am i correct in saying that the steps to fix are as follows.
That's one option, but not what I meant by restoring in the time-travel view. The latter is what you get when you enter Time Machine.
is the fresh install not going to be able to "see" the time machine backups that I have at the moment.
It should, but sometimes people report that it fails. I'm not sure why that happens. -
Business Rule error: Accounts are not available in the rule table
Hi everybody,
I have a problem running the Business Rule for the profit/loss copy to the equity account.
The Business Rule I set reads from all P&L accounts, P&L specific flow, acual category, all datasources and then it writes everything keeping the source settings apart from the account destination (the equity profit/loss account) and the flow destination (I write in two different flows, so the rule is made up of two equal lines differing only in the flow destination). "PROFIT" is the ID I chose.
Then I created the related script logic (ID=CALCACCOUNT):
*RUN_PROGRAM CALC_ACCOUNT
CATEGORY_M = %CATEGORY_M_SET%
CURRENCYLABEL = %CURRENCYLABEL_SET%
TID_RA = %TIME_SET%
CALC=PROFIT
*ENDRUN_PROGRAM
Finally, the prompt ( process chain: CPMB/RUNCALCACCOUNT):
PROMPT(SELECTINPUT,,,,"CATEGORY_M,CURRENCYLABEL,TIME")
TASK(/CPMB/RUNCALCACCOUNT_LOGIC,SUSER,%USER%)
TASK(/CPMB/RUNCALCACCOUNT_LOGIC,SAPPSET,%APPSET%)
TASK(/CPMB/RUNCALCACCOUNT_LOGIC,SAPP,%APP%)
TASK(/CPMB/RUNCALCACCOUNT_LOGIC,SELECTION,%SELECTION%)
TASK(/CPMB/RUNCALCACCOUNT_LOGIC,LOGICFILENAME,CALCACCOUNT.LGF)
But anytime I run the package it fails giving me the message error: "Accounts are not available in the rule table".
I tried every possible change but nothing; if someone could help me somehow I'd be really grateful!!
Thanks
FilippoHi James,
Thanks for your quick response. There is no currency dimension in the application... I've tested with the correct businessrule as CALC value, but this didn't do the trick.
Any other suggestions?
Regards,
Vincent -
RUN_LOGIC:Accounts are not available in the rule table
Dear BPC gurus,
I experience the following error while trying to run a Business Rule (Account transformation). Setting are to change the flow dimension of an account and apply to YTD.
Script logic that is used is:
*RUN_PROGRAM CALC_ACCOUNT
CAT = %CAT_SET%
TID_RA = %AAL_TIME_SET%
*ENDRUN_PROGRAM
The following error occurs:
RUN_LOGIC:Accounts are not available in the rule table
Failed
Application: FORECAST Package status: ERROR
All input is welcom.
Thanks and regards,
VincentHi James,
Thanks for your quick response. There is no currency dimension in the application... I've tested with the correct businessrule as CALC value, but this didn't do the trick.
Any other suggestions?
Regards,
Vincent -
Leading zeros are not carried from the pivot table to exported Excel (9927815)
Hello All -
I am just wondering if there is a fix available for -- Leading zeros are not carried from the pivot table to exported Excel (9927815)
can anybody suggest when it will be fixed and if there is any-workaround for this issue if there is no fix available.
Thanks
RamThanks Timo -
Studio Edition Version 11.1.1.2.0
About
Oracle JDeveloper 11g Release 1 11.1.1.2.0
Studio Edition Version 11.1.1.2.0
Build JDEVADF_11.1.1.2.0_GENERIC_091029.2229.5536
Copyright © 1997, 2009 Oracle and/or its affiliates. All rights reserved.
IDE Version: 11.1.1.2.36.55.36
Product ID: oracle.jdeveloper
Product Version: 11.1.1.2.36.55.36
I will check on support.oracle.com -
Non-image files are not copied to the Backup Location
I'm on Aperture 3.0.3... I just noticed that non-image files (e.g., WAV files) are not copied into the Backup Location, although they are copied into the main folder location during an import. Does anyone else see this behavior?
Shawnsat,
Yes you can still stream from the host computer, the knowledge base article that describes this is http://docs.info.apple.com/article.html?artnum=305098. If you are attempting to display Photos on Apple TV, they must be synced to the Apple TV, per knowledge base article http://docs.info.apple.com/article.html?artnum=305139.
Cheers,
John -
Rows are not inserted in the order entered - Forms 4.5 to 9i database
hi
we are using forms 4.5 version with 9i oracle database.
when we save a multi-record block (for eg 5 rows)
the records are not inserted in the database in the
order in which they are entered.
for eg if we enter A,B,C,D,E Records and save
on query the records appearing in the order of C,D,E
A,B like that.
Is there any database parameter or setting which
effects the order of inserting rows in the database(when using forms 4.5).
Pls inform if you have any solution.
Thanks in advance
cksThis is a very common misconception.
You should never concern yourself about the order in which rows are stored in the database. Oracle does not guarantee to return rows in any particular order so you must specify an order by clause when you select the rows.
Without an order by clause, there are various reasons why the order of selected rows could change in different circumstances, and the order in which they are stored should be treated as irrelevant. -
Updated (VORowImpl ) values are not reflected in inline POPUP table
Hi Expert,
Currently i am getting exception when i try to update my iterator binding,
Here is my use case,
I have view object displayed inside the inline popup as a table. When i modify one of the cell i am firing the value change listener and it is called the ViewObjectRowImpl class method. Inside the method i do some computation (i am executing some DB query to get back some value). After the query execution i am updating the other columns data based on the changes.
First i have PPR the table and check out the update values. Unfortunately the change values are not reflected.
Then i used the following code
DCIteratorBinding itrBinding = findIteratorBinding("EmployeeVO1Iterator");
if (itrBinding != null) {
itrBinding.executeQuery();
itrBinding.refresh(DCIteratorBinding.RANGESIZE_UNLIMITED);
Now i am getting the " JBO-25003: Object EmployeeMgmtAM of type ApplicationModule is not found."
May i know what went wrong? Am i missing anything. May i know how can i refresh the UI table based on the updated VORowImpl. Looking forward hints.
ThanksThanks Frank, Actually i am accessing the client method as follows,
DCIteratorBinding itrBinding = findIteratorBinding("EmployeeVO1Iterator");
if (itrBinding != null) {
EmployeeVORowImpl employeeVO = (EmployeeVORowImpl)itrBinding.getCurrentRow();
empoyeeVO.methodName();
May i know what is the different between accessing the method as shown above and access via the MethodBinding?
How about access the attribute of the View object using the above approach? i.e empoyeeVO.getName() like ....
Also i have configure the ADF looger to finest level and found the primary reason to "Applicaiton module not found" was some entity validation. But this not always happened. Same test case works fine and fails sometimes. I am clueless. Could you please throw some light.
Thanks
Edited by: user1022639 on Feb 7, 2012 5:24 PM -
Multi-table mapping is not inserting into the primary table first.
I have an inheritance mapping where the children are mapped to the parent table oids with the "Multi-Table Info" tab.
One of children is not inserting properly. Its insert is attempting to insert into one of the tables from the "Additional Tables" of "Multi-Table Info" instead of the primary table that it is mapped to.
The other children insert correctly. This child is not much different from those.
I looked through the forums, but found nothing similiar.I would expect the Children to be inserted into both the primary table and the Additional Table? Is the object in question inserted into the primary table at all? Is the problem that it is being inserted into the Additional Table first? If it is, are the primary key names different? Is it a foreign key relationship?
If the object in question has no fields in the additional table is it mapped to the additional table? (it should not be)
Perhaps providing the deployment XML will help determine the problem,
--Gordon -
Purchased Army Wives but new episodes are not available
I purchased season 6 of Army Wives. Even though 5 episodes are available itunes has only made the first 3 episodes available to me. I love this series and am really disappointed that i cannot watch it.
Also, in the first 3 episodes the audio and video are not in sinc.Never mind I figured it out. For others if you want to sync audiobooks they appear under the "books" section and not music. Creating a playlist with audiobook files will not show up.
-
Oracle XML DOM parser - attribute values are not printing on the screen ??
Hi Everyone,
I am just trying to use oracle DOM parser to paerse one of my xml file, java file can be compiled and run agianst a xml file, But I cannot see any attribute values printing on the screen..
Appreciate if anyone can help, where I have gone wrong please?
Below is the java file:
// menna puthe DOMSample eka - duwanawa 19/12/2005
import java.io.*;
import java.net.*;
import org.w3c.dom.*;
import org.w3c.dom.Node;
import oracle.xml.parser.v2.*;
public class DOMSample { //public class eka ***
static public void main(String[] argv){ // main method eka ###
try {
if (argv.length != 1){
// Must pass in the name of the XML file...
System.err.println("Usage: java DOMSample filename");
System.exit(1);
// Get an instance of the parser
DOMParser parser = new DOMParser();
// Generate a URL from the filename.
URL url = createURL(argv[0]);
// Set various parser options: validation on,
// warnings shown, error stream set to stderr.
parser.setErrorStream(System.err);
parser.showWarnings(true);
// Parse the document.
parser.parse(url);
// Obtain the document.
Document doc = parser.getDocument();
// Print document elements
System.out.print("The elements are: ");
printElements(doc);
// Print document element attributes
System.out.println("The attributes of each element are: ");
printElementAttributes(doc);
catch (Exception e){
System.out.println(e.toString());
} // main method eka ###
static void printElements(Document doc) {
NodeList nl = doc.getElementsByTagName("*");
Node n;
for (int i=0; i<nl.getLength(); i++){
n = nl.item(i);
System.out.print(n.getNodeName() + " ");
System.out.println();
static void printElementAttributes(Document doc){
NodeList nl = doc.getElementsByTagName("*");
Element e;
Node n;
NamedNodeMap nnm;
String attrname;
String attrval;
int i, len;
len = nl.getLength();
for (int j=0; j < len; j++){
e = (Element)nl.item(j);
System.out.println(e.getTagName() + ":");
nnm = e.getAttributes();
if (nnm != null){
for (i=0; i<nnm.getLength(); i++){
n = nnm.item(i);
attrname = n.getNodeName();
attrval = n.getNodeValue();
System.out.print(" " + attrname + " = " + attrval);
System.out.println();
static URL createURL(String filename) { // podi 3 Start
URL url = null;
try {
url = new URL(filename);
} catch (MalformedURLException ex) { /// BBBBBB
try {
File f = new File(filename);
url = f.toURL();
} catch (MalformedURLException e) {
System.out.println("Cannot create URL for: " + filename);
System.exit(0);
} // BBBBBB
return url;
} // podi 3 End
} //public class eka ***
// End of program
output comes as below:
Isbn:
Title:
Price:
Author:
Message was edited by:
chandanalHi Chandanal,
I edited your code slightly and I was able to get the correct output.
I changed the following line:
for (int j=0; j >< len; j++)to:
for (int j=0; j < len; j++)I have included the complete source below:
// menna puthe DOMSample eka - duwanawa 19/12/2005
import java.io.*;
import java.net.*;
import org.w3c.dom.*;
import org.w3c.dom.Node;
import oracle.xml.parser.v2.*;
public class DOMSample {
//public class eka ***
public static void main(String[] argv) {
// main method eka ###
try {
if (argv.length != 1) {
// Must pass in the name of the XML file...
System.err.println("Usage: java DOMSample filename");
System.exit(1);
// Get an instance of the parser
DOMParser parser = new DOMParser();
// Generate a URL from the filename.
URL url = createURL(argv[0]);
// Set various parser options: validation on,
// warnings shown, error stream set to stderr.
parser.setErrorStream(System.err);
parser.showWarnings(true);
// Parse the document.
parser.parse(url);
// Obtain the document.
Document doc = parser.getDocument();
// Print document elements
System.out.print("The elements are: ");
printElements(doc);
// Print document element attributes
System.out.println("The attributes of each element are: ");
printElementAttributes(doc);
} catch (Exception e) {
System.out.println(e.toString());
// main method eka ###
static void printElements(Document doc) {
NodeList nl = doc.getElementsByTagName("*");
Node n;
for (int i = 0; i < nl.getLength(); i++) {
n = nl.item(i);
System.out.print(n.getNodeName() + " ");
System.out.println();
static void printElementAttributes(Document doc) {
NodeList nl = doc.getElementsByTagName("*");
Element e;
Node n;
NamedNodeMap nnm;
String attrname;
String attrval;
int i, len;
len = nl.getLength();
for (int j = 0; j < len; j++) {
e = (Element)nl.item(j);
System.out.println(e.getTagName() + ":");
nnm = e.getAttributes();
if (nnm != null) {
for (i = 0; i < nnm.getLength(); i++) {
n = nnm.item(i);
attrname = n.getNodeName();
attrval = n.getNodeValue();
System.out.print(" " + attrname + " = " + attrval);
System.out.println();
static URL createURL(String filename) {
// podi 3 Start
URL url = null;
try {
url = new URL(filename);
} catch (MalformedURLException ex) {
/// BBBBBB
try {
File f = new File(filename);
url = f.toURL();
} catch (MalformedURLException e) {
System.out.println("Cannot create URL for: " + filename);
System.exit(0);
// BBBBBB
return url;
// podi 3 End
} //public class eka ***-Blaise -
CO-PA- Actual Values are not flowing in the CO-PA
Hi ,
I have created an operating concern and created the characteristics and value fields as per our requirement. I have assigned a particular cost element to a value field through FI direct posting .
I have mapped SD Condition types to my value fields
I have also activated the Operating Concern
Now when i am tryinng to post the document from FI no CO-PA document is getting generated nor the actuals are getting transferred to the CO-PA.
And when i am trying to post a document from FI to Profitability Segment (through account assignment) iam getting following dump.
The current ABAP program "SAPLKEET" had to be terminated because one of the
statements could not be executed.
This is probably due to an error in the ABAP program.
In program "RK2FGPKE ", the following syntax error occurred
in the Include "RK2FGTKE " in line 23:
"The Dictionary structure or table "T25A2" is either not active or does"
" not exist."
But I have already created a segment as my characteristics and i have created a segment for my operating concern and I have checked that this is getting stored in table T2509.
I have checked with the table T25A2 it is not activated .
Can anyone suggest am i going wrong in the customisation part.
how do i solve it plz assist me as early as possible.
Regards
Sunilhi sunil
as per ur mail this problem is occured in table space . kaindly consult ur BASIS onsultant first. based on that ask the ABAP ER . some times it will happen if any oracle applicastion not works
Maybe you are looking for
-
How can I order PL/SQL functions in "Called" a "Caller" order in function script file
Does anybody know how to create PL/SQL function script file in "called" and "caller" (parent/child) order. Thanks Soheil
-
help please. public class items String a; int b; Vector storageVector = new Vector(); public void wootwoot(); items weee = new items(); a=wootest; b=100; storageVector.add(weee); public void search(); //How could i search the content
-
Skype Crashed when shutting down Windows with ASUS Xonar audio
This has been a problem for a while now. Various updates have (temporarily) fixed it only to have another update come along and re-break it. Every time I shut down windows 8.1 Skype prevents windows from shutting down because it's crashed and I have
-
Need help purchasing Adobe Audition
Im trying to buy Adobe Audition and every time it says that there was a problem, its really stupid even when i called now one answer
-
Poor Sound Recording in CC2014
Hi Guys I'm in the field and taken my Dell Precision M6700 to do a short voice over. I've hooked up a Shure C606 mic to the laptop using XLR-USB lead but the finished recording is very poor. It sounds tinny, like I'm in a tin box with a slight flange