SAP CAP Blog Posts
cancel
Showing results for 
Search instead for 
Did you mean: 

Within the CDS family of languages we have CXL, the CDS Expression Language. In the context of CDS models and queries, CXL brings the ability to use expressions for describing calculations, declaring conditions, and more, all of which enriches the CDS model and helps us focus on the domain model.

In CXL we think about path expressions, functions, literals and operators.

Operators are often referred to according to the number of operands they take:

  • unary operators take 1 operand (e.g. not to negate something)
  • binary operators take 2 operands (e.g. + to add two values)

There's an operator supported by CXL referred to as case-when-then, which expands in full syntax to case when ... then ... else ... end (there's a possibility to repeat the when ... then ... structure too, but that's beside the point here).

The pure form of this operator takes three operands (a condition, and two alternative values), and also has a supported syntactical equivalent which is found in many other languages such as JavaScript, and is often written as ?: for short.

If "unary" is the name for an operator that takes one operand, "binary" for one that takes two, what is the name for an operator that, like case-when-then, takes three?

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:

41 Comments
omer_sakar
Active Participant

bcb8f14e0486ff2da896f57a042bbb1eac8400749720cdc7d5795f78ea351310

soheil_st
Explorer

c7b0e5f07625f902608ab55db2c119872adfe7e8541a6a910193017567d65fc5

FlorianP1
Explorer

d6a4205d0ceb63664f864d69f97d6c95382e25c7ed1c089d81cd36f7abbd9e02

Dan_Wroblewski
Developer Advocate
Developer Advocate

68709db6a46c5229f971f688a400ffe74b9548ba340d5455e6229c8ac5c355fe

kasch-code
Participant

810e47ffef3ed5f012e8534a9f8f9fec2cf664b299ccc12420cb628135265503

berkaydurmaz
Explorer

85572968401f6f508072cb35f17a27a6f2d460db66576b8cbec122cc67833e2b

Joery
Participant

6dcb59060d1a10bb92725cea90f49103e74426465037741ba73812b0d753f605

furkan5
Participant

325473f735d03dc7f70dfc3f1b31158c3b01daa963b4ccb6a7f5584db6cf79cd

Caisi
Explorer

60eaaf49adeca1692849e5acb3ba9254af9aa657fdd2b01dcafad950eafde334

Rupesh_Kumar25
Explorer

40388384bfecefb9bed60e61b60fe3c41d764375afa71626e619e953f6581262

Chaimae_Chairi27
Participant

a2021bd9b898e5c36ba761679893515082798d98fc1998a70f3ac1ebdf3ae1df

sarvesh_agarwal
Explorer

cc62c702a6025051462df4ef3cbfc0e5818201a53931f690c52e26a97e3c9392

SergioG_TX
SAP Champion
SAP Champion

cd127883e5dca4f2048b3207a57129dc28af36624fc7d25c9fb9008062582bef

RajeshOlive
Explorer

dc349e1edb408806144afba7580d45d22f88229b942eeee20de84ec0f995a299

SachinArtani
Active Participant

95e4b0fef8172f2a1ccf5975d78771ed6530843df44e5c5a4766991d2973c5ab

nagarjundas_1994
Explorer

424ba36a5ce76671e74c1c1ddbd23c9046ee45baec44b2bec6bf9ad95a7fa983

MioYasutake
SAP Champion
SAP Champion

df6d6d7c96f7a69f6eec9631aa0d17233e9e4bbbd95a8427165e778339ed6b7b

VishnAndr
Active Contributor

9165eff05fb0ed11872d57d47d7295471b4cf8c455bf340215a3a59dba7dd53f

lidavidlee
Explorer

317215f1df2443b0cb86c7f319854d5141c9193074e55534b42701418c9f5028

ajmaradiaga
Developer Advocate
Developer Advocate

5373297b0af64d00b2e1e2afe35d86f9a082c1dbf861fb7a29d167803239344d

YLN
Explorer

d8dcee01f2246cd3d857fa9549c75d5166ec7a5341fe9bf2bde91565a84e1004

d91db6daee3cd6f9b4d93486abaffae3bee8bcae11d1724d62a7029243e33e4f

parthasaradhi
Explorer

9fad283bc8c19bb2f6522ebaaf7c38d5a34aa96653373fbe1cc995f6262fd7fa

aryan-11
Explorer

4fd2dbd89979c95e9b727fd44b9ce67d86484dac9d871ddb4f68564b2d2ddcab

aelghannam
Participant

8caed1c9c7a05834fa9d1e20f73e5ac18ec5ef96e5f0e4aaef985d72207cd5a5

shotokka
Explorer

fa9fa3f8b7d21cf2939f7bef7b2a397ee3b1fccb244dacb7536fcea300201c4b

mvaibhav
Contributor

fa41d14ea44a8ecc745f13ca3fd9e1f3326d2aa77da85ecd794150ced8ebc4da

MatLakaemper
Participant
615cc1d26c4d95704d83ae84f95bd44902db3d0cbbbac7dffe99c35bcaba7553
GauravPhadnis
Product and Topic Expert
Product and Topic Expert

a65ab3d4fadcbeb803a2ac1205ed8fc2b1ff098a6309a535d15b71a0902f7db5

MatLakaemper
Participant
615cc1d26c4d95704d83ae84f95bd44902db3d0cbbbac7dffe99c35bcaba7553
Ihor_Haranichev
Participant

de381e336e0252b9aaca2ef876f3e1c127ff3538e01927abcd92933e46de97f1

NakulG
Explorer

a383e05cf806374d3482a38966a5038c707689f781307bfc6d9f9c2b9439a5cf

stickman_0x00
Participant
2cce29d43dbaa4a9e92945241a8ed98f4d4d960d7d9f0709e305996c9e8454ae
Swathi_SAP_Philomath
Participant

9024e6b156fde1926697d59e0c601a1bdc88af4047a517e6b2456625fd880ec7

Laco
Participant

d85e3c5c5c958b004b94c8048dc5a7c4ad609d1ac2f56c49179179e3fa2d8952

Anusha2025
Explorer
f8d93415204df7a950ca69ce93d05e3784c2f4603f394a5241ca7aebd7c5cbf5
AndriiDanilishin
Participant

861006166b170dec27725322fc09257d9e93bf8e46a2fe17b87d06dcd650396e

mhameister
Explorer

b210cfecd79687cbff73903581a8967d9ad2426b09c80c5e22b3f4886b4c8d6f

gouthamKumar
Explorer

928419f3f2d1fdae0214468e71f35851d097bb1ec1386014530021a24c4b06d9

fb550b461aa30feb9e202c02ef48eb063b37d5c2fffd504067c3f8837b8de677

https://go.support.sap.com/minisap/#/minisap     is not working for the sap abap developer edition access key generation  i tired of waiting i waited more than 24+  hours but always the server is down 

sasi_venkatesan2003_0-1783775718650.png

 

any one tell me the other way of the free key generation