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

Former Member
0 Likes
633

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.

1 ACCEPTED SOLUTION
Read only

former_member182670
Contributor
0 Likes
600

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)

4 REPLIES 4
Read only

former_member182670
Contributor
0 Likes
601

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)

Read only

Sandra_Rossi
Active Contributor
0 Likes
600

> Can we acheive everything using OOPs?

Except coffee, I would say yes.

Read only

Former Member
0 Likes
600

ThankYou TMackowski.

Read only

0 Likes
600

roopaa1, you may give points, it works now.