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: 

Object Oriented ABAP

Hi All,

I want to know how to write a program to count number of objects declare in a program

Thanks,

Snehal

3 REPLIES 3

Sandra_Rossi
Active Contributor

I understand that you want to parse the source code of an ABAP program and count the number of the following statement, but probably it's not the question. Could you clarify?

DATA ... TYPE REF TO <interface or class>.

FredericGirod
Active Contributor
0 Kudos

You could use the statement SCAN, but it is not really friendly

https://blogs.sap.com/2019/04/22/how-to-scan-abap-code/

0 Kudos

Do you want to identify no of object instances created in a program?