Dimension foreign key on Fact gets updated with same value
Hi All,
I'm hoping someone has at least seen this problem and can provide insight.
Background:
- We are on OWB 10.2
- Fact table is Billing_F
- Fact table has foreign keys to Customer_Dim, SalesOrg_Dim, Time_Dim, etc.
- Fact table has update mode Update/Insert
Once in a while, every row in the Billing Fact gets updated with the SAME SalesOrg_Dim foreign key column value. In other words, the data would look like:
Before:
Line ID Amt SalesOrg_Key
1 100 19241
2 200 21925
3 140 08585
After:
Line ID Amt SalesOrg_Key
1 100 12345
2 200 12345
3 140 12345
*** The Source tables contain values in the Before table. ***
We can't reproduce this on a consistent basis. The only way to "correct" the data is to rerun the mapping from source -> staging -> fact again. No other change.
Please, has anyone else at least experienced this problem? If so, how were you able to fix it permanently?
Any help is greatly appreciated!
irene
Hi Irene
Difficult to help here without reviewing your mappings/schedule but does SalesOrgKey 12345 represent a particular value e.g. Unknown, Default?
I suspect it's something to do with your load order in that the data in the dimension is not available/ready when the fact is loaded and therefore a default value is being inserted. When the fact load is rerun I'm guessing the load of the dimension has finished and therefore the key lookup returns the proper keys from the dimension. Is the dimension truncated and reloaded?
Regards
Si
Similar Messages
-
KONV not getting updated with new condition type value
Hi,
I have created a new condition type for a pricing procedure. But table KONV-KAWRT is not getting updated with any value. Can anyone help me this.
Thanks
ShwetaHi Vasu,
It was created in the same way then I have assigned calculation formula . For invoice it is comming fine but for the intercompany billing it is not showing any value in Contition tab for this particular condition type. For this when I checked in KNOV table it is showing condition type but the value (KONV_KAWART) is comming out zero and due to this reason it is not showing value in intercompany billing ->condition. Do I need to write code for this?
Thanks,
Shweta -
I have a column where I have implemented writeback, its working fine. On top of this I need to show 0 as No and 1 as yes in our report, that is also done. Now I want to enter Yes in a column where it was no and I want database table to get update with 1. I am not sure how to do it. SOmeone please help me out.
Hi ,
In your write back XML try the below query insert
INSERT INTO TABLE_XYZ (attribute1) values (SELECT CASE WHEN @{C1}=’Yes’ then 1 when @{C1}=’No’ then 0 else null end from dual)
Regards
Rajagopal -
Item text in Purchase Order getting updated with info. record Purchase Order Text
Hello All,
I am working in a roll out project and facing issue in text repeating twice for the line item in the Purchase Order for the new company code for which rollout is happening
Issue:
Item text in Purchase Order getting updated with info. record Purchase Order Text
01) PO Text is maintained in the material master under "Purchase Order Text" tab
02) The PO text that is maintained in material master is getting updated in the Purchase Info. Record
03) When Purchase Order is created, the "Item Text" gets updated in the Purchase Order automatically only for the new company code for which rollout is happening. when printed, this results in the text getting duplicated twice
03.1) this behavior is not observed in the Plants/ Company code that is already Live
Configurations in the system:
The copying rules for the "Texts for Purchase Orders" is
Source Object = "Info Record", Source Text="Purchase Order Text", Fix="*"
We have modified the Purchase Order form to print one of the condition types maintained for calculating the tax. Other than this there is no change to the plants that are already live.
I could not locate any "Purchase Organization" / "Company Code" / "Plant specific configuration.
Am I missing any configuration or where can I look in what is causing this error.
Request help from the experts in the forum.
with Regards,
Dhandapani RThere is no company/purchasing/plant specific customizing for purchase order text.
The customizing copying rules for the "Texts for Purchase Orders" affects all equally .
If the text in the purchase order in ME23N is already filled different to other plants, then you either have a modification in place, or the texts are differently maintained in the referenced data (vendor, material, info record, contract) -
Dispute case does not get updated with subsequent partial payment
Hi Experts
I am now still testing the Dispute management .. but it's my first time to see that some times created dispute case does not get updated with the payment posted against the invoice which the dispute case has been raised .. when i trying to add open item to the current dispute case i face this Error..
Process step 004: Change not possible, process step 003 missing
Message no. UDM_MSG037
Diagnosis
The dispute case is to be changed by process step 004 from accounting. However, there is at least one process (for example, clearing transaction from payment or credit memo) that was performed before the current step and that has not yet updated the dispute case. The changes to the dispute case must be carried out in the correct order.
System Response
The dispute case could not be changed.
Procedure
In an asynchronous change to dispute cases using IDoc, make sure that all IDocs of the previous process have been posted. Then you can carry out the required action (for example, post the current IDoc from process step 004 or include further items). The immediate previous process step is 003.
Your kind feed back is highly appreciated..
Regards
Mahmoud EL NadyHi
Thanks for straight forward solutions its now working properly after run the program.. thanks too much..
also do i need to run this program periodically or once i notice that one dispute case it not getting updated?
Regards
Mahmoud El Nady -
KINAK field in Table KONV not getting updated with value W
Hi,
I have a PO where I am deleting a line item.
After I delet line item the field KINAK in table KONV gets updated with value W.
But I am getting instance where in some cases the field KINAK is not getting updated.
The result is deleted line item is getting populated in PO output also.
Regards
NandiiniKINAK is updated only when a Condition is inactive ! So when a item is deleted the condition becomes inactive and gets updated with 'W' which means statistical(not to be counted)
A Condition exclusion item
K Inactive due to calculation basis/shipping material type
L Condition exclusion header or inactive at header level
M Inactive due to manual entry
T Inactive at header level
W The document item is statistical
X Inactive via formulae of incorrect
X Inactive via formulae of incorrect
Y Inactive because of subsequent price -
Open PO did not get updated with new price.
A mass price change was updated in SAP for one of the supplier . All open orders did not get updated with this new prices.
Can anyone tell me the reason why ?
-Amolhi
i think u have to do it manually
logically if u see u can use diffrent prices in diff po
if ur price is inr 100 in 1st po and u done gr ur rice will get updated in mm suppose it is 105
next time u create the po of 110 rs and done gr
suppose ur price updated is 108 rs inmm
so it is not happening that 108 is get updated in ur 1st po
right so i think u have to update pos manually
if i am wrong plz let me know
regards
kunal -
GL to get updated with Moving average price
Hi Guru's
when we do PGI, currently the cost of goods issue value is updated from Moving average price into a GL account,
Now i have created a new GL account and also want this new GL to get updated with the Moving average Price.
Where can i make these settings. can u give step by step solution.
Regards
AbhijeetFirst u pls check how its updating with moving average price and select in MMRecord valuation class and price options, then check settings for ur gl account go to fs00 display mode check settings in control data.
Compare ur gl account which u have created with standard Gl account. -
Revision: 4706
Author: [email protected]
Date: 2009-01-28 07:58:30 -0800 (Wed, 28 Jan 2009)
Log Message:
When handling the damageEvent make sure _contents gets updated with the potentially modified contents of the textFlow. Either the contents or the style of the text flow, or both could have triggered the damage event.
QE Notes:
Doc Notes:
Bugs: SDK-18749
Reviewers: Gordon
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-18749
Modified Paths:
flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/TextGraphic.asRemember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them. This may or may not be unique to Arch Arm, so you might try asking on their forums as well.
-
Updating PK with same value - effect on CASCADE UPDATE
Hello,
I would like to understand how sql server 2008 deals with cascade updates
For example I have
Parent table: Employee with column Id as varchar(20) primary key
Child table with IdEmployee as varchar(20) foreign key
I set up Cascade Update for those two tables, meaning any change to primary key in Employee table will cause update in child table rows that match affecting Id
Scenario 1:
Update Employee
set Id = 'ABC',
Name = 'something new'
where Id = 'CCC'
Result of child table: all rows with foreign key IdEmployee and value of 'CCC' are updated. Expected behavior.
Scenario 2:
Update Employee
set Id = 'ABC',
Name = 'something new 2'
where Id = 'ABC'
This time, i am doing something different. I am beside update of column Name with new value, also update primary key but
with SAME value
Question is: what is going to happen to child rows? Are they ALL going to UPDATE due to CASCADE UPDATE
So far, what i did in order to find solution is:
1. I put an timestamp column in child table that should update each time row gets updated
2. I put a trigger for update event on child table that will write something to some log table
*After I set up those two I ran example like above just to be sure timestamp gets changed as well trigger is being fired
Results of updating PK with same value:
1. Timestamp didnt change
2. Trigger didnt fire
Is this enough to make conclusion that updating primary key with same value ALONG with updating some other columns won't
affect child tables with UPDATE CASCADE ON
Update:
Database is CI AS collation
If i do following
Update Employee
set Id = 'abc',
Name = 'something new'
where Id = 'ABC'
1. Timestamp will change
2. Trigger will fire
Conclusion: Case sensitive is important here!
Thank you very much in advance
Milos>> would like to understand how sql server 2008 deals with cascade updates <<
Your posting has a number of conceptual errors.
1. The terms “parent” and “child” are not RDBMS; they are used in network databases. We have “referenced” and “referencing” tables; they can be the same table.
2. A table models a SET of things, so there is no “Employee” table unless you truly have a one-man company. We want a collective or plural name for the SET/table. A better name is “Personnel” for this table.
3. Her is no such thing as a generic “id” in RDBMS; it has to be “<something in particular>_id” to be valid. Identifiers are usually fixed length
4. It is very, very rude not to post DDL on a forum. You also do not know the ISO-11179 Rules for data element names. They do not change names from table to table! Does your name change whenever you use it in a new place?? NO! Same principle with data.
5. The ISO standard uses “<property>_<attribute property>” syntax, no the old PascalCase.
6. Why did you post a useless narrative? How do we compile “I SET up Cascade UPDATE for those two tables,..” to test it??
CREATE TABLE Personnel
(emp_id CHAR(20) NOT NULL PRIMARY KEY,
emp_name VARCHAR(25) NOT NULL,
CREATE TABLE Health_Plan
(health_plan_acct CHAR(20) NOT NULL PRIMARY KEY,
emp_id CHAR(20) NOT NULL
REFERENCES Personnel(emp_id)
ON UPDATE CASCADE
ON DELETE CASCADE,
Scenario 1:
UPDATE Personnel
SET emp_id = 'ABC',
emp_name = 'something new'
WHERE emp_id = 'CCC';
Result of child table: all rows with foreign key emp_id and value of 'CCC' are updated. Expected behavior.
Scenario 2:
UPDATE Personnel
SET emp_id = 'ABC',
emp_name = 'something new 2'
WHERE emp_id = 'ABC';
This time, I am doing something different. I am beside UPDATE of column emp_name with new value, also UPDATE PRIMARY KEY but
with SAME value.
>> Question is: what is going to happen to child [sic: referencing] rows? Are they ALL going to UPDATE due to CASCADE UPDATE. <<
SQL uses a set-oriented model, so the whole table is updated as a unit of work in theory.
So far, what I did in order to find solution is:
>> I put an timestamp column in child [sic: referencing] table that should UPDATE each time row gets updated <<
Why? It is not in the SET clause list; it cannot change. As an aside, The T-SQL TIMESTAMP is not the ANSI/ISO TIMESTAMP; it is DATETIME2(n) in T-SQL. The old TIMESTAMP is being deprecated because it stinks both in concept and implementation.
>> I put a trigger for UPDATE event on child [sic: referencing] table that will write something to some log table.<<
TRIGGERs are fired by what is called a “database event” shown in the ON [DELETE | UPDATE] clause. T-SQL adds INSERT as an event. An update to any value or to no value at all is still an update. Depending on the collation, case may or may not matter in the final
outcome.
--CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
in Sets / Trees and Hierarchies in SQL -
how to transfer database table contain null values, primary key, and foreign key to the another database in same server. using INSERT method. thanks
INSERT targetdb.dbo.tbl (col1, col2, col3, ...)
SELECT col1, col2, col3, ...
FROM sourcedb.dbo.tbl
Or what is your question really about? Since you talke about foreign keys etc, I suspect that you want to transfer the entire table definition, but you cannot do that with an INSERT statement.
Erland Sommarskog, SQL Server MVP, [email protected] -
Vendor discount value from FB65 to COPA is getting updated in wrong value filed
Hi Experts,
As per the Business requirement vendor discount during the credit memo should be updated in COPA report. some times system posts the vendor discount value into VVXXX value filed as per the configuration done in PA transfer structure. some times its getting updated with another VVYYY value filed. It should update only single value filed as per the PA transfer structure.
It will be good if you can share your thoughts on the above issue.
Regards
SambasivaHi Samabasiva,
Do you mean system is posting the discount value in FB65?
May I know what Accounting Entry is posting with discount for Credit Memo?
And also is there any Exit or Substitution Rules are Implemented.
Regards
Srinu -
MIGO not updating with excise value.
Hey Guys,
I am facing with this problem of MIGO not
updating with excise value.
When I am creating the MIGO doc, and after
I give the excise invoice no. the excise
values are not picking up. Its showing
zero values.
The following
steps are being followed by me.
ME21N - Create STO from plant to warehouse
VL04 - Create outbound delivery
VF01 - Create invoice
J1IIN - Excise invoice
MIGO - Goods receipt at warehouse
Earlier it was working fine, but after
we upgraded the system with patches and implemented
Secondary higher education cess the
problem arose.
Please advise.
Appreciate your help.
Thanks,
ZakGot answer from SAP..dunno what they did but it was rectified.
-
Clearing WHT on advance & Invoice with same value
Hi SAP Gurus
Could anybody suggest me what transaction code to be used or need any configuration change for clearing both the doc i.e. WHT deduct on advance payment with WHT deducted on Invoice with same value.
In this scenario no further payment should be made.
I have linked both the doc through TCode F-54 and try to clear both the doc with TCode F-44 but in this transaction no tds has been reveresed by the system and showing difference.
In Partial advance payment the system has automatically reversed the TDS. No problem occured in this scenario.
Regards
Aman
Edited by: Amandeep Garg on Mar 17, 2008 10:43 AMHi Ahmed
Thanx for your response...............
But I have already used the same. Is there not any transaction other than F-53 in which bank is not invovled.
Regards
Aman -
Foreign key fields not getting populated in datacontrol palette for EJB app
Hi,
I am quite new to ADF and EJB.I developed a jdeveloper application with JSF and EJB tiers.(I am using jdeveloper 10.1.3.5)
For database the default HR database is used.I created the entities for the EMPLOYEES and DEPARTMENTS table.
I also created a session bean and a data control for the session bean.
I am having a JSF page that receives all the details of a new Employee and insert into database (i.e persistEntity)
But the Employees constructor from the Data control palette is not populating the MANAGERID and DEPARTMENTID fields which are
the foreign key constraints for the EMPLOYEES table and hence while trying to persist the entity
with the auto populated fields an error message is thrown.
If I used ADF BC instead of EJB then i could populate all the fields including MANAGERID and DEPARTMENTID.
Is it possible to have two text fields for Manager and Department in the jsf to insert the Employee details with EJB as the Model?.
If possible how do I bind the values of these fields to the Employees entity object in EJB.
Kindly need your insights on this.
Thanks,
Guna.Hi,
How are you using MANAGER_ID and DEPARTMENT_ID fields, are they exposed as Long (or some other numeric type), or did you map them on the entity, something like this
@ManyToOne
private Employee manager; // this by default uses the column named MANAGER_ID
@ManyToOne
private Department department; // this by default uses the column named DEPARTMENT_ID
.... If you mapped them (which is the right way), when you create an employee you should set these attributes before persisting the entity, by using employee.setManager(manager) and employee.setDepartment(department). Then, the foreign keys get populated automatically by your persistence provider (Toplink).
If you are using data controls, it is a little different process to set the department and manager, but you should take a look at this tutorial http://www.oracle.com/technology/obe/obe11jdev/ps1/ejb/ejb.html , it will hopefully answer a lot of your questions.
Pedja
Maybe you are looking for
-
Need sample data on AP PO Match
Hi Can some one help on providing sample on AP PO Match A/P PO Match - an A/P invoice matching transaction for which there is a receipt on the correct purchase order but against a different purchase order line.This accrual transaction tells you that
-
I've had problems with my iPod before, but this is unlike anything else.... It usually happens when I first turn the iPod from a complete charge. When I turn it on, it starts spazzing out. It goes back and forth through menus, songs, and turns the ba
-
I need to install Oracle 9i server in a new server, once i installed default database, shall i create a new tablespace or shall i keep system tablespace and import .dmp file into new server, please advise because our current server became very slow a
-
I already had a Shuffle set-up with i-tunes - recently bought a ipod mini and loaded onto windows with the cd but it seems to have overwritten the program and doesn't now recognise the shuffle. Can you have 2 units reading from one itunes ? If so how
-
Posting to a separate facebook page from within Lightroom
Hi, I set up the fb publishing service and it works really well. The problem that I currently have is that I created a professional page and want the albums to appear there. How can I achieve this? I do not want the albums in my private timeline, but