Attributes of class

hello,
     is der any table r RFC  FM which displayes the attributes of the classes.
Actually my requirement is to compare the Attributes of classes of two servers .help me out ....

Hi Ishwar,
             Please have a look on these function modules.
CLASS_READ_CHARACT             API: Direct Characteristics of Class (Witho
CLASS_READ_CHARACT_ALL         API: All Direct and Inherited Characteristi
CLASS_READ_CHARACT_ALL_ATTR    API: All Direct and Inherited Characteristi
CLASS_READ_CHARACT_ATTR        API: Direct Characteristics of Class with A
CLASS_READ_CHARACT_INH         API: Only Inherited Characteristics of Clas
CLASS_READ_CHARACT_INH_ATTR    API: Only Inherited Characteristics of Clas   .
Hope it resolves the query.
Have a best day ahead.

Similar Messages

  • Access class attribute by class name

    Hi experts,
    Can anyone help me in next situation.
    I need access class static attribute by class name and attribute name. I have two initialized variables
    DATA: class_name(30) TYPE c,
    attr_name(30) TYPE c.
    In another words, I need to do attribute initializing like
    ZCL_IM_BM_VPA10_IMPL=>P_VAR_ZPLV_CLM = loc_var_range-low.
    but using char variables insead of reference to class.
    Thanks in advance,
    Max.

    You want dynamic access to a static attribute?  If these are your own Z classes, then rather than access the attributes directly, write getter and setter methods.
    Then you can use (as it is in the ABAP help on dynamic call methods ).
    TRY.
        CALL METHOD (class)=>(meth)
          PARAMETER-TABLE
            ptab
          EXCEPTION-TABLE
            etab.
        CASE sy-subrc.
          WHEN 1.
        ENDCASE.
      CATCH cx_sy_dyn_call_error INTO exc_ref.
        exc_text = exc_ref->get_text( ).
        MESSAGE exc_text TYPE 'I'.
    ENDTRY.
    btw - next time, post in the ABAP objects forum.
    matt

  • Differentiate the inheritance relationsip v.s. the attribute of class?

    How do you differentiate the inheritance relationsip v.s. the attribute of class??
    Can any one give an example to support your arguments??
    <!---Thank You soooo Much-->

    It is a "has a" versus an "is a" relationship.
    If a dog is an animal, then Dog should inherit from Animal (the "is a" relationship).
    If a Dog has a DogHouse, then DogHouse should be an attribute of the Dog class ("has a" relationship)

  • How to create custom attributes & object classes through ldif files in OID

    Hi,
    I have to create 4 attributes and one object class(custom) in OID. I want to creae these attributes and object class through LDIF file.
    I tried creating an attribute through this command
    ldapadd -p 389 -h localhost -D cn=orcladmin -w password -f D:/newattr.ldif
    this ldif file contains inf. for creating a new attributes:
    dn: cn=subschemasubentry
    changetype: add
    add: attributetypes
    attributetypes: ( 1.2.3.4.5.6.10 NAME "xsUserType_new" DESC "User Type Definition" EQUALITY caseIgnoreMatch
    SYNTAX "1.3.6.1.4.1.1466.115.121.1.15" )
    I am getting error: Object class violation
    Failed to find add in mandatory or optional attribute list.
    Please help to find where I am going wrong...
    Thanks.

    Hi Ajay,
    Thank you for the help. Now i am able to create both attributes and object classes in OID through Ldif files.
    I was getting constraint violation error because (I think) I was not giving proper naming convection for attributes and object classes. For OID, there are certain Ldap naming conventions. They are as follows:
    # X below is the enterprise number assigned by IANA
    1.3.6.1.4.1.X.1 - assign to SNMP objects
    1.3.6.1.4.1.X.2 - assign to LDAP objects
    1.3.6.1.4.1.X.2.1 - assign to LDAP syntaxes
    1.3.6.1.4.1.X.2.2 - assign to LDAP matchingrules
    1.3.6.1.4.1.X.2.3 - assign to LDAP attributes
    1.3.6.1.4.1.X.2.4 - assign to LDAP objectclasses
    1.3.6.1.4.1.X.2.5 - assign to LDAP supported features
    1.3.6.1.4.1.X.2.9 - assign to LDAP protocol mechanisms
    1.3.6.1.4.1.X.2.10 - assign to LDAP controls
    1.3.6.1.4.1.X.2.11 - assign to LDAP extended operations
    By using these conventions for attributes and object class, I did got any error and they were created in OID.
    Thanks a zillion.
    Kalpana.

  • Dynamic Where Clause in select using member attribute of class

    Hello,
    can anybody provide me some tips how to solve this problem:
              SELECT (lv_sql_select) INTO CORRESPONDING FIELDS OF TABLE lt_cntrl2
                         FROM (lv_db_name)
                     FOR ALL ENTRIES IN mt_guids
                 WHERE (lv_sql_where).
    works perfectly fine if I use a local table variable or a member of my class. But if I build my where clause using a member attribute of my class which comes from the interace- exactly the same type and data as before I get a dump.
    SELECT (lv_sql_select) INTO CORRESPONDING FIELDS OF TABLE lt_xyz
                         FROM (lv_db_name)
                     FOR ALL ENTRIES IN if_abc~mt_guids
    my where clause "guid = if_abc~mt_guids-guid.
    Dump:
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_DYNAMIC_OSQL_SEMANTICS', was
         not caught in
        procedure "....GET_DATA" "(METHOD)", nor was it propagated
         by a RAISING clause.
        Since the caller of the procedure could not have anticipated that the
        exception would occur, the current program is terminated.
        The reason for the exception is:
        Das laufende ABAP-Programm wollte eine Open SQL-Anweisung ausführen,
        die eine dynamische Angabe enthält. Der Parser lieferte jedoch den
        Fehler: "Wrong table name or table alias name table alias name
         table alias name "....". table alias name
         "...". table alias name "...". t"

    Hi Marco Freischlag,
      As per my understanding , if we give for all entries we want to use internal table ,  For where conditions you want to pass variable , not internal table one filed,because it will not have header line...
    so code like this...
    SELECT (lv_sql_select) INTO CORRESPONDING FIELDS OF TABLE lt_xyz
                         FROM (lv_db_name)
                     FOR ALL ENTRIES IN if_abc~mt_guids
              where guid = if_abc~mt_guids-guid. " Here pass some variable or work area in it and test.
    Thanks,
    Vijay SR

  • Is it possible to have define a tag with an attribute called "class"?

    Obviously you can't have a setClass/getClass pair in the tag, since getClass is declared final in java.lang.Object. setClass alone doesn't seem to cut it.
    I've tried copying the class attribute to a new one in a TagExtraInfo but this doesn't prevent the "no setter for class" exception. This may be because you can't delete an attribute from TagData so the "class" attribute is still there.
    It's anoying because I'm trying to define a variant of jsp:useBean and I want it to be as close as possible in attribute options.
    Incidentally I'd like to do more validation in TagExtraInfo but how do I get at, for example, the servletContext?

    There's nothing to stop me writing a setClass() method though. Unfortunately that doesn't seem to work - the system apparently demands a getClass() method too, though it wouldn't be used.
    I was hoping to be able to modify the tagData item at compile time and, hence, the data passed to the Tag.

  • 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

  • How to use a protected attribute of class cl_gui_alv_grid

    Hello all,
           i have a scenario where i need to use the attribute 'm_appl_events' which is protected attribute. in need to add this event type into my events and add this to registered events.
        when i tried to use this with refrence to class i defined, it showing an error message 'access to protected attribute m_appl_events is not allowed. i already inherieted the cl_gui_alv_grid class into my class
         can any one please tell me how exactly could i use the protected attribute.
    Thanks,
    raju N

    Hi Krishna,
    Protected method or attrubute can be accessed through Inheritence or Friends functionality. So you can inheritence easily in you case . so that you can access the variable in the Inherited sub class only. So you can write 2 methods ie GET or SET ing the value of your protected method.
    I think this informatio may help you.
    Best Regards,
    Vijay

  • Adding attribute to class:CL_LSO_APPLICATION

    Hi all,
    My requirement is, have to add some attributes in std class CL_LSO_APPLICATION without accesskey.
    Please let me know the possible ways(ex: like BADI)
    Regards
    Bhaskar

    Hi Uwe,
    Thanks for immediate reply,
    When i choose 'enhance' option, its asking 'Enhancement Implementation'.
    Can u pls share your idea how to enhance that class as per my requirement.
    system has ECC6 landscape.
    Regards
    Bhaskar

  • Reading Attributes of Class

    Hi,
    I want to read the attributes of the class, those arrtibutes i can see while debugging @ instance object of class.
    It has deep structure with table values.
    so could you please guide me how to go ahead and access the attributes programitacally?
    Thaks,
    Raghu.

    Hi Raghu,
    Not sure what exactly you mean by saying reading the attributes of the class. Do you want to read the values of the attribute? Then you can create an instance of the class and then read the attributes.
    CREATE OBJECT lr_object.
    IF lr_OBJECT if bound.
    lv_attr =  lr_object->attribute1.
    ENDIF.
    There are lot of demo programs available in SAP. You can also refer them for proper syntax.
    DEMO_ABAP_EVENTS_1
    DEMO_ABAP_EVENTS_2
    DEMO_ABAP_EVENTS_3
    DEMO_ABAP_OBJECTS
    DEMO_ABAP_OBJECTS_CONTROLS
    DEMO_ABAP_OBJECTS_DIALOG_BOX
    DEMO_ABAP_OBJECTS_EVENTS
    DEMO_ABAP_OBJECTS_GENERAL
    DEMO_ABAP_OBJECTS_METHODS
    DEMO_ABAP_OBJECTS_SPLIT_SCREEN
    You can search with DEMO* in SE38 for the entire list of DEMO Programs.
    Hope this helps.
    Thanks,
    Samantak.

  • Alternate drives in Jar file Class-Path attribute

    Hello, all. I am working on a project that I would like to package into a single jar file for simple execution. At my place of work classes from EJB are stored on a different drive from where I am doing the development. I am having trouble accessing those classes from the Jars I am creating. When I try the following manifest:
    Main-Class: MyPackage.MyClass
    Class-Path: U:\someFolder
    the application will not start, saying that MyPackage.MyClass cannot be found. This is despite MyPackage.MyClass being properly packaged into the Jar file, as verified by a jar t operation. When I leave off the drive letter in the Class-Path attribute:
    Main-Class: MyPackage.MyClass
    Class-Path: someFolder
    the application starts and executes properly right up until a class from someFolder is needed, at which point exceptions begin to be thrown.
    Any ideas will be much appreciated!
    John Todd

    I was eventually able to find the answer to my own question: Jars do not accept absolute paths at all, only relative paths. Thus, the alternate drive approach will not work. Fortunately I was able to find an alternate solution.
    John Todd

  • Custom object class attributes are not provisioning in oID thru OIM

    Hi,
    I have connected OIM with oID user provisioning is also taking place. I have made one custom structure class with some attributes in OID.
    In form designer,in OID usr form i have made feild UD_OID_USR_Custom
    In OId .config lookup i have mentioned that custom class as well as attributes of class[in code Custom in decode name of attribute at target]
    In process form recon mapping of OID i mapped this feild name .
    Also in resource object recon mapping also i mentioned this attribute.
    But while creating user till process form value of attribute is populating and not provisiong that attribute in OID.
    Please tell me where i went wrong or exact steps of mapping in form designer,Process definition,Lookup.OID.configuration,Resource objects.
    Thanks

    process form recon mapping of OID i mapped this feild nameHave you made attribute entry in Provisioning Lookup AttrName.Prov.Map.OID ?
    Have you followed each step :
    http://download.oracle.com/docs/cd/E11223_01/doc.904/e10436/extnd_func.htm#CACICHDH

  • JAXB::repeted use of attribute="class"

    i am trying to produce java object using jaxb for XSD, I even tried customise jaxb,but its only working for one class attribute. can anyone help me how to get around this problem.
    below is a part of Schema.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:element name="Descriptor">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element ref="bridgeID" maxOccurs="unbounded"/>
    <xsd:element ref="resourceConn" maxOccurs="unbounded"/>
    <xsd:element ref="conn" maxOccurs="unbounded"/>
    </xsd:sequence>
    <xsd:attribute name="name" type="xsd:string" use="required"/>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="bridgeID">
    <xsd:complexType>
    <xsd:attribute name="name" type="xsd:string" use="required"/>
    <xsd:attribute name="class" type="xsd:string" use="required"/>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="resourceConn">
    <xsd:complexType>
    <xsd:attribute name="name" type="xsd:string" use="required"/>
    <xsd:attribute name="class" type="xsd:string" use="required"/>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="conn">
    <xsd:complexType>               
    <xsd:attribute name="class" type="xsd:string" use="required"/>
    <xsd:attribute name="host" type="xsd:string" use="required"/>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    ERROR
    [ERROR] Attempt to create a property having the same name as the reserved word "
    Class".
    line 81 of bridgedescriptor.xsd
    [ERROR] Attempt to create a property having the same name as the reserved word "
    Class".
    line 162 of bridgedescriptor.xsd
    [ERROR] Attempt to create a property having the same name as the reserved word "
    Class".
    line 212 of bridgedescriptor.xsd

    Attempt to create a property having the same name as the reserved word "
    Class".
    Select an attribute name other than class.
    <xsd:attribute name="class" type="xsd:string" use="required"/>

  • Want to import Class Attributes from ERP to PI

    Hi all,
    I'm publishing Asset Information from SAP to PI to an external system.
    The information includes EQUNR,SERNR, TIDNR and Partner information.
    In PI I manually defined a DataType in PI of Asset and then created a service definition.
    I then generated a proxy in ERP to publish the Asset.
    I have generated a class in SE24 ZCL_EQUI and created a publish method which calls the client Proxy and it works fine.
    Here is my question
    Can you import the data definitions(attributes) of the class into PI (similar to how you can import RFC and idocs)?
    The reason I ask is rather than manually definining the message Type in PI it would be much more convenient to import it from the class ZCL_EQUI.
    This way the data would have the same types and I could update PI from SAP.
    I know this may seem a little backwards but it would be useful in this case(think of it as similar to importing an idoc definition).
    One approach I could take is to create a Service Definition for the constructor method (which takes in the Equipment Number and returns all the information). I could then publish that to ESR and import the WSDL into PI and then use the data definitions for the publishing of the equipment. ( a little longwinded but it should work).
    However it looks like for creating the service defintion I'd have to create a function module (RFC enabled) which calls the class.
    I can't see an easy way to create the service definition straight from the class.
    So in summary I suppose I have a couple of questions
    1) Is there a way in PI to import data structures from ERP?
    2) Is there a way in PI to import attributes from classes?
    3) Is there a way to create a service defintion straight from a class (or do you always have to wrap it in a function module)?
    4) Is there a way to generate a WSDL from a class?
    If you have any links or documentation I should read, please let me know.
    Thanks in advance for any help.
    Regards,
    John

    Hi John,
    the answer to all your questions is: No.
    The idea of PI ESR is having a development point for all interfaces. So if you need a data type in ERP, you should rather define the data type in ESR and generate a structure type in ERP with SPROXY.

  • How to present nested class attributes as af:table column?

    Facade method returns list of classes A, which in turn contains class B.
    I would like to present some attributes of class B.
    Looking at SRDemo sample - I would like to present product name on SRList page.

    why nobody reply ?
    I am confused so much !

