cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to get registered object information from an ABAP program in Developer Extensibility

MegumiInoue
Explorer
0 Likes
785

Hi Exparts,

We are developing custom programs using Developer Extensibility in S/4HANA Public Edition.
We would like to develop programs to perform specific common operations on multiple custom tables.

In such cases, with Classic Extensibility, we could develop flexible functions by dynamically retrieving information from standard tables beginning with "DD".

I cannot find an alternative in Developer Extensibility, so if anyone has any information, please let me know.

Our specific need is to create a program that accesses information that was previously available from tables like:
- DD02L
- DD02T
- DD03L

Please let me know if there are ways to access via CDS views, standard classes, etc.

I would also like to refer to any materials that summarize how to retrieve various registered objects from ABAP programs, if there is one.

Best Regards,
Megumi Inoue

Accepted Solutions (1)

Accepted Solutions (1)

patrick_winkler
Product and Topic Expert
Product and Topic Expert

You can use the XCO API for example:

xco_cp_abap_repository=>object->tabl->for( 'ZPWT1' )->get_database_table( )->fields->all->get( ).
xco_cp_abap_repository=>object->tabl->for( 'ZPWT1' )->get_database_table( )->content( )->get_short_description( ).
MegumiInoue
Explorer
0 Likes
Your advice was very helpful. It looks like it will be useful in the ABAP code. Thank you. By the way, are there plans to make it possible to obtain this information in the CDS view in the future? I would like to use it in the value help for Application Job parameters if possible, but it seems difficult to do so with the XCO API. If you have any information, please let me know.
patrick_winkler
Product and Topic Expert
Product and Topic Expert

@MegumiInoue 

The only CDS view I know remotely applicable to your question is I_CustABAPObjDirectoryEntry. At least you get the list of TABL.

Don't know about other CDS views. You can search in ADT with for example Open ABAP Development Object -> api:use_in_cloud_development type:ddls *tab*

MegumiInoue
Explorer
0 Likes
Thank you. I_CustABAPObjDirectoryEntry seems to be useful in various cases. If we are going to use it for value help, it would be better if we could get the text of the object, but I imagine that the CDS view is not yet equipped to do that.

Answers (0)