Transformation programs can also be enhanced with selection screens to enable the data retrieved from the Diffuser framework to be filtered as per the example below filtering by company code. Or alternatively selection screen options could impact the output or offer file download options in the usual way you might control any ABAP program.
*---------------------------------------------------------------------*
* Sample Transformation Program
*---------------------------------------------------------------------*
REPORT z_sample_mdr_transform_program.
INCLUDE:
/btr/mdr_include.
SELECTION-SCREEN BEGIN OF BLOCK seloptions WITH FRME TITLE texts01.
SELECT-OPTIONS s_bukrs FOR vbak-bukrs.
SELECTION-SCREEN END OF BLOCK seloptions.
* Transformation run options
mdr-begin-select_screen_trans.
START-OF-SELECTION.
* Get the summary results
mdr_instance_result_get co_label_summary gt_summary_list[].
* Filter the summary results
delete gt_summary_list where bukrs not in s_bukrs.
* Display the details to the user
PERFORM display_result USING gt_summary_list.
Post your comment on this topic.