on 05-25-2006 3:21 AM
Hi,
I know I can split records with return table in update rule, however this seems to be done by key figure. Do I need create the same logic for all key figure or only one key figure is ok?
Thanks
Hi Victor,
It all depends upon the requirement. If it is a single key figure split then you could do it at the Key Figure Update rule itself.
But typically all the code is written at the start routine and stored ina internal table and the return table option is used in the Key figure level update rule.
Bye
Dinesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Victor,
If you want to split data for more key figures it is better to do in start routine.
The main difference between start routine and field wise routine is:
You no need to maintain new or more fields in data target in infosource. But if you want to write start routine all the fields should available in infosource as well and you have to map one-to-one in updaterules.
If you loading into cube then time distribution is available,(ex: you are getting month level data want to distribute to week level, you can use time distribution, no need of coding).
For sample codes, plz search in this forum with search term " start routine" you will get a lot.
Hope it Helps
Srini
Hi Victor,
For simple example you are getting price and quantity from data source and you want calculate Value and you are having separate key figure for Value in your target.
You achive this in 2 ways.
1. Field wise routine.
2. Start Routine.
if you want to write at field level you no need to maintain new keyfigure(value) in infosurce, you can calculate this either by formula or by routine.
But if you want to calculate at start routine, this nes KF(value should available in infosouce), then only it will be available DATA_PACKAGE in start routine. Then only you can assign formula. and also you have to map one-to-one in update rules.
Actually if you are creating a new infosource you can modify accordingly by adding requed fields, but when you are loading from one ODS/CUBE to another ODS/CUBE, data mart scenario, system will generate datasource and infosources. Then it will be a bit difficult.
Hope it Helps
Srini
Hi Victor
if you want to do for all key figures ..Then do the same for all key figures and write the routine for each key figure..
Hope the above helps you..
bye
Shu Moh..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi check out this link
http://help.sap.com/saphelp_nw2004s/helpdata/en/7f/61fc37f456491ee10000009b38f8cf/frameset.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/21/894eeee0b911d4b2d90050da4c74dc/frameset.htm
u genrally do it for the keyfigure u want to split
reward if it helps!
dhanya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Victor,
You can do it for whatever key figures you want - either all or one. You would typically write the logic for splitting in the start routine and then for each individual key figure you would assign the values in the RESULT.
Bye
Dinesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.