cancel
Showing results for 
Search instead for 
Did you mean: 

Messages in RAP List Report

cg19821
Discoverer
0 Kudos
2,484

Hi,

I have custom action in the List Report page, where the user can update large number of records.

In the end of the process, I want to give one message that says how many records where updated successfully and how many failed.

Using reported - the message is duplicating itself according to the number of records that were selected - also I only enter it once without tky - that is not good for me, since if I will have large number of records it will be confusing for the user.

I addition, after I close this message, I get another message that says that "The selected objects can't be processed".

I tried with and without tky, and with ISOLATED and CHANGE_SET.

Accepted Solutions (0)

Answers (2)

Answers (2)

ChayaGotlib
Explorer
0 Kudos

I solved the problem by using the parameter %global of the reported structure.

But I notice that this parameter is not available in all versions

Rajeshwari_09
Product and Topic Expert
Product and Topic Expert
0 Kudos
Could you please share the example for %global
AbhishekSharma
Active Contributor
0 Kudos

Hi cg1982

Please try using below property, but looks like you still need to put logic for combining all messages or there count...

%state_area property in your REPORTED-<ENTITYNAME> structure like below...

reported-<entity name> = VALUE #((
%tky = <record>-%tky

%state_area = 'VALIDATE_FIELD' "this can be any text just to identify state of field
%element-<fieldname to validate> = if_abap_behv=>mk-on

%msg = new_message ("update your error message").
)).

Hope this Helps...

Thanks-