REPORT YSUB_ASSIGN_FS.
FIELD-SYMBOLS : TYPE ANY .
class c1 definition .
public section .
* Instance attribute : inum declared below
data : inum type i value 5 .
* static attribute onum declared below
class-data : onum type i value 10 .
endclass.
class c1 implementation.
endclass.
start-of-selection.
data : oref1 type ref to c1 .
create object oref1.
* Assigning instance attribute to field symbol
assign oref1->inum to .
write:/5 .
* Assigning static attribute to field symbol
assign oref1->onum to .
write:/5 .
assign c1=>onum to .
write:/5 .
Output 5
10
10
Welcome To My BLOG
This site is to give a brief idea for the abap learners who are looking for some real time programs .It consists of collection of programs from my side . I hope these programs are very much used for all of the learners. Please check the links for any information in ABAP.
Please vote for my Blog. And please input me on this mail addrssess.Email me
Please vote for my Blog. And please input me on this mail addrssess.Email me
Share this link with your friends
http://www.rebtel.com/u/15163104576
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment