Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to do OOPs in ABAP.

Former Member
0 Kudos

requesting you all,

Every reply will be awarded, if answered for atleast a question in useful manner.


1) Apart from Normal abap progrmming where we use abap-oops? say some applicatons please as detail as possible.

2) How to difine and implement classes? 
a. if i want to dispaly get records from a database table and display.
b. if want to do calculations on the retrived data.

3) I am not sure about this, some where i have seen implementing objects as internal table which stores couple of records. How to do this?.

4) give some sample codes with little bit descriptions please.

Regards

Praveen

1 ACCEPTED SOLUTION
10 REPLIES 10

anversha_s
Active Contributor
0 Kudos

hi,

pls give ur email ID

i will send u some materials.

if it helps u mark points

rgds

anver

0 Kudos

hi anversha,

Thank you anversha. i have sent u mail to anversha.shahul@XXXXX.com id. kindly do needful.

Former Member
0 Kudos

Check the following example,

You can check these simple ABAP OBJECTs programs.

ABAP_OBJECTS_ENJOY_0 Template for Solutions of ABAP Object Enjoy Course

ABAP_OBJECTS_ENJOY_1 Model Solution 1: ABAP Objects Enjoy Course

ABAP_OBJECTS_ENJOY_2 Model Solution 2: ABAP Objects Enjoy Course

ABAP_OBJECTS_ENJOY_3 Model Solution 3: ABAP Objects Enjoy Course

ABAP_OBJECTS_ENJOY_4 Model Solution 4: ABAP Objects Enjoy Course

ABAP_OBJECTS_ENJOY_5 Model Solution 5: ABAP Objects Enjoy Course

DEMO_ABAP_OBJECTS Complete Demonstration for ABAP Objects

DEMO_ABAP_OBJECTS_CONTROLS GUI Controls on Screen

DEMO_ABAP_OBJECTS_EVENTS Demonstration of Events in ABAP Objects

DEMO_ABAP_OBJECTS_GENERAL ABAP Objects Demonstration

DEMO_ABAP_OBJECTS_INTERFACES Demonstration of Interfaces in ABAP Objects

DEMO_ABAP_OBJECTS_METHODS Demonstration of Methods in ABAP Objects

DEMO_ABAP_OBJECTS_SPLIT_SCREEN Splitter Control on Screen

regards

former_member223537
Active Contributor
0 Kudos

Hi Praveen,

1. There is a BLOG for BEGINEERS IN OOPS-ABAP

/people/sap.user72/blog/2005/05/10/a-small-tip-for-the-beginners-in-oo-abap

2. Defining and implementing classes is given in the no.1 specified BLOG

a. You need to DEFINE a METHOD and in this method build logic to fetch and display records.

b. Same as 2(a) you need to DEFINE a METHOD to do the calculations

3/4. Please refer the following link for Sample programs and more details

Best regards,

Prashant

0 Kudos

Hi Anversha.

send me also material on OOP in ABAP.

my mail id is : rajesh2575@rediffmail.com

Thanks.

0 Kudos

Hi rajesh,

keep replying to anversha's. ur reques has come to me.

i mean select reply on her message.

0 Kudos

hi rajesh,

can u open a sperate thread.

i will send u once i see ur thread.

rgsd

anver

0 Kudos

hi rajesh,

can u open a sperate thread.

i will send u once i see ur thread.

rgsd

anver

anversha_s
Active Contributor
0 Kudos

hi praveen,

i send it.

hope u got.

if helepd mark points.

rgds

anver

not : i am not she . i am he:)