cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Template fields not filled in Notification

pradeep_nellore
Participant
0 Kudos
286

Hello Experts,

I have implemented a custom notification provider as per https://community.sap.com/t5/technology-blogs-by-members/fiori-launchpad-notification-configuration/...

I see notification in Launchpad. But i see that values are not filled in Notification text. This is filled by template values. It shows like--- Leave Request by {requestername} from {begda} to {endda} requires your approval.

 

The text in curly braces should be filled by parameters passed when calling notification api. I see that my parameters are passed correctly.  Did any one face this issue? Any pointers please.

Thanks,

Pradeep

Accepted Solutions (1)

Accepted Solutions (1)

pradeep_nellore
Participant
0 Kudos

I have solved it by writing a Query to table /IWNGW/NPROP with Notification id imported under class method /IWNGW/IF_NOTIF_PROVIDER~GET_NOTIFICATION_PARAMETERS.  Table /IWNGW/NPROP holds parameter names passed when notifications are created. I then added below code.

APPEND VALUE #( name = 'begda' value = value string( lt_params[ prop_key = 'begda' ]-prop_value  OPTIONAL )
                     type = value string( lt_params[ prop_key = 'begda' ]-prop_type OPTIONAL ) is_sensitive = abap_false  ) TO et_parameter.

 This worked. Not sure if that's approach. As i have no further suggestion, i will proceed like this. 

Answers (0)