cancel
Showing results for 
Search instead for 
Did you mean: 

How to use DDCDS_CUSTOMER_DOMAIN_VALUE_T?

mustafa_74199
Participant
0 Kudos

Hi,
In a RAP education video i have seen an example and i am trying to do the same steps to be able to learn RAP.

In the video a CDS view entity was created and it gets the fix values inside a domain from DDIC.


I did the same but when i try "Open with -> Data Preview", i get nothing.


These are the values inside the domain.


I have seen a comment about the solution which recommends to add an entry in the table ABAP_LANGU_SWCMP. But i have no idea how to do it and which entry to create.

If you share any idea i would appreciate.

Best Regards

Accepted Solutions (0)

Answers (3)

Answers (3)

Ramjee_korada
Active Contributor

Hi ,

It seems that you are missing access to see the results.

Please check in SU53 missing authorization and get it added to your user id and then test it.

Best wishes,

Ramjee Korada

mfrommherz
Explorer
0 Kudos

Customer domains can be found in View DDCDS_CUSTOMER_DOMAIN_VALUE and _T, when the domain is in a package, which itself is preferably part of a cloud ready SW-Component.

The reason is, that the underlying View  ARS_OBJECTS_ALL_SW_COMP_SCP only finds objects which are in a  customer software component. 

IN 2020 only customer domains that belong to a cloud ready package are found, not every defined domain.

The package could for example belong to Z_CUSTOMER_DEVELOPMENT.

The Software component should also be ZCUSTOM_DEVELOPMENT. I used good old se80 to assign the SW-Component.

se80_adjust_package.png

To check if that assigning is needed, please use underlying view ARS_OBJECTS_ALL_SW_COMP_SCP if your object is listed using SQL Console in ADT. If it is NOT listed, adjust as described.

TO check in sql console if the object can be found:
SELECT

ARS_OBJECTS_ALL_SW_COMP_SCP~PROGRAM_ID,

ARS_OBJECTS_ALL_SW_COMP_SCP~OBJECT_TYPE,

ARS_OBJECTS_ALL_SW_COMP_SCP~OBJECT_NAME,

ARS_OBJECTS_ALL_SW_COMP_SCP~PACKAGE_NAME,

ARS_OBJECTS_ALL_SW_COMP_SCP~SOFTWARE_COMPONENT,

ARS_OBJECTS_ALL_SW_COMP_SCP~IS_LOCAL_SOFTWARE_COMPONENT,

ARS_OBJECTS_ALL_SW_COMP_SCP~IS_INSTALLED_COMPONENT

FROM

ARS_OBJECTS_ALL_SW_COMP_SCP

where object_name = '<ZZ_MY_OBJECT>'

AND OBJECT_TYPE = 'DOMA'.

adt_ars_objects_all_sw_com_scp.png

 So finally, DDCDS_CUSTOMER_DOMAIN_VALUE should give back a result:

mfrommherz_1-1715619082779.png

For more details, see the comments on top of view ARS_OBJECTS_ALL_SW_COMP_SCP.

suzanne_alivand
Explorer
0 Kudos

Hi Mustafa,
if you still couldn't find an answer, maybe this helps:
reading domain With CDS

mustafa_74199
Participant
0 Kudos

Hi Suzanne,

Thanks for your reply. I will check it.