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

Object Oriented ABAP

Former Member
1,081

Hi All,

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

Thanks,

Snehal

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
Read only

Sandra_Rossi
Active Contributor
985

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>.
Read only

FredericGirod
Active Contributor
0 Likes
985

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

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

Read only

0 Likes
985

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