‎2009 Feb 16 8:34 AM
Hi Expert,
Can anyone Explain me , what is difference between "object" and 'Function Group' and difference between "Method " and "Function Module".
Thanks
Tarak
‎2009 Feb 16 8:38 AM
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
‎2009 Feb 16 8:40 AM
‎2009 Feb 16 8:41 AM
Hi,
Please find the link below
[Help1|http://help.sap.com/saphelp_nw70/helpdata/en/c3/225b5954f411d194a60000e8353423/content.htm]
Thanks
‎2009 Feb 16 8:42 AM
>
> 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.
‎2009 Feb 16 8:42 AM
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
‎2009 Feb 16 8:44 AM
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