Application Development and Automation 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: 
Read only

OOPs concept any one?

Former Member
0 Likes
1,372

Hi Friends,

I dont know the oops concept even from basics ....

as part of requirement we need to work in oops Do any one having the links to learn oops..Pls provide

All pains are rewarded ...thanks once again

reards

sas

1 ACCEPTED SOLUTION
Read only

matt
Active Contributor
0 Likes
1,329

If you wish to learn object oriented programming techniques, and have no idea about oops, then ABAP Objects is probably your worst starting point. I suggest you do what I did. Get a copy of "Head First Java" from the O'Reilly press. Download eclipse. Go through the book and learn Java. Then apply what you've learned to ABAP Objects.

Not only is this by far the easiest way to learn oop techniques, you get the added advantage of learning Java, and you'll know how to use the SAP Development Studio which is built on Eclipse.

matt

If you wish to learn object oriented programming techniques, and have no idea about oops, then ABAP Objects is probably your worst starting point. I suggest you do what I did. Get a copy of "Head First Java" from the O'Reilly press. Download eclipse. Go through the book and learn Java. Then apply what you've learned to ABAP Objects.

Not only is this by far the easiest way to learn oop techniques, you get the added advantage of learning Java, and you'll know how to use the SAP Development Studio which is built on Eclipse.

matt

11 REPLIES 11
Read only

Former Member
0 Likes
1,329

https://www.sdn.sap.com/irj/sdn/wiki?path=/display/snippets/tutorial

check this sample program on local classes

report zalv_sel_screen .

class venkatesh definition.

public section .

data: publicdata(30) type c value 'this is the public data',

num1 type i value 2,

num2 type i value 3,

num3 type i.

methods: publicmethod.

protected section.

data: protecteddata(30) type c value 'this is the private data'.

private section.

data: privatedata(30) type c value 'this is the private data'.

endclass.

class venkatesh implementation.

method : publicmethod .

num3 = num1 + num2.

do num3 times.

write:/ 'this is venkatesh'.

enddo.

endmethod.

endclass.

start-of-selection.

data: venky type ref to venkatesh.

create object : venky .

call method: venky->publicmethod.

Read only

0 Likes
1,329

Hi venkat could could you kindly look into this!!

check the link provided the link you provided no more exists...

Regards

sas

Read only

Former Member
0 Likes
1,329

Hi,

Go se38 --> Input program name as BCALV_GRID_*.

You can see all the alv reports developed on OO ABAP, and those are quite simple to understand.

Thanks,

Sriram Ponna.

Read only

Former Member
0 Likes
1,329

Hi,

The Best way to study OOPS concept is that we goto SE38

search for all BCALV_GRID_* , BCALV_TREE_* and BCALV_TEST_GRID*.

You can take any simple program and study.

There number of sample programs that can help you to get the OOPS concept.

This will surely help you.

Plz reward if useful.

Thanks,

Dhanashri.

Read only

matt
Active Contributor
0 Likes
1,330

If you wish to learn object oriented programming techniques, and have no idea about oops, then ABAP Objects is probably your worst starting point. I suggest you do what I did. Get a copy of "Head First Java" from the O'Reilly press. Download eclipse. Go through the book and learn Java. Then apply what you've learned to ABAP Objects.

Not only is this by far the easiest way to learn oop techniques, you get the added advantage of learning Java, and you'll know how to use the SAP Development Studio which is built on Eclipse.

matt

Read only

Former Member
0 Likes
1,329

Hi Mathew,

U r idea is Super.i really try to implement it .

thanks alot...but i have one doubt is that press complty been refered ? or only certian topics ..bec if i started refered completly might be my project(requirement) ends up!!If possible let me knopw the main topics i need to cover in java

just give me rough idea how much time you have taken to get familiar on those topics!!

regards

sas

*Might be our bandwidth's may varie but just for information

Read only

matt
Active Contributor
0 Likes
1,329

Depends how smart you are I guess. The book is very easy to get on with - it's the only "teach yourself" book I've ever completed. To work through should take no more than one week - it depends how much time you have to devote to it. You might even be able to do it in a single day!

It's unlikely anything would arise in your project that wouldn't be covered. What's important is to learn the basic concepts and how it fits together, and then start learning how to develop in an object oriented way.

matt

Read only

Former Member
0 Likes
1,329

That would be great to heat that you have completed in one week!!

Instead of learning java and then coming back and searching which Java key words are suitable in ABAP its better to learn from some one who knows both....so let me know u r online tutuion fee .I am ready to attend your online tutorials ..so that u once in life u can say sas is my student!

Regards

sas

Thnkx mathew :)-------

Read only

matt
Active Contributor
0 Likes
1,329

No no no. It's not the keywords that are important ( [http://mindprod.com/jgloss/keyword.html] ), it's the object oriented programming concepts and ideas that you need. These are directly transferable from one object oriented language to another. Object oriented programming is different from the ordinary programming you'll be used to.

And that's what that book would give you a start on. If you complete the book, then you'll be at the beginning of understanding how OOP works. You can then start applying it to ABAP. But it will take a while, depending on how good you are, before you'll be competently handling it.

You can't afford my online tuition fees. You might find this webcast I did useful - though it is a little out of date: [http://www.bitpipe.com/detail/RES/1134409406_158.html]

matt

Read only

Former Member
0 Likes
1,329

That key words glossarry is awesome nice collection!!

But..after going throught these things i want to know one thing..

what added advantage is there when we implement oops concept in this abap..? why is there any additional functionality where abap can't do only only java can do..?

Mathew ps:- unable to access your web tutorials online.

Regards

sas