Problem in update rule
Hello
The update rule for 0HR_PA_0 calculates the age in years by using routine . But I am not getting that while executing the query .
Raghavendra,
Try to debugg the Update Rule. you will what is happening in the Update Rule.
Bottom line when you face problem with Data inconsistensy or data miscalculation, if you use UR on that field, try to debugg the Update Rule from the Monitor Screen. You will get the Problem. At runtime you will know what values are getting populated.
For Debugging the UR:
Monitor Details Tab> Data Package> right click> simulate Update> select Update Rule in the Next screen. debugg that Package.
if we can provide the code, we can look into it.
All the best.
Nagesh.
Similar Messages
-
Formula Problem in Update Rule
Hi all,
I am facing one problem with formula in update rule.
I have written one formula in update rule which it is working in development, but I moved the content to quality there it is not working.
I have used the following formula.
IF( NEGATIVE( TRUNC( Total Revenue in USD ) ) >= 5,000,000, 1, 0 )
Best Regards,
SGKHi
It should work fine,If you still facing the same problem,do one thing(work around)
Create a transport request for your cube with indata flow before,and then activate your update once again in dev server,then transport it...
Hope it helps
Thanks
Teja -
hi.
Am doing some enhancement to cube.means added some fields to that.when coming to update rules, what ever i created new infoobjects am not finding over here.written routine for char.everything is fine with that.when activating that its givng that some insource error.
expecting help.
thanksHi banu and all guys,
yes added.when coming to keyfigures by mistake i added extra objects.when am trying to take our means its giving message that u cant deleted those.why bcz it will affect other cubes and ods.other data targets r using these fields.and also in update rules i mapped correctly but its givng that error in data source.what could be the problem.
thanks. -
0PM_DS02 - Problem with Update Rule
Hi ,
I have installed the Standard ODS 0PM_DS02 from BI content.
Problem is --> In Update Rule all Data Fields have been installed perfectly but all Key Fields with Blank ( No Assignment ) .
I would like to know what is the reason that All the KEY Fields have installed with Blank .
Though I can do the manual assignment for characteristics like Equipment / Functional location but my specific area of Concern is what to assign to time characteristcs 0CALDAY / 0CALMONTH etc.
I would appreciate your help in guiding me what to assign in Key fields of 0PM_DS02 update rule.
regards
VishalProbably you have got it resolved already. The key fields are assigned along with the data fields in the statement RESULT_TABLE[] = G_T_UPDATE_IMAGE.
G_T_UPDATE_IMAGE has the same structure as /BI0/APM_DS0200, which is nothing but the active data table of 0PM_DS02. This structure gets populated in the FM BW_MCI1_KEYFIGURE_ARRAY_GET. -
I have one ODS which was loaded from another ODS, there are 57 records out of millions are having blank value for all the data fields except the key fields (overwrite) and key figures (addition), those data fields are direct mapping from ODS 1 and one of it even is updated by constant '0'. Anyone with any idea how could this happen? Thanks in advance.
Cheers!
CecilRaghavendra,
Try to debugg the Update Rule. you will what is happening in the Update Rule.
Bottom line when you face problem with Data inconsistensy or data miscalculation, if you use UR on that field, try to debugg the Update Rule from the Monitor Screen. You will get the Problem. At runtime you will know what values are getting populated.
For Debugging the UR:
Monitor Details Tab> Data Package> right click> simulate Update> select Update Rule in the Next screen. debugg that Package.
if we can provide the code, we can look into it.
All the best.
Nagesh. -
Hi I am having four Key figures k1,k2,k3k4 and four characterstic c1,c2,c3 and c4.Now if I write a routine with k1 giving some conditions then only the records satisfyig that conditions will be updated in the cube.If I write a routine for characterstic then what happens ..?
my questions is if I select the characterstic by clicking on the keyfigure and thenking on the particular characterstic then what happens..?
Hope I am clear if not plz let me know.
vasu.Hi Vasu.
When you save your routine you will be asked if you would like to use the routine for all key figures. If you choose no it will only use the routine for the selected KF.
Hope it helps.
BR
Stefan -
Update rules, different source and target units (0BASE_UOM-- 0QVVMRA)
Hi,
I have a problem with update rules as I'm trying to map two keyfigures with different unit-types together. They are both kilograms (KG) but the source figure is defined as 0BASE_UOM and the target keyfigure is 0QVVMRA (Amount of sales).
How can I make this connection work? Do I have to use the 'Unit calculation in routine' -option or is there a more simple way? I a routine must ne written, please post an example or link to a thread which has one.
Thx!
-miikkaHi,
The Problem is that you are trying to connect a Key Fig for Type Quantity with the Key Figure Amount.
The Amount Key Fig will have either 0CURRENCY or Fixed Currency.
Using Update Rules Coding you could transfer the Value but you will have problems with the Currency. You cant store a Unit like KG in 0CURRENCY.
Regards. -
RS_EXCEPTION230 object Update rule not found
hi guys
while extracting the standard business content for 0gl_account i am facing the problem RS_EXCEPTION230 update rule object not found .The update rule appears as a white.
please help as this preventing me to move forward
thanks
nitinExactly, i had the same problem and have solved it as follow:
First you have to select the update rules (for example) and transfer them (you have to select the option 'Transfer', of the 'Transfer command), you will see that they will be activated without error, next step you can simulate them or include them into an order to transport to another environment.
Hope this help. -
RSAU466 : Update rule Activation error
Hello Guys,
We upgrated BW3.5 to BI7.0 SP13
We're facing problem on Update Rule activation
the message is an RSAU466, I have locked for solution on service sap, they suggering to run SP13, but we're already on SP13
Any one have an idea ?I recreated the update rule
-
Hi All,
I am having a problem with update rule
My object
A
B
C
D(Seller phase) (complex table)
Q1(Question)
A1(Answer) (complex table)
Q2(Question)
A2(Answer) (complex table)
Q3(Question)
A3(Answer) (complex table)
E(Collection object)
D(seller Phase)
Q(Question)
A(Answer)
My transaction during Add
A
B
C
D(Seller phase)(complex table)
Q1(Question)
A1(Answer)(complex table)
Q2(Question)
A2(Answer)(complex table)
Q3(Question)
A3(Answer)(complex table)
E(Collection object)
D(seller Phase)
Q(Question)
A(Answer)
here is my requirement:
During Activity create/Edit upon choosing seller phase i bring questions based on update rules of q1 q2 and q3 from complex table.
Possible answers are also fetched from complex table based on selection of phase for each question. I have a update rules for answers to check the object collection(E) and determine if this phase exist or not, If exist previously selected Answers will bulled from collection for the corresponding question if not it has to empty.
All rule are working with out any problem.
Issue.
During create or edit if some one chooses phase P1 and answers for the questions and with out saving if they change phase then answers which are been selected earlier still exist.
This is happening in IPAD but not in ATE. I have checked the log for rules all the rules are returning values as expected.
So i tried the below options to test
1) with special value option in field level
2) I created a dummy field with update rule with value test. On creation i have modified the dummy field value X then changed the phase the value is not getting updated as per update rule.
Is it the real behavior of update rule? Is there any work around for this problem
Regards,
GuptaGupta,
So based on your comments above I have the workarounds I gave you.
1) A button that refreshes "resets" to make the screen repaint (in essence a button that just re-navigates to the same screen will make all the system reset) if you just want one screen.
2)Or the multiple screen approach. Let phase 1 be in one screen and the other questions and answers on others.
Not sure if you can just do 1 screen with multi-tiles - If this is better approach where the phase selection is on 1 tile (top tile) and the questions and answers are on a different tile (bottom tile).
The trick is to make the screen repaint. As long as you present to the customers a flawless flow you will be okay. The one that you don't want to happen is when your rules are buggy then it may be just a good idea to sell a more controlled flow that works than debugging what went down the wrong during UAT (User Acceptance Test).
Regards,
Mark -
Hi
i have wriiten a update rule routine.
in that routine i am fetching comp code ,GL Acct. from SKB1 table and match those records wth Data Package records.
Data Package has both Open and Closed items. so i need to match the Comp Code and GL Account which i have fetched from SKB1 with Data Package Comp Code and GL account which records will be matched they will go to Target ODS otherwise Delete from Data Package.
But data is not coming properly in Target ODS.
i have debug the routine and found , there are 10 records(Comp Code + GL Acct.) has been fetched from SKB1
and Data Package has Total 416 Records. Only 20 Records has been gone to Target ODS while I have seen the 216 Comp Code and GL Account combination has been successfully matched with 10 Records of SKB1
Below is the code in Start routine.
Note: Data Package has Multiple Records for a Combination of Company Code and GL Account which is present in SKB1.
How can i resolve this problem.
********Logic to Fetch Open items GL Account**************
*Fetch data from SKB1*********
SELECT /BIC/ZMCFBUKRS
/BIC/ZMCFSAKNR
FROM /BIC/AZOCFSKB100
INTO TABLE TB_ZOCFSKB1
FOR ALL ENTRIES IN DATA_PACKAGE
WHERE /BIC/ZMCFBUKRS = DATA_PACKAGE-COMP_CODE
AND /BIC/ZMCFSAKNR = DATA_PACKAGE-GL_ACCOUNT
AND /BIC/ZMCFXOPVW = 'X'.
***Fetch records from FI GL Data Package which match with
***internal table TB_ZOCFSKB1
LOOP AT DATA_PACKAGE INTO WA_DATA_PACKAGE.
READ TABLE TB_ZOCFSKB1 INTO WA_TB_ZOCFSKB1 WITH KEY
/BIC/ZMCFBUKRS = WA_DATA_PACKAGE-COMP_CODE
/BIC/ZMCFSAKNR = WA_DATA_PACKAGE-GL_ACCOUNT
binary search.
IF sy-subrc ne 0.
DELETE TABLE DATA_PACKAGE FROM WA_DATA_PACKAGE.
ENDIF.
***Clear Work Area****************
CLEAR WA_TB_ZOCFSKB1.
CLEAR WA_DATA_PACKAGE.
ENDLOOP.
***Refresh internal table*********
REFRESH TB_ZOCFSKB1.
ENDIF.
if abort is not equal zero, the update process will be canceled
ABORT = 0.
Edited by: AtulMohan Mishra on Feb 9, 2011 11:22 AMHi,
It is very important that you SORT the internal table before you do a READ with Binary Search.
SORT TB_ZOCFSKB1 BY /BIC/ZMCFBUKRS /BIC/ZMCFSAKNR.
You are sure to miss results unless you do. -
Problem in the update rule routine in BIW production
hi,
I have encountered a problem in the update rule, the problem is, there is a routine to calculate the age of a person, age is a key figure,
The problem is that the key figure is not being calculated.
we had encountered the same problem in the bw developent, we reinstaled the update rule, and the age was calculated correctly. Where as in production we cannot instal from business cotent, should we transport the perticular update rule once again?
if there is any other solution, please let me know.
Thanks in advance.
regards chetana.I think retransporting is the only option available to you. You cannot modify anything in your production system.
IF you have a chance to speak with basis people,ask them to open the system status to modifiable for few minutes.
and make necessary changes in production and bring it back to normal (This is not a best practise in all situations).
hope this helps.
Praveen -
Hi frndz,
I have one query regarding update rule.
i want to ask you the question that while defining the routine on particular keyfigure is it requierd to maintain the sequence of the field as it is in cube.
Like i am facing a starnge problem i have just now updated system to 3.5 now my problem is i have a master data material in that i have wriiten few update rule on specific fields,now when i am loading the data in material master data few of the material having the value others dont have.
i think some problem lies in update rule i have checked correctly every thing is fine with the update rule,
can any one suggest me why its behaving strangely.i have tried that but no where i am getting the problem.
like after debugging i got the value correctly till the PSA but its not going correctly in data target. -
Time consuming problem in Self update rule
Hi all:
We have time consuming problem in self update rule.I have ODS ZOMS001,for this we created self update rule.In process chain we include this self update rule and during delta update,it takes 20 to 25 mins even if there is two records or 10000 records.In delta for this self update rule,it takes the whole records in ODS
EX: If i have 10000 records during initialise and 10 records in Delta update...For the delta self update rule it takes 100010 records..But it only update delta records values.
we have to reduce the total time consuming for this self update during delta..
Waiting for your inputs.
It would be helpful for your valuable reply.
Rgds
MSKI think retransporting is the only option available to you. You cannot modify anything in your production system.
IF you have a chance to speak with basis people,ask them to open the system status to modifiable for few minutes.
and make necessary changes in production and bring it back to normal (This is not a best practise in all situations).
hope this helps.
Praveen -
Update rule problem for date in Prod
My scenario is like this:-
ODS 2 is loaded from ODS 1, in ODS 1 there is a data field calendar day (DATS, time characteristic) and there is a data field posting date (DATS, characteristic) in ODS 2. In the update rule, the posting date is updated from calendar day by a formula source.
The problem is the posting date data field is updated into ODS 2 correctly in development box but it is not updated (blank) in production box. I can't figure out what is the cause, hopefully someone can give me some help. Thanks.
Cheers!
CecilThe only different is the development system is having this part of code in the update rules program compare to production system. Do I need to compile the update rules formula manually?
*This ABAP Code was generated automatically *
*Formula Calculator *
*Generated :2008:09:12-10:47
*User: XXX
*Calculation:
result = COMM_STRUCTURE-CALDAY.
ENDCATCH.
if sy-subrc <> 0.
perform error_message using 'RSAU' 'E' '507'
'ROUTINE_0004' g_s_is-recno
rs_c_false rs_c_false g_s_is-recno
changing c_abort.
endif.
Cheers!
Maybe you are looking for
-
When I try to turn on my homesharing on apple TV it says that either my apple id doesn't exist or the password is wrong. However, I've been using the id for almost half a year and I even changed my password and it still wouldn't work. What can I do t
-
Issuing an Error in Table Maintenance Event
Hi, How can I issue an error in the table maintenance event without exiting the screen. When an event is triggered (Before Save), it will perform a check in the data changed or created. It will issue an error when the changes are not correct. But whe
-
Bridge CS4: works with Mavericks?
[NOTE: Adobe Bridge CS4 came bundled with Photoshop Elements 8] MY CURRENT HARDWARE: Apple iMac (late-2012 slimline model), 2.9 GHz Core i5, 8 GB RAM, 1 TB Hard drive, external DVD drive MY CURRENT SOFTWARE: MacOS 10.8 Mountain Lion iPhoto 2011 Adobe
-
Can I Upgrade to CS5 At All?
Hi, I have been running my Mac version of Creative Suite 2 Premium on both my iMac G5 running Tiger 10.4.11 as well as just the Photoshop & Bridge components on my MacBook Pro (Unibody Late 2009) running Leopard 10.5.8. But I have now installed a com
-
Kernel panic... I don't know how to resolve this problem
I don't know what the heck is going on, but lately, my Macbook 10.5.8 (White) has been crashing very frequently.. and this really gets in the way of my work :/ Also, btw, my CD drive is busted, so I can't reinstall the OSX software if that's what I h