Enhancement ICCMP_CMGDETAIL/CmgFollowUp class: CL_ICCMP_CM_CMGFOLLOWUP_IMPL

Hi,
I have a small problem enhancing the component:  ICCMP_CMGDETAIL/CmgFollowUp
When I enhance it, it gives the error: Class activition failes.
After that if I go to the created subclass(created for the _IMPL-class) and try to activate it, it gives the following error:
CLASS: CL_ICCMP_CM_CMGFOLLOWUP_IMPL, Private Section
The type "LTYPE_RESP_TAB" is unknown.
I tried note: 1161467, but this doesn't do a thing.
I also added the type and declaration of this type to the sub-class but it keep on giving this problem. When I check the super-class he won't give any syntax errors, it only triggers on the subclasses.
All input is helpful.
Kr,
Maarten

Note 0001285271 Cannot enhance CL_ICCMP_CM_CMGFOLLOWUP_IMPL

Similar Messages

  • Enhancement request: Java Class Diagram show option

    Hi JDev team
    Can you log the following enhancement request for the Java Class Diagram editor please? When right clicking an existing class in the diagram, then the Show option, it would be useful to have a Dependent Elements option that will add any subclasses to the selected parent class.
    For example, say I had oracle.jbo.server.RowImpl selected, if I selected this new option it would automatically add EntityImpl and ViewRowImpl, saving me having to look at the JDoc for RowImpl to determine the subclasses then manually add the classes to the diagram.
    Thanks & regards,
    CM.

    Chris,
    This is an interesting feature. The ER tracking number for this potential feature is 6279169.
    --Ric                                                                                                                                                                                                                               

  • Enhancement request: Java Class Diagram new facilities

    Hi JDev team
    Can you log the following enhancement request for the Java Class Diagram editor please? Firstly it would be useful when selecting a class in the diagram that the Hierarchy window was synchronized and updated the class stack to show the selected item.
    Secondly it would be nice to be able to drag and drop items from the Hierarchy window into the Java Class Diagram to be included in the diagram.
    Thanks & regards,
    CM.

    Chris,
    I submitted an ER for your request. The tracking number is 6279159.
    --RiC                                                                                                                                                                           

  • SAP America has scheduled Enhancement Package Installation class.

    Hello Everyone,
    ADM327 is a 2 day class.
    This class had not been scheduled for a while but was recently put on the schedule in Chicago on May 17-18.  There are only 2 registered people, myself included.  I would like to encourage a few more people so that the class is not cancelled.
    This would be of interest if several years have passed since you did an upgrade since it uses much the same methodology.
    Regards,
    Pat

    Hello Patricia.
    I think it'll be better if you invite the people in this forum "SAP Enhancement Packages"
    /community [original link is broken]

  • Enhancer forgets a class

    I have a Problem with the Enhancer of Kodo 2.4.1
    I am using ant for enhance the files from /classes/... to /enhanced/...
    I have barely no Problems with the enhancer, but it forgets to enhance one
    Class, the Customer in the File "customer.class". I have meta-data for it
    in the package.jdo file.
    And there is no error-message. But there is no message that this class is
    enhanced (only for THIS class, the other classes are enhanced correctly).
    If I start the enhanced application it says, that "Operation attempted on
    non-PersistenceCapable type: "class com....Customer""
    Wheres the problem, what can I do?
    Thanks
    BERND

    That\'s the portion of the buildfile:
    <target name=\"build\"
    depends=\"compile\"
    description=\"Compile and enhance (byte code enhancement)\"
    >
    <pathconvert pathsep=\" \" property=\"classfiles\" >
    <path>
         <fileset dir=\"classes\" >
         <include name=\"**/*.class\" />
         </fileset>
    </path>
    </pathconvert>
    <java classname=\"com.solarmetric.kodo.enhance.JDOEnhancer\"
    fork=\"true\"
    failonerror=\"true\"
    classpathref=\"runtime.class.path\" >
    <arg line=\"--destdir classes --sourcepath classes --force
    --verbose ${classfiles}\" />
    </java>
    </target>
    Thanks
    BERND
    Steve Kim wrote:
    Can you post that portion of your build file? How are you moving them
    from classes to enhanced? As I recall the jdoc ant task doesn\'t move
    the class resource.
    Bernd Ruecker wrote:
    I have a Problem with the Enhancer of Kodo 2.4.1
    I am using ant for enhance the files from /classes/... to /enhanced/...
    I have barely no Problems with the enhancer, but it forgets to enhance one
    Class, the Customer in the File \"customer.class\". I have meta-data for it
    in the package.jdo file.
    And there is no error-message. But there is no message that this class is
    enhanced (only for THIS class, the other classes are enhanced correctly).
    If I start the enhanced application it says, that \"Operation attempted on
    non-PersistenceCapable type: \"class com....Customer\"\"
    Wheres the problem, what can I do?
    Thanks
    BERND
    Stephen Kim
    [email protected]
    SolarMetric, Inc.
    http://www.solarmetric.com

  • Enhance standard class with event handler method

    In trying to enhance a standard class with a new event handler class, I find that the ECC 6.0 EHP4 system does not appear to recognise the fact the method is an event handler method.  The specific example is a new method to handle the event CL_GUI_ALV_GRID->USER_COMMAND. 
    I notice that the flag called Active has not been ticked - see image below.  Perhaps this is the reason why the event handler is not being triggered.
    Note that there is an event handler for the same event in the standard class which obviously is executed as expected.  Any ideas on limitations in the system or I am missing a step?
    Thanks
    John

    Thank you for your replies.
    There is a bug in the ALV handler of a standard SAP class (when executed in ITS WebGUI) and I was hoping to create a custom event handler as an Enhancement to execute some custom code to sort of "handle the bug". 
    I agree - ideally it should be done in a Z class but that will not give me access to the object methods and attributes of the enhanced class.
    Cheers,
    John

  • Can't enhance classes with Apache Commons Logging?

    For some reason enhancer blows on class with
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    private static final Log LOG = LogFactory.getLog(GaoParticipant.class);
    With following exception:
    java.lang.ExceptionInInitializerError
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:219)
    at serp.util.MultiClassLoader.findClass(MultiClassLoader.java:224)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:219)
    at
    com.solarmetric.meta.CFMetaDataParser.classForName(CFMetaDataParser.java:213
    at
    com.solarmetric.meta.CFMetaDataParser.classForName(CFMetaDataParser.java:188
    at kodo.meta.JDOMetaDataParser.startCollection(JDOMetaDataParser.java:321)
    at
    kodo.meta.JDOMetaDataParser.startClassElement(JDOMetaDataParser.java:194)
    at
    com.solarmetric.meta.CFMetaDataParser.startElement(CFMetaDataParser.java:69)
    at
    com.solarmetric.meta.XMLMetaDataParser.startElement(XMLMetaDataParser.java:3
    54)
    at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
    at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
    Source)
    at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source)
    at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno
    wn Source)
    at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
    her.dispatch(Unknown Source)
    at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
    Source)
    at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
    at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
    at com.solarmetric.meta.XMLMetaDataParser.parse(XMLMetaDataParser.java:309)
    at com.solarmetric.meta.XMLMetaDataParser.parse(XMLMetaDataParser.java:254)
    at com.solarmetric.meta.XMLMetaDataParser.parse(XMLMetaDataParser.java:234)
    at
    kodo.meta.JDOMetaDataRepositoryImpl.getMetaDataInternal(JDOMetaDataRepositor
    yImpl.java:175)
    at
    kodo.meta.JDOMetaDataRepositoryImpl.getMetaData(JDOMetaDataRepositoryImpl.ja
    va:129)
    at kodo.enhance.JDOEnhancer.<init>(JDOEnhancer.java:110)
    at kodo.enhance.JDOEnhancer.run(JDOEnhancer.java:2175)
    at kodo.enhance.JDOEnhancer.run(JDOEnhancer.java:2116)
    at kodo.enhance.JDOEnhancer.main(JDOEnhancer.java:2088)
    at peacetech.gao.ccs.tools.Enhance.main(Enhance.java:14)
    Caused by: org.apache.commons.logging.LogConfigurationException:
    org.apache.commons.logging.LogConfigurationException:
    org.apache.commons.logging.LogConfigurationException: Class
    org.apache.commons.logging.impl.Log4JLogger does not implement Log
    at
    org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja
    va:532)
    at
    org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.ja
    va:272)
    at
    org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.ja
    va:246)
    at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
    at peacetech.gao.ccs.jdo.GaoParticipant.<clinit>(GaoParticipant.java:14)
    ... 35 more
    Caused by: org.apache.commons.logging.LogConfigurationException:
    org.apache.commons.logging.LogConfigurationException: Class
    org.apache.commons.logging.impl.Log4JLogger does not implement Log
    at
    org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI
    mpl.java:416)
    at
    org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja
    va:525)
    ... 39 more
    Caused by: org.apache.commons.logging.LogConfigurationException: Class
    org.apache.commons.logging.impl.Log4JLogger does not implement Log
    at
    org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI
    mpl.java:412)
    ... 40 more
    Exception in thread "main" Process terminated with exit code 1

    Have not tried Ant but running main() runs when LOG is not initialized at
    all and blows in both cases below
    1.
    private static Log LOG ;
    static {
    LOG = LogFactory.getLog(Contact.class);
    2
    private static Log LOG = getLog();
    private static Log getLog() {
    return LogFactory.getLog(Contact.class);
    "Marc Prud'hommeaux" <[email protected]> wrote in message
    news:[email protected]...
    Alex-
    Do you see the problem if you just enhance the class from the
    command-line "jdoc" tool?
    Also, if you just don't initialize the log, do you still see the
    problem (e.g., making it a lazy initialization via some static
    getLog() method)?
    In article <[email protected]>, Alex Roytman wrote:
    It is not even ant just a class which I run from under Intellij IDEA
    package peacetech.gao.ccs.tools;
    import kodo.enhance.JDOEnhancer;
    public class Enhance {
    String arr[];
    public static void main(String[] args) throws Exception {
    String root = "D:/projects/gao/ccs/main/java/jdo/classes/";
    System.getProperties().put("kodo.properties", "ccs-jdo.properties");
    JDOEnhancer.main(new String[]{"-te", "true", root +
    "/peacetech/gao/ccs/jdo/package.jdo"});
    "Marc Prud'hommeaux" <[email protected]> wrote in message
    news:[email protected]...
    Alex-
    This seems to be a problem that happens under some classloader
    circumstances.
    Do you have a special <classloader> element for your <enhance> target?
    If so, does it still occur if you remove it (conversely, does it still
    happen if you add in a <classloader> element?
    In article <[email protected]>, Alex Roytman wrote:
    For some reason enhancer blows on class with
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    private static final Log LOG =
    LogFactory.getLog(GaoParticipant.class);
    >>>>
    With following exception:
    java.lang.ExceptionInInitializerError
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:219)
    at serp.util.MultiClassLoader.findClass(MultiClassLoader.java:224)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:219)
    at
    com.solarmetric.meta.CFMetaDataParser.classForName(CFMetaDataParser.java:213
    at
    com.solarmetric.meta.CFMetaDataParser.classForName(CFMetaDataParser.java:188
    atkodo.meta.JDOMetaDataParser.startCollection(JDOMetaDataParser.java:321)
    at
    kodo.meta.JDOMetaDataParser.startClassElement(JDOMetaDataParser.java:194)
    at
    com.solarmetric.meta.CFMetaDataParser.startElement(CFMetaDataParser.java:69)
    at
    com.solarmetric.meta.XMLMetaDataParser.startElement(XMLMetaDataParser.java:3
    54)
    at org.apache.xerces.parsers.AbstractSAXParser.startElement(UnknownSource)
    atorg.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
    Source)
    at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(UnknownSource)
    at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkno
    wn Source)
    at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
    her.dispatch(Unknown Source)
    at
    org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
    Source)
    at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
    at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
    atcom.solarmetric.meta.XMLMetaDataParser.parse(XMLMetaDataParser.java:309)
    atcom.solarmetric.meta.XMLMetaDataParser.parse(XMLMetaDataParser.java:254)
    atcom.solarmetric.meta.XMLMetaDataParser.parse(XMLMetaDataParser.java:234)
    at
    kodo.meta.JDOMetaDataRepositoryImpl.getMetaDataInternal(JDOMetaDataRepositor
    yImpl.java:175)
    at
    kodo.meta.JDOMetaDataRepositoryImpl.getMetaData(JDOMetaDataRepositoryImpl.ja
    va:129)
    at kodo.enhance.JDOEnhancer.<init>(JDOEnhancer.java:110)
    at kodo.enhance.JDOEnhancer.run(JDOEnhancer.java:2175)
    at kodo.enhance.JDOEnhancer.run(JDOEnhancer.java:2116)
    at kodo.enhance.JDOEnhancer.main(JDOEnhancer.java:2088)
    at peacetech.gao.ccs.tools.Enhance.main(Enhance.java:14)
    Caused by: org.apache.commons.logging.LogConfigurationException:
    org.apache.commons.logging.LogConfigurationException:
    org.apache.commons.logging.LogConfigurationException: Class
    org.apache.commons.logging.impl.Log4JLogger does not implement Log
    at
    org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja
    va:532)
    at
    org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.ja
    va:272)
    at
    org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.ja
    va:246)
    at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
    atpeacetech.gao.ccs.jdo.GaoParticipant.<clinit>(GaoParticipant.java:14)
    ... 35 more
    Caused by: org.apache.commons.logging.LogConfigurationException:
    org.apache.commons.logging.LogConfigurationException: Class
    org.apache.commons.logging.impl.Log4JLogger does not implement Log
    at
    org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI
    mpl.java:416)
    at
    org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.ja
    va:525)
    ... 39 more
    Caused by: org.apache.commons.logging.LogConfigurationException:Class
    org.apache.commons.logging.impl.Log4JLogger does not implement Log
    at
    org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFactoryI
    mpl.java:412)
    ... 40 more
    Exception in thread "main" Process terminated with exit code 1
    Marc Prud'hommeaux [email protected]
    SolarMetric Inc. http://www.solarmetric.com
    Marc Prud'hommeaux [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • Call enhancement class method from Bus. workflow task

    Hi all,
    I recently enhanced a global class from SAP (add a new method). Now I would like to call it from a workflow task (ABAP Class object used in the task). So it seems that only "native" methods from the class itself can be selected for the object method of the task.
    Same issue if I try to call it via secondary methods options...
    Last idea I have before the repair is: retrieve the instance saved into the WF container via a custom class interfacing IF_IFS_SWF_CONTAINER_EXIT (program exit) and call the enhanced method from the method proposed in this interface.
    Maybe someone had the same issue? Anyone could help or propose solution?
    Many thanks in advance for your help,
    KR,
    Olivier

    I think it might qualify for an OSS message.
    There was simmilar note for BADIs which was corrected: https://service.sap.com/sap/support/notes/1156392
    CL_SWF_UTL_DEF_SERVICES which is used in PFTC to determine callable methods doesn't include enhancements when calling  function SEO_CLASS_TYPEINFO_GET (parameter WITH_ENHANCEMENTS is default FALSE)

  • Class Enhancement without a .jdo file

    Is it possible to do a byte code enhancement using the KODO APIs passing in
    a data structure containing the .jdo metadata file information without
    having to explicitly create a .jdo file?
    I'm looking at using the enhance() method of JDOEnhancer class and it looks
    like I have to have a .jdo file on disk. Is there any way to avoid it?
    In my enviornment I read information from a master metadata file, use that
    to generate Java code, invoke the compiler on it and now I'd like to invoke
    the enhancer on the class files - i'd like to do all this one shot. Since I
    have all the information needed in memory, I don't want to create a .jdo
    file and have the enhancer read that file.
    Thanks
    Vijay

    Vijay-
    You do always need the .jdo metadata file for your classes; the JDO
    specification requires it. Note, though, that you could just have a
    single top-level package.jdo file that holds the metadata for all your
    classes, so that you would only need to create a single file.
    Technically, I suppose you could use a custom ClassLoader that overrides
    getResourceAsStream() (since this is the way we locate .jdo metadata
    files for classes), and return a textual stream of the contents of the
    ..jdo metadata. It might work, but we advise against it, since using
    custom ClassLoaders can introduce very tricky problems that are
    difficult to debug.
    In article <bju9ua$ops$[email protected]>, Vijay Ganesan wrote:
    >
    Is it possible to do a byte code enhancement using the KODO APIs passing in
    a data structure containing the .jdo metadata file information without
    having to explicitly create a .jdo file?
    I'm looking at using the enhance() method of JDOEnhancer class and it looks
    like I have to have a .jdo file on disk. Is there any way to avoid it?
    In my enviornment I read information from a master metadata file, use that
    to generate Java code, invoke the compiler on it and now I'd like to invoke
    the enhancer on the class files - i'd like to do all this one shot. Since I
    have all the information needed in memory, I don't want to create a .jdo
    file and have the enhancer read that file.
    Thanks
    Vijay--
    Marc Prud'hommeaux [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • Enhanced SAP class with new methods - Not showing these from standard task

    Dear Gurus,
    I have enhanced SAP standard class with new methods. After I have activated my new methods and would like to create a workflow task using these new methods. when I create a task and input object category as "ABAP Class" and object type is SAP enhanced class. When I try to drop down for methods SAP is not showing my new methods. I do not know why. Am I missing any? Any help would be appreciated.
    Note: Remember I am trying to use SAP ABAP class custom methods.
    Thanks,
    GSM

    Hi,
    Your thread has had no response since it's creation over
    2 weeks ago, therefore, I recommend that you either:
    - Rephrase the question.
    - Provide additional Information to prompt a response.
    - Close the thread if the answer is already known.
    Thank you for your compliance in this regard.
    Kind regards,
    Siobhan

  • Enhance method with new parameter

    How can I enhance an existing method with a new Parameter?
    In some tutorial is written that this should be possible. But there is no exact description.

    Thx Rich Heilman 
    but in the Doku "Enhancements to Global Classes and Interfaces"
    http://help.sap.com/saphelp_nw70/helpdata/en/58/4fb541d3d52d31e10000000a155106/content.htm
    you find:
    You can enhance the components of a global class or global interface by:
    &#9679;     Inserting new, optional formal parameters for existing methods (but no new exceptions)

  • How to clear a private static class attribute once it's been created?

    <pre>I'm working with an instance of a complex Class object that has been created using the function module <br>HRXSS_CAT_APPLICATION_INIT. The Class object that I am trying to work with is<br> CL_XSS_CAT_BUSINESS_LAYER and in particular its Static Private component attribute PROFILE.<br>
    The issue that I am having is that the first call of this function module creates and populates the Static Private component attribute, <br>PROFILE, for the instance of this Class and I do not know how to initialize it once it's been created. The PROFILE attribute is an <br>object reference to an instance of Class CL_XSS_CAT_PROFILE. <br>
    I want to reset/intialize this Static Private component. I can then call a Class Method with<br> different parameters so that it repopulates PROFILE with different attributes. <br>There is no Public method to do this in CL_XSS_CAT_BUSINESS_LAYER and even the Private method<br> INIT_PROFILE, the logic first checks to see if the PROFILE component is initial before creating a new PROFILE<br> object instance. All the Attributes of the CL_XSS_CAT_PROFILE object are Static and Private.
    <br>
    I would appreciate any insight anyone might have in how to reset/initialize this Class component attribute.<br><br>
    Thanks much,<br>
    <br>
    Graham<br>
    Sample code snippet is as follows:
    <br><br>
    DATA: lr_cats_application_rfc TYPE REF TO IF_XSS_CAT_APPLICATION_RFC,
    lr_core TYPE REF TO IF_XSS_PT_APPLICATION_CORE,
    lr_core TYPE REF TO CL_XSS_CAT_1_APPLICATION_CORE,
    lr_instance TYPE REF TO CL_XSS_CAT_APPLICATION,
    lr_business_layer TYPE REF TO CL_XSS_CAT_BUSINESS_LAYER,
    lr_profile TYPE REF TO CL_XSS_CAT_PROFILE,
    lr_profile_temp TYPE REF TO cl_xss_cat_profile.
    DATA: l_employee TYPE pernr_d.
    DATA: l_employee_tab TYPE rhxss_cat_employee_t.
    CASE im_command.
    WHEN 'DATESELECTION_PRVPERIOD'.
    *-> navigate to object component reference for CL_XSS_CAT_PROFILE instance
    lr_cats_application_rfc = im_ref_to_parameter_cache->REF_TO_APPLICATION.
    *-> navigate to object component reference for CL_XSS_CAT_1_APPLICATION_CORE
    lr_core ?= lr_cats_application_rfc->get_core( ).
    *-> navigate to object component reference for CL_XSS_CAT_BUSINESS_LAYER
    lr_business_layer = lr_core->business_layer.
    *-> navigate to object component reference for CL_XSS_CAT_PROFILE
    lr_profile = lr_business_layer->get_profile( ).
    l_employee = im_ref_to_parameter_cache->pernr.
    append l_employee to l_employee_tab.
    <br><br>
    *THIS IS WHERE I AM HAVING ISSUES...I WOULD LIKE TO CLEAR/INITIALIZE THE STATIC PRIVATE COMPONENT<br> LR_BUSINESS_LAYER->PROFILE BEFORE CALLING THE METHOD INITIALIZE_FOR_TIME_RECORDING<br>
    <br>
    <br><br>*THE FOLLOWING LINE FAILS ON A SYNTAX CHECK WITH 'FIELD "PROFILE" IS UNKNOWN. IT IS NEITHER IN <br>ONE OF THE *SPECIFIED TABLES NOR DEFINED BY A "DATA" STATEMENT
    <br>
    clear: lr_business_layer->profile.
    CALL METHOD lr_business_layer->initialize_for_time_recording
    EXPORTING
    im_employee_tab = l_employee_tab
    im_profile_id = 'MODAPPR1'
    im_startdate = sy-datum
    EXCEPTIONS
    pernr_not_enqueued = 1
    no_pernr_for_user_found = 2
    profile_not_found = 3.</pre>
    Edited by: Matt on Aug 1, 2009 12:44 PM

    OK...I apologize but I did not dig deep enough to see that the Enhancement Framework allows for the addition of Methods to Classes/Interfaces. Most of this ABAP OO stuff is still quite new to me so I'm struggling with syntax and what is and isn't possible based on how everything is declared. I guess now that I know I can do this I am having some problems understanding how singleton Class objects work and how to 'reset' them.
    The Class instance based on CL_XSS_CAT_BUSINESS_LAYER has a Static Private attribute PROFILE that is an object reference to the singleton Class instance CL_XSS_CAT_PROFILE.
    The singleton Class instance of CL_XSS_CAT_PROFILE has all of its attributes set to Static Private. If you look at this Class in SE80 you see that one of its attributes is also called PROFILE and is an object reference variable to itself.
    So the issue I am having is how to go about 'initializing' this singleton object so that I can 'recreate' this singleton object using a copy of the existing S
    I used the enhancement framework to create a copy of the CL_XSS_CAT_BUSINESS_PROFILE Instance Private Method INIT_PROFILE , called in INIT_PROFILE2, but I am not sure how to 'clear/reset' the instance of the CL_XSS_CAT_PROFILE object.
    Since PROFILE is an attribute of the CL_XSS_BUSINESS_LAYER object, I thought that a simple CLEAR PROFILE would reset the object but this is not the case. Within this method the FREE clears the value of the reference variable PROFILE but as soon as you step into the method me->init_profile, the value of PROFILE goes back to what it was. I need for all of the CL_XSS_CAT_PROFILE instance attributes to be reset or initialized so I can fill them again. I think I'm getting confused on the scope of things...should I be enhancing the CL_XSS_CAT_PROFILE Class with 'setter' methods so I can initialize all of the Static Private attributes that way instead of trying to clear all the attributes at a higher call level?
    Any assistance with helping me with my thought process or approach to this would be much appreciated.
    METHOD INIT_PROFILE2.
    FREE PROFILE.  >>> is reset but it does not carry through to next method call and does not clear all the attributes of the object referenced in PROFILE
    CALL METHOD me->init_profile
    EXPORTING
    IM_PROFILE_ID = im_profile_id
    etc...

  • Updating read only attributes of class/method

    Hi,
    I have this standard class CL_QNAO_OBJECT, with MS_DATA as read only attribute.I have written my own class in an enhancement within this class and now trying to edit this MS_DATA within my own class. but I get an error sayng "write access to the READ only attribute is not allowed", is there any way I can change it?
    The attribute MT_STACK is changing attribute/parameter to my class, which in turn has this ms_data structure.
    Note - I did search sdn before I put it here, I got couple of threads which I dont find suitable for me.
    Thanks in advance,

    Since MT_STACK is also type ref to CL_QNAO_OBJECT, my earlier guidance still hold true.
    Step 1 - When you enhance the class, you would see empty table lines in the class editor. Create a new method in that.
    Public Instance Method name Z_SET_MS_DATA
    Importing parameter IS_DATA TYPE QNAOD_AOBJECT
    Method implementation:
      ME->MS_DATA = IS_DATA
    Step 2 - In you enhancement in the class, call the method to set the data
      Data: ls_Data type QNAOD_AOBJECT
      Ls_data-field1 = ‘xyz’.
      core_object->mt_stack->z_set_ms_data( ls_Data ).
    Regards,
    Naimesh Patel

  • Collect statement in a class.

    Hello,
    This is related to BW infospoke enhancement,
    in this class i have structure which is filled and i have to aggregate the data in this structure by one of the field level,
    i want to declare a internal table with header and take the data from structure into internal table and then do a collect statement on to this internal table..
    but i am getting a message that no one more header line is supported in OOPS concept..meaning i am not able to declare a internal table with header line..
    any solution to this will be awarded with points.

    Hello Shashi
    You should not use itab with header lines since they mess up any coding and are a nightmare when it comes to maintaining code.
    Fortunately, SAP has abandoned header lines from ABAP-OO. If you are not using table types then you have to define your own types, e.g.:
    TYPES: BEGIN OF ty_s_line.
    TYPES:   field_a  TYPE ... .
    TYPES:   field_b  TYPE ... .
    TYPES: END OF ty_s_line.
    TYPES: ty_t_itab  TYPE STANDARD TABLE OF ty_s_line
                      WITH DEFAULT KEY.
    DATA:
      ls_line   TYPE ty_s_line,
      lt_itab   TYPE ty_t_itab.
    * Now fill your itab, e.g.
      SELECT * FROM ... INTO CORRESPONDING FIELDS
                        OF TABLE lt_itab.
    * Now working with the itab data.
      LOOP AT lt_itab INTO ls_line.
      ENDLOOP.
    Regards
       Uwe

  • Enhancement trouble

    Kodo newbie seeks explanation of exception occurring during
    enhancement. My 'package.jdo' contains mappings for a dozen or so
    classes to an existing schema. Most of the classes contain no JDO code
    and get enhanced with no problem. Two of the classes are intended for
    readonly use; they're sort-of-singletons that initialize all allowable
    instances of themselves from storage at class load time. The only
    thing that differentiates these classes from the others is their
    initialization code. When I run the enhancer over these classes, I get
    the following exception:
    Exception in thread "main" java.lang.IllegalArgumentException: The
    specified class "com.commercehub.
    carrier.ServiceLevel" could not be loaded. null
    at
    com.techtrader.modules.tools.compiler.ClassArgParser.parseClasses(ClassArgParser.java:65)
    at
    com.techtrader.modules.jdo.enhance.JDOEnhancer.main(JDOEnhancer.java:80)
    Here's the method that contains JDO code: (The JDOFactory mentioned in
    the code is the same one distributed with the Kodo tutorials.)
    private static void allInstances() {
    PersistenceManager pm = JDOFactory.getPersistenceManager();
    Extent cln = pm.getExtent( ServiceLevel.class, false );
    Query qry = pm.newQuery( ServiceLevel.class, cln );
    Collection results = (Collection) qry.execute();
    Iterator it = results.iterator();
    while (it.hasNext()) {
    ServiceLevel nextType = (ServiceLevel) it.next();
    String key = nextType.getCarrierString() +
    nextType.getCode();
    cache.put( key, nextType );
    Could I impose on someone with source code to look at the line in
    question and suggest what might be failing?
    Thanks,
    jp
    Jerry Pulley
    Sr. Developer
    Commerce Technologies, Inc.

    Jerry Pulley <[email protected]> writes:
    Exception in thread "main" java.lang.IllegalArgumentException: The
    specified class "com.commercehub.
    carrier.ServiceLevel" could not be loaded. nullIs the newline between 'com.commercehub.' and 'carrier.ServiceLevel'
    an artifact of your post, or did the error message have that newline
    in it? If the latter, what was the command that you executed in order
    to run the enhancer, and can you post the contents of your
    package.jdo, system.jdo, or ServiceLevel.jdo file?
    Thanks,
    Patrick Linskey

Maybe you are looking for

  • IPod won't even turn on and is not recognized by itunes

    I have had 3 friends with shuffles also try to get mine to work with no success. It is not even recognized by itunes. I decided to send it back since it is still covered by warranty and now Apple wants $109.00. This is insane!!! What a scam! Obviousl

  • Can it be possible to create invoice without billing plan date?

    Hi Gurus, I have made settings for billing plan in contracts. But, client wants billing plan at contract level only for the sake of reporting. Client doesnt want invoice to be created according to these billing plan. Now, consider this scenario, I ha

  • Receiver file name with counter

    While working on proxy to file scenario. I have to maintain receiver file name as ddmmyyyyxxx_nnn.xml,where xxx is constant and nnn is a counter which is suppose to be reset everyday.Anybody can help me on how to achive this...?

  • Load different css for one master page in different variation labels

    Hi i have two variation label in my SharePoint 2013 site collection one for English language  and one for the Arabic language  i have used the twitter bootstrap so now i have one master page and one style file for the two sites i need to load custom

  • Adobe Content viewer en indesign CS6 no funciona correctamente

    Cuando intento hacer una vista previa de las maquetas que estoy creando con indesign para publicaciones digitales, aparece la ventana donde avisa que se está procesando, pero luego no se abre el desktop viewer. En Folio Builder cuando pido vista prev