cancel
Showing results for 
Search instead for 
Did you mean: 

mdm abap api: how to get all record ids of a repositoy?

Former Member
0 Kudos

Hi,

in principle i am looking for a way to retrive all data for example of an mdm main table.

So i was looking for something similar to "select * " in ordinary abap.

i know that there is the query method in the core_services interface but i am missing the

CP ( contains pattern ) operator here.

Is there a way to get all record ids of a repository?

Thanks in advance!

Gideon

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can retrieve all record ids of a repository using Query Method.

if you are usiing do and End do then comment this and use below code. it is working fine at my side..

*DO 5 times.

*APPEND sy-index TO lt_keys.

*ENDDO.

you need to add the below code it will definitely work for you.

DATA lt_search_result_set TYPE mdm_search_result_table.

DATA ls_search_result_set TYPE mdm_search_result.

CALL METHOD lr_api->mo_core_service->query

EXPORTING

iv_object_type_code = 'Products'

IMPORTING

et_result_set = lt_search_result_set.

READ TABLE lt_search_result_set INTO ls_search_result_set INDEX 1.

Hope it will solve your Query,

Rewards if found Useful.....

Thanks,

Mandeep Saini

Answers (0)