Update rule problem in stock
Hi
I am working with inventory managemnt.I am facing few issues in update rules like:-
1.I am not able to find coressponding source info objects for the customized one .
2.I am not able to find the some of the charactertics mapped to their info objects in the charactertics tab in the key figures.
3. I some how activate the update rule, but it is not showing data in the cube contents while the request is there.
thanx in advance.
The 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!
Similar Messages
-
Update rule problem - validation of "sales/cost w/ tax" keyfigure
BW Gurus,
Hi to all, i have this update rule problem at "sales/cost w/tax" keyfigure here is the senario.
Our Goverment mandatory implemented an additional 2% tax from the original 10%, this will affect our report on sales, and also the BW "sales/cost w/ tax" key figure.
My question is How can I validated the effectivity of the new tax? i have tax 10% from previous sales and 12% on the current sales. What "date field" can I use to validated this. I am using /BIC/CS2LIS_13_VDITM stucture to get the data i need.
Thanks in Advance
JovenHi,
Till to day how are extracting the data for tax(original 10%) is it available directly in 2LIS_13_VDITM ?
Usually all taxes( condition types) can be extracted by the data source 2LIS_13_VDKON.Discuss with SD team, they may give the condition type used for different taxes.
With rgds,
Anil Kumar sharma .P -
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. -
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! -
Master Data lookup in Update Rule problem
Hi all,
I am currently having a problem loading data to an InfoCube using flat files.
The architecture is as follows:
1) The source of the data is a flat file
2) The data is loaded thru an Update Rule and is of type Full-Update
3) The Update Rules determines the Profit Center using the Master Data of the WBS-Element
4) The data is written in an InfoCube
This solution however does not always work as planned. In the following situation a problem occurs:
1) The flat file contains WBS-element RD.00753.02.01, which has a Profit Center attribute value 8060
2) When I load the flat file, the PC value 8060 is written into the row in the InfoCube, which is correct
3) Then I change the master data of the WBS-element by setting the Profit Center attribute value to 8068
4) I run the Attribute Change Run
5) Then i load a flat file again, which also contains WBS-element RD.00753.02.01
6) The master data attribute value should now write the value 8068 into the InfoCube. HOWEVER, this is when the evil occurs. BW does not write a PC value of 8068, but it write the value 8060. This is wrong.
Why does BW not take the newest version of the Master Data to performe the attribute value look-up? Or why doesn't BW write the correct Profit Center into the cube?
Thanks,
OnnoHi Ricardo,
The debug via PSA simulation of the update indicates that the CORRECT Profit Center value is to be written into the InfoCube.
However, if I check the contents of the cube (after the load has finished) using the request-id the WRONG Profit Center value is shown. This indicates that the correct Master Data is used, however the update of the Cube is wrong. Why does this happen. the load is of type full-update, so should add a new row in the cube using the value in the data from the UR.
Onno -
Update Rule Problem for conversion char values
Hi all,
I need to implement the following logic into the update rule:
data: ch1(10) type c,
ch(8) type c.
ch = ch1.
The value in ch1 can be only characters or only numbers. I am facing problem in converting this, as characters are left aligned and the numbers are right-aligned.
Please guide.
ThanksAnother example can be:
data: ch1(10) type c,
ch(8) type c,
ln type n.
ch1 = '0000000010'.
condense ch1.
ch = ch1.
write:/ ch1, '-----', ch.
In this case, we get only 0 in ch field.
Thanks, -
Update rule problem - Urgent pls???
Hi friends,
Below is the code i used in my start routine of the update rule.
Here im sorting the values and then for calday field im filling with the value if it is empty.
eg:
rec1>ord001>25.06.2006-->val1
rec2>ord001> -->val1
in the second record im filling with date of the previous record.
This logic is working fine.If i give any one order number.
If i load all the values,it is not updating.
I think this rule is not getting applied for all the datapackets..(something like that-any problem with looping???)
Awaiting for your valuable suggestion asap..
Thanks&Regards
Ragu
$$ begin of global - insert your declaration only below this line -
TABLES: /BIC/AZPP_O200.
DATA: zpp02 like /bic/azpp_O200 occurs 0 with header line,
mcalday like sy-datum.
Clear : ZPP02[],
ZPP02,
mcalday.
SORT DATA_PACKAGE BY PRODORDER ASCENDING
COMPONENT ASCENDING
CALDAY DESCENDING.
Loop At DATA_PACKAGE.
if DATA_PACKAGE-CALDAY ne '00000000'.
mCalDay = DATA_PACKAGE-CalDay.
else.
DATA_PACKAGE-CALDAY = mCALDAY.
MODIFY DATA_PACKAGE INDEX SY-TABIX.
clear : mCalday.
endif.
EndLoop.I think that the metter happens when the first record is in a datapackage and the second in next one.
In that case you have the matter.
The only way you can do this right is managing data directly in PSA table befor loading.
Also if you have two record with DATA_PACKAGE-CALDAY = '00000000' the secon is filled with '' because fo the clear.
Hope it helps.
Regards -
Update rule problem('No keyfigure is set to update')
Hi
Iam trying to create one more update rule on a cube which is having already update rule and connected to datasource.
But iam unable to create on it. It was giving an error i.e
'No keyfigure is set to update'. And iam unable to see the keyfigures of second cube as it was showing only First cubes keyfigures. What can be the problem.
Could u plz tell me how to rectify it.
Regards
AJayHello Ajay,
Did you ensure that you are assigning the correct Infosource or the ODS object while creating another set of update rules. Key figures, by default are set to no update. So you need to map the key figures with source key figures or you can compute a specific key figure with a formula or a routine.
Hope this helps.
Kind Regards,
Shravan -
Update rule problem - while data load
Hi friends,
I got the following error while doing initialisation for 2lis_02_sgr.
"ABORT was set in the customer routine 9998
Error 1 in the update "
In the forum i searched for this error and this error is something related to the start routine in my update rule.
But i dont know whats wrong with my routine.
Im giving the start routine below,pls go through this and give me your suggestions..
PROGRAM UPDATE_ROUTINE.
$$ begin of global - insert your declaration only below this line -
TABLES: ...
<i>TABLES /bic/AZMM_PUR100 .
DATA: T_PUR1 LIKE /bic/AZMM_PUR100 OCCURS 0 WITH HEADER LINE.</i>
$$ end of global - insert your declaration only before this line -
The follow definition is new in the BW3.x
TYPES:
BEGIN OF DATA_PACKAGE_STRUCTURE.
INCLUDE STRUCTURE /BIC/CS2LIS_02_SGR.
TYPES:
RECNO LIKE sy-tabix,
END OF DATA_PACKAGE_STRUCTURE.
DATA:
DATA_PACKAGE TYPE STANDARD TABLE OF DATA_PACKAGE_STRUCTURE
WITH HEADER LINE
WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
FORM startup
TABLES MONITOR STRUCTURE RSMONITOR "user defined monitoring
MONITOR_RECNO STRUCTURE RSMONITORS " monitoring with record n
DATA_PACKAGE STRUCTURE DATA_PACKAGE
USING RECORD_ALL LIKE SY-TABIX
SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
CHANGING ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
$$ begin of routine - insert your code only below this line -
fill the internal tables "MONITOR" and/or "MONITOR_RECNO",
to make monitor entries
if abort is not equal zero, the update process will be canceled
CLEAR: T_PUR1[] ,
T_PUR1,
ABORT.
SELECT * INTO TABLE T_PUR1 FROM /bic/AZMM_PUR100.
IF SY-SUBRC EQ 0.
SORT T_PUR1 BY DOC_DATE
DOC_ITEM
DOC_NUM.
ELSE.
MONITOR-msgid = sy-msgid.
MONITOR-msgty = sy-msgty.
MONITOR-msgno = sy-msgno.
MONITOR-msgv1 = sy-msgv1.
MONITOR-msgv2 = sy-msgv2.
MONITOR-msgv3 = sy-msgv3.
MONITOR-msgv4 = sy-msgv4.
append MONITOR.
if abort is not equal zero, the update process will be canceled
ABORT = 1.
ENDIF.
ABORT = 0.
$$ end of routine - insert your code only before this line -
ENDFORM.
Thanks & Regards
Raguthanks gimmo and a.h.p,
i have done the correction as you said,pls verify that.
And also kindly explain me what is the reason for this start routine,what exactly it does???
CLEAR: T_PUR1[] ,
T_PUR1,
ABORT.
SELECT * INTO TABLE T_PUR1 FROM /bic/AZMM_PUR100.
IF SY-SUBRC EQ 0.
SORT T_PUR1 BY DOC_DATE
DOC_ITEM
DOC_NUM.
abort = 0. ( added abort = 0 as per your suggestion )
ELSE.
MONITOR-msgid = sy-msgid.
MONITOR-msgty = sy-msgty.
MONITOR-msgno = sy-msgno.
MONITOR-msgv1 = sy-msgv1.
MONITOR-msgv2 = sy-msgv2.
MONITOR-msgv3 = sy-msgv3.
MONITOR-msgv4 = sy-msgv4.
append MONITOR.
if abort is not equal zero, the update process will be canceled
ABORT = 1.
exit. ( added exit as per your suggestion )
ENDIF.
ABORT = 0.
$$ end of routine - insert your code only before this line -
ENDFORM.
Thanks & Regards
ragu -
Instaling the update rules problem
Hi iam Installing the std update rules. like 0sd_co3 2lis_13_vdhdr by selctig grouping as before and instaling. its showing an error as>
IC=0SD_C03 IS=2LIS_01_S263ERROR WHEN CHECKING THE UPDATE RULES ..
CAN U PLS HELP ME FOR THE SAME. HOW TO INSTAL IT AS I HAVE TO ISTAL AND ACTIVATE THE FEW MORE UPDATE RULES AS IAM GETING ERROR FOR ALL .ITS 3.5
PLS DO IT ASAPTry to activate your update rules btween 8ZSL_DS01 and ODS and cube.
It seems your Datamart is not working properly for the datamart data source 8ZSL_DS01 and try to regenerate datamart
Or lese try to load earch one at time and see the result
Edited by: Prasad B on Aug 29, 2008 4:41 PM -
ZSD_C14 - Backorders - Update rules error
Hi Friends,
I want to load into (ZSD_C14) from ZSD_O04. Actually when i copy from 0SD_C14, 0SD_O04 Update routines didn't copied. I have copied manually. Once it's done i was trying to load into ZSD_c14 but it's strucking in the Update rules. It's taking lot of time. I notice that it may be update rules problem.
Kinly give me the solution it's very urgent.
SiriHI Gajendra,
Thank you for your quick response.. But i'm not very good in Coding..
pls find the below coding which i have.
DATA: g_workarea LIKE /bi0/asd_o0100,
l_/bi0/asd_o0100_itab TYPE HASHED TABLE OF /bi0/asd_o0100 WITH
UNIQUE KEY doc_number s_ord_item,
g_doc_number_save LIKE /bi0/asd_o0100-doc_number,
g_s_ord_item_save LIKE /bi0/asd_o0100-s_ord_item,
l_days_open TYPE i,
l_index LIKE sy-tabix.
FORM check_new_data
--> L_DOC_NUMBER
--> L_S_ORD_ITEM
--> G_WORKAREA
FORM check_new_data USING l_doc_number
l_s_ord_item
CHANGING g_workarea LIKE /bi0/asd_o0100.
IF l_doc_number NE g_doc_number_save OR
l_s_ord_item NE g_s_ord_item_save.
CLEAR g_workarea.
SELECT SINGLE * FROM /bi0/asd_o0100
INTO CORRESPONDING FIELDS OF g_workarea WHERE
doc_number = l_doc_number AND
s_ord_item = l_s_ord_item.
g_doc_number_save = l_doc_number.
g_s_ord_item_save = l_s_ord_item.
ENDIF.
ENDFORM. "check_new_data
$$ end of global - insert your declaration only before this line -
FORM compute_data_field
TABLES MONITOR STRUCTURE RSMONITOR "user defined monitoring
USING COMM_STRUCTURE LIKE /BIC/CS8ZSD_O04
RECORD_NO LIKE SY-TABIX
RECORD_ALL LIKE SY-TABIX
SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
CHANGING RESULT LIKE /BIC/VZSD_C14T-OPQTCRGI
RETURNCODE LIKE SY-SUBRC
ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
$$ begin of routine - insert your code only below this line -
fill the internal table "MONITOR", to make monitor entries
result value of the routine
IF sy-datum GT COMM_STRUCTURE-dsdel_date AND
COMM_STRUCTURE-gi_sts NE 'C'.
RESULT = COMM_STRUCTURE-conf_qty - COMM_STRUCTURE-gis_qty.
ENDIF.
if the returncode is not equal zero, the result will not be updated
RETURNCODE = 0.
if abort is not equal zero, the update process will be canceled
ABORT = 0.
Where i need to change please let me know.
Siri -
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 -
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. -
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
Maybe you are looking for
-
I just installed a new KD7 Master Motherboard, and I keep getting "Error Loading Operating System". The MB seems to be working fine. According to all documentation that I can find, suggests that there is a BIOS problem - "BIOS does not correctly ma
-
Why do some keyboard shortcuts just stop working?
Since upgrading to Lion, some of my keyboard shortcuts - especially one for Mail - just stops working now and then and the only thing I can figure out to fix it is to restart the macbook. The main one I've had trouble with is ⌘+ enter to send a messa
-
How to run form.html from any location i want.
Hi all, This is my first post. i have just started to learn Servlets and JSPs.. I made one form.html file with minimal contents and put it as tomcat/webapps/MyTest/form.html. while running it as was said in Head first servlets-> http://localhost:8080
-
Sync photos from iTunes to the iPad
When I synchronize the iPad Air while connected to iTunes in my Mac, I normally intend to transfer the new photos, faces and events included in the iPhoto app in the Mac, since the rest of older photos are already stored in the iPad, which were trans
-
Hello, I want to initiate BPEL process form email in Oracle Soa Suite 11g. How can I do this ??