‎2010 Mar 21 7:11 AM
Pls someone answer me this,
Can we acheive everything using OOPs? If not? What cant be acheived?
Have you encountered any scenario liike, you cannot acheive it using Function modules & can be acheived using Oops.
Thanks in advance.
‎2010 Mar 21 9:32 PM
Hi,
There are some limitations where you can't use ABAP Objects classes and methods directly.
Usually you can workaround it using procedure or FM as a wrapper and putting all your logic into classes.
OO won't work directly in:
- Remote function calls - there are no 'remote classes' - still have to expose 'normal' FM, but can delegate to class
- update procedures (PERFORM ON COMMIT)
- update FM's (CALL IN UPDATE TASK)
- dynpro programming - selection screens, implicit events, PBO,PAI
- generating code dynamically (GENERATE SUBROUTINE POOL)
‎2010 Mar 21 9:32 PM
Hi,
There are some limitations where you can't use ABAP Objects classes and methods directly.
Usually you can workaround it using procedure or FM as a wrapper and putting all your logic into classes.
OO won't work directly in:
- Remote function calls - there are no 'remote classes' - still have to expose 'normal' FM, but can delegate to class
- update procedures (PERFORM ON COMMIT)
- update FM's (CALL IN UPDATE TASK)
- dynpro programming - selection screens, implicit events, PBO,PAI
- generating code dynamically (GENERATE SUBROUTINE POOL)
‎2010 Mar 21 9:52 PM
> Can we acheive everything using OOPs?
Except coffee, I would say yes.
‎2010 Mar 22 7:42 AM
‎2010 Mar 22 3:30 PM