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

object and Function Group..

Former Member
0 Likes
927

Hi Expert,

Can anyone Explain me , what is difference between "object" and 'Function Group' and difference between "Method " and "Function Module".

Thanks

Tarak

6 REPLIES 6
Read only

Former Member
0 Likes
812

Hi,

OBJECT is nothing but instance of a class or it's an attribute .For example..take COLOR...

From color we can determine RED,WHITE,BLUE..etc..in that RED ,WHITE and BLUE etc are the objects of COLOR...here COLOR is CLASS..

Funtion group means collecting the related functions into a single group..like FOLDER...

METHOD is nothing but collection of statements and u can resue them but it cannot handle execptions

whereas..

FUCTION MODULE can handle exceptions and are globally available..

Regards

Kiran

Read only

Former Member
0 Likes
812

Hi Tarak,

Check out this link.

Much Regards,

Amuktha.

Read only

Former Member
0 Likes
812

Hi,

Please find the link below

[Help1|http://help.sap.com/saphelp_nw70/helpdata/en/c3/225b5954f411d194a60000e8353423/content.htm]

Thanks

Read only

Former Member
0 Likes
812

>

> Hi Expert,

> Can anyone Explain me , what is difference between "object" and 'Function Group' and difference between "Method " and "Function Module".

>

>

> Thanks

> Tarak

Object and Methods are part of Object Oriented programming, Function Group and Function Module are part of Procedural ABAP Programming.

A Function module has to be created under a Function group whereas methods are created in class. If the methods are instance methods we need an object of the class to access the methods.

Object Oriented ABAP offers much more flexibilities than procedural ABAP.

Read only

Former Member
0 Likes
812

Hi Tarak ,

Obect is entity . It is instance of a class.

Function group is is a program which can not be executed . It contains Subroutine, Function module,

screen , global declarations etc . To access the data of a Func. Group you need call a func. Module and then all the contents of that Func. Group will be uploaded to the that calling program.

You can say Method is a procedure of a object.

Where as Func. Module is a procedure of a Func. Group.

Thanks and regards

Pinaki Mukherjee

Read only

Former Member
0 Likes
812

Difference between "Method " and "Function Module".

1.by default methos pass the values as by reference but fm passes by value

note: You might be knowing dierence beteween by value and by reference

Difference between "object" and 'Function Group' :

You can say fgroup is the place where u can have colection of fms.

similarly class is the colection of objects

so diecrene is object is a single instanec o a class.

fgroup is collection of function modules

Regards