cancel
Showing results for 
Search instead for 
Did you mean: 

Display warning message or information message in Fiori Element list report application

kranthinbv
Explorer

How can I display a warning message in Fiori Element based list report application?

I have created OData service using SEGW CDS reference model and tried the below code in DPC EXT class

but it doesn't work. is there any way to do this from backend without doing Fiori Element extension? If I raise exception then the list is not getting displayed.

 IF lv_authcheck IS NOT INITIAL OR et_entityset[] IS INITIAL.
 DATA(lo_msg_container) = me->mo_context->get_message_container( ).
 lo_msg_container->add_message_text_only(
 EXPORTING
 iv_msg_type = /iwbep/cl_cos_logger=>warning
 iv_msg_text = 'List incomplete due to missing authorization'
 iv_add_to_response_header = abap_true
 ).

former_member435529
Participant
0 Kudos

Kranthi,

Have you tried to pass Error message instead of Warning ?.

Thanks,

Javier

Accepted Solutions (0)

Answers (0)