Syntax error caused by duplicate methods in class.

We've applied service patches to CRM 7 and afterwards I found that there were two versions of a method in a class. There was the original (shown in blue) which should point to the superclass, but does not and point to the ZL.... class. Then there's the second copy of the method, shown in black, which is the Redefined method. But, I have never seen both in existance at the same time when view via se24 or the component workbench.
This is what I have tried:
Redefined the method (shown in blue). But then I have two methods of the same name (SET_COUNTRY)  both shown in black. If I reverse the redefiniation it does successfully remove one of the redefintions, so I'm back to the state that started with, having the origianl superclass method and its redefiinition present. 
This problem is in out QAS environment. I corrected this issue in DEV by deleting the Redefined method. However, the transport created fails when moved into QAS and gives a syntax error saying that duplicate methods exist, or is called twice. Which happens to be the problem that the transport should fix.
Can anyone suggest anything to try and fix this?.
As a last resort I opened our QAS envirnment for changes and within SE24 choose the option Utilities/Check.... But this did not resolved anything as all the sub-options said that everything was okay.
Desperate now, the ledge of this window is not very wide but it's starting to look appealing, even though the building is only one storey high.
[RESOLVED]
My sanity is restored. No matter what I tried I could not get a transport through to correct this issue. In the end I had to open up QAS for changes and delete the redefined method from ZL... class by commenting out the call statement, and then answer yes to the question 'Do you want to delete the method?'. After this I re-activated all and the WebUI now works okay.
The trouble is I'll need to repeat this process in production after the upgrade.
When the problem was fixed in DEV a transport was created, but this just gave an error 8 when imported into QAS. The message given was exactly the problem that it was trying to fix.
Jason
Edited by: Jason Stratham on Sep 14, 2010 3:10 PM

I think you should ask this on the ML or open a feture request on the bugtracker.

