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: 

programmatically check the existence of objects in the system

Former Member
0 Kudos
394

Hi,

Is there a way to programmatically check the existence of objects? The idea is I'll accept a list of names of objects and their object types and then programmatically check their existence in the system?

Can you point me to a resource on how to do it?

Thanks in advance.

--Carl

5 REPLIES 5

Former Member
0 Kudos
206

What objects are you referring to? If its the ABAP repository objects that you need, they are all available in tables in the system. TADIR is one such table.

Hope this helps.

Sudha

Former Member
0 Kudos
206

Hi,

what kind of object you want to know. OBJNR?

Can you give an example?

Regards, Dieter

0 Kudos
206

Hi.

All custom objects (z, y) being referred to a program. May it be z or y table, data element, domain, sapscript form, function module/group.

The goal is actually to be able to transport a program from a source machine to a target machine. The objects being referred to from the program must also be transported, of course, for it to run properly. Thus, the need to check the objects' existence.

Thanks.

--Carl

Former Member
0 Kudos
206

refer TADIR table

Former Member
0 Kudos
206

Hi

Yes, You can check

Write a small program and write a select statement to the Table <b>TADIR</b>where the Object Type(like PROG,FUNC,TABL etc) and objectname = given name

If sy-subrc = 0. means the object exits in SAP. other wise not.

<b>Reward points for useful Answers</b>

Regards

Anji