Symptom
The gateway service behind quality notification output (the form data provider, FDP_QM_NOTIFICATION_SRV) is built in a way that it provides as much data as possible, even including records marked as deleted. This is done to give the uses the possibility to decide what to show on an output and what not, e.g. to follow reporting or documentation requirements.
The forms delivered by SAP (like QM_NOTIFICATION_SMRY_CUSTOMER) are more like templates or examples users could use as a reference and starting point when building their own forms. This article will show a method of hiding the deleted tasks on the quality notification output.
Environment
SAP S/4HANA Cloud Public Edition
Resolution
- In Maintain Form Templates (F1434) app, find the standard form "QM_NOTIFICATION_SMRY_CUSTOMER" and download it.
- Open the form definition in the Adobe Lifecycle Designer for SAP Solutions
- Add the field "IsDeleted" of the Tasks entity in a suitable place (e.g. to Page1 - subform "Tasks" - table "Tasks" - row "BodyRow" - untitled sub form - table "SpecificTask" by inserting a new row here. Also add the corresponding data binding).
- If this additional row/ field should not appear on the output, change its attribute "presence" to "hidden (exclude from layout)"
- Add an event with javascript logic to this field which checks its value and hides the corresponding body row of the corresponding task if it has value "X". This could look for example like this:
<event activity="ready" ref="$layout" name="event__layout_ready">
<script contentType="application/x-javascript">
if (this.rawValue == 'X'){
this.parent.parent.parent.parent.parent.presence = 'hidden';
}
</script>
</event> - Save the form template and upload it in Maintain Form Templates app.
- Use this custom template for quality notification output.
See Also
Keywords
quality notification, deleted task, deleted item, form template, summary_supplier, QM_NOTIFICATION_SMRY_SUPPLIER, FDP_QM_NOTIFICATION_SRV, Adobe Lifecycle Designer, Maintain Form Templates, javascript , KBA , QM-QN-2CL , Quality Notifications (Public Cloud) , Problem
SAP Knowledge Base Article - Public