Similar Messages

  • Syntax error in Define entitytype method in MPC class.

    Hi,
    I am trying to create Odata service by creating new entity type and entity set at service level creation itself (Data model-->Create). Now at the time of generation of classes I am getting syntax error fields are not defined in method, Define Entitytype of MPC class. Could you guide me on how I can generate classes here.
    Br,
    Venkat Konanki.

    Hi,
    I am trying to create Odata service by creating new entity type and entity set at service level creation itself (Data model-->Create). Now at the time of generation of classes I am getting syntax error fields are not defined in method, Define Entitytype of MPC class. Could you guide me on how I can generate classes here.
    Br,
    Venkat Konanki.

  • Syntax Error with JSON.Parse method to parse SharePoint List Items

    Hi All,
    I want to get SharePoint List data and bind that retrived data to the JQuery Grid Control.
    For this I used SPServices to get the SharePoint List data in SOAP Envelope. Now I need to parse the soap envelope and store the retrieved items in array to pass it to the Grid Control.
    While using the JSON.Parse(resporseText) method, Iam consistenly getting an Syntax Error!
    Could anyone help me with this ?
    Please find the SOAP Envelope I received from SP List as below:
    "<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GetListItemsResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/"><GetListItemsResult><listitems xmlns:s='uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882'
    xmlns:dt='uuid:C2F41010-65B3-11d1-A29F-00AA00C14882'
    xmlns:rs='urn:schemas-microsoft-com:rowset'
    xmlns:z='#RowsetSchema'>
    <rs:data ItemCount="2">
    <z:row ows_OBNumber='112211.000000000' ows_Project_x0020_Name='Project 1' ows_MetaInfo='11;#' ows__ModerationStatus='0' ows__Level='1' ows_Title='Project 1' ows_ID='11' ows_UniqueId='11;#{FBBCBCF9-666D-42F9-92D7-67188C51BC9B}' ows_owshiddenversion='1' ows_FSObjType='11;#0' ows_Created='2015-01-12 10:25:06' ows_PermMask='0x7fffffffffffffff' ows_Modified='2015-01-12 10:25:06' ows_FileRef='11;#sites/Lists/Projects/11_.000' />
    <z:row ows_OBNumber='1122343.00000000' ows_Project_x0020_Name='Project 2 ' ows_MetaInfo='12;#' ows__ModerationStatus='0' ows__Level='1' ows_Title='Project 2' ows_ID='12' ows_UniqueId='12;#{0D772B76-68E4-4769-B6FF-6A269F9C7ABD}' ows_owshiddenversion='1' ows_FSObjType='12;#0' ows_Created='2015-01-12 10:33:48' ows_PermMask='0x7fffffffffffffff' ows_Modified='2015-01-12 10:33:48' ows_FileRef='12;#sites/Lists/Projects/12_.000' />
    </rs:data>
    </listitems></GetListItemsResult></GetListItemsResponse></soap:Body></soap:Envelope>"
    Any help on this will be greatly appreciated.
    Thanks In Advance.!

    Hi,
    According to your description, there is an issue when parsing result from the data retrieved using SPServices.
    By default, SPServices returns data as XML format, however, the JSON.parse() method “Throws a SyntaxError exception if the string to parse is not valid JSON”:
    https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse
    To extract the data needed from the response, you can either take the demo below for as a reference:
    http://spservices.codeplex.com/wikipage?title=GetListItems
    Or use the jQuery.parseXML() function:
    http://api.jquery.com/jquery.parsexml/
    Best regards
    Patrick Liang
    TechNet Community Support

  • Makepkg syntax error - caused by POSIXLY_CORRECT

    I'm new to arch linux and after installation of arch and the first steps with
    makepkg I was confronted with following script error:
    /usr/bin/makepkg: line 1545: syntax error near unexpected token `<'
    /usr/bin/makepkg: line 1545: ` done < <(find . -type f -perm -u+w
    -print0 2>/dev/null)'
    After a long time checking the script I found the problem in my .zshenv where
    the environment variable POSIXLY_CORRECT=1 was exported. After unsetting this,
    makepkg worked well.
    I've used this to force myself to write scripts that are portable between
    different systems, and I'd like to keep this variable set also on my new arch
    system. Wouldn't it be a good decision to change the makepkg script to also
    work if POSIXLY_CORRECT is set? If the issue is known and POSIX does not
    belong to the Arch Way, I'll accept that and will unset POSIXLY_CORRECT before
    building a package.

    I think you should ask this on the ML or open a feture request on the bugtracker.

  • Syntax error when creating Overwrite method - implicit enhancement

    Hi,
    I am working at a customer site, and need to implicitly enhance certain methods. I would like to create an Overwrite Method for the following class/method:
    CL_CRM_MKTDEF_DEFAULTS_PERSIST -> HEADER_WITH_KEY_EXITS_IN_DBASE( )
    I proceeded in the following way:
    Open class CL_CRM_MKTDEF_DEFAULTS_PERSIST in class builder (SE24)
    Select menu path Class -> Enhance
    Create, or select, enhancement implementation ZCRM_MKTDEF_PRD
    Select method HEADER_WITH_KEY_EXITS_IN_DBASE, select menu path Edit -> Enhancement Operation -> Add Overwrite Method
    Click on u201CNavigation to Overwrite Exitu201D
    After navigating to the Overwrite Exit, I click on "Check" to perform a syntax check (notice, I have not yet implemented any code. Everything so far has been done by the wizard).
    Now, I get the following error:
    Enhancement Implementation ZCRM_MKTDEF_PRD
    Unable to interpret "IS_DEFAULTS_ATTR". Possible causes: Incorrect
    spelling or grammar.
    When I create Overwrite methods for any other method in the same class, the same error does NOT occur. As far as I can tell, there is nothing special about this method that should cause this error.
    I would greately appreciate any help that any of you could give me on this one.
    thank you and best regards,
    - Marius
    PS: Here is my code (which was generated after I followed the outlined steps above) for your reference:
    CLASS LCL_ZCRM_MKTDEF_PRD DEFINITION.
    PUBLIC SECTION.
    CLASS-DATA OBJ TYPE REF TO LCL_ZCRM_MKTDEF_PRD.
    DATA CORE_OBJECT TYPE REF TO CL_CRM_MKTDEF_DEFAULTS_PERSIST .
    INTERFACES  IOW_ZCRM_MKTDEF_PRD.
      METHODS:
       CONSTRUCTOR IMPORTING CORE_OBJECT
         TYPE REF TO CL_CRM_MKTDEF_DEFAULTS_PERSIST OPTIONAL.
    ENDCLASS.
    CLASS LCL_ZCRM_MKTDEF_PRD IMPLEMENTATION.
    METHOD CONSTRUCTOR.
      ME->CORE_OBJECT = CORE_OBJECT.
    ENDMETHOD.
    METHOD IOW_ZCRM_MKTDEF_PRD~HEADER_WITH_KEY_EXITS_IN_DBASE.
    *" Declaration of Overwrite-method, do not insert any comments here please!
    *"methods HEADER_WITH_KEY_EXITS_IN_DBASE
    *"  importing
    *"    !IS_DEFAULTS_ATTR type CRMS_MKTDEF_DEFAULTS_DATA
    *"  returning
    *"    value(EV_EXISTS) type CRMT_BOOLEAN
    *"  exceptions
    *"    FAILURE .
    ENDMETHOD.
    ENDCLASS.

    Note 1256889

  • Syntax error data declation in method

    Hi,
    I have created a structure name zstruct. Further to that I have a table type name ztabtyp.
    After having created a method, I declare this in my method:
    DATA: wa_mydata type zstruct.
    Why does this give a syntax that says that zstruct has not been declared as a local object and if I doubleclick the name I am asked to create it ??

    SORRY !
    I had misspelled a name.
    Sorry for any inconvenience.

  • Syntax Error "Method was not declared or inherited in class"

    Dear all,
    I am seeing the following syntax error in one of the standard classes CL_ICCMP_BT_INRHISTRESULT_CN01 which says "Method "XYZ" was not declared or inherited in class". Need help to identify when this error would occur or where I should be checking for this error within the class.
    I checked other systems for the same class, the method XYZ does not exist there too but still the class has no syntax errors!
    Would appreciate your help!
    Thank you.
    Regards,
    Gayathri.

    Hi Gayathri,
    please give detailed information on how and where you get this error.
    CL_ICCMP_BT_INRHISTRESULT_CN01 does not exist in our ECC600 system.
    Regards,
    Clemens

  • JAG error: duplicate definition of class

    Hi,
    When I run the JAG it adds duplicate class definitions to my JPR file. For example:
    Error(21,8): duplicate definition of class ky.gov.pwdwo.model.bc4j.handler.PwdWorkOrderHandlerImpl
    I can compile and run the application after I remove the duplicates from the JPR file.
    Any thoughts?
    Cheers,
    Patrick Cimolini

    Patrick,
    This can happen if the source path defined in the JHeadstart Application Structure File does not match the source path of the project properties. You probably already had existing handlers in the project's source path, and then JHeadstart generates another set in the source path indicated by the Application Structure File (which appear in the System Navigator under Miscellaneous Files).
    So if you change the Application Structure File's source path setting to be equal to the source path of your project, and remove the handlers from the other path, then it should be OK.
    Hope this helps,
    Sandra Muller
    JHeadstart Team
    Oracle Consulting

  • Syntax error when creating input-ready query

    Hi,
    When creating an input-ready query, I set the key-figure to 'Data can be changed by user entries or Planning Functions' in the Planning Properties in the query designer.
    When I execute the query, I get the following error:
    Syntax Error in : CL_RSR_RRK0_KEYFIGURE
    In se24, the class has a syntax error in its Constructor method.
    The error is not occuring when I change the Planning property to 'Data Cannot be changed' or 'Data can be changed via Planning Functions'.
    Has anyone encountered such an error. If yes, how to proceed further?
    Anything do with the the ABAP Patches. Currently I am in Patch13.
    Thanks,
    Balaji

    Hi,
    Plz apply the notes 1042924 and 1043103.After appling the notes regenerate the
    query.
    This should solve the error.
    Regards,
    Srikanth.

  • Syntax errors with ES freeze/hang FM

    Hi,
    I keep bumping into situations where a small syntax error causes FM to freeze, like there is a modal dialog open except there is no dialog. For example:
    doc = app.ActiveDoc();
    ...this is wrong because of the parenthesis, but rather than throwing any errors, FM just freezes and I can't get it unfrozen, except to kill it with the Task Manager. Is there a way to prevent this freeze or at least thaw it out? It's becoming tiresome to restart FM and reset locks, etc. with every little typo.
    Thanks,
    Russ

    Hi Russ,
    I think this won't help you, but I can reproduce this with app.ActiveDoc() and app.ActiveBook().
    With other properties I get a correct runtime error "app.AutoBackup() is not a function".
    So generally it works as expected, but not in these two cases.
    I think this is a problem of the script engine in these two cases. Perhaps there's an invisible (private) method defined, which is used internally, I don't know.
    Bye
    Markus

  • BADI Syntax Error

    Dear Sir,
    I am getting following Syntax error while using GET_DATA( ) method  :
    "The format of field specification "IM_ITEM->GET_DATA( )" is not supported ...
    The code , I am using is as :
    method IF_EX_ME_PROCESS_PO_CUST~PROCESS_ITEM.
    DATA: is_mepoitem TYPE mepoitem ,
          wa_bwtar TYPE mepoitem-bwtar,
          wa_matnr TYPE mepoitem-matnr .
          is_mepoitem = im_item->get_data().
          wa_matnr = is_mepoitem-matnr .
          wa_bwtar = is_mepoitem-bwtar .
    endmethod.
    I request sap gurus , to kindly guide as how to remove the above error .
    Regards
    B Mittal

    DATA: is_mepoitem TYPE mepoitem,
    wa_bwtar TYPE mepoitem-bwtar,
    wa_matnr TYPE mepoitem-matnr.
    CALL METHOD im_data->get_data()
         RECEIVING
             re_data = is_mepoitem.
    wa_bwtar = is_mepoitem-bwtar.
    wa_matnr = is_mepoitem-matnr.
    Reward points if you find it helpful.
    Regards,
    J.Prasanna

  • Syntax Error in Test - Class Method

    Hello all,
    I've created a Class, and when I try to test one of the methods (from within SE24), I'm getting the following error:  "Syntax error in test.  Display generated test environment?" (When I say Yes, I'm taken to %_JJ_TESTFRAME_CLASS program)
    The strange thing is that the code passed the sytax check, and has been activated.   Additionally, there's no error logged in ST22. 
    Any ideas as to what might cause this?
    Thanks in advance,
    Lisa

    a@s,
    Thanks for the quick reply.  I do not have anything in either the Protected or Private sections.  Here's the definitions in my Public section:
    public section.
      types TYPE_V_CUST type STRING .
      types TYPE_V_ZIP type STRING .
      types TYPE_V_OFFICE type STRING .
      types TYPE_SHORT type STRING .
      types TYPE_LONG type STRING .
      types TYPE_BDCDATA type BDCDATA .
      types:
        type_table_bdcdata type TABLE OF type_bdcdata .
      types TYPE_V_STATUS_FOUND type STRING .
      types:
        begin of type_statab,
          city_state(30),                   " City/State
          store_location(20),               " Store # or Loc Name
          service_office(20),               " Office Name
          phoned_in_by(20),                 " Phoned/Reported by
          date_phoned_in(10),               " Date phoned in
          response_date(10),                " Response date
          notification type qmel-qmnum,     " Notification #
          po_number type viqmel-bstnk,      " PO number
          invoice_number(80),               " Invoice #
          invoice_amount type vbak-netwr,   " Inv Amt
          invoice_due_date type vbak-erdat, " Inv Due date
          aufnr type aufk-aufnr,            " Service Order #
          text_line type zlbbil_repairs-text_line1,
          END OF type_statab .
      types:
        type_table_statab type TABLE OF type_statab .
      class-data WA_BDCDATA type BDCDATA .
      class-data BDCDATA type TYPE_TABLE_BDCDATA .
      class-data WA_VIQMEL type VIQMEL .
      class-data WA_VBAK type VBAK .
      class-data WA_STATAB type TYPE_STATAB .
      class-data:
        statab TYPE TABLE OF type_statab .
      class-methods CREATE_NOTIF
        importing
          !V_ZIP type TYPE_V_ZIP
          !V_CUST type TYPE_V_CUST
          !V_OFFICE type TYPE_V_OFFICE
          !V_SHORT_TEXT type TYPE_SHORT
          !V_LONG_TEXT type TYPE_LONG
        exporting
          !V_NOTIF_FMT type BAPI2080_NOTHDRE-NOTIF_NO .
      class-methods FILL_BDC_DYNPRO
        importing
          !PROGRAM type BDCDATA-PROGRAM
          !DYNPRO type BDCDATA-DYNPRO .
      class-methods FILL_BDC_FIELD
        importing
          !FNAM type BDCDATA-FNAM
          !FVAL type BDCDATA-FVAL .
      class-methods EMAIL_NOTIF_OFF
        importing
          !V_NOTIF_FMT type BAPI2080_NOTHDRE-NOTIF_NO .
      class-methods EMAIL_NOTIF_CUST
        importing
          !V_NOTIF_FMT type BAPI2080_NOTHDRE-NOTIF_NO
          !V_EMAIL type STRING .
      class-methods GET_NOTIF_STATUS
        importing
          !V_NOTIF type BAPI2080_NOTHDRE-NOTIF_NO
        exporting
          !V_STATUS_FOUND type TYPE_V_STATUS_FOUND .
      class-methods GET_REPAIRS_DONE
        importing
          !WA_VIQMEL type VIQMEL
        changing
          !STATAB type TYPE_TABLE_STATAB
          !WA_STATAB type TYPE_STATAB .
    Anything jump out?

  • Duplicate method at internal Class

    Hi All:
    I was working in my Web Dynpro when I got these errors in the build:
    The method wdCreateUITreeForTransparentContainer() is undefined for the type InternalCreatePolitics     InternalCreatePolitics.java     NWD_agiletrk_Dpmg_hr_politicswebdynpro~agile.com/gen_wdp/packages/com/agile/pmg/politics/comp/wdp     line 279
    Duplicate method wdCreateUITreeForTransparentContainer in type InternalCreatePolitics     InternalCreatePolitics.java     NWD_agiletrk_Dpmg_hr_politicswebdynpro~agile.com/gen_wdp/packages/com/agile/pmg/politics/comp/wdp     line 304
    These is from a class that the Developer Studio autogenerate. I don´t know how to solve it.
    Thanks

    Looks like something went wrong with the code generation. I has happened to me sometimes too, mainly because sometimes it allowed me to create two ui elements with the same name (ussually transparent containers as your case) and later I got the error in the internal class.
    Check if you have done something wrong with your ui elements (two of them with the same name, a transparent container in which an invalid parent like a toolbar...) and fix it. If everything is ok with you ui elements but you still get the error then just modify the internal class and remove the method that is giving you the error.

  • Syntax error in context class

    Hi Experts,
    I have created a zclass ZL_BP_DATA_MARKETINGATTR5_CN00 keeping class CL_BP_DATA_MARKETINGATTR5_CN00 as super. Now when I am tryng to activate it, I am getting an syntax error "Type LCL_VALUEHELP_FOR_ATTR_SET is unknown". When I double click on it, it takes me to standard class CL_BP_DATA_MARKETINGATTR5_CN00.
    I have copied the private variables and all but still I am getting it.
    I have enhanced BP Data Marketting Attribute Search view in bsp component BSP_WD_CMPWD.
    Except the context class all other classes are getting converted into Z class. I want to redefine the get_v_attr_desc attribute method of the context class, can anybody tell me how to get the zclass instead of the standard context class in the basp component.
    Regards,
    Sangeeta.

    Hi ,
    I hope your issue is in making a context Class into Zclass..
    Go to the Corresponding Context Node .
    Right Click on the Context Node .
    Click Regenerate GET_I_Methods .
    Go back and Come again to the screen .
    you can find that the Context class is redefined.
    Regards,
    Sijo

  • CMP bean : 'create' method fails - SQL Syntax error

    I'm using SilverStream 3.7.3 server on Win 2K.
    In a CMP entity bean, call to any create method ( default using primary key or with any other list of parameters ) fails , giving this error :
    javax.ejb.CreateException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.
    <<no stack trace available>>
    I've doubly checked for mismatch between types of database columns & parameters passed, but there is no difference. ( Another BMP bean uses same types and it's working perfectly )
    Interestingly, the 'finder' & other business methods are working without any problem.
    Any idea about cause of this error / options to solve / get around the prob?
    TIA,
    Subodh

    Hi,
    See if you can get SilverStream to give you the JDBC statements it is sending to Access. If SilverStream can't do that, try using P6Spy to get hold of the JDBC. Once you have the SQL, you should be able to figure out where the prolbem is... and if you can do anything about it.
    Does access actually accept any form of Standard SQL?
    Daniel.

Maybe you are looking for

  • Word 2003 - Acrobat menus disappear for some (not all) documents

    I have a user who is having a very bizarre issue with Word 2003 and Acrobat 9 Pro Extended.  When he opens some Word documents, the PDF menus disappear.  They are immediately restored when he closes the document or creates a new document.  We've trie

  • How to escape XML in BPEL?

    I have a part of a outputmessage in an element HTML of xsd:any. This element contains HTML which i have to transform to escaped XML. Therefore i created the following embedded java code. String htmlContent = ((oracle.xml.parser.v2.XMLElement)getVaria

  • APEX Sequence number when passing data from different instances

    Hello there, I have a question for you guys. I have an application sitting in my Production area, and the one in test needs to be up-to-date (the data). So I grab the excel file, truncate the table in my test area and load the table from prod into th

  • Desktop Manager resets my homescreen image

    I have an image that is stored on the device memory, not a memory card, and every time I sync with my computer, it resets it back to the standard AT&T background.  Is there a way to stop this?  It's annoying to have to change my background back every

  • Migrate 6.0 server to 6.1 on an other server

    Can somebody tell me how I can easyly migrate my 6.0 webserver settings to an other 6.1 webserver (with the same ip address and hostname)?