SAP CAP Blog Posts
cancel
Showing results for 
Search instead for 
Did you mean: 
qmacro
Developer Advocate
Developer Advocate
2,950

In domain modelling, we can have name prefixes for the components of our models. They're optional, but useful, especially if reusability is a factor. This prefixing can be defined with either the namespace or the context directives, or a combination thereof. The latter directive is useful for nested namespace sections.

Regard this sample CDS model definition:

namespace outer.space;

context challenge {
  entity main.Books {
    key ID    : Integer;
        title : String;
  }
}

What is the fully qualified name of the entity here?

This is a question from the June Developer Challenge on CAP Knowledge. And don't forget: always submit your answer as a hash, on its own - read the Taking part section of the intro post for more info. At the end of today, this question will be updated with links to further reading on this topic.

Further info:

52 Comments
mvaibhav
Contributor
0 Likes

b6ce6e0f0c9846f884d430bdbd71965e030acd917f679f9c2670b64b065ac577

HarshPatelV
Participant
0 Likes

3ac9e8658454534ffdacb00d4ea6108fb063766fd0c42933fc6d4315cc302be7

berkaydurmaz
Explorer
0 Likes

97ab23e55564fa95342f1e6114c6f354682cf63ee40885f64f44a75617794b8d

SyamsundarKarukola
Discoverer
0 Likes

3ac9e8658454534ffdacb00d4ea6108fb063766fd0c42933fc6d4315cc302be7

SachinArtani
Active Participant
0 Likes

ce34b2af70515c6b57aefbf9c5b52335fe67c5814e3b7b4f1e3a3d33ab8ba05a

shotokka
Explorer
0 Likes

54235648a9ee3a74c341e6b25dc35e4219a4e90519dabb19d2e8aea6e64db4db

kasch-code
Participant
0 Likes

9575cbeb12024894fd7d800fceca7d275220fb396c5c7805fff45901647192ba

ajmaradiaga
Developer Advocate
Developer Advocate
0 Likes

1511ddc7a383afa438c16efba241f3d01d3fa17d148c13f4a2c3aa1006bf801b

0 Likes

e5d521de4f70312eebef084fe7a64d204701ed20de8f0db7d8a431ff589c64cd

sarvesh_agarwal
Explorer
0 Likes

13fc0f8d6d8a0cbb0a50fee2d4115aff9af67b922bd4e2ffc4db3ef7e6706071

aelghannam
Participant
0 Likes

ac67e44ac30cff60c5565fe1c7e20a10e4cd00c91b46ee89410ec6ab148355ee

VishnAndr
Active Contributor
0 Likes

f4a76adbf2d4ba36aeb277c9756949ac20fb740588cb9bcba12d0e06c3e5b8a2

furkan5
Participant
0 Likes

582076496e7288d46822434f91f18a7e565b96006e2be7786cc5545d04bb26d4

Chaimae_Chairi27
Participant
0 Likes
a7b547ca40702611b5bba42ea0f8b7dca1d3c652883cbcf776951af7b8a4dc82
Rupesh_Kumar25
Explorer
0 Likes

d8f30d8448f7e60940e84774d81678e2f89207e57271e3282fd513b86d178f15

Joery
Participant
0 Likes

4d59930bf3077c0ad8b2fba953ab4890983079bece9a5a9008c98dd32525919f

MioYasutake
SAP Champion
SAP Champion
0 Likes

cd9f866bc795b7ee7e66c8d6d8a051464a679d9077318f9693470334e1373341

soisses
Explorer
0 Likes

d3aa75b7d1b4e3b37e887da97911c4d7c37aa0802a769eaa594a87d488b1b1b2

Mayank_Mittal8
Explorer
0 Likes

d993741e44d79ab535e7b1c4f232a370dd8ef020ad216dd51fd0d21e99f31777

PrabhuDC
Explorer
0 Likes

d2f50fd14ae3893961635d6595b999d466ff454f289c083a7d392a0debfb6306

NakulG
Explorer
0 Likes

e3c303864539c3294cd70c580f9cf5b011eef4fe322e97dd1a270459f16685cf

satya01
Product and Topic Expert
Product and Topic Expert
0 Likes

01db5bc4b5dd873d38e5343915a4872120e88c15274b1ac22365f4c94b9074cc

ditt_kalyan
Explorer
0 Likes

