Update Rules Syntax
Hi,
I am checking update rules. what we are doing getting some fields from one ODS and storing in variables and these variables are used to update some other ODS.
for this purpose we are using select single * from xxx(ODS Name). but we want one 1 or two fields from the ODS. if i write select single yyy(field name) from xxx(ODS name) is there any performance improvement.
Can any one please suggest me how can i improve performance of Update rules and transfer rules.
Thanks
Rajini
Hi Rajini,
For multiple fileds to be picked up from ur ODS you can use the following select statement.
Lets say you want 3 fields A, B and C from ODS YOXYZ. You can use,
Select single A B C into (va_A, va_B, va_C) from /bic/aYOXYZ00 where (use your selections).
This is quite fast and will never have a performance issue.
If there are more than one record you want to select, it is always useful to store them in an internal table and use the select statement in the Start routine.
In this way your Select statement is only executed once per data package.
The most important point which should always be kept in mind is the selections you do in the where clause.
If all the Keys of the ODS are used, you dont have to worry about the performance.
If there are fields other than Keys, then it is advisable to create indexing on the ODS for those fields. This greately improves the performance.
Hope this helps!!
Assign points if you find the explanation useful.
Regards,
Jadeep
Similar Messages
-
Hi,
Does anyone know if there exists a report/program checking the syntax of update rules?
The purpose is to find out errors without parsing all existing routines.
Thxs.
Laurent Q.Hi Roberto,
The new thing brought by BW 3.5 in start routines is:
<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/CS<b><DS name></b>.
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 -
</i>
I could find a fix to the resulting syntax errors (due to RECNO field - cf. note 547669).
BUT, my question is: <u>how to check the syntax of a whole bunch of update rules without editing them manually one after the other?</u>
Thxs Roberto.
LauQ -
Update Rules inactive-Log not found in main memory
Hi
I am trying to active update rules but it is failing with log not found in main memory.
I tried update rules syntax check and system says no error when checking the update rules.
What could the reason? How can I dig this further? Please advise ASAP as this is urgent.
Regards
VennelaCheck out if there has been any update error in VA02 using transaction SM13.
Lokesh -
Error in activation of update rules.
Hi,
I get an error - 'IC=0PP_C02 IS=2LIS_04_P_MATNR error when checking the update rules' while activating the update rules in BI content. Rest all the data flow is activated except update rules.
Can anyone throw some light on this?
Thanks & Regards,
ManishaHi ,
Check the update rule.
In that there are two routines.
In the first one Goods being processed & 2nd one as well , there is syntax err.
/BI0/APP_O010 doest exist.
Mostly it is fetching some data from some dso in this routine.
So it should be activated.
Then update rules will be activated.
Regards,
Devina -
Key figure routine in update rules
I have a Cube (X) that gets data from a ODS (A) but one of the key figures gets the data from another ODS (B) with a routine in update rules and I want to change it to ODS (C)
A (All objects except one) - X (All objects except one)
B (0DEB_CRE_LC) - X (0DEB_CRE_LC)
select sum( DEB_CRE_LC )
into RESULT
from /BIC/AZDOC_SUB00
where OI_EBELN EQ COMM_STRUCTURE-OI_EBELN
and OI_EBELP EQ COMM_STRUCTURE-OI_EBELP
and /BIC/ZCLASC_ID EQ COMM_STRUCTURE-/BIC/ZCLASC_ID
and PSTNG_DATE LE l_datafim
and PSTNG_DATE GE l_datainicio
and /BIC/ZTPOPER = '9'.
My problem is that my ODS (C) doesn't have 0DEB_CRE_LC and the values are divided in 2 key figures (D) & (E), I want to sum both key figures into 0DEB_CRE_LC of the cube.
I tried a tip from a friend but didn't work, I'm lost (newbie), and apreciated some tips, it doesn't seem to sum anything
data: result1 type /BIC/AZPUR_S0100-/BIC/ZSLIQ_VAL,
result2 type /BIC/AZPUR_S0100-/BIC/ZSIVA_VAL.
select sum( /BIC/ZSLIQ_VAL ) sum( /BIC/ZSIVA_VAL )
into (RESULT1, RESULT2)
from /BIC/AZPUR_S0100
where OI_EBELN EQ COMM_STRUCTURE-OI_EBELN
and OI_EBELP EQ COMM_STRUCTURE-OI_EBELP
and /BIC/ZCLASC_ID EQ COMM_STRUCTURE-/BIC/ZCLASC_ID
and PSTNG_DATE LE l_datafim
and PSTNG_DATE GE l_datainicio.
write result1.
write result2.
Many thankxdata: result1 type /BIC/AZPUR_S0100-/BIC/ZSLIQ_VAL,
result2 type /BIC/AZPUR_S0100-/BIC/ZSIVA_VAL.
select sum( /BIC/ZSLIQ_VAL ) sum( /BIC/ZSIVA_VAL )
into (RESULT1, RESULT2)
from /BIC/AZPUR_S0100
where OI_EBELN EQ COMM_STRUCTURE-OI_EBELN
and OI_EBELP EQ COMM_STRUCTURE-OI_EBELP
and /BIC/ZCLASC_ID EQ COMM_STRUCTURE-/BIC/ZCLASC_ID
and PSTNG_DATE LE l_datafim
and PSTNG_DATE GE l_datainicio.
write result1.
write result2.
<u>RESULT = result1 + result2</u>
I still have to test it, first i was getting syntax errors because I didn't put spaces right sorry -
'L_CHAVL_IN' Error while Activating Update Rules.
Hi All,
when i am tring to activate my update rules, it is giving error, field "L_CHAVL_IN' in unknown. I dont have that field in my objects.
i found that field in 'Progarm' for the update rules. that field is used in the exit of one of the feild in the update rules.
Please give me a solution how to solve this.
Regards,
Ramana.Check the following SAP Note (# 782858)
<b>Symptom</b>
When you activate the update rules, the system issues a syntax error: 'Syntax error: Field "L_CHAVL_IN" is unknown'.
<b>Other terms</b>
Syntax error; generation; l_chavl_in; update rules
<b>Reason and Prerequisites</b>
This is a program error. The error only occurs under the following circumstances:
You generate an optimized update rule;
An alpha conversion is required.
<b>Solution</b>
BW 3.0B
Import Support Package 25 for BW 3.0B (BW3.0B Support Package 25 or SAPKW30B25) into your BW system. The Support Package will be available once note 0723254 with the short text, "SAPBWNews BW3.0B Support Package 25", which describes the Support Package in more detail, is released for customers.
BW 3.10 Content
Import Support Package 19 for BW 3.10 (BW3.10 Support Package 19 or SAPKW31019) into your BW system. The Support Package will be available once note 0723261 with the short text, "SAPBWNews BW 3.1 Content Support Package 19", which describes the Support Package in more detail, is released for customers.
BW 3.50
Import Support Package 10 for BW 3.5 (BW3.50 Support Package 10 or SAPKW35010) into your BW system. The Support Package will be available oncenote 0763336 with the short text, "SAPBWNews BW Support Package 10 NetWeaver'04 stack 10", which describes the Support Package in more detail, is released for customers.
Assign pts if helpful.<b></b> -
Error when transpotring Update Rules
Dear colleagues.
When transporting an update Rules into our Quality enviroment the system pops up the following error:
IC=ZWEPP_C02 IS=ZWE_BOM_RMX_IS syntax error: rows 0.
I've verified the Update Rules on the Quality System and everything is correct but it remains inactive due to the transport fails.
I would appreciate your feedback.
Thanks in advance.Dear khaja.
I send you the transport log as well as the Return Code.
Error when activating update rule 5MYASZMBOIQZSRR60674OBKJ3
IC=ZWEPP_C02 IS=ZWE_BOM_RMX_IS error when generating InfoCube Update program
IC=ZWEPP_C02 IS=ZWE_BOM_RMX_IS syntax error: rows 0 (When generating the update program for data target ZWEPP_C02, InfoSource ZWE_BOM_RMX_IS, a syntax error occured in row 0. Message no. RSAU466)
Errors occurred during post-handling RS_AFTER_IMPORT for ROUT L
Please, let me know if you need anything else.
Thanks. -
How to Code "AND" logic in Update Rule?
Hi:
I have minimal ABAP knowledge and need some help....
I have to use the Query logic and code in my Update rule... (i.e. multiple conditions have to be met)
IF (COMM_STRUCTURE-Sales_Org = '100' AND COMM_Structure-Division = 'LA' AND COMM_STRUCTURE-Acct_Grp = '0120')
RESULT = COMM_STRUCTURE-Credit_Amoutn (I want to assign a specific KF)
ELSE
RESULT = 0 (I want to assign Zero)
ENDIF
I attempted this logic, but I keep getting an error with 'AND' statement. I am not sure what is the syntax.
Can someone please help me out with the logic/sytax
Thanks..... LeeHi:
I responded without checking the logic.... assuming it would work...!~
Unfortunately it gives me error:
QUOTE
E:Incorrect logical expression: ")" must be followed by "AND" or "OR" . .
UNQUOTE
Can anyone help me resolving this please....!!!!
Thanks... lee -
Error installing business content update rules
Hi,
I'm trying to install the below updates rules from the business content
0PLANT$T 0PLANT_TEXT 53AFFWD74OI3CT3RDE3RI9THU
0PLANT 0PLANT_ATTR 5UZVD7UWYN4T81H24YBKGH6KY
I get the error
IC=0PLANT$T IS=0PLANT_TEXT syntax error: rows 0
Long Text:
IC=0PLANT$T IS=0PLANT_TEXT syntax error: rows 0
Message no. RSAU466
Diagnosis
When generating the update program for InfoProvider 0PLANT$T, InfoSource 0PLANT_TEXT, a syntax error in line 0.
System Response
The update rules cannot be activated.
Procedure
If error message :
is cut off, proceed as follows to get the complete complete error message:
Go into update rule maintenance, choose Extras -> Display Activated Program and perform a syntax check. This allows you to find out what the error is.
If I select the Display Activated Program it says does not exist.
Can anyone help me figure out this issue?
ThanksWe are currently on SAP EHP 1 for SAP NetWeaver 7.0
SAP_BW Release 701 Support Package SAPKW70107
BI_CONT Release 705 Support Package SAPK-70501INBICONT -
ABAP code help for 0PROFIT_CTR (in Update rules)
Hi
Can you please give me the update rules code that would do the following in BW 3.5:
If Profit Center is 10 digits long, its ok but if Profit Center is 5 digits long, concatenate with 5 zeros.
Thanks
Jimi
Edited by: jimi ogun on Dec 1, 2011 1:44 PMHi Soorej
I tried teh code in my transfer rules but the result was blank. I guess it was because i didnt insert anything in the RESULT line... This is what i tried to do but i get a syntax error:
$$ begin of routine - insert your code only below this line -
DATA: l_s_errorlog TYPE rssm_s_errorlog_int.
data : len type i,
v1(10) TYPE c value 'abcde'.
len = strlen( v1 ).
if len = 5.
CONCATENATE v1 '00000' into v1.
endif.
RESULT = /BI0/OIPROFIT_CTR.
returncode <> 0 means skip this record
RETURNCODE = 0.
abort <> 0 means skip whole data package !!!
ABORT = 0.
The syntax error i get is below:
E:Field "/BI0/OIPROFIT_CTR" is unknown. It is neither in one of the
specified tables nor defined by a "DATA" statement. "DATA" statement. -
Hi All,
I am encountering the below error while activating the update rules of 0LIV_DS01
IC=0LIV_DS01 IS=2LIS_06_INV syntax error: The type "/BI0/OISR_SVP_LSY" is unknown
Please guide me.
Thanks...../BI0/OISR_SVP_LSY exist in your system? Maybe any transport is missing (InfoObject OISR_SVP_LSY)
-
Error in update rules in inventory
Hi Gurus,
I have a problem with the update rules.I am getting the syntax error in Production when checking in the update rules. It says the program "INCLUDE report "RSBCTGN_TOP" not found".
Actually these update rules were working correctly in Development.
Is there anyway to transport that program alone or do i have any other way to handle that in Production itself as i have access to it.
Thanks in advance.
Regards,
venkatHi,
first try with SE38 if this include RSBCTGN_TOP is existing and active, if inactive activate it.
also check whether infoobject 0GN_BWBEOTY is active.
/manfred -
0PS_C02 update rules are not getting activated when i install 4rm BI conten
Hi All,
In BI Dev. sys for PS module- Project System - Dates 0PS_C02 cube- update rules are not getting activated when i install from the business content and its giving the error " IC=0PS_C02 IS=0PS_DAT_PRJ error when checking the update rules Message no. RSAU461" .
I deleted the inactive update rules(6 nos) and installed again from BI Content, then the same issue raising.
Can anyone help me out as i stuck up with this to move to go-live.
Thanks,
SakaliHi Vassu,
here are some of the reasons for getting error in update rules activation.
1. Check the formula or routines that are used in Update rules and check is there any syntax errors.
2. check whether the mappings are correct or not.
3. check the info objects which ur used for mapping are in active or not..
(or) if the info object may be deleted which ur using for mappings.
Thanks
Sai Chand. -
Formula in Update rule(Urgent)
Dear Gurus,
Iam written Formula in update rule
Get source system type is SUBSTRING( Source System, 2, 1 )
And Get Client Formula is RIGHT( Source System, 3 )
Above formula syntax is correct.
But when iam loading data getting below error.
Formula in InfoObject /BIC/CLIENT : The argument 'R3DCLNT240' cannot be interpreted as.
In Help node it is showing below message.
This is a specific error message of processing from the handling of incorrect data data records. It enables the jump into the error requests or the PSA maintenance, depending on whether the generation of an error request was desired, and whether or not it was possible.
How to solve this problem?What does it mean?
Thanks in advance
RamuHi Ramu,
Instead of using Formula why don't u try with Constant in Update rules for R3DCLNT240.
Try with this and hope it may works.
Thanks & Regards,
Reddy. -
Hi All,
I got this error when i try to activate the update rule of the InfoCube:
IC=(infocube's name) IS=8(ODS' name) error when generating InfoCube Update program.
IC=(infocube's name) IS=8(ODS' name) syntax error: The Dictionary structure or table "/BIC/DP_SRM011" rows 32
Does anyone know anything about this error?
Thanks!Have a look at this:
Error in Update Rules
Regards
Maybe you are looking for
-
Extraction and Reporting is not working in BI SYSTEM
Hi, The BI developement r shows error an License Expire.Currently i change the system date and working fine. If changing the system date modeling part is working fine. But extraction and Reporting is not working. please help me to solve this
-
"Face Time" app for Video Chat between iPhone 3GS and PC?
Does anyone know of an iPhone app and/or PC application combo (besides Yahoo Messenger) that will support video chat between an iPhone 3GS and a PC (not a Mac)? FYI, I can already do video chat without Face Time between my iPhone 3GS and an iPhone 4,
-
HDMI port of Portege R830 no longer working
Hello, I have a laptop Portege R830 model number PT320C-01J018 and the HDMI is no longer working. I have checked the cable and the TV is new. What can I do? Regards, Kattie
-
Transform purchased items from iphone to itunes
Dear Apple support, While I tried to update my 5s to 7.0.4. itunes asked to back up my purchased items. I tried to download my purchased items as the instruction shown herehttp://support.apple.com/kb/HT2519 However, I couldnt find any purchased items
-
Address Book Label Prinitng woe's
How can i print my Me card's address all over an Avery sheet. Last time i tried to do it it just worked. Today i can only get one label top left. I have done this before without thinking about it. What has happened since my recent system reinstall. T