Update rules syntax check
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
Similar Messages
-
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
RajiniHi 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 -
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 -
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. -
Currency conversion error in Update rules for 0SD_C03
Hi All
I have freshly installed Sales Overview cube 0SD_C03 from BI Content(3.x version) and when extracting data from datasource "2LIS_13_VDITM" there is an error "Error: Conversion foreign curr. -> local curr.: 0090000000 20080516 M -> SGD".
Till PSA data is loading fine, there is error while loading from PSA to cube(ie. in Update Rule).
Checked in the PSA for the errored records, all the records which have 0(zero) as amount are green and the rest of them are errored with the above message.
When checked in the manage cube there are added records but the request is red.
Please let me know if some one as the clue.
Regards
JayantHi
You will find the transfer global settings for the source system where you are extracting the data.
Select the source sytem, right click,go to transfer gloabal settings, (select the currencies in this)
Then Reload the data into the cube,
After, Reloading the data into the cube replicate the master data, and activate the mappings,and load the data.
I think, this will work....
Regards
Sudheer -
ABAP for removing records in update rule
hello all,
we have data loading to several infocubes based on sales order type (logical partition). our entire business and reporting strategy for sales is based on order type. we have 1 extractor loading these 5 cubes. we want to code in the update rule to check for each cube a particular value, and if its not this value, remove the record.
example would be loading order type cube zpt1 we want to check the records coming into this cube that the value for characteristic ziden = z1. if not, remove the record and do not update the cube. the other cubes are the same. cube zpt2 checks if characteristic ziden = z2. if not, remove all other records.
can someone inform us how this coding would look like in the update rules?
thanks so muchI'm assuming you need code for BW 3.x, since you mentioned Update Rules. There are a couple of ways:
DELETE
data_package
WHERE
/bic/ziden NE 'Z2'.
Or
LOOP AT data_package.
IF data_package-/bic/ziden NE 'Z2'.
DELETE data_package.
ENDIF.
ENDLOOP.
If you're on BI 7, then you can create a filter on the DTP to the target so that it only extracts the records needed from the source.
Edited by: Dennis Scoville on Aug 19, 2009 1:59 PM -
How do you add an entry in the monitor log from the update rules?
How do you add an entry in the monitor log from the update rules?
Check this link for relevant SAP recommended implementation.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0c22e690-0201-0010-9581-832abdb5d50d
Sample Code (Routine) available on the last page of the document.
award points if useful -
Authorization Check for Update Rules Modify during Scheduling of InfoPackag
Hello Everyone....
We have recently upgraded our Testing Environment to NW2004s SP10, and the system is currently Non-Changeable and all the other changes have been brought in via transports.
After SGEN has completed, when I try to open up an existing InfoPackage and click on the "Start" button it gives me the "You have only authorization to display the "InfoProvider" name".
If it is the load into DSO it complains about Activity 23 not available for the Subobject UPDATERULE of the object S_RS_ODS and if it is an InfoCube it complains about Activity 23 again for the Subobject UPDATERULE of the object S_RS_ICUBE.
Which doesn't really make sense as the Activity 23 would allow the change to the Update Rules for the InfoProviders.
Please advice if there is any other Role or Profile which needs to be maintained or a system setting to avoid this Auth Check.
Also, the same when repeated in the Development environment shows the message "Generating the Update Program" in the status bar below and once that has completed, the extract works fine.
Please advice......
Any help would be really appreciated as we are kind of stuck on this issue.
Thanks
Dharma.Hi,
You should use transaction ST01 then you can see the objects asked for with the value needed. Also transaction SU53 gives you information about the object you want to use. The new transaction RSECADMIN with the tab analyses gives you information that is not in SU53 and releated to the data selection. If it is an analyses authorization problem add authorization object 0BI_ALL to a role in the autorisation object S_RS_AUTH. I think you can get the information you need this way.
Bye Jan -
Bug in updatability rules checking ?
MS NT4.0SP6
Oracle Client 9.0.2
I appear to have found a bug in oo4o concerning the updatability rules checking.
The SQL updatability rules state (among other things) that a query will not be updatable if the outermost SELECT clause contains a FUNCTION call.
I opened a ODynaset using the SQL "SELECT TRIM(FIELD1) FROM TBLTEST".
The CanUpdated() method returns TRUE. However, attempting to add a record using the AddNewRecord() / SetFieldValue() / Update() methods results in the error "ORA-00928: missing SELECT keyword".
After switching on tracing I found why the error was being reported....
(291) [23-AUG-2002 14:41:24:752] nspsend: 01 00 00 00 00 20 49 4E |......IN|
(291) [23-AUG-2002 14:41:24:752] nspsend: 53 45 52 54 20 49 4E 54 |SERT.INT|
(291) [23-AUG-2002 14:41:24:752] nspsend: 4F 20 74 62 6C 74 65 73 |O.tbltes|
(291) [23-AUG-2002 14:41:24:752] nspsend: 74 20 28 29 20 56 41 4C |t.().VAL|
(291) [23-AUG-2002 14:41:24:752] nspsend: 55 45 53 20 28 29 01 00 |UES.()..|
(291) [23-AUG-2002 14:41:24:752] nspsend: 00 00 01 00 00 00 00 00 |........|
(291) [23-AUG-2002 14:41:24:752] nspsend: 00 00 00 00 00 00 00 00 |........|
(291) [23-AUG-2002 14:41:24:752] nspsend: 00 00 00 00 00 00 00 00 |........|
(291) [23-AUG-2002 14:41:24:752] nspsend: 00 00 04 00 00 00 00 00 |........|
(291) [23-AUG-2002 14:41:24:752] nspsend: 00 00 00 00 00 00 00 00 |........|
(291) [23-AUG-2002 14:41:24:752] nspsend: 00 00 00 00 00 00 |...... |
Basically, the INSERT statement being built in the background is incorrectly formatted, presumably because of the FUNCTION in the select list.
Am I right in thinking that CanUpdate should return FALSE in the above scenario ?
Thanks
Adrian
LBS Ltd, UK
www.lbs-ltd.comI added :
public override function clone():Event {
return new DayClickedEvent(date);
in DayClickedEvent.
The source of the problem is that I expected clone() to be a
"real" clone() (like in java) where it provides a object of the
effective type of the object we clone, but that's not the
case... -
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 -
'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> -
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 -
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 -
SYNTAX-CHECK undocumented parsing parameters
Hello,
as I'm working for a project where we need an ABAP-Parser I was searching for something that could help us with that.
I found the statement SYNTAX-CHECK with a lot of undocumented parameters, like 'id 'STMTS'', that seem to produce something like a parsing result for a program/class.
Does anyone have any documentation about these parameters, that are not documented in the normal sap-help?
mfg
- clemens heppnerHi 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
Maybe you are looking for
-
AD password change comes up, user changes password. Tries to send signed or encrypted email with a Comodo S/MIME certificate, and gets the following error: ""An error occurred in the underlying security system. Key not valid for us in specified stat
-
Itunes is moved to another place on my pc, can´t open it
after some time not using Itunes on my pc i can´t open it, message says it has been moved to another place, unfortunately not where... same at the pc of my husband....we installed the program in March 2012
-
Just purchased Documents (paid version) for my iPad. I can create files and save them in Dropbox but cannot read them on my Mac. How do you open these files. I am also supposed to be able to edit them as well.
-
File Upload: Please Help
Hi Ppl, Will midp allow me to write an application that can upload a file preferably less than 100kb in a file server.
-
I'm in need of some expert advice on how best to partition the following table in Oracle 9i. It's expected to hold billions of records. This table is expected to receive 10,000,000 new records every hour or so. I've tried a composite range-hash parti