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.com

I 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...

Similar Messages

  • Update rules Activation Problem

    Hi,
    Iam getting the error while transporting the update rules to production,saying error mesage,
      Start of the after-import method for object type R3TR UPDR (Activation Mode)
      Update rules 4AR6MO7P6M428KB2RPA65E9EX read in version M
      Error when activating update rule 4AR6MO7P6M428KB2RPA65E9EX
      Activation of the update rules for ZCG_O15  ZBW_CRTDN
      IC=ZCG_O15  IS=ZBW_CRTDN error when checking the update rules.
    from Dev to QA successfully transported and data hasbeen loaded with out any issues,
    I didnot changed any thing in ODS,I Just  created the new infosource with only two characteristics and created the update rules direct updating,with out any routines.
    I activated the update rules in Dev couple of times and transported to PD,but every time it is giving same error,there was no issues upto QA,
    Please suggest anybody how to resolve this issue.
    Thanks
    BI USER

    Hi
    Thanks for your replies,
    Iam checking from transport request error log,iam getting error message as I mentioned in my question,
    iam not getting detail information on error log,Update rules are available in PD system but in inactive state,
    I did the Update rules check it is giving message 'no erreors found in update rules'.
    I collected all dependent objects from transport collecter,still same error,I tried from Program
    RSAU_UPDR_REACTIVATE_ALL,but my PD system is in not modifiable state.
    Thanks

  • 0py_c02 do not have the update rules or transformations in business content

    Dear All,
    I ma installing the Business content 0py_c02 cube with before data floe option , i found the infosource and transfer rules between Data source and info source but i can not found the Update rules betweeen the infosource and target.
    Even if u consider the data source replicated in RSDS update mode, but ther is no transformations. how we can resolve this issue , if any body faced the same issue please update the same.
    For creating mannully also there are routines in that update rules( checked same in IDES version) , i can do it same, but why the SAP not delivered the same, or i am going wrong in some where pls.
    Any update please , Not received any replies pls.
    Please any updates pls on this,  The  issue is open and waiting for responce from Experts.please can anybody update me.
    Thansk in Advance,
    Sathish
    Edited by: sathish kakumudi on Apr 21, 2010 8:48 AM
    Edited by: sathish kakumudi on Apr 21, 2010 10:34 AM
    Not delivered by SAP and SAP raised the same to Development team
    Edited by: sathish kakumudi on Jun 13, 2010 10:07 AM

    Hi Satish,
    Did you get any update from SAP-team on the same.
    Thanks,
    SC

  • 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

  • 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

  • Return tables in Routines used in an Update Rule

    I previously had a routine configured as an update method in an Update Rule.  On the configuration screen where I specified the Routine name, I checked "Return Table". 
    Now I've deleted this Routine and I am using the Source Key Figure as the Update Method.  However the "Return Table" box is still checked and if I uncheck it, it goes back to "Checked" status as soon as i scroll to the next key figure and then back to the original key figure. 
    While this doesnt sound like too serious a problem, I think it's causing my Update rules to fail during activation with the message, The field "RESULT" is unknown, but there is a fiel rows 1698."  (SAP typo, not mine).
    Following the suggestions in the Help for this error do not work either.  When I try to choose Extras -> Display Activated Program, I receive a second message "Unable to find a tool to process the request".
    Can anyone help?

    Wardell,
    sounds like a bug to me. Open a message to SAP support to get a fix.
    Regards,
    Marc
    SAP NetWeaver RIG

  • Error while Activating update rule in BW

    Hi,
    I am getting an ABAP dump while activating an update rule. The rule is from DSO to cube.
    "MESSAGE_TYPE_X" " "    
    "%_T020N1" or "%_T020N1"
    "INSTANTIATE"           
    I have added some new fields in a DSO. The rule is from DSO to cube. While activating it, I am getting this ABAP dump. There are few other rules from this DSO to other DSO which got activated but this one is causing dump.
    Any ideas/suggestions on this would be really helpful.
    Thanks,
    Naveen

    Hi
    Check if your Cube , DSO and UR's are active. If not reactivate them. Ideally you could recreate the UR's and check the status by running the extraction.
    I would also recommend to use elimination method to check if any particular field is creating an issue. While recreating the UR's , create them for a few fields - active - check extraction - this will also let you know if the issue is within any oif the rules.
    Cheers
    Umesh

  • Error while Transporting Update Rules.

    hi xperts,
       I am getting Error while Transporting the Update rules,i already transported the INFOCUBE,INFOPACKAGE EVERYTHING.
        Start of the after-import method for object type R3TR ROUT (Delete Mode)
    Errors occurred during post-handling RS_AFTER_IMPORT for ROUT L
    The errors affect the following components:
        BW-WHM (Warehouse Management)
    Is the  error,I didn't change any thing in the Cube or changes to Update rules.
    Can anybody Help me?.
       thanking you,
                                   with regards,
                                   Narendra.

    Hi,
    Are you still facuing the issue ?
    No need to worry about the routines, once you save the update rules if there is any routines in it it will be saved in the same request. If you want to check the routines you can check in the transport connections. Transfer the update rule to the right hand side of the screen and you can see all the routines that belong to the UR.
    If you know the technical names of the routines you can check in the TADIR table.
    Have you transported the info-sources for this update rules ? why not you again capture the info-source and the update rule in a single request and transport again.
    Hope it helps.
    Thanks,
    Soumya

  • Simple creation of Update Rule from BW Data Source

    Hi guys,
       Pertaining standard SAP Business Content extractors
       I am referring to <b>InfoCube : 0PA_C01(Headcount and Personnel Actions)</b>
       I am attempting to<u> create </u>an <b>Update Rule</b> from <b>Info Source : 0HR_PA_PA_1(Headcount)</b>
       This <b>Info Source : 0HR_PA_PA_1(Headcount)</b> is connected to <b>BW Data Source</b>(Not R/3!) 0HR_PA_PA_1
       I have created an Info Package for this Info Source and managed to get 15 records{In Contrast to my 68800 Records from Info Source : 0HR_PA_0(Employee)}
       So, when I create an Update Rule to Connect <b>Info Cube: 0PA_C01(Headcount and Personnel Actions)</b> to <b>Info Source to Info Source : 0HR_PA_PA_1(Headcount)</b>, I get the following error
    ERROR : <b>IC=0PA_C01 IS=0HR_PA_PA_1 error when checking the update rules</b>
      Could you please also advice, why do I only get 15 records for Data Source 0HR_PA_PA_1 ?
      P/S : I am on BW 3.5

    Hey Rohini,
       This <b>Data Source: 0HR_PA_PA_1(Headcount)</b> is tricky to me because it`s a BW Data Source.
       Exact Error Message is as follows :-
      "<b>Error Message : RSAU461
        IC=0PA_C01 IS=0HR_PA_PA_1 error when checking the update rules</b> "
       My Exact Problem is that I don`t see any values for the following fields in my Info Cube : 0PA_C01(Headcount and Personnel Actions)
      Country;
      Country Code;
      Gender;
      Nationality;
      Language;
      Postal Code;
      Region;
      Position;
      Job;
      Payroll Area;
      Payroll Group;
      Pay Scale's;
      Pay Grade's
      This is because, this information is supplied by InfoSource : 0HR_PA_PA_1
      But I don`t have an Update Rule for this InfoSource in my InfoCube : 0PA_C01
      So, that's why I am attempting to create this additional Update Rule
    <i>  And also, could someone enlighten me why would SAP not include such a standard Update Rule when they have already idenfied those needed fields in a Cube ? This is suppose to be a STANDARD workable Business Content right ?</i>
      P/S: I have applied Note : 336229

  • 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,
    Manisha

    Hi ,
    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

  • Start Routine in Update Rule

    I want to replace all '# ' values showing up in a report with  space. For this I plan to write a Start Routine in the Update Rules which should scan all the data coming in into the cube and replace all  null or '' with space.
    What is the best way to write this routine. It should check all data in all the fields of the data load coming in.
    Thanks

    Hi,
         The space is shown as # in the BW Reports, to confirm check the value in the cube for this field, so
          you need to change that to some other character like X or Y or explain your end users that SAP
          designates a space as # and it will be displayed that way in the reports.
    Regards,
    Raj

  • Key Figure missing in update rules

    Hi All,
    A Key figure is missing in Update rule of ODS & Infocube.
    But it is listed in infosource ( comm. & transfer structure) of ODS.
    Why it is so . Any suggestions.
    infosource->ODS_>infocube.
    Please help me.
    Edited by: anand k on Mar 24, 2008 12:16 PM

    Hi,
    I will give the process that I followed (as you specified) now:
    1. I deleted the Source System Assignment for the Infosource.
    2. Next went to Source Systems. Right click on source system and replicate it.
    3. Select the InfoSoucre and assign the Data Source.
    4. Here I automatically got the Field(ZZMBGBTR).
    5. I added the field in the Communication Structure. and then assigned the Transfer Rules.  Next activated the InfoSource.NExt checked the InfoCube for the KeyFigure. That InfoObject ZQTY is available.
    6. I activated the InfoCube. Right Click and select Create Update Rules. Still I didnt got that InfoObject.
    Regards
    Jay

  • Getting error while activatinb update rule 2LIS_02_SCL

    Hello BW gurus,
    I have activated and replicated datasources for PP and activated the 0PUR_C01 infocube now I am activating the update rule 2LIS_02_SCL but while activating the update rule iam getting error message
    "Object UPDR CD2NYEJKIIFCCFA9FW1OQRONE could not be found"
    which is nothing but the technical name of 2LIS_02_SCL. in GROUPING TAB I have selected " only necessary objects" option.
    Any help on this is greatly appreciated can you please suggest me how I can troubleshoot this.
    I will assign points to all appropriate answers.
    Thank you,
    Krish

    Hi Krish
    Don't worry about the error message.
    RSA1-> Business content-> here select the update rules from 2LIS_02_SCL to cube 0PUR_C01 and with only necessary objects option-> Install update rules with applicable routines. Then refresh RSA1 and check for update rules. If still you don't get update rules, please let me know
    Regards
    Pradip

  • Data package's data coolection in one internal table of Update rule in bw

    Hello Gurus,
    I have a requirement in bw which demands to create update routine, in which I need to find the vendor for the material, which doesn't have vendor by some business rule but, here in this case data is divided into different datapackages so here in this case material data is splited over different datapackages.
    One material can have n no of records with differnt plants.
    My only question is like can we collect all datapackage data in one internal table.
    Ex: if there are total 5 datapckages, so in update rule can we collect all these datapackages records?
    Please suggest your opinion.
    Thanks in advance,
    Snehal.
    Moderator message: please have a look in the BW forums.
    Edited by: Thomas Zloch on Jan 11, 2011 1:49 PM

    hi,
    i think your problem is need of a work area...
    Using "FOR ALL ENTRIES IN lt_zhrp"  You must use " check lt_zhrp is not initial "
    DATA: lt_zhrp TYPE STANDARD TABLE OF zhrp,
          lt_zhrt TYPE STANDARD TABLE OF zhrt.
    *new
    data: wa_zhrp type lt_zhrp.
    SELECT tabnr
    FROM zhrp
    INTO CORRESPONDING FIELDS OF TABLE lt_zhrp
    WHERE objid = lv_posid.
    LOOP AT lt_zhrp INTO wa_zhrp.
      SELECT low
      FROM zhrt
      INTO CORRESPONDING FIELDS OF TABLE lt_zhrt
      WHERE tabnr =  wa_zhrp-tabnr  " lt_zhrp-tabnr
      AND attrib = 'NET_VALUE'.
    ENDLOOP.
    Edited by: Miguel Antunes on Apr 28, 2010 4:22 PM

  • Where is the option "create update rule" in BW 7.3?

    Hi, all.
    We have updated our BI sandbox to BW 7.3. After installing cube 0PT_C01 from the BCT, I realized that infosource 0HR_PT_3 is not linked to the cube. So I was trying to manually create the update rule. But that "create update rule" option is nowhere to be found. Can you please advise?
    Thanks,
    Jonathan.

    Hi jonathan,
    you are implementing time and labour 0PT_C01.
    for that we have only 2 standard data sources
    1 is 0HR_PT_1
    2 is 0HR_PT_2
    in addition to the above data sources we can also use 0HR_PT_3 data source for the info provider 0PT_C01.
    PL check the below link
    http://help.sap.com/saphelp_nw04/helpdata/en/18/3a8337fb02735ce10000009b38f8cf/content.htm
    regards
    venuscm

Maybe you are looking for