6c6d0ace528c54d80c56679cd5662f8f0d05d160b556c775ecbc063a5829fb48

SergioG_TX
SAP Champion
SAP Champion
0 Likes

7434438418ed0053678b4efec56ce9200464768167bfc4d299bc031a0a43a715

MatLakaemper
Participant
0 Likes

e150ca0a5f7a718677728edf45b1443ce9847e6aa9f8465dbbb477a6ac3029e9

JFenris
Explorer
0 Likes

8225b2f65921b11f9aea2102a66b23c321028babb832d5ad065500b3e0bd1bf0

ankitsrivastav
Explorer
0 Likes

affc49303077d430039fe22a6d5fbce059505b1fb7d767ceaa2258924124943a

RajeshOlive
Explorer
0 Likes

67354181ed08494f3a64042089cb5b0e2c01cdde354fe614e53abb590343ff33

AfshanAnsari
Explorer
0 Likes

79930c7c5c2617634273f0ff8c83b564f00b4bc3ac16cc39846bc79613cd5665

lidavidlee
Explorer
0 Likes

568860a57b5aeaee3827442d04c771698c03f9333775746aa0d560fbb4cb8165

omer_sakar
Active Participant
0 Likes

29de237e8853f26dfb3fbaedc101a1082857afea25f7e60a96ca908b209889c4

aryan-11
Explorer
0 Likes

f99265d57c1cc13bd2a1cb305a240967d46392850aa7ede2dc71ddd28faeec3a

tobiasz_h
Active Participant
0 Likes

3c44a02f590e34e38981b39fb96b8e14bae77d9f12e5a9d098d93f3388fe8c78

milan_10
Participant
0 Likes

a904e21ddb969198e58710ea11eb5be4ca7e139d6d4ad09d32519c64884442e5

Dan_Wroblewski
Developer Advocate
Developer Advocate
0 Likes

eff00b8559379a76ee7b0d3c7281d1e5dde43ece614a0794939c98b4a88ab5e2

0 Likes

e5d521de4f70312eebef084fe7a64d204701ed20de8f0db7d8a431ff589c64cd

parthasaradhi
Explorer
0 Likes

80400567ca712e2c096749cb76f483ead8aee150918778caa7abb59e1404b82f

soheil_st
Explorer
0 Likes

fb3a058a28e5b681d694eb1583ca3380fd2ee9758eb4c5afaba813a1f5e0fded

Andrii
Participant
0 Likes

46cf89bbde7084c521ef0d15d8aa91cb1101d29c0a2cdd6514d1ffd555f91744

nagarjundas_1994
Explorer
0 Likes

99f5602345d2d1c3ab370bd8bbbc7e8d9a003b67d9ddabcdc4f8f46ab8ed52c0

YLN
Explorer
0 Likes

741a5dfda4435a01906bd149f2c2b9fb7fff956da784e00071275928cc773a12

GauravPhadnis
Product and Topic Expert
Product and Topic Expert
0 Likes

0bfeb24a39ccd2c5978eba3340813256cdd1d3dcb1e2f2dc3e335cba77ca1db8

Ihor_Haranichev
Participant
0 Likes

fe5107f357d0ccf1bca39302ad13a579a46e338188afd91f2fc2fcdcfaa5a635

Guru_Charan
Explorer
0 Likes

45888fbbb4bc5c64f3f46b4fade76f9ac2c0972cce7f3997c62544612a5a029d

stickman_0x00
Participant
0 Likes
44a8b088e242796d7374e36d896c35618a6f2193cee0a345b6ce6cb99e573bfc
Swathi_SAP_Philomath
Participant
0 Likes

4e705107e7f849c6c1e214b5a248087e0d2a27d2bbc98d7282b9c3e3fca552a0

Laco
Participant
0 Likes

7cb60b9bf7d84c25875ac57a431923ce183a0eb9f5a4c89597a106ac81509d30

NeelimaEmmani
Explorer
0 Likes

b15565845ab309a45c0a874aa41d54e734840f7068e56b826d3c4a83722ac4cc

Anusha2025
Explorer
0 Likes
fb2e5a803e672e2b20528c94663f0b7dcced57edf443f387f4baadfccb42a094
mhameister
Explorer
0 Likes

efc761ecb94cf956de1a02bb6efbfcfa8ea56295d66f37b25db0c02773375c2b