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: 

diff bet FM and oops

Former Member
0 Kudos

Hi guru's,

wht is the diff between normal function modules and using OOPS in alv's.

thanks

3 REPLIES 3

Former Member
0 Kudos

Hi Sathish,

As an example, i will try to explain. For example, if there are four function, like addition, subtraction, multiplication and division. There are four variables, a, b, and c. If you write an FM for this. Just think, how can you display the out put for all these four function, using single FM?

This is not possible. For such type of scenarios, Classes (OOPS concept) have introduced. Where, we can define, several methods, under each method you can define separate logic. And whenever necessary, you can use that.

Thanks

Manju.

Former Member
0 Kudos

Kanagaraja_L
Active Contributor
0 Kudos

ALV list is done with Function modules ALV GRID done with CLASS->Methods.

ALV No need to design the screen ALV Grid We need to design the Screen/Container.

ALV Grid uses ActiveX controls present on the Presentation Server.Hence, it consumes More Memory on the presentation server.

ALV Can be displayed hieratically But ALV GRID cannot be displayed hieratically.

Kanagaraja L