Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

is there any message command in Cds

SAISIVA
Explorer
0 Kudos
837

While working with CDS with association is there any Message Command to the show the user that no data found instead of showing that empty internal table

4 REPLIES 4

former_member1716
Active Contributor
0 Kudos
658

saisiva.veerla,

I don't think you have a provision for the same in CDS views, what you can do is call the CDS in your ABAP report and you can notify the user from your ABAP report.

Am still not clear though why would user execute CDS directly?

Regards!

gasparerdelyi
Product and Topic Expert
Product and Topic Expert
0 Kudos
658

You need to take care of this in the consumption domain.

if you have a SELECT statement in ABAP code, then you can code this easily.

Is the question about generated OData services? Fiori UI? Some kind of analytical consumption? Or about a specific UI Building Block in FPM?

0 Kudos
658

Regarding Generated, Odata Services

gasparerdelyi
Product and Topic Expert
Product and Topic Expert
0 Kudos
658

In case the consumer of the OData service is a computer program, interpreting empty tables might be easier then interpreting the texts, so I would recommend this on the UI layer

Do you mean Fiori App based on OData service? Then most likely a question for Fiori / UI5.
Check https://experience.sap.com/fiori-design-web/responsive-table/ which recommends properties showNoData and noDataText for the responsive table -- these properties are typically there for the other table-like controls, too.