Code or Basis FM to find the attribute list in an ABAP class -- URGENT!!
Dear All,
Can you please let me know the piece of code or a basis Function Module to list all the attributes of an ABAP class? It's real urgent..
Thanks in advance for all your help.
Regards,
Harish
Hello Harish
Call the static method <b>CL_ABAP_CLASSDESCR=>DESCRIBE_BY_NAME</b>( '<name of your class>' ).
The method returns an instance of CL_ABAP_CLASSDESCR. The attributes METHODS, ATTRIBUTES and EVENTS (and others) are <b>public </b>and, therefore, can be accessed directly.
Another fancy class is <b>CL_OO_CLASS</b>. It has an instance method GET_ATTRIBUTES where you can specifiy the attribute type (public, private, protected).
Regards
Uwe
Similar Messages
-
How to find the Attribute Tab for 0MOVETYPE?
Hi All,
I am trying to create the Attributes for 0MOVETYPE as per T156HT table. I am not able to find the Attribute tab. Please can you suggest me how to get T156HT data using Generic Datasource structure in BW or Is there any way to get R/3 structure in BW?
Regards,
KiranT156HT is text table.
You need to load only text ? It doesnt have any attibute.
Go to RSD1
Give your infoobject name.Check under master data/text tab if you have ticked "Text".
You can create generic text datasource using table RSO2.
Hope this helps. -
500px give to me and redeem 24 code but i can't find the code for the activation of adobe cc
500px give to me and redeem 24 code but i can't find the code for the activation of adobe cc
Hi Ntinos,
Normally you just need to go to https://creative.adobe.com/redeem and sign in with your Adobe ID to activate the code. The address you gave to 500px for registration and payment has to match that of your Adobe ID.
Hope that helps,
- Dave -
Reg - how to find the purpose of methods in a class
hi everyone,
can u plz help me with how to find the purpose of methods in a class???????
a description abt the methods in a class??????
thx in advance,
regards,
balaji.sHi Balaji
Pls find some stuff.
reward pts if help.
The following statements define the structure of a class:
· A class contains components
· Each component is assigned to a visibility section
· Classes implement methods
The following sections describe the structure of classes in more detail.
Class Components
The components of a class make up its contents. All components are declared in the declaration part of the class. The components define the attributes of the objects in a class. When you define the class, each component is assigned to one of the three visibility sections, which define the external interface of the class. All of the components of a class are visible within the class. All components are in the same namespace. This means that all components of the class must have names that are unique within the class.
There are two kinds of components in a class - those that exist separately for each object in the class, and those that exist only once for the whole class, regardless of the number of instances. Instance-specific components are known as instance components. Components that are not instance-specific are called static components.
In ABAP Objects, classes can define the following components. Since all components that you can declare in classes can also be declared in interfaces, the following descriptions apply equally to interfaces.
Attributes
Attributes are internal data fields within a class that can have any ABAP data type. The state of an object is determined by the contents of its attributes. One kind of attribute is the reference variable. Reference variables allow you to create and address objects. Reference variables can be defined in classes, allowing you to access objects from within a class.
Instance Attributes
The contents of instance attributes define the instance-specific state of an object. You declare them using the DATAstatement.
Static Attributes
The contents of static attributes define the state of the class that is valid for all instances of the class. Static attributes exist once for each class. You declare them using the CLASS-DATA statement. They are accessible for the entire runtime of the class.
All of the objects in a class can access its static attributes. If you change a static attribute in an object, the change is visible in all other objects in the class.
The technical properties of instance attributes belong to the static properties of a class. It is therefore possible to refer in a LIKE addition to the visible attributes of a class through the class component selector or through reference variables, without prior creation of an object.
Methods
Methods are internal procedures in a class that define the behavior of an object. They can access all of the attributes of a class. This allows them to change the data content of an object. They also have a parameter interface, with which users can supply them with values when calling them, and receive values back from them The private attributes of a class can only be changed by methods in the same class.
The definition and parameter interface of a method is similar to that of function modules. You define a method meth in the definition part of a class and implement it in the implementation part using the following processing block:
METHOD meth.
ENDMETHOD.
You can declare local data types and objects in methods in the same way as in other ABAP procedures (subroutines and function modules). You call methods using the CALL METHOD statement.
Instance Methods
You declare instance methods using the METHODSstatement. They can access all of the attributes of a class, and can trigger all of the events of the class.
Static Methods
You declare static methods using the CLASS-METHODSstatement. They can only access static attributes and trigger static events.
Special Methods
As well as normal methods, which you call using CALL METHOD, there are two special methods called constructor and class_constructor that are automatically called when you create an object or when you first access the components of a class.
reward pts if help.
deepanker -
How to find the start condition of a ABAP program?
Hello Gurus!,
Could any one please explain how to find the start condition of a ABAP program?
like its a event based or time based?and also how to find that event and time..
Thanks in Advance...
DinakarHi Dinkar,
Go to Job Schedule, put Job Step parameter as your program and see scheduled Job.
In Schedule Job double click to see start condition. and steps to see details and variant.
Hope it helps.
Thanks
CK -
Where i can find the package "netscape.javascript.JSObject;" ??urgent
where i can find the package "netscape.javascript.JSObject;" ??urgent
pleaseThe Java Plug-in 1.3 ships netscape.javascript in a JAR file called JAWS.JAR. To compile an applet which uses JSObject, just add JAWS.JAR in the CLASSPATH before compilation.
If you don't have the Plug-in, but do have a Netscape browser installed, you can add the java40.jar file that comes with Communicator to the end of your CLASSPATH (or extract the netscape.* classes from there). -
Where do I find the source list in iTunes 7
I know this sounds stupid, but I can't find the Source List! I lost my hard drive, put in a new one and reloaded iTunes, but have not reloaded all my CDs. I want to set iTunes so it will not synch up with my iPod and delete all the songs that are on the iPod, but not on iTunes. But, I see nothing labeled Source List. Where is it? Must my iPod be plugged in for it to show up -and- if it is, will I lose the music on the iPod, but not on iTunes?
You can create a smart playlist with the rule Kind is MPEG audio file.
tt2 -
Where can I find the price list?
I would like to implement BeeHiv locally in our company, does anyone know where to find the price list and annual support fee?
Thankshttp://www.oracle.com/us/corporate/pricing/price-lists/index.html
-
Function module to find the attachment list for an accounting document?
Is there a function module to find the attachment list for an accounting document? Or which table stores such references?
I know I can find this info from the transaction FB03, but is there a function module to find the attachments for an accounting document? So far I only found the attachments are stored in the table SOOD, and archived documents in table TOA03, but I can't find the table that stores the links between the accounting document and its attachments?
<b><REMOVED BY MODERATOR></b>
Thanks,
Ning
Message was edited by:
Alvaro Tejada GalindoHi,
i_object1-typeid = 'YARSATTA'. "<<< Give your Object id name
i_object1-catid = 'BO'.
i_object1-instid = i_yarsitem-docno. "<<<< Document Number
call method cl_gos_attachment_query=>count_for_object
exporting
is_object = i_object1
ip_arl = space
receiving
rt_stat = i_stat1.
read table i_stat1 into wa_stat1 index 1.
if sy-subrc eq c_0.
move wa_stat1-counter to v_attno1.
endif.
For link you need to check for table SRGBTBREL
and also please check class CL_GOS*
a® -
Where can I find the song list for the glenn miller gold collection
Looking for help!!
Where can I find the song list for the CD of The Glenn Miller Gold Collection DIGITAL DEJAVU?
[email protected]Thank you for trying but this is the wrong disk. I'm looking for the list on the disk made in Italy by Phonocomp SpA . It has a number on it of 5-105-2 and CEDAR DIGITAL REMASTERING 1992DEJAVU.
I have tried to attach a picture of the disk but it will not paste to this reply.
Herbert Hamlin [email protected] -
Where do I find the price list for adobe products
where do I find the price list for adobe products
Hi mikekuszla
Which Product you want to purchase or Looking for ? -
What is system variable to find the current list line in list processing
hi
what is system variable to find the current list line in list processingHi,
Please find below the system variable related to list processing
LILLI INT4 10 Processing lists List line selected
LINCT INT4 10 Creating lists Page length in a list
LINNO INT4 10 Creating lists Current line
LINSZ INT4 10 Creating lists Line width in a list
LISEL CHAR 255 Processing lists Contents of the chosen line
LISTI INT4 10 Processing lists Index of the chosen list
Thanks,
Muthu. -
Just updated to iCloud, but I can't find the 'purchased' list on the iTunes store on my iPhone. There's no button for it on the toolbar or under the 'more' option. Want to play/download my puchased music via iCloud on my iPhone.... Help someone please?!
Hi again Limons,
just got your last reply per mail, re: 'presently only available in the USA.'
Unfortunately, you're right. Just found this article: http://www.digitalmusicnews.com/stories/061011icloud
seem like it's going to be a while before this gets sorted out . . .
Frustrating outcome to my question, but thanks a lot for helping me sort out what the problem was :-)
All the best to you. -
How to find the WhereUsed List for a Business Object Event?
How to find the WhereUsed List for a Business Object Event?
Can anybody let me know how to get which
Whereused function will get the data from
different Werks in multi-level?
Any sample program please!!! -
am not able to login to my iphone 5s using my apple id. i can find the phone listed under my devices in my i cloud login page
You need at least 50 MB of free space in order to back up to iCloud. Rather than backing up, have you tried importing the photos to your computer and deleting them from the camera roll as explained here: http://support.apple.com/kb/HT4083?
Maybe you are looking for
-
I can go to itunes store, click redeem, and enter my code. But when I click redeem after that to add the money to my account from gift card, it just freezes. Any ideas?
-
Error by using database procedure in select statement
hi , I have built a database procedure having one parameter with in out varchar type. that return value with some addition. i am using it with some column in select statement only for display purpuses but i am facing error by doing that in select sta
-
IndexedGeometryArray is white and not accepting material
My indexed geometry array as specified in the code looks white and is not accepting the material. Please Help. Appearance appearance = new Appearance(); Color3f ambientColor = new Color3f(0.8f, 0.9f, 0.2f); Color3f emissiveColor = new Color3f(0.0f, 0
-
Creative suite Standard CS 5.5 Serialization question
Hi Everyone, I've got the following license : Adobe Design Std CS5.5 5.5 MLP Upgrade License IE FROM CS4 (65122148) Is it possible to serialize single application with the Adobe Provisioning Toolkit Enterprise Edition? Because when i try to serialize
-
Uninstall antivirus BEFORE upgrading to Yosemite!
I guess this is just a word of advice for those upgrading (i.e. not doing a clean install) Mavericks to Yosemite. It appears that antivirus and non Apple login items, may interfere with the installation of Yosemite. Therefore: REMOVE ANTIVIRUS AND LO