When clicking on 'Display' on the POWL, an event is raised. See in the HANDLE_ACTION method of the feeder class CL_FITV_POWL_TRIPS_TOBEAPPROVE. So far so good. The event data is passed out to the POWL framework. The POWL framework raises this event. And now it comes: in the delivered standard application FITV_POWL_APPROVER, the view V_POWL of the WD component FITV_POWL_APPROVER contains an event handler method for the POWL follow up events. See method FOLLOW_UP_ACTION in this webdynpro view. This method will be triggered, which then calles it is used outside the dedicated WDA application FITV_POWL_APPROVER. Only in this context the raised event is processed. If you use this outside this framework, you must catch this your own. E.g. you could do a Z Feeder Class and handle the display action directely in there, instead of raising an event. Also in your case there is a generic WDA application behind. But this does not handle travel specific events. Test FITV_POWL_APPROVER and you will see, it works. In the end you must reach function PTRM_WEB_FORM_GET IF i_actionid = cl_fitv_powl_trips_tobeapprove=>con_action_display. DATA: l_api_component TYPE REF TO if_wd_component, l_operation TYPE string, ls_bo_param TYPE wdy_key_value, lt_bo_params TYPE wdy_key_value_table. l_api_component = wd_this->wd_get_api( ). LOOP AT c_selected INTO lv_selected. READ TABLE c_result_tab INDEX lv_selected-tabix ASSIGNING . * prepare application parameters ASSIGN COMPONENT 'EMPLOYEENUMBER' OF STRUCTURE <ls_result_tab> TO . ls_bo_param-key = cl_fitv_navigation=>gc_param_persno. ls_bo_param-value = . INSERT ls_bo_param INTO TABLE lt_bo_params. ASSIGN COMPONENT 'TRIPNUMBER' OF STRUCTURE TO . ls_bo_param-key = cl_fitv_navigation=>gc_param_tripno. ls_bo_param-value = . INSERT ls_bo_param INTO TABLE lt_bo_params. * Operation= Call Display Form l_operation = cl_fitv_navigation=>gc_op_displayform. * Call the specific application and creates a new window cl_fitv_navigation=>navigate_to_object( EXPORTING component = l_api_component operation = l_operation business_parameters = lt_bo_params ). ENDLOOP.
↧