How to refer to fact table to update the same fact table
Here is my scenario. Fact table is having measures basic_sal, Tax, net_sal with dimension key to employee dimension.
I neet to update the net_sal = basic_sal - tax in fact table.
I tried to do a map with fact_table as source and also target. but after deploying the map, it's not updating the net_sal to the existing rows. It's inserting the new rows with dimension key and net_sal columns. so now fact table is having the double the existing rows.
Thanks,
Srini.
Ola Srini,
We have some experience that updating a table while using that same table as source often takes a lot of time... Specially when the table contains a lot of data (which is mostly the case with fact tables).
You can use two solutions. Expand the mapping u use to fill the fact table... The calculations looks not that complex to me... But I could be wrong.
Other solution is to create a temp table where you store all sal types. You could load the fact table from this temp table. Disadvantage of this solution is maintenance of the temp table...
Regards,
Moscowic
Similar Messages
-
How to prevent multiple users from updating the same data in coherence
Hi,
I have a Java Web Application and for data cache am using coherence 3.5. The same data maybe shared by multiple users which maybe in hundreds. Now how do I prevent multiple users from updating the same data in coherence i.e. is there something in coherence that will only allow one user a time to update. If one user is in a process of updating a data in coherence and some other user also tries to update then the second user should get an error.
ThanksI have a question on the same line. How can I restrict someone from updating a cache value when I a process is already working on it. I tried locking the cache key but it does not stop other process to update it , it only does not allow other process to get lock on it.
-
How and where does SAP standard programs update the master tables...
Hello there,
How and where does SAP standard programs update the master tables...
to be precise.. if a (any) transaction occurs the programs behind it holds the data in temporary structures.
where and when does it get updated in the master table.
can anyone tell me how it happens?
I Know that from the where used list one can find the corresponding table but most of the time it wont suffice
I am expecting a proper answer.
Santosh BHello Santosh,
you need to do some self-reading on the following topic
Updates in the SAP System (BC-CST-UP)
http://help.sap.com/saphelp_47x200/helpdata/en/e5/de86e135cd11d3acb00000e83539c3/frameset.htm
Regards,
Siddhesh -
How to update the change log table?
Hi
I am doing some manipulation on the ODS records and writing few new records directly into the active table of my ODS. how do i update the change log table so that i can do a delta from my ODS to further data targets??
i see the fields REQUEST, DATAPAKID, PARTNO and RECORD in the change log table. what values should these fields have for my new records??
Regards
SujaiHi,
Please try this option. In stead of writing directly into DSO, do it in another Custom Z DSO. From there, do the FULL load to your previous DSO. This will ensure that the data consistence through the system. Also, do not forget to delete the data from Custom Z DSO once you successfully loaded the data.
Thanks,
Saru
Edited by: P. Saravana Kumar on Apr 1, 2009 6:23 PM -
Alternate fact table without disturbing the existing fact table in EIS
I have a question in EIS, how to load or work with alternate fact table, without disturbing the existing fact table, pls provide me with some procedure and steps
thank u in advance
sunilYes you can have multiple models and metaoutlines load one cube. I've done it before. The trick is you ahve one "master" metaoutline that you put all the measures in (even if they are manually added. You use that to build the cube. Then you can have multiple metaoutlines build different measures within the cube. The idea is you have to have them update different intersections or the last one in will be what you get. I have a client that gets sales info from one source, shipment info from a different relational source . in all I have 10 differnt models and metaoutlines that build one cube. you just lump the load statements into one CBS file. It works great (or as great as EIS works). The biggest issue is timing to make sure all the sources are available when the load is going to be doe. Of course you could build different parts at different times.
-
Fact table have tow column reference the same dim table
In my analytic domain, my fact table have tow column reference the same dim table, but in physical diagram, between two table ,can only have one join, so i create a copy of the dim table, then finish the join in physical. This method can resolve this question, but not so good, Anyone have perfect solution?
user4497169 wrote:
Thanks,
yours method is very very good, I don't know this method before. Where do you get this imfomation?The sample sales RPD has (good) modelling references you can refer to, otherwise think about how you'd write the SQL Statement yourself, you'd need to use an alias to access the same table on seperate joins. -
Update the stastics of tables BKPF and GLFUNCA
Hello All,
update the stastics of tables BKPF and GLFUNCA not updataing
I have execute via Brtools
7 - Database statistics >> 1 = Update database statistics >> 9 ~ Tables for update (table) ......... [BKPF]
same for table GLFUNCA
7 - Database statistics >> 1 = Update database statistics >> 9 ~ Tables for update (table) ......... [GLFUNCA]
But in .sta file it is not collected
<DB20>
Table GLFUNCA
Statistics are current (|Changes| < 50 %)
New Method E
New Sample Size P1
Old Method E Date 17.08.2008
Old Sample Size P1 Time 19:52:15
It is one year old , so please help me how to update this table
Is this table causing performance problem for job RSUVM007
Regards
Mohsin MBefore all,
Why do you wnat to calculate statistics on those tables?
Do you have performance problems and you have identified that they are caused by "bad" statistics?
or simply you "must" collect them because they are "OLD"?
If it is the latter, remember that statistics MUST be representative not current. Please read the SAP Note 825653 "Oracle: Common misconceptions" point 7
Regarding the options of BRtools, it works as designed.
BRCONNECT will check if the table needs statistics:
- if it has changed more than 50% since last time (in your case 17.08.2008) and, if so it will do, otherwise it will not do it. See the output of DB20 that you pasted:
> Statistics are current (|Changes| < 50 %)
IF you need new statistics (and I mean, need, not like) then you have to force them. On BRTOOLS you go to the next screen and choose the option:
> 7 ~ Force options (force) ............... []
In your version/patch could be located in a different place
and here input collect
I strongly recommend you to read the BR*tools documentation as ALL this information is there.
In case you do not know where to find it, it is quite easy:
SAP on Oracle => Oracle DBA Overview => SAP Database Guide: Oracle -
i have apps to be updated but when i try to update them a message pops out saying "You have updates for other accounts, please sigh in with the other id". Can some one help me how can i still update the same with the new apple id ive created. As i dont have the access to the earlier id anymore.
You cannot. The apps are assigned to that Apple ID and there is nothing you can do to change that. You could choose to download them again with the new Apple ID, any paid apps will need to be purchased again.
Hope that helps. -
How can I maintain two tables content at the same time with SM30
Hi all,
I created two customizing tables that I would like to link together for maintenance in SM30. Table 1 is the header and table 2 can have multiple detail records.
They are linked via the ID key field. I would like to run the Table Maintenance Generator on the first table in SE11 and be able to maintain both table data at the same time in SM30.
How can I do that without any ABAP programming? Should I use Append or Include structure or else?
Thank you for giving as much detail as possible.
Regards,
SylvainHi,
You cant do it w/t abap programing.
You can code in "EVENT" to achive the same.
Open table maintainance generator of first table through se56 or se11.
follow the path: environment>Modification>Event.
Select sutaible event from drop down like Before Save... and do coding.
In this way data will be saved in second table automatically when you save in first table.
In case of any query, please revert.
regards,
Dhan -
IPhone question: Im trying to update applications on my iphone. When I do it I'm as for password from a different Apple ID from what I have in Itunes. How do I change so that both are the same?
All apps are tied to the apple id that it was used to purchase or download the app.
did you use a different id to buy the app?
you can change id, settings - appstore - apple id - log out and log in with correct id. -
How can I start a new paragraph within the same table cell?
In Numbers, when adding text within a table frame, how can I start a new line within the same frame (rather than advancing to the next cell)? I'd like to enter a mini-list of several items of various lengths of data.
While Wayne's answer solves your problem, another possibility is to uncheck the box at the bottom of the Table inspector for "Return key moves to next cell." If that is unchecked, the return key types a paragraph return within the cell (the same as Option Return with the box checked).
With that box unchecked, Shift Return types a soft return (new line without a paragraph break). -
Table to update the substitutes for workflows
Hello, as it is the table to update the substitutes for workflows?
Hi,
Yes - HRUS_D2
Try using function module RH_SUBSTITUTES_LIST or RH_SUBSTITUTION_MAINTAIN to do the maintenance of substitutes.
If this is done in the background then there is an RFC function module (don't know this off by heart though)
Regards
Robin -
Function module updating the data base table
Hi,
This post is regarding the function module not updating the data base table.
I am calling the FM SD_SHIPMENT_HEADER_CHANGE inside the ZFM. It's returning success an changing the table c_xvttk_new with the new TDLNR value. But it's not updating the Shipment table VTTK-TDLBR or VT02N Forwarding agent.
When I directly updating Forwarding agent in VT02N it's updating fine.
Please let me know what the extra step need to be included to update or COMMIT the FM for updating
Forwarding Agent(VTTK-TDLNR).
Best Regards,
Maheshhi friend,
This link wont five u the complete help but if u ananyse it then it might provide u some idea......
BAPI change shipment doc
regards
kanishak -
Hi i need help on BAPI to Update the ADRT & ADR6 tables
hi,
i need help on BAPI to Update the ADRT & ADR6 tables
these are the fields to be updated
ADRT-Remark Table
ADR6-SMTP_ADDR
ADR6-DFT_RECEIV
Please guide me what parameters to be passed to update
ADR6 & ADRT tablesLook at this function Group
<b>BUBA_3 SAP BP: External BAPI Function Modules </b>
BAPI_BUPA_ADDRESS_ADD SAP BP, BAPI: Add Address
BAPI_BUPA_ADDRESS_CHANGE SAP BP, BAPI: Change Address
BAPI_BUPA_ADDRESS_GET_NUMBERS SAP BP, BAPI: Read Address Numbers
BAPI_BUPA_ADDRESS_GETDETAIL SAP BP, BAPI: Read Address
BAPI_BUPA_ADDRESS_REMOVE SAP BP, BAPI: Delete Address
BAPI_BUPA_ADDRESSES_GET SAP BP, BAPI: Determine All Addresses
BAPI_BUPR_CONTP_ADDR_ADD SAP BP, BAPI: Add Contact Person Relationship Address
BAPI_BUPR_CONTP_ADDR_CHANGE SAP BP, BAPI: Change Contact Person Relationship Address
BAPI_BUPR_CONTP_ADDR_GETDETAIL SAP BP, BAPI: Read Contact Person Relationship Addresses
BAPI_BUPR_CONTP_ADDR_REMOVE SAP BP, BAPI: Delete Contact Person Relationship Address
BAPI_BUPR_CONTP_ADDRESSES_GET SAP BP, BAPI: Read Contact Person Relationship Addresses
BAPI_BUPR_EMPLO_ADDR_ADD SAP BP, BAPI: Add Employee Relationship Address
BAPI_BUPR_EMPLO_ADDR_CHANGE SAP BP, BAPI: Change Employee Relationship Address
BAPI_BUPR_EMPLO_ADDR_GETDETAIL SAP BP, BAPI: Read Employee Relationship Address
BAPI_BUPR_EMPLO_ADDR_REMOVE SAP BP, BAPI: Delete Employee Relationship Address
BAPI_BUPR_EMPLO_ADDRESSES_GET SAP BP, BAPI: Read Contact Person Relationship Addresses
Look also at OSS <a href="https://service.sap.com/sap/support/notes/306275">Note 306275 - Transferring address data</a>
Regards -
Nsert/Update and Add Column at the same Table and at the "same" Time
Hello,
I want Insert/Update and Add Column at the same Table and at the "same" Time but in different sessions.
Example:
At first the "insert/update" statement:
Insert into TestTable (Testid,Value) values (1,5105);
After that the "add" statement:
Alter table TestTable add TestColumn number;
- sadly now I get the message: ORA-00054: resource busy and acquire with NOWAIT specified
"insert/update" statement:
Insert into TestTable (Testid,Value) values (2,1135);
After that the execute commit.
I don't know when the first session set the commit statement so I want that the DB the "Alter Table..." statement execute if it's possible.
If it's possible I want to save a repeat loop with the "Alter Table..." statemtent.
Thanks for ideasWell I want to walk in the rain without and umbrella and still stay dry, but it ain't gonna happen.
You can't run a DDL statement against a table with transactions pending. Session 2 has to wait until session commits or rollbacks (or until the session is killed). That's just the way it is.
This makes sense if you think about it. The data dictionary has to be consistent across all sessions. If session 2 was allowed to change the table structure whilst session 1 has a pending transaction then the database is in an inconsistent state. This is easier to see if you consider the reverse situation - the ALTER TABLE statement run by session 2 does a DROP COLUMN TESTID rather than adding a column: now what should happen to session 1's INSERT statement? You have retrospectively invalidated a statement that was perfectly legal when it was executed.
If it's possible I want to save a repeat loop with the "Alter Table..." statemtent.Fnord.
Cheers, APC
Maybe you are looking for
-
How can I change the Y-axis (circular) grid spacing, in Polar Plot VI?
When using Polar Plot VI, I need more control over the plotting parameters. This means tweaking the sub-VIs in various ways. What I need to do most is make the polar magnitude axis less busy, i.e. only draw circles every 10 instead of every 5 divisio
-
Disk Utility boot cd / dvd
If I need to run disk permissions from the install dvd, is it possible to make a boot cd/ dvd that just has disk utility or the install apps to save me scratch my original dvd ? I know I could clone the install disc but it is double layed.
-
I've looked through the answers here and still can't figure out a clear direction. I shot some HD video that shows as 1440 x 1080 in the Item Properties. I'm doing titles in Photoshop. What should my canvas size be? If I set the Photoshop document to
-
The 'Command \' no longer works in InDesign
Hello For years I've been able to use 'command \' to make a section of text align on that mark. However, as of the previous 6.x update I am no longer able to use this quick command. It was very helpful when creating lists and other call-out elements.
-
I have an iphone 4 and my computer recently crashed due to a virus. I am working on new laptop now and I do not want it to become infected so I have not hooked my hard drive up to it. Is there any other way of ensureing the music does not get delet