Maybe you are looking for

  • I have a uk ipad2 with 3G and am going to the USA I want to get a micro sim from AT

    I have a UK ipad2 with 3G and am going to the USA.  I want to get a micro sim from AT&T so that I can use 3G in the USA. My question is that I know that I will need to sign up for an AT&T account on my Ipad. Do AT&T accept foreign credit cards so tha

  • Changing Media Start and End of Logged Clips

    This should be really simple, and I'm sure I'm just overlooking something. I am trying to recapture some clips in Final Cut Pro and it was fine until I came to a clip that gave me the "timecode error - pre roll, post roll, etc" message. The Media Sta

  • Cannot install iTunes 8. Requres QuickTime

    I'm attempting to install iTunes 8 on a Vista 32 PC. I can download the software, Run the installer, get the "Welcome to iTunes etc, the license page, the options page. Then I get the following message "The installation of Quick Time did npt complete

  • Partial Delivery Data Migration

    Hi, I would like to know your experience on the following subject.. We are migrating from a system where we have some open sales orders (with PO related to these sales orders). Some orders will be open at Go-Live date. These are the orders that canno

  • Unterschiedliche Kanalbezeichnungen an versch. PC´s

    Hallo zusammen, wir haben an versch PC´s Diadem 10.2 installiert. Nun ist es so das bei Kanalberechnungen z.B einer FFT die Kanalbezeichnungen unterschiedlich ausfallen. Bei einem PC steht  Ampl_Peak  und bei einem anderen PC steht AmplitudePeak Ist