Tried doing the same. But system is looking for attribute. I got error in UI. Please see below.
Note
- The following error occurred in system S04 : Could not find attribute ZZMEGRU
- The error occurred on application server cis0440_S04_40 and in work process. 0
- The termination type was: RABAX_STATE
- The ABAP call stack was:
Method: IF_WD_CONTEXT_NODE_INFO~GET_ATTRIBUTE of program CL_WDR_CONTEXT_NODE_INFO======CP
Method: DETERMINE_SELECTED_FIELDS of program CL_FPM_FORM_UIBB_ASSIST=======CP
Method: DISPATCH_PBO of program CL_FPM_FORM_UIBB_ASSIST=======CP
Method: PROCESS_BEFORE_OUTPUT of program /1BCWDY/0O2SQWJL1QH2NL3UE0NP==CP
Method: IWCI_IF_FPM_UI_BUILDING_BLOCK~PROCESS_BEFORE_OUTPUT of program /1BCWDY/0O2SQWJL1QH2NL3UE0NP==CP
Method: CALL_UIBB_PBO of program CL_FPM========================CP
Method: PROCESS_EVENT_FINALIZE of program CL_FPM========================CP
Method: RUN_EVENT_LOOP of program CL_FPM========================CP
Method: IF_FPM~RAISE_EVENT of program CL_FPM========================CP
Method: ONACTIONSWITCH_VIEW of program /1BCWDY/0O2SQWJL1QH2NN4M9RAK